1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_TOOLKIT_SOURCE_AWT_STYLESETTINGS_HXX
21 #define INCLUDED_TOOLKIT_SOURCE_AWT_STYLESETTINGS_HXX
23 #include <com/sun/star/awt/XStyleSettings.hpp>
25 #include <cppuhelper/implbase.hxx>
41 //= WindowStyleSettings
43 struct WindowStyleSettings_Data
;
44 typedef ::cppu::WeakImplHelper
< css::awt::XStyleSettings
45 > WindowStyleSettings_Base
;
46 class WindowStyleSettings
: public WindowStyleSettings_Base
49 WindowStyleSettings( ::osl::Mutex
& i_rListenerMutex
, VCLXWindow
& i_rOwningWindow
);
50 virtual ~WindowStyleSettings() override
;
55 virtual ::sal_Int32 SAL_CALL
getActiveBorderColor() override
;
56 virtual void SAL_CALL
setActiveBorderColor( ::sal_Int32 _activebordercolor
) override
;
57 virtual ::sal_Int32 SAL_CALL
getActiveColor() override
;
58 virtual void SAL_CALL
setActiveColor( ::sal_Int32 _activecolor
) override
;
59 virtual ::sal_Int32 SAL_CALL
getActiveTabColor() override
;
60 virtual void SAL_CALL
setActiveTabColor( ::sal_Int32 _activetabcolor
) override
;
61 virtual ::sal_Int32 SAL_CALL
getActiveTextColor() override
;
62 virtual void SAL_CALL
setActiveTextColor( ::sal_Int32 _activetextcolor
) override
;
63 virtual ::sal_Int32 SAL_CALL
getButtonRolloverTextColor() override
;
64 virtual void SAL_CALL
setButtonRolloverTextColor( ::sal_Int32 _buttonrollovertextcolor
) override
;
65 virtual ::sal_Int32 SAL_CALL
getButtonTextColor() override
;
66 virtual void SAL_CALL
setButtonTextColor( ::sal_Int32 _buttontextcolor
) override
;
67 virtual ::sal_Int32 SAL_CALL
getCheckedColor() override
;
68 virtual void SAL_CALL
setCheckedColor( ::sal_Int32 _checkedcolor
) override
;
69 virtual ::sal_Int32 SAL_CALL
getDarkShadowColor() override
;
70 virtual void SAL_CALL
setDarkShadowColor( ::sal_Int32 _darkshadowcolor
) override
;
71 virtual ::sal_Int32 SAL_CALL
getDeactiveBorderColor() override
;
72 virtual void SAL_CALL
setDeactiveBorderColor( ::sal_Int32 _deactivebordercolor
) override
;
73 virtual ::sal_Int32 SAL_CALL
getDeactiveColor() override
;
74 virtual void SAL_CALL
setDeactiveColor( ::sal_Int32 _deactivecolor
) override
;
75 virtual ::sal_Int32 SAL_CALL
getDeactiveTextColor() override
;
76 virtual void SAL_CALL
setDeactiveTextColor( ::sal_Int32 _deactivetextcolor
) override
;
77 virtual ::sal_Int32 SAL_CALL
getDialogColor() override
;
78 virtual void SAL_CALL
setDialogColor( ::sal_Int32 _dialogcolor
) override
;
79 virtual ::sal_Int32 SAL_CALL
getDialogTextColor() override
;
80 virtual void SAL_CALL
setDialogTextColor( ::sal_Int32 _dialogtextcolor
) override
;
81 virtual ::sal_Int32 SAL_CALL
getDisableColor() override
;
82 virtual void SAL_CALL
setDisableColor( ::sal_Int32 _disablecolor
) override
;
83 virtual ::sal_Int32 SAL_CALL
getFaceColor() override
;
84 virtual void SAL_CALL
setFaceColor( ::sal_Int32 _facecolor
) override
;
85 virtual ::sal_Int32 SAL_CALL
getFaceGradientColor() override
;
86 virtual ::sal_Int32 SAL_CALL
getFieldColor() override
;
87 virtual void SAL_CALL
setFieldColor( ::sal_Int32 _fieldcolor
) override
;
88 virtual ::sal_Int32 SAL_CALL
getFieldRolloverTextColor() override
;
89 virtual void SAL_CALL
setFieldRolloverTextColor( ::sal_Int32 _fieldrollovertextcolor
) override
;
90 virtual ::sal_Int32 SAL_CALL
getFieldTextColor() override
;
91 virtual void SAL_CALL
setFieldTextColor( ::sal_Int32 _fieldtextcolor
) override
;
92 virtual ::sal_Int32 SAL_CALL
getGroupTextColor() override
;
93 virtual void SAL_CALL
setGroupTextColor( ::sal_Int32 _grouptextcolor
) override
;
94 virtual ::sal_Int32 SAL_CALL
getHelpColor() override
;
95 virtual void SAL_CALL
setHelpColor( ::sal_Int32 _helpcolor
) override
;
96 virtual ::sal_Int32 SAL_CALL
getHelpTextColor() override
;
97 virtual void SAL_CALL
setHelpTextColor( ::sal_Int32 _helptextcolor
) override
;
98 virtual ::sal_Int32 SAL_CALL
getHighlightColor() override
;
99 virtual void SAL_CALL
setHighlightColor( ::sal_Int32 _highlightcolor
) override
;
100 virtual ::sal_Int32 SAL_CALL
getHighlightTextColor() override
;
101 virtual void SAL_CALL
setHighlightTextColor( ::sal_Int32 _highlighttextcolor
) override
;
102 virtual ::sal_Int32 SAL_CALL
getInactiveTabColor() override
;
103 virtual void SAL_CALL
setInactiveTabColor( ::sal_Int32 _inactivetabcolor
) override
;
104 virtual ::sal_Int32 SAL_CALL
getLabelTextColor() override
;
105 virtual void SAL_CALL
setLabelTextColor( ::sal_Int32 _labeltextcolor
) override
;
106 virtual ::sal_Int32 SAL_CALL
getLightColor() override
;
107 virtual void SAL_CALL
setLightColor( ::sal_Int32 _lightcolor
) override
;
108 virtual ::sal_Int32 SAL_CALL
getMenuBarColor() override
;
109 virtual void SAL_CALL
setMenuBarColor( ::sal_Int32 _menubarcolor
) override
;
110 virtual ::sal_Int32 SAL_CALL
getMenuBarTextColor() override
;
111 virtual void SAL_CALL
setMenuBarTextColor( ::sal_Int32 _menubartextcolor
) override
;
112 virtual ::sal_Int32 SAL_CALL
getMenuBorderColor() override
;
113 virtual void SAL_CALL
setMenuBorderColor( ::sal_Int32 _menubordercolor
) override
;
114 virtual ::sal_Int32 SAL_CALL
getMenuColor() override
;
115 virtual void SAL_CALL
setMenuColor( ::sal_Int32 _menucolor
) override
;
116 virtual ::sal_Int32 SAL_CALL
getMenuHighlightColor() override
;
117 virtual void SAL_CALL
setMenuHighlightColor( ::sal_Int32 _menuhighlightcolor
) override
;
118 virtual ::sal_Int32 SAL_CALL
getMenuHighlightTextColor() override
;
119 virtual void SAL_CALL
setMenuHighlightTextColor( ::sal_Int32 _menuhighlighttextcolor
) override
;
120 virtual ::sal_Int32 SAL_CALL
getMenuTextColor() override
;
121 virtual void SAL_CALL
setMenuTextColor( ::sal_Int32 _menutextcolor
) override
;
122 virtual ::sal_Int32 SAL_CALL
getMonoColor() override
;
123 virtual void SAL_CALL
setMonoColor( ::sal_Int32 _monocolor
) override
;
124 virtual ::sal_Int32 SAL_CALL
getRadioCheckTextColor() override
;
125 virtual void SAL_CALL
setRadioCheckTextColor( ::sal_Int32 _radiochecktextcolor
) override
;
126 virtual ::sal_Int32 SAL_CALL
getSeparatorColor() override
;
127 virtual ::sal_Int32 SAL_CALL
getShadowColor() override
;
128 virtual void SAL_CALL
setShadowColor( ::sal_Int32 _shadowcolor
) override
;
129 virtual ::sal_Int32 SAL_CALL
getWindowColor() override
;
130 virtual void SAL_CALL
setWindowColor( ::sal_Int32 _windowcolor
) override
;
131 virtual ::sal_Int32 SAL_CALL
getWindowTextColor() override
;
132 virtual void SAL_CALL
setWindowTextColor( ::sal_Int32 _windowtextcolor
) override
;
133 virtual ::sal_Int32 SAL_CALL
getWorkspaceColor() override
;
134 virtual void SAL_CALL
setWorkspaceColor( ::sal_Int32 _workspacecolor
) override
;
135 virtual sal_Bool SAL_CALL
getHighContrastMode() override
;
136 virtual void SAL_CALL
setHighContrastMode( sal_Bool _highcontrastmode
) override
;
137 virtual css::awt::FontDescriptor SAL_CALL
getApplicationFont() override
;
138 virtual void SAL_CALL
setApplicationFont( const css::awt::FontDescriptor
& _applicationfont
) override
;
139 virtual css::awt::FontDescriptor SAL_CALL
getHelpFont() override
;
140 virtual void SAL_CALL
setHelpFont( const css::awt::FontDescriptor
& _helpfont
) override
;
141 virtual css::awt::FontDescriptor SAL_CALL
getTitleFont() override
;
142 virtual void SAL_CALL
setTitleFont( const css::awt::FontDescriptor
& _titlefont
) override
;
143 virtual css::awt::FontDescriptor SAL_CALL
getFloatTitleFont() override
;
144 virtual void SAL_CALL
setFloatTitleFont( const css::awt::FontDescriptor
& _floattitlefont
) override
;
145 virtual css::awt::FontDescriptor SAL_CALL
getMenuFont() override
;
146 virtual void SAL_CALL
setMenuFont( const css::awt::FontDescriptor
& _menufont
) override
;
147 virtual css::awt::FontDescriptor SAL_CALL
getToolFont() override
;
148 virtual void SAL_CALL
setToolFont( const css::awt::FontDescriptor
& _toolfont
) override
;
149 virtual css::awt::FontDescriptor SAL_CALL
getGroupFont() override
;
150 virtual void SAL_CALL
setGroupFont( const css::awt::FontDescriptor
& _groupfont
) override
;
151 virtual css::awt::FontDescriptor SAL_CALL
getLabelFont() override
;
152 virtual void SAL_CALL
setLabelFont( const css::awt::FontDescriptor
& _labelfont
) override
;
153 virtual css::awt::FontDescriptor SAL_CALL
getRadioCheckFont() override
;
154 virtual void SAL_CALL
setRadioCheckFont( const css::awt::FontDescriptor
& _radiocheckfont
) override
;
155 virtual css::awt::FontDescriptor SAL_CALL
getPushButtonFont() override
;
156 virtual void SAL_CALL
setPushButtonFont( const css::awt::FontDescriptor
& _pushbuttonfont
) override
;
157 virtual css::awt::FontDescriptor SAL_CALL
getFieldFont() override
;
158 virtual void SAL_CALL
setFieldFont( const css::awt::FontDescriptor
& _fieldfont
) override
;
159 virtual void SAL_CALL
addStyleChangeListener( const css::uno::Reference
< css::awt::XStyleChangeListener
>& Listener
) override
;
160 virtual void SAL_CALL
removeStyleChangeListener( const css::uno::Reference
< css::awt::XStyleChangeListener
>& Listener
) override
;
163 std::unique_ptr
< WindowStyleSettings_Data
> m_pData
;
167 } // namespace toolkit
170 #endif // INCLUDED_TOOLKIT_SOURCE_AWT_STYLESETTINGS_HXX
172 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */