Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: awt ::

interface XStyleSettings
Description
provides access to certain style settings within an OpenOffice.org component, such as a window, or within OpenOffice.org as a whole.

Note that there are constraints for those settings. For instance, if controls are drawn with the native widget framework, i.e. in the desktop theme's look, then they won't necessarily respect all their style settings, because those have a lesser priority than the native look.

On the other hand, some settings are respected only when rendering the controls in the native desktop/theme look. For instance, without native theming, buttons do not support a "roll over" mode, i.e., they're painted the same way, no matter if they mouse hovers over them or not. But with native theming, this changes, as here the general button look is drawn by the system's theming engine, while the text is drawn by OpenOffice.org. In this case, the button respects the ButtonRolloverTextColor when painting its text.


Methods' Summary
addStyleChangeListener registers a listener to be notified when the style settings change 
removeStyleChangeListener registers a listener to be notified when the style settings change 
Attributes' Summary
ActiveBorderColor specifies the color of the border of active windows 
ActiveColor  
ActiveTabColor specifies the color of the active tab of a tab control 
ActiveTextColor specifies the text color for active UI components 
ButtonRolloverTextColor specifies the color to use for text on buttons which are hovered with the mouse 
ButtonTextColor specifies the color to use for text on buttons 
CheckedColor  
DarkShadowColor specifies the dark portion of the shadow to use for UI elements 
DeactiveBorderColor specifies the color of the border of inactive windows 
DeactiveColor  
DeactiveTextColor specifies the text color for inactive UI components 
DialogColor specifies the background color of dialogs 
DialogTextColor specifies the text color of dialogs 
DisableColor specifies the text color for disabled UI elements 
FaceColor  
FaceGradientColor  
FieldColor specifies the background color for dialog input controls 
FieldRolloverTextColor specifies the text color for dialog input controls which are hovered with the mouse 
FieldTextColor specifies the text color for dialog input controls 
GroupTextColor specifies the text color for dialog elements used for grouping other elements 
HelpColor specifies the background color for dialog elements displaying help content 
HelpTextColor specifies the text color for dialog elements displaying help content 
HighlightColor specifies the background color for UI elements which are highlighted 
HighlightTextColor specifies the text color for UI elements which are highlighted 
InactiveTabColor specifies the color of inactive tabs of a tab control 
InfoTextColor specifies the text color of dialog elements displaying some info text 
LabelTextColor specifies the text color of label elements in dialogs 
LightColor  
MenuBarColor specifies the background color of menu bars 
MenuBarTextColor specifies the text color of menu bars 
MenuBorderColor specifies the border color of menus 
MenuColor  
MenuHighlightColor specifies the background color of highlighted menu items 
MenuHighlightTextColor specifies the text color of highlighted menu items 
MenuTextColor  
MonoColor specifies the color to use for monochrome control elements such as flat borders of controls 
RadioCheckTextColor specifies the text color of radio buttons and check boxes 
SeparatorColor specifies the color of separators between UI elements 
ShadowColor specifies the color to use for UI elements 
WindowColor specifies the background color to use for non-dialog windows 
WindowTextColor specifies the text color to use for non-dialog windows 
WorkspaceColor specifies the background color to use for document workspaces 
HighContrastMode controls whether the an UI component should use a high-contrast mode  
ApplicationFont specifies the application font 
HelpFont specifies the help font 
TitleFont specifies the font to use for window titles 
FloatTitleFont specifies the font to use the title of floating windows 
MenuFont specifies the font to use for menus 
ToolFont specifies the font to use for tool elements 
GroupFont specifies the font for dialog elements used for grouping other elements 
LabelFont specifies the font for label controls 
InfoFont specifies the font of dialog elements displaying some info text 
RadioCheckFont specifies the font of radio buttons and check boxes 
PushButtonFont specifies the font of push buttons 
FieldFont specifies the font for dialog input controls 
Methods' Details
addStyleChangeListener
void
addStyleChangeListener( [in] XStyleChangeListener  Listener );

Description
registers a listener to be notified when the style settings change
removeStyleChangeListener
void
removeStyleChangeListener( [in] XStyleChangeListener  Listener );

Description
registers a listener to be notified when the style settings change
Attributes' Details
ActiveBorderColor
::com::sun::star::util::Color ActiveBorderColor;
Description
specifies the color of the border of active windows
ActiveColor
::com::sun::star::util::Color ActiveColor;
ActiveTabColor
::com::sun::star::util::Color ActiveTabColor;
Description
specifies the color of the active tab of a tab control
ActiveTextColor
::com::sun::star::util::Color ActiveTextColor;
Description
specifies the text color for active UI components
ButtonRolloverTextColor
::com::sun::star::util::Color ButtonRolloverTextColor;
Description
specifies the color to use for text on buttons which are hovered with the mouse
ButtonTextColor
::com::sun::star::util::Color ButtonTextColor;
Description
specifies the color to use for text on buttons
CheckedColor
::com::sun::star::util::Color CheckedColor;
DarkShadowColor
::com::sun::star::util::Color DarkShadowColor;
Description
specifies the dark portion of the shadow to use for UI elements
DeactiveBorderColor
::com::sun::star::util::Color DeactiveBorderColor;
Description
specifies the color of the border of inactive windows
DeactiveColor
::com::sun::star::util::Color DeactiveColor;
DeactiveTextColor
::com::sun::star::util::Color DeactiveTextColor;
Description
specifies the text color for inactive UI components
DialogColor
::com::sun::star::util::Color DialogColor;
Description
specifies the background color of dialogs
DialogTextColor
::com::sun::star::util::Color DialogTextColor;
Description
specifies the text color of dialogs
DisableColor
::com::sun::star::util::Color DisableColor;
Description
specifies the text color for disabled UI elements
FaceColor
::com::sun::star::util::Color FaceColor;
FaceGradientColor
[ readonly ] ::com::sun::star::util::Color FaceGradientColor;
FieldColor
::com::sun::star::util::Color FieldColor;
Description
specifies the background color for dialog input controls
FieldRolloverTextColor
::com::sun::star::util::Color FieldRolloverTextColor;
Description
specifies the text color for dialog input controls which are hovered with the mouse
FieldTextColor
::com::sun::star::util::Color FieldTextColor;
Description
specifies the text color for dialog input controls
GroupTextColor
::com::sun::star::util::Color GroupTextColor;
Description
specifies the text color for dialog elements used for grouping other elements
HelpColor
::com::sun::star::util::Color HelpColor;
Description
specifies the background color for dialog elements displaying help content
HelpTextColor
::com::sun::star::util::Color HelpTextColor;
Description
specifies the text color for dialog elements displaying help content
HighlightColor
::com::sun::star::util::Color HighlightColor;
Description
specifies the background color for UI elements which are highlighted
HighlightTextColor
::com::sun::star::util::Color HighlightTextColor;
Description
specifies the text color for UI elements which are highlighted
InactiveTabColor
::com::sun::star::util::Color InactiveTabColor;
Description
specifies the color of inactive tabs of a tab control
InfoTextColor
::com::sun::star::util::Color InfoTextColor;
Description
specifies the text color of dialog elements displaying some info text
LabelTextColor
::com::sun::star::util::Color LabelTextColor;
Description
specifies the text color of label elements in dialogs
LightColor
::com::sun::star::util::Color LightColor;
MenuBarColor
::com::sun::star::util::Color MenuBarColor;
Description
specifies the background color of menu bars
MenuBarTextColor
::com::sun::star::util::Color MenuBarTextColor;
Description
specifies the text color of menu bars
MenuBorderColor
::com::sun::star::util::Color MenuBorderColor;
Description
specifies the border color of menus
MenuColor
::com::sun::star::util::Color MenuColor;
MenuHighlightColor
::com::sun::star::util::Color MenuHighlightColor;
Description
specifies the background color of highlighted menu items
MenuHighlightTextColor
::com::sun::star::util::Color MenuHighlightTextColor;
Description
specifies the text color of highlighted menu items
MenuTextColor
::com::sun::star::util::Color MenuTextColor;
MonoColor
::com::sun::star::util::Color MonoColor;
Description
specifies the color to use for monochrome control elements such as flat borders of controls
RadioCheckTextColor
::com::sun::star::util::Color RadioCheckTextColor;
Description
specifies the text color of radio buttons and check boxes
SeparatorColor
[ readonly ] ::com::sun::star::util::Color SeparatorColor;
Description
specifies the color of separators between UI elements
ShadowColor
::com::sun::star::util::Color ShadowColor;
Description
specifies the color to use for UI elements
WindowColor
::com::sun::star::util::Color WindowColor;
Description
specifies the background color to use for non-dialog windows
WindowTextColor
::com::sun::star::util::Color WindowTextColor;
Description
specifies the text color to use for non-dialog windows
WorkspaceColor
::com::sun::star::util::Color WorkspaceColor;
Description
specifies the background color to use for document workspaces
HighContrastMode
boolean HighContrastMode;
Description
controls whether the an UI component should use a high-contrast mode
ApplicationFont
FontDescriptor ApplicationFont;
Description
specifies the application font
HelpFont
FontDescriptor HelpFont;
Description
specifies the help font
TitleFont
FontDescriptor TitleFont;
Description
specifies the font to use for window titles
FloatTitleFont
FontDescriptor FloatTitleFont;
Description
specifies the font to use the title of floating windows
MenuFont
FontDescriptor MenuFont;
Description
specifies the font to use for menus
ToolFont
FontDescriptor ToolFont;
Description
specifies the font to use for tool elements
GroupFont
FontDescriptor GroupFont;
Description
specifies the font for dialog elements used for grouping other elements
LabelFont
FontDescriptor LabelFont;
Description
specifies the font for label controls
InfoFont
FontDescriptor InfoFont;
Description
specifies the font of dialog elements displaying some info text
RadioCheckFont
FontDescriptor RadioCheckFont;
Description
specifies the font of radio buttons and check boxes
PushButtonFont
FontDescriptor PushButtonFont;
Description
specifies the font of push buttons
FieldFont
FontDescriptor FieldFont;
Description
specifies the font for dialog input controls
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.