1*d1766043SAndrew Rist/************************************************************** 2*d1766043SAndrew Rist * 3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d1766043SAndrew Rist * distributed with this work for additional information 6*d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9*d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10*d1766043SAndrew Rist * 11*d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d1766043SAndrew Rist * 13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d1766043SAndrew Rist * software distributed under the License is distributed on an 15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17*d1766043SAndrew Rist * specific language governing permissions and limitations 18*d1766043SAndrew Rist * under the License. 19*d1766043SAndrew Rist * 20*d1766043SAndrew Rist *************************************************************/ 21*d1766043SAndrew Rist 22*d1766043SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#ifndef __com_sun_star_awt_XStyleSettings_idl__ 25cdf0e10cSrcweir#define __com_sun_star_awt_XStyleSettings_idl__ 26cdf0e10cSrcweir 27cdf0e10cSrcweir#include <com/sun/star/util/Color.idl> 28cdf0e10cSrcweir#include <com/sun/star/awt/FontDescriptor.idl> 29cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl> 30cdf0e10cSrcweir 31cdf0e10cSrcweir//================================================================================================================== 32cdf0e10cSrcweir 33cdf0e10cSrcweirmodule com { module sun { module star { module awt { 34cdf0e10cSrcweir 35cdf0e10cSrcweirpublished interface XStyleChangeListener; 36cdf0e10cSrcweir 37cdf0e10cSrcweir//================================================================================================================== 38cdf0e10cSrcweir 39cdf0e10cSrcweir/** provides access to certain style settings within an OpenOffice.org component, such as a window, or 40cdf0e10cSrcweir within OpenOffice.org as a whole. 41cdf0e10cSrcweir 42cdf0e10cSrcweir <p>Note that there are constraints for those settings. For instance, if controls are drawn with the 43cdf0e10cSrcweir native widget framework, i.e. in the desktop theme's look, then they won't necessarily respect all 44cdf0e10cSrcweir their style settings, because those have a lesser priority than the native look.</p> 45cdf0e10cSrcweir 46cdf0e10cSrcweir <p>On the other hand, some settings are respected only when rendering the controls in the native 47cdf0e10cSrcweir desktop/theme look. For instance, without native theming, buttons do not support a "roll over" mode, 48cdf0e10cSrcweir i.e., they're painted the same way, no matter if they mouse hovers over them or not. But with native 49cdf0e10cSrcweir theming, this changes, as here the general button look is drawn by the system's theming engine, 50cdf0e10cSrcweir while the text is drawn by OpenOffice.org. In this case, the button respects the 51cdf0e10cSrcweir <code>ButtonRolloverTextColor</code> when painting its text.</p> 52cdf0e10cSrcweir */ 53cdf0e10cSrcweirpublished interface XStyleSettings 54cdf0e10cSrcweir{ 55cdf0e10cSrcweir /// specifies the color of the border of active windows 56cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color ActiveBorderColor; 57cdf0e10cSrcweir 58cdf0e10cSrcweir /// 59cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color ActiveColor; 60cdf0e10cSrcweir 61cdf0e10cSrcweir /// specifies the color of the active tab of a tab control 62cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color ActiveTabColor; 63cdf0e10cSrcweir 64cdf0e10cSrcweir /// specifies the text color for active UI components 65cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color ActiveTextColor; 66cdf0e10cSrcweir 67cdf0e10cSrcweir /// specifies the color to use for text on buttons which are hovered with the mouse 68cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color ButtonRolloverTextColor; 69cdf0e10cSrcweir 70cdf0e10cSrcweir /// specifies the color to use for text on buttons 71cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color ButtonTextColor; 72cdf0e10cSrcweir 73cdf0e10cSrcweir /// 74cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color CheckedColor; 75cdf0e10cSrcweir 76cdf0e10cSrcweir /// specifies the dark portion of the shadow to use for UI elements 77cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color DarkShadowColor; 78cdf0e10cSrcweir 79cdf0e10cSrcweir /// specifies the color of the border of inactive windows 80cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color DeactiveBorderColor; 81cdf0e10cSrcweir 82cdf0e10cSrcweir /// 83cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color DeactiveColor; 84cdf0e10cSrcweir 85cdf0e10cSrcweir /// specifies the text color for inactive UI components 86cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color DeactiveTextColor; 87cdf0e10cSrcweir 88cdf0e10cSrcweir /// specifies the background color of dialogs 89cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color DialogColor; 90cdf0e10cSrcweir 91cdf0e10cSrcweir /// specifies the text color of dialogs 92cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color DialogTextColor; 93cdf0e10cSrcweir 94cdf0e10cSrcweir /// specifies the text color for disabled UI elements 95cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color DisableColor; 96cdf0e10cSrcweir 97cdf0e10cSrcweir /// 98cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color FaceColor; 99cdf0e10cSrcweir 100cdf0e10cSrcweir /// 101cdf0e10cSrcweir [attribute, readonly] ::com::sun::star::util::Color FaceGradientColor; 102cdf0e10cSrcweir 103cdf0e10cSrcweir /// specifies the background color for dialog input controls 104cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color FieldColor; 105cdf0e10cSrcweir 106cdf0e10cSrcweir /// specifies the text color for dialog input controls which are hovered with the mouse 107cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color FieldRolloverTextColor; 108cdf0e10cSrcweir 109cdf0e10cSrcweir /// specifies the text color for dialog input controls 110cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color FieldTextColor; 111cdf0e10cSrcweir 112cdf0e10cSrcweir /// specifies the text color for dialog elements used for grouping other elements 113cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color GroupTextColor; 114cdf0e10cSrcweir 115cdf0e10cSrcweir /// specifies the background color for dialog elements displaying help content 116cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color HelpColor; 117cdf0e10cSrcweir 118cdf0e10cSrcweir /// specifies the text color for dialog elements displaying help content 119cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color HelpTextColor; 120cdf0e10cSrcweir 121cdf0e10cSrcweir /// specifies the background color for UI elements which are highlighted 122cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color HighlightColor; 123cdf0e10cSrcweir 124cdf0e10cSrcweir /// specifies the text color for UI elements which are highlighted 125cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color HighlightTextColor; 126cdf0e10cSrcweir 127cdf0e10cSrcweir /// specifies the color of inactive tabs of a tab control 128cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color InactiveTabColor; 129cdf0e10cSrcweir 130cdf0e10cSrcweir /// specifies the text color of dialog elements displaying some info text 131cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color InfoTextColor; 132cdf0e10cSrcweir 133cdf0e10cSrcweir /// specifies the text color of label elements in dialogs 134cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color LabelTextColor; 135cdf0e10cSrcweir 136cdf0e10cSrcweir /// 137cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color LightColor; 138cdf0e10cSrcweir 139cdf0e10cSrcweir /// specifies the background color of menu bars 140cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color MenuBarColor; 141cdf0e10cSrcweir 142cdf0e10cSrcweir /// specifies the text color of menu bars 143cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color MenuBarTextColor; 144cdf0e10cSrcweir 145cdf0e10cSrcweir /// specifies the border color of menus 146cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color MenuBorderColor; 147cdf0e10cSrcweir 148cdf0e10cSrcweir // specifies the background color of menus 149cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color MenuColor; 150cdf0e10cSrcweir 151cdf0e10cSrcweir /// specifies the background color of highlighted menu items 152cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color MenuHighlightColor; 153cdf0e10cSrcweir 154cdf0e10cSrcweir /// specifies the text color of highlighted menu items 155cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color MenuHighlightTextColor; 156cdf0e10cSrcweir 157cdf0e10cSrcweir // specifies the text color of menus 158cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color MenuTextColor; 159cdf0e10cSrcweir 160cdf0e10cSrcweir /// specifies the color to use for monochrome control elements such as flat borders of controls 161cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color MonoColor; 162cdf0e10cSrcweir 163cdf0e10cSrcweir /// specifies the text color of radio buttons and check boxes 164cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color RadioCheckTextColor; 165cdf0e10cSrcweir 166cdf0e10cSrcweir /// specifies the color of separators between UI elements 167cdf0e10cSrcweir [attribute, readonly] ::com::sun::star::util::Color SeparatorColor; 168cdf0e10cSrcweir 169cdf0e10cSrcweir /// specifies the color to use for UI elements 170cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color ShadowColor; 171cdf0e10cSrcweir 172cdf0e10cSrcweir /// specifies the background color to use for non-dialog windows 173cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color WindowColor; 174cdf0e10cSrcweir 175cdf0e10cSrcweir /// specifies the text color to use for non-dialog windows 176cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color WindowTextColor; 177cdf0e10cSrcweir 178cdf0e10cSrcweir /// specifies the background color to use for document workspaces 179cdf0e10cSrcweir [attribute] ::com::sun::star::util::Color WorkspaceColor; 180cdf0e10cSrcweir 181cdf0e10cSrcweir /** controls whether the an UI component should use a high-contrast mode 182cdf0e10cSrcweir */ 183cdf0e10cSrcweir [attribute] boolean HighContrastMode; 184cdf0e10cSrcweir 185cdf0e10cSrcweir /// specifies the application font 186cdf0e10cSrcweir [attribute] FontDescriptor ApplicationFont; 187cdf0e10cSrcweir 188cdf0e10cSrcweir /// specifies the help font 189cdf0e10cSrcweir [attribute] FontDescriptor HelpFont; 190cdf0e10cSrcweir 191cdf0e10cSrcweir /// specifies the font to use for window titles 192cdf0e10cSrcweir [attribute] FontDescriptor TitleFont; 193cdf0e10cSrcweir 194cdf0e10cSrcweir /// specifies the font to use the title of floating windows 195cdf0e10cSrcweir [attribute] FontDescriptor FloatTitleFont; 196cdf0e10cSrcweir 197cdf0e10cSrcweir /// specifies the font to use for menus 198cdf0e10cSrcweir [attribute] FontDescriptor MenuFont; 199cdf0e10cSrcweir 200cdf0e10cSrcweir /// specifies the font to use for tool elements 201cdf0e10cSrcweir [attribute] FontDescriptor ToolFont; 202cdf0e10cSrcweir 203cdf0e10cSrcweir /// specifies the font for dialog elements used for grouping other elements 204cdf0e10cSrcweir [attribute] FontDescriptor GroupFont; 205cdf0e10cSrcweir 206cdf0e10cSrcweir /// specifies the font for label controls 207cdf0e10cSrcweir [attribute] FontDescriptor LabelFont; 208cdf0e10cSrcweir 209cdf0e10cSrcweir /// specifies the font of dialog elements displaying some info text 210cdf0e10cSrcweir [attribute] FontDescriptor InfoFont; 211cdf0e10cSrcweir 212cdf0e10cSrcweir /// specifies the font of radio buttons and check boxes 213cdf0e10cSrcweir [attribute] FontDescriptor RadioCheckFont; 214cdf0e10cSrcweir 215cdf0e10cSrcweir /// specifies the font of push buttons 216cdf0e10cSrcweir [attribute] FontDescriptor PushButtonFont; 217cdf0e10cSrcweir 218cdf0e10cSrcweir /// specifies the font for dialog input controls 219cdf0e10cSrcweir [attribute] FontDescriptor FieldFont; 220cdf0e10cSrcweir 221cdf0e10cSrcweir /// registers a listener to be notified when the style settings change 222cdf0e10cSrcweir void addStyleChangeListener( 223cdf0e10cSrcweir [in] XStyleChangeListener Listener ); 224cdf0e10cSrcweir 225cdf0e10cSrcweir /// registers a listener to be notified when the style settings change 226cdf0e10cSrcweir void removeStyleChangeListener( 227cdf0e10cSrcweir [in] XStyleChangeListener Listener ); 228cdf0e10cSrcweir}; 229cdf0e10cSrcweir 230cdf0e10cSrcweir//================================================================================================================== 231cdf0e10cSrcweir 232cdf0e10cSrcweir}; }; }; }; 233cdf0e10cSrcweir 234cdf0e10cSrcweir//================================================================================================================== 235cdf0e10cSrcweir 236cdf0e10cSrcweir#endif 237