2.1.1893 Part 4 Section 20.1.2.3, ST_ColorType (Color Type)
a. The standard does not indicate the valid color palette entry names for the ST_ColorType simple type.
In Office, the following color palette entries are supported:
ButtonFace
WindowText
Menu
Highlight
HighlightText
CaptionText
ActiveCaption
ButtonHighlight
ButtonShadow
ButtonText
GrayText
InactiveCaption
InactiveCaptionText
InfoBackground
InfoText
MenuText
Scrollbar
Window
WindowFrame
ThreeDLightShadow
ThreeDDarkShadow
ActiveBorder
InactiveBorder
Background
AppWorkspace
ThreeDFace (represents the same color as ButtonFace)
ThreeDShadow (represents the same color as ButtonShadow)
ThreeDHighlight (represents the same color as ButtonHighlight)
[Example:
-
<... color="InactiveCaption" ... >
end example]
b. The standard indicates the kinds of values that the ST_ColorType simple type uses.
In Office, decimal RGB is specified using “rgb” followed by three comma-separated values in parentheses. These values are an ordered set in the range 0-255 and represent the red, green, and blue components of the color.
[Example:
-
< ... color="rgb(95,39,38)" ... >
end example]
c. The standard describes the kinds of values that the ST_ColorType simple type uses.
In Office, decimal RGB is specified using rgb followed by three comma-separated values in parentheses. These values are an ordered set in the range 0-255 and represent the red, green, and blue components of the color.
[Example:
-
< ... color="rgb(95,39,38)" ... >
end example]
d. The standard does not state that the value of the ST_ColorType simple type can be specified using three-character hexadecimal RGB notation.
-
Office does allow this simple type to be specified in this way.
e. The standard does not indicate the valid color palette entry names for the ST_ColorType simple type.
In Office, the following color palette entries are supported:
ButtonFace
WindowText
Menu
Highlight
HighlightText
CaptionText
ActiveCaption
ButtonHighlight
ButtonShadow
ButtonText
GrayText
InactiveCaption
InactiveCaptionText
InfoBackground
InfoText
MenuText
Scrollbar
Window
WindowFrame
ThreeDLightShadow
ThreeDDarkShadow
ActiveBorder
InactiveBorder
Background
AppWorkspace
ThreeDFace (represents the same color as ButtonFace)
ThreeDShadow (represents the same color as ButtonShadow)
ThreeDHighlight (represents the same color as ButtonHighlight)
[Example:
-
<... color="InactiveCaption" ... >
end example]
f. The standard indicates the kinds of values that the ST_ColorType simple type uses.
In Office, a color palette entry is specified using wincolor followed by a number in parentheses. The number is the zero-based index of a color in the palette as described in the preceding section.
[Example:
-
<... color="wincolor(11)" ... >
end example]
g. The standard does not state that the value of the ST_ColorType simple type can be specified using a named shape property notation.
Office supports a named shape property notation as a value for the simple type. A property is specified using the name of the shape color property. The following properties are supported:
Property |
Description |
---|---|
fill |
Fill color |
line |
Line color |
lineOrFill |
Line color if specified, otherwise, the fill color |
fillThenLine |
Fill color if specified, otherwise, the line color |
fillBack |
Fill background color |
lineBack |
Line background color |
shadow |
Shadow color |
none |
No color |
[Example:
-
<... color="lineOrFill" ... >
end example]
h. The standard indicates that the recoloring instruction behavior is application-specific.
Office supports recoloring instructions in the following way. Let A represent the amount argument to the recoloring instruction.
Instruction |
Description |
---|---|
darken |
Scale each color component by A/256. |
lighten |
Scale the inverse of each color component by A/256, then invert the result. |
add |
Add A to each color component, limited to a maximum value of 255. |
subtract |
Subtract A from each color component, limited to a minimum value of 0. |
reverseSubtract |
Subtract each color component from A, limited to a minimum value of 0. |
blackWhite |
A color component is 0 if less than A, otherwise 255. |
invert |
Subtract each color component from 255. |
invert128 |
For each color component less than 128, add 128 to it, otherwise subtract 128 from it. |
grayScale |
Convert the color to a grayscale equivalent. |
Office does not save an amount argument for the invert, invert128 and grayScale recoloring instructions.
i. The standard indicates how a recoloring instruction is formatted.
-
Office does not save a recoloring amount argument for the invert, invert128 and grayScale instructions.
j. The standard indicates the kinds of values that the ST_ColorType simple type uses.
In Office, a color palette entry is specified using “wincolor” followed by a number in parentheses. The number is the zero-based index of a color in the supported color palette.
[Example:
-
<... color="wincolor(11)" ... >
end example]
k. The standard indicates the kinds of values that the ST_ColorType simple type uses.
In Office, a shape property is specified using the name of the shape color property. The following properties are supported:
Property |
Description |
---|---|
fill |
Fill color |
line |
Line color |
lineOrFill |
Line color if specified, otherwise, the fill color |
fillThenLine |
Fill color if specified, otherwise, the line color |
fillBack |
Fill background color |
lineBack |
Line background color |
shadow |
Shadow color |
none |
No color |
[Example:
-
<... color="lineOrFill" ... >
end example]
l. The standard indicates the kinds of values that the ST_ColorType simple type uses.
In Office, recoloring instructions indicate that the given color is to be modified a particular amount. The instruction consists of a named instruction followed by the amount, a number in the range 0-255, in parenthesis. The instructions are:
darken
lighten
add
subtract
reverseSubtract
blackWhite
invert
invert128
grayScale
Office supports recoloring instructions in the following way. Let A represent the amount argument to the recoloring instruction.
Instruction |
Description |
---|---|
darken |
Scale each color component by A/256. |
lighten |
Scale the inverse of each color component by A/256, then invert the result. |
add |
Add A to each color component, limited to a maximum value of 255. |
subtract |
Subtract A from each color component, limited to a minimum value of 0. |
reverseSubtract |
Subtract each color component from A, limited to a minimum value of 0. |
blackWhite |
A color component is 0 if less than A, otherwise 255. |
invert |
Subtract each color component from 255. |
invert128 |
For each color component less than 128, subtract 128 from it, otherwise add 128 to it. |
grayScale |
Convert the color to a grayscale equivalent. |
Office does not save the amount argument for the invert, invert128 and grayScale recoloring instructions.
[Example: The color is darker than the fill color by 50 units:
-
<... color="fill darken(50)">
end example]