summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/awt/XStyleSettings.idl
blob: 6150033787c93a6a8c68d8c3bd2cbb6e72ee2751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#ifndef __com_sun_star_awt_XStyleSettings_idl__
#define __com_sun_star_awt_XStyleSettings_idl__

#include <com/sun/star/util/Color.idl>
#include <com/sun/star/awt/FontDescriptor.idl>
#include <com/sun/star/uno/XInterface.idl>


module com { module sun { module star { module awt {

interface XStyleChangeListener;


/** provides access to certain style settings within an OpenOffice.org component, such as a window, or
    within OpenOffice.org as a whole.

    <p>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.</p>

    <p>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
    <code>ButtonRolloverTextColor</code> when painting its text.</p>
 */
interface XStyleSettings
{
    /// specifies the color of the border of active windows
    [attribute] ::com::sun::star::util::Color ActiveBorderColor;


    [attribute] ::com::sun::star::util::Color ActiveColor;

    /// specifies the color of the active tab of a tab control
    [attribute] ::com::sun::star::util::Color ActiveTabColor;

    /// specifies the text color for active UI components
    [attribute] ::com::sun::star::util::Color ActiveTextColor;

    /// specifies the color to use for text on buttons which are hovered with the mouse
    [attribute] ::com::sun::star::util::Color ButtonRolloverTextColor;

    /// specifies the color to use for text on action buttons which are hovered with the mouse
    [attribute] ::com::sun::star::util::Color ActionButtonRolloverTextColor;

    /// specifies the color to use for text on buttons
    [attribute] ::com::sun::star::util::Color ButtonTextColor;

    /// specifies the color to use for text on a default action buttons
    [attribute] ::com::sun::star::util::Color DefaultActionButtonTextColor;

    /// specifies the color to use for text on action buttons
    [attribute] ::com::sun::star::util::Color ActionButtonTextColor;


    [attribute] ::com::sun::star::util::Color CheckedColor;

    /// specifies the dark portion of the shadow to use for UI elements
    [attribute] ::com::sun::star::util::Color DarkShadowColor;

    /// specifies the color of the border of inactive windows
    [attribute] ::com::sun::star::util::Color DeactiveBorderColor;


    [attribute] ::com::sun::star::util::Color DeactiveColor;

    /// specifies the text color for inactive UI components
    [attribute] ::com::sun::star::util::Color DeactiveTextColor;

    /// specifies the background color of dialogs
    [attribute] ::com::sun::star::util::Color DialogColor;

    /// specifies the text color of dialogs
    [attribute] ::com::sun::star::util::Color DialogTextColor;

    /// specifies the text color for disabled UI elements
    [attribute] ::com::sun::star::util::Color DisableColor;


    [attribute] ::com::sun::star::util::Color FaceColor;


    [attribute, readonly] ::com::sun::star::util::Color FaceGradientColor;

    /// specifies the background color for dialog input controls
    [attribute] ::com::sun::star::util::Color FieldColor;

    /// specifies the text color for dialog input controls which are hovered with the mouse
    [attribute] ::com::sun::star::util::Color FieldRolloverTextColor;

    /// specifies the text color for dialog input controls
    [attribute] ::com::sun::star::util::Color FieldTextColor;

    /// specifies the text color for dialog elements used for grouping other elements
    [attribute] ::com::sun::star::util::Color GroupTextColor;

    /// specifies the background color for dialog elements displaying help content
    [attribute] ::com::sun::star::util::Color HelpColor;

    /// specifies the text color for dialog elements displaying help content
    [attribute] ::com::sun::star::util::Color HelpTextColor;

    /// specifies the background color for UI elements which are highlighted
    [attribute] ::com::sun::star::util::Color HighlightColor;

    /// specifies the text color for UI elements which are highlighted
    [attribute] ::com::sun::star::util::Color HighlightTextColor;

    /// specifies the color of inactive tabs of a tab control
    [attribute] ::com::sun::star::util::Color InactiveTabColor;

    /// specifies the text color of label elements in dialogs
    [attribute] ::com::sun::star::util::Color LabelTextColor;


    [attribute] ::com::sun::star::util::Color LightColor;

    /// specifies the background color of menu bars
    [attribute] ::com::sun::star::util::Color MenuBarColor;

    /// specifies the text color of menu bars
    [attribute] ::com::sun::star::util::Color MenuBarTextColor;

    /// specifies the border color of menus
    [attribute] ::com::sun::star::util::Color MenuBorderColor;

    // specifies the background color of menus
    [attribute] ::com::sun::star::util::Color MenuColor;

    /// specifies the background color of highlighted menu items
    [attribute] ::com::sun::star::util::Color MenuHighlightColor;

    /// specifies the text color of highlighted menu items
    [attribute] ::com::sun::star::util::Color MenuHighlightTextColor;

    // specifies the text color of menus
    [attribute] ::com::sun::star::util::Color MenuTextColor;

    /// specifies the color to use for monochrome control elements such as flat borders of controls
    [attribute] ::com::sun::star::util::Color MonoColor;

    /// specifies the text color of radio buttons and check boxes
    [attribute] ::com::sun::star::util::Color RadioCheckTextColor;

    /// specifies the color of separators between UI elements
    [attribute, readonly] ::com::sun::star::util::Color SeparatorColor;

    /// specifies the color to use for UI elements
    [attribute] ::com::sun::star::util::Color ShadowColor;

    /// specifies the background color to use for non-dialog windows
    [attribute] ::com::sun::star::util::Color WindowColor;

    /// specifies the text color to use for non-dialog windows
    [attribute] ::com::sun::star::util::Color WindowTextColor;

    /// specifies the background color to use for document workspaces
    [attribute] ::com::sun::star::util::Color WorkspaceColor;

    /** controls whether the an UI component should use a high-contrast mode
    */
    [attribute] boolean HighContrastMode;

    /// specifies the application font
    [attribute] FontDescriptor  ApplicationFont;

    /// specifies the help font
    [attribute] FontDescriptor  HelpFont;

    /// specifies the font to use for window titles
    [attribute] FontDescriptor  TitleFont;

    /// specifies the font to use the title of floating windows
    [attribute] FontDescriptor  FloatTitleFont;

    /// specifies the font to use for menus
    [attribute] FontDescriptor  MenuFont;

    /// specifies the font to use for tool elements
    [attribute] FontDescriptor  ToolFont;

    /// specifies the font for dialog elements used for grouping other elements
    [attribute] FontDescriptor  GroupFont;

    /// specifies the font for label controls
    [attribute] FontDescriptor  LabelFont;

    /// specifies the font of radio buttons and check boxes
    [attribute] FontDescriptor  RadioCheckFont;

    /// specifies the font of push buttons
    [attribute] FontDescriptor  PushButtonFont;

    /// specifies the font for dialog input controls
    [attribute] FontDescriptor  FieldFont;

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

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


}; }; }; };


#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */