Difference between revisions of "Writer/Underline Color"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Underline color in specification)
Line 67: Line 67:
  
 
== Underline color in specification ==
 
== Underline color in specification ==
The underrline color attribute is stored using the following ODF property in
+
The underrline color attribute is stored using the following ODF property.
 
style:text-underline-color The value range is either font-color or a color value
 
style:text-underline-color The value range is either font-color or a color value
  
The underline color attribute is stored using the following sprm property in MS Word bin format according its specification
+
The underline color attribute is stored using the following sprm property in MS Word bin format according its specification.
 
sprmCCvUI  A COLORREF value that specifies the color of the text underline
 
sprmCCvUI  A COLORREF value that specifies the color of the text underline
  
 
== Support underline color in WW8 filter ==
 
== Support underline color in WW8 filter ==

Revision as of 03:08, 9 July 2012


Underline color in Writer

Underline color is not a standalone attribute in Writer. It belongs to the underline attribute, which is one of significant font effect attribute. The underline and underline color attributes can be accessed via the “Font Effects” pane in Writer. The value range for underline color is the same as for the Color pane. Currently, Apache OpenOffice 3.4 doesn't implement the support of underline color importing and exporting in WW8 filter, although it works well in ODF.

underline color import
odt work
doc lost
docx lost
underline color export
odt2odt work
odt2doc lost
doc2odt lost
doc2doc lost
docx2odt lost
docx2doc lost

Underline color in document model

The Underline and Underline color attributes can be accessed via the UNO API. Using the properties CharUnderline, CharUnderlineColor, and CharUnderlinelineHasColor in the service com.sun.star.style.CharacterProperties. These properties are described in the following table:

underlinecolor related properties
short CharUnderline This property contains the value for the character underline.
::com::sun::star::util::Color CharUnderlineColor This property contains the color of the underline for the characters.
boolean CharUnderlinelineHasColor This property specifies if the property CharUnderlineColor is used for an underline.


There is a Value container named SvxUnderlineItem for underline font effects which specify the underline color property


Underline color in specification

The underrline color attribute is stored using the following ODF property. style:text-underline-color The value range is either font-color or a color value

The underline color attribute is stored using the following sprm property in MS Word bin format according its specification. sprmCCvUI A COLORREF value that specifies the color of the text underline

Support underline color in WW8 filter

Personal tools