1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3*cdf0e10cSrcweir  *
4*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
5*cdf0e10cSrcweir  *
6*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
7*cdf0e10cSrcweir  *
8*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
9*cdf0e10cSrcweir  *
10*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
11*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
12*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
13*cdf0e10cSrcweir  *
14*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
15*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
18*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
19*cdf0e10cSrcweir  *
20*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
21*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
22*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
23*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
24*cdf0e10cSrcweir  *
25*cdf0e10cSrcweir  ************************************************************************/
26*cdf0e10cSrcweir 
27*cdf0e10cSrcweir #include "precompiled_toolkit.hxx"
28*cdf0e10cSrcweir 
29*cdf0e10cSrcweir #include "stylesettings.hxx"
30*cdf0e10cSrcweir #include <toolkit/awt/vclxwindow.hxx>
31*cdf0e10cSrcweir #include <toolkit/helper/vclunohelper.hxx>
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir /** === begin UNO includes === **/
34*cdf0e10cSrcweir #include <com/sun/star/lang/DisposedException.hpp>
35*cdf0e10cSrcweir /** === end UNO includes === **/
36*cdf0e10cSrcweir 
37*cdf0e10cSrcweir #include <cppuhelper/interfacecontainer.hxx>
38*cdf0e10cSrcweir #include <vos/mutex.hxx>
39*cdf0e10cSrcweir #include <osl/mutex.hxx>
40*cdf0e10cSrcweir #include <vcl/window.hxx>
41*cdf0e10cSrcweir #include <vcl/settings.hxx>
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir //......................................................................................................................
44*cdf0e10cSrcweir namespace toolkit
45*cdf0e10cSrcweir {
46*cdf0e10cSrcweir //......................................................................................................................
47*cdf0e10cSrcweir 
48*cdf0e10cSrcweir 	/** === begin UNO using === **/
49*cdf0e10cSrcweir 	using ::com::sun::star::uno::Reference;
50*cdf0e10cSrcweir 	using ::com::sun::star::uno::XInterface;
51*cdf0e10cSrcweir 	using ::com::sun::star::uno::UNO_QUERY;
52*cdf0e10cSrcweir 	using ::com::sun::star::uno::UNO_QUERY_THROW;
53*cdf0e10cSrcweir 	using ::com::sun::star::uno::UNO_SET_THROW;
54*cdf0e10cSrcweir 	using ::com::sun::star::uno::Exception;
55*cdf0e10cSrcweir 	using ::com::sun::star::uno::RuntimeException;
56*cdf0e10cSrcweir 	using ::com::sun::star::uno::Any;
57*cdf0e10cSrcweir 	using ::com::sun::star::uno::makeAny;
58*cdf0e10cSrcweir 	using ::com::sun::star::uno::Sequence;
59*cdf0e10cSrcweir 	using ::com::sun::star::uno::Type;
60*cdf0e10cSrcweir     using ::com::sun::star::lang::DisposedException;
61*cdf0e10cSrcweir     using ::com::sun::star::lang::EventObject;
62*cdf0e10cSrcweir     using ::com::sun::star::awt::FontDescriptor;
63*cdf0e10cSrcweir     using ::com::sun::star::awt::XStyleChangeListener;
64*cdf0e10cSrcweir     using ::com::sun::star::awt::FontDescriptor;
65*cdf0e10cSrcweir 	/** === end UNO using === **/
66*cdf0e10cSrcweir 
67*cdf0e10cSrcweir 	//==================================================================================================================
68*cdf0e10cSrcweir 	//= WindowStyleSettings_Data
69*cdf0e10cSrcweir 	//==================================================================================================================
70*cdf0e10cSrcweir     struct WindowStyleSettings_Data
71*cdf0e10cSrcweir     {
72*cdf0e10cSrcweir         ::vos::IMutex&                      rMutex;
73*cdf0e10cSrcweir         VCLXWindow*                         pOwningWindow;
74*cdf0e10cSrcweir         ::cppu::OInterfaceContainerHelper   aStyleChangeListeners;
75*cdf0e10cSrcweir 
76*cdf0e10cSrcweir         WindowStyleSettings_Data( ::vos::IMutex& i_rWindowMutex, ::osl::Mutex& i_rListenerMutex, VCLXWindow& i_rOwningWindow )
77*cdf0e10cSrcweir             :rMutex( i_rWindowMutex )
78*cdf0e10cSrcweir             ,pOwningWindow( &i_rOwningWindow )
79*cdf0e10cSrcweir             ,aStyleChangeListeners( i_rListenerMutex )
80*cdf0e10cSrcweir         {
81*cdf0e10cSrcweir         }
82*cdf0e10cSrcweir 
83*cdf0e10cSrcweir         DECL_LINK( OnWindowEvent, const VclWindowEvent* );
84*cdf0e10cSrcweir     };
85*cdf0e10cSrcweir 
86*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
87*cdf0e10cSrcweir     IMPL_LINK( WindowStyleSettings_Data, OnWindowEvent, const VclWindowEvent*, i_pEvent )
88*cdf0e10cSrcweir     {
89*cdf0e10cSrcweir         if ( !i_pEvent || ( i_pEvent->GetId() != VCLEVENT_WINDOW_DATACHANGED ) )
90*cdf0e10cSrcweir             return 0L;
91*cdf0e10cSrcweir         const DataChangedEvent* pDataChangedEvent = static_cast< const DataChangedEvent* >( i_pEvent->GetData() );
92*cdf0e10cSrcweir         if ( !pDataChangedEvent || ( pDataChangedEvent->GetType() != DATACHANGED_SETTINGS ) )
93*cdf0e10cSrcweir             return 0L;
94*cdf0e10cSrcweir         if ( ( pDataChangedEvent->GetFlags() & SETTINGS_STYLE ) == 0 )
95*cdf0e10cSrcweir             return 0L;
96*cdf0e10cSrcweir 
97*cdf0e10cSrcweir         EventObject aEvent( *pOwningWindow );
98*cdf0e10cSrcweir         aStyleChangeListeners.notifyEach( &XStyleChangeListener::styleSettingsChanged, aEvent );
99*cdf0e10cSrcweir         return 1L;
100*cdf0e10cSrcweir     }
101*cdf0e10cSrcweir 
102*cdf0e10cSrcweir 	//==================================================================================================================
103*cdf0e10cSrcweir 	//= StyleMethodGuard
104*cdf0e10cSrcweir 	//==================================================================================================================
105*cdf0e10cSrcweir     class StyleMethodGuard
106*cdf0e10cSrcweir     {
107*cdf0e10cSrcweir     public:
108*cdf0e10cSrcweir         StyleMethodGuard( WindowStyleSettings_Data& i_rData )
109*cdf0e10cSrcweir             :m_aGuard( i_rData.rMutex )
110*cdf0e10cSrcweir         {
111*cdf0e10cSrcweir             if ( i_rData.pOwningWindow == NULL )
112*cdf0e10cSrcweir                 throw DisposedException();
113*cdf0e10cSrcweir         }
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir         ~StyleMethodGuard()
116*cdf0e10cSrcweir         {
117*cdf0e10cSrcweir         }
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir     private:
120*cdf0e10cSrcweir         ::vos::OGuard   m_aGuard;
121*cdf0e10cSrcweir     };
122*cdf0e10cSrcweir 
123*cdf0e10cSrcweir 	//==================================================================================================================
124*cdf0e10cSrcweir 	//= WindowStyleSettings
125*cdf0e10cSrcweir 	//==================================================================================================================
126*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
127*cdf0e10cSrcweir     WindowStyleSettings::WindowStyleSettings( ::vos::IMutex& i_rWindowMutex, ::osl::Mutex& i_rListenerMutex, VCLXWindow& i_rOwningWindow )
128*cdf0e10cSrcweir         :m_pData( new WindowStyleSettings_Data( i_rWindowMutex, i_rListenerMutex, i_rOwningWindow ) )
129*cdf0e10cSrcweir     {
130*cdf0e10cSrcweir         Window* pWindow = i_rOwningWindow.GetWindow();
131*cdf0e10cSrcweir         if ( !pWindow )
132*cdf0e10cSrcweir             throw new RuntimeException();
133*cdf0e10cSrcweir         pWindow->AddEventListener( LINK( m_pData.get(), WindowStyleSettings_Data, OnWindowEvent ) );
134*cdf0e10cSrcweir     }
135*cdf0e10cSrcweir 
136*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
137*cdf0e10cSrcweir     WindowStyleSettings::~WindowStyleSettings()
138*cdf0e10cSrcweir     {
139*cdf0e10cSrcweir     }
140*cdf0e10cSrcweir 
141*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
142*cdf0e10cSrcweir     void WindowStyleSettings::dispose()
143*cdf0e10cSrcweir     {
144*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir         Window* pWindow = m_pData->pOwningWindow->GetWindow();
147*cdf0e10cSrcweir         OSL_ENSURE( pWindow, "WindowStyleSettings::dispose: window has been reset before we could revoke the listener!" );
148*cdf0e10cSrcweir         if ( pWindow )
149*cdf0e10cSrcweir             pWindow->RemoveEventListener( LINK( m_pData.get(), WindowStyleSettings_Data, OnWindowEvent ) );
150*cdf0e10cSrcweir 
151*cdf0e10cSrcweir         EventObject aEvent( *this );
152*cdf0e10cSrcweir         m_pData->aStyleChangeListeners.disposeAndClear( aEvent );
153*cdf0e10cSrcweir 
154*cdf0e10cSrcweir         m_pData->pOwningWindow = NULL;
155*cdf0e10cSrcweir     }
156*cdf0e10cSrcweir 
157*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
158*cdf0e10cSrcweir     namespace
159*cdf0e10cSrcweir     {
160*cdf0e10cSrcweir         sal_Int32 lcl_getStyleColor( WindowStyleSettings_Data& i_rData, Color const & (StyleSettings::*i_pGetter)() const )
161*cdf0e10cSrcweir         {
162*cdf0e10cSrcweir             const Window* pWindow = i_rData.pOwningWindow->GetWindow();
163*cdf0e10cSrcweir             const AllSettings aAllSettings = pWindow->GetSettings();
164*cdf0e10cSrcweir             const StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
165*cdf0e10cSrcweir             return (aStyleSettings.*i_pGetter)().GetColor();
166*cdf0e10cSrcweir         }
167*cdf0e10cSrcweir 
168*cdf0e10cSrcweir         void lcl_setStyleColor( WindowStyleSettings_Data& i_rData, void (StyleSettings::*i_pSetter)( Color const & ), const sal_Int32 i_nColor )
169*cdf0e10cSrcweir         {
170*cdf0e10cSrcweir             Window* pWindow = i_rData.pOwningWindow->GetWindow();
171*cdf0e10cSrcweir             AllSettings aAllSettings = pWindow->GetSettings();
172*cdf0e10cSrcweir             StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
173*cdf0e10cSrcweir             (aStyleSettings.*i_pSetter)( Color( i_nColor ) );
174*cdf0e10cSrcweir             aAllSettings.SetStyleSettings( aStyleSettings );
175*cdf0e10cSrcweir             pWindow->SetSettings( aAllSettings );
176*cdf0e10cSrcweir         }
177*cdf0e10cSrcweir 
178*cdf0e10cSrcweir         FontDescriptor lcl_getStyleFont( WindowStyleSettings_Data& i_rData, Font const & (StyleSettings::*i_pGetter)() const )
179*cdf0e10cSrcweir         {
180*cdf0e10cSrcweir             const Window* pWindow = i_rData.pOwningWindow->GetWindow();
181*cdf0e10cSrcweir             const AllSettings aAllSettings = pWindow->GetSettings();
182*cdf0e10cSrcweir             const StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
183*cdf0e10cSrcweir             return VCLUnoHelper::CreateFontDescriptor( (aStyleSettings.*i_pGetter)() );
184*cdf0e10cSrcweir         }
185*cdf0e10cSrcweir 
186*cdf0e10cSrcweir         void lcl_setStyleFont( WindowStyleSettings_Data& i_rData, void (StyleSettings::*i_pSetter)( Font const &),
187*cdf0e10cSrcweir             Font const & (StyleSettings::*i_pGetter)() const, const FontDescriptor& i_rFont )
188*cdf0e10cSrcweir         {
189*cdf0e10cSrcweir             Window* pWindow = i_rData.pOwningWindow->GetWindow();
190*cdf0e10cSrcweir             AllSettings aAllSettings = pWindow->GetSettings();
191*cdf0e10cSrcweir             StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
192*cdf0e10cSrcweir             const Font aNewFont = VCLUnoHelper::CreateFont( i_rFont, (aStyleSettings.*i_pGetter)() );
193*cdf0e10cSrcweir             (aStyleSettings.*i_pSetter)( aNewFont );
194*cdf0e10cSrcweir             aAllSettings.SetStyleSettings( aStyleSettings );
195*cdf0e10cSrcweir             pWindow->SetSettings( aAllSettings );
196*cdf0e10cSrcweir         }
197*cdf0e10cSrcweir     }
198*cdf0e10cSrcweir 
199*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
200*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getActiveBorderColor() throw (RuntimeException)
201*cdf0e10cSrcweir     {
202*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
203*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetActiveBorderColor );
204*cdf0e10cSrcweir     }
205*cdf0e10cSrcweir 
206*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
207*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setActiveBorderColor( ::sal_Int32 _activebordercolor ) throw (RuntimeException)
208*cdf0e10cSrcweir     {
209*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
210*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetActiveBorderColor, _activebordercolor );
211*cdf0e10cSrcweir     }
212*cdf0e10cSrcweir 
213*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
214*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getActiveColor() throw (RuntimeException)
215*cdf0e10cSrcweir     {
216*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
217*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetActiveColor );
218*cdf0e10cSrcweir     }
219*cdf0e10cSrcweir 
220*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
221*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setActiveColor( ::sal_Int32 _activecolor ) throw (RuntimeException)
222*cdf0e10cSrcweir     {
223*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
224*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetActiveColor, _activecolor );
225*cdf0e10cSrcweir     }
226*cdf0e10cSrcweir 
227*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
228*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getActiveTabColor() throw (RuntimeException)
229*cdf0e10cSrcweir     {
230*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
231*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetActiveTabColor );
232*cdf0e10cSrcweir     }
233*cdf0e10cSrcweir 
234*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
235*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setActiveTabColor( ::sal_Int32 _activetabcolor ) throw (RuntimeException)
236*cdf0e10cSrcweir     {
237*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
238*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetActiveTabColor, _activetabcolor );
239*cdf0e10cSrcweir     }
240*cdf0e10cSrcweir 
241*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
242*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getActiveTextColor() throw (RuntimeException)
243*cdf0e10cSrcweir     {
244*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
245*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetActiveTextColor );
246*cdf0e10cSrcweir     }
247*cdf0e10cSrcweir 
248*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
249*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setActiveTextColor( ::sal_Int32 _activetextcolor ) throw (RuntimeException)
250*cdf0e10cSrcweir     {
251*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
252*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetActiveTextColor, _activetextcolor );
253*cdf0e10cSrcweir     }
254*cdf0e10cSrcweir 
255*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
256*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getButtonRolloverTextColor() throw (RuntimeException)
257*cdf0e10cSrcweir     {
258*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
259*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetButtonRolloverTextColor );
260*cdf0e10cSrcweir     }
261*cdf0e10cSrcweir 
262*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
263*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setButtonRolloverTextColor( ::sal_Int32 _buttonrollovertextcolor ) throw (RuntimeException)
264*cdf0e10cSrcweir     {
265*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
266*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetButtonRolloverTextColor, _buttonrollovertextcolor );
267*cdf0e10cSrcweir     }
268*cdf0e10cSrcweir 
269*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
270*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getButtonTextColor() throw (RuntimeException)
271*cdf0e10cSrcweir     {
272*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
273*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetButtonTextColor );
274*cdf0e10cSrcweir     }
275*cdf0e10cSrcweir 
276*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
277*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setButtonTextColor( ::sal_Int32 _buttontextcolor ) throw (RuntimeException)
278*cdf0e10cSrcweir     {
279*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
280*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetButtonTextColor, _buttontextcolor );
281*cdf0e10cSrcweir     }
282*cdf0e10cSrcweir 
283*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
284*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getCheckedColor() throw (RuntimeException)
285*cdf0e10cSrcweir     {
286*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
287*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetCheckedColor );
288*cdf0e10cSrcweir     }
289*cdf0e10cSrcweir 
290*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
291*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setCheckedColor( ::sal_Int32 _checkedcolor ) throw (RuntimeException)
292*cdf0e10cSrcweir     {
293*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
294*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetCheckedColor, _checkedcolor );
295*cdf0e10cSrcweir     }
296*cdf0e10cSrcweir 
297*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
298*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getDarkShadowColor() throw (RuntimeException)
299*cdf0e10cSrcweir     {
300*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
301*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetDarkShadowColor );
302*cdf0e10cSrcweir     }
303*cdf0e10cSrcweir 
304*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
305*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setDarkShadowColor( ::sal_Int32 _darkshadowcolor ) throw (RuntimeException)
306*cdf0e10cSrcweir     {
307*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
308*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetDarkShadowColor, _darkshadowcolor );
309*cdf0e10cSrcweir     }
310*cdf0e10cSrcweir 
311*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
312*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getDeactiveBorderColor() throw (RuntimeException)
313*cdf0e10cSrcweir     {
314*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
315*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetDeactiveBorderColor );
316*cdf0e10cSrcweir     }
317*cdf0e10cSrcweir 
318*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
319*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setDeactiveBorderColor( ::sal_Int32 _deactivebordercolor ) throw (RuntimeException)
320*cdf0e10cSrcweir     {
321*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
322*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetDeactiveBorderColor, _deactivebordercolor );
323*cdf0e10cSrcweir     }
324*cdf0e10cSrcweir 
325*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
326*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getDeactiveColor() throw (RuntimeException)
327*cdf0e10cSrcweir     {
328*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
329*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetDeactiveColor );
330*cdf0e10cSrcweir     }
331*cdf0e10cSrcweir 
332*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
333*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setDeactiveColor( ::sal_Int32 _deactivecolor ) throw (RuntimeException)
334*cdf0e10cSrcweir     {
335*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
336*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetDeactiveColor, _deactivecolor );
337*cdf0e10cSrcweir     }
338*cdf0e10cSrcweir 
339*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
340*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getDeactiveTextColor() throw (RuntimeException)
341*cdf0e10cSrcweir     {
342*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
343*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetDeactiveTextColor );
344*cdf0e10cSrcweir     }
345*cdf0e10cSrcweir 
346*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
347*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setDeactiveTextColor( ::sal_Int32 _deactivetextcolor ) throw (RuntimeException)
348*cdf0e10cSrcweir     {
349*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
350*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetDeactiveTextColor, _deactivetextcolor );
351*cdf0e10cSrcweir     }
352*cdf0e10cSrcweir 
353*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
354*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getDialogColor() throw (RuntimeException)
355*cdf0e10cSrcweir     {
356*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
357*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetDialogColor );
358*cdf0e10cSrcweir     }
359*cdf0e10cSrcweir 
360*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
361*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setDialogColor( ::sal_Int32 _dialogcolor ) throw (RuntimeException)
362*cdf0e10cSrcweir     {
363*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
364*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetDialogColor, _dialogcolor );
365*cdf0e10cSrcweir     }
366*cdf0e10cSrcweir 
367*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
368*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getDialogTextColor() throw (RuntimeException)
369*cdf0e10cSrcweir     {
370*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
371*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetDialogTextColor );
372*cdf0e10cSrcweir     }
373*cdf0e10cSrcweir 
374*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
375*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setDialogTextColor( ::sal_Int32 _dialogtextcolor ) throw (RuntimeException)
376*cdf0e10cSrcweir     {
377*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
378*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetDialogTextColor, _dialogtextcolor );
379*cdf0e10cSrcweir     }
380*cdf0e10cSrcweir 
381*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
382*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getDisableColor() throw (RuntimeException)
383*cdf0e10cSrcweir     {
384*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
385*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetDisableColor );
386*cdf0e10cSrcweir     }
387*cdf0e10cSrcweir 
388*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
389*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setDisableColor( ::sal_Int32 _disablecolor ) throw (RuntimeException)
390*cdf0e10cSrcweir     {
391*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
392*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetDisableColor, _disablecolor );
393*cdf0e10cSrcweir     }
394*cdf0e10cSrcweir 
395*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
396*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getFaceColor() throw (RuntimeException)
397*cdf0e10cSrcweir     {
398*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
399*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetFaceColor );
400*cdf0e10cSrcweir     }
401*cdf0e10cSrcweir 
402*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
403*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setFaceColor( ::sal_Int32 _facecolor ) throw (RuntimeException)
404*cdf0e10cSrcweir     {
405*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
406*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetFaceColor, _facecolor );
407*cdf0e10cSrcweir     }
408*cdf0e10cSrcweir 
409*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
410*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getFaceGradientColor() throw (RuntimeException)
411*cdf0e10cSrcweir     {
412*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
413*cdf0e10cSrcweir         const Window* pWindow = m_pData->pOwningWindow->GetWindow();
414*cdf0e10cSrcweir         const AllSettings aAllSettings = pWindow->GetSettings();
415*cdf0e10cSrcweir         const StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
416*cdf0e10cSrcweir         return aStyleSettings.GetFaceGradientColor().GetColor();
417*cdf0e10cSrcweir     }
418*cdf0e10cSrcweir 
419*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
420*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getFieldColor() throw (RuntimeException)
421*cdf0e10cSrcweir     {
422*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
423*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetFieldColor );
424*cdf0e10cSrcweir     }
425*cdf0e10cSrcweir 
426*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
427*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setFieldColor( ::sal_Int32 _fieldcolor ) throw (RuntimeException)
428*cdf0e10cSrcweir     {
429*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
430*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetFieldColor, _fieldcolor );
431*cdf0e10cSrcweir     }
432*cdf0e10cSrcweir 
433*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
434*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getFieldRolloverTextColor() throw (RuntimeException)
435*cdf0e10cSrcweir     {
436*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
437*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetFieldRolloverTextColor );
438*cdf0e10cSrcweir     }
439*cdf0e10cSrcweir 
440*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
441*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setFieldRolloverTextColor( ::sal_Int32 _fieldrollovertextcolor ) throw (RuntimeException)
442*cdf0e10cSrcweir     {
443*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
444*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetFieldRolloverTextColor, _fieldrollovertextcolor );
445*cdf0e10cSrcweir     }
446*cdf0e10cSrcweir 
447*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
448*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getFieldTextColor() throw (RuntimeException)
449*cdf0e10cSrcweir     {
450*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
451*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetFieldTextColor );
452*cdf0e10cSrcweir     }
453*cdf0e10cSrcweir 
454*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
455*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setFieldTextColor( ::sal_Int32 _fieldtextcolor ) throw (RuntimeException)
456*cdf0e10cSrcweir     {
457*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
458*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetFieldTextColor, _fieldtextcolor );
459*cdf0e10cSrcweir     }
460*cdf0e10cSrcweir 
461*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
462*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getGroupTextColor() throw (RuntimeException)
463*cdf0e10cSrcweir     {
464*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
465*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetGroupTextColor );
466*cdf0e10cSrcweir     }
467*cdf0e10cSrcweir 
468*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
469*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setGroupTextColor( ::sal_Int32 _grouptextcolor ) throw (RuntimeException)
470*cdf0e10cSrcweir     {
471*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
472*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetGroupTextColor, _grouptextcolor );
473*cdf0e10cSrcweir     }
474*cdf0e10cSrcweir 
475*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
476*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getHelpColor() throw (RuntimeException)
477*cdf0e10cSrcweir     {
478*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
479*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetHelpColor );
480*cdf0e10cSrcweir     }
481*cdf0e10cSrcweir 
482*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
483*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setHelpColor( ::sal_Int32 _helpcolor ) throw (RuntimeException)
484*cdf0e10cSrcweir     {
485*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
486*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetHelpColor, _helpcolor );
487*cdf0e10cSrcweir     }
488*cdf0e10cSrcweir 
489*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
490*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getHelpTextColor() throw (RuntimeException)
491*cdf0e10cSrcweir     {
492*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
493*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetHelpTextColor );
494*cdf0e10cSrcweir     }
495*cdf0e10cSrcweir 
496*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
497*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setHelpTextColor( ::sal_Int32 _helptextcolor ) throw (RuntimeException)
498*cdf0e10cSrcweir     {
499*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
500*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetHelpTextColor, _helptextcolor );
501*cdf0e10cSrcweir     }
502*cdf0e10cSrcweir 
503*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
504*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getHighlightColor() throw (RuntimeException)
505*cdf0e10cSrcweir     {
506*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
507*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetHighlightColor );
508*cdf0e10cSrcweir     }
509*cdf0e10cSrcweir 
510*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
511*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setHighlightColor( ::sal_Int32 _highlightcolor ) throw (RuntimeException)
512*cdf0e10cSrcweir     {
513*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
514*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetHighlightColor, _highlightcolor );
515*cdf0e10cSrcweir     }
516*cdf0e10cSrcweir 
517*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
518*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getHighlightTextColor() throw (RuntimeException)
519*cdf0e10cSrcweir     {
520*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
521*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetHighlightTextColor );
522*cdf0e10cSrcweir     }
523*cdf0e10cSrcweir 
524*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
525*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setHighlightTextColor( ::sal_Int32 _highlighttextcolor ) throw (RuntimeException)
526*cdf0e10cSrcweir     {
527*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
528*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetHighlightTextColor, _highlighttextcolor );
529*cdf0e10cSrcweir     }
530*cdf0e10cSrcweir 
531*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
532*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getInactiveTabColor() throw (RuntimeException)
533*cdf0e10cSrcweir     {
534*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
535*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetInactiveTabColor );
536*cdf0e10cSrcweir     }
537*cdf0e10cSrcweir 
538*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
539*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setInactiveTabColor( ::sal_Int32 _inactivetabcolor ) throw (RuntimeException)
540*cdf0e10cSrcweir     {
541*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
542*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetInactiveTabColor, _inactivetabcolor );
543*cdf0e10cSrcweir     }
544*cdf0e10cSrcweir 
545*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
546*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getInfoTextColor() throw (RuntimeException)
547*cdf0e10cSrcweir     {
548*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
549*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetInfoTextColor );
550*cdf0e10cSrcweir     }
551*cdf0e10cSrcweir 
552*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
553*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setInfoTextColor( ::sal_Int32 _infotextcolor ) throw (RuntimeException)
554*cdf0e10cSrcweir     {
555*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
556*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetInfoTextColor, _infotextcolor );
557*cdf0e10cSrcweir     }
558*cdf0e10cSrcweir 
559*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
560*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getLabelTextColor() throw (RuntimeException)
561*cdf0e10cSrcweir     {
562*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
563*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetLabelTextColor );
564*cdf0e10cSrcweir     }
565*cdf0e10cSrcweir 
566*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
567*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setLabelTextColor( ::sal_Int32 _labeltextcolor ) throw (RuntimeException)
568*cdf0e10cSrcweir     {
569*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
570*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetLabelTextColor, _labeltextcolor );
571*cdf0e10cSrcweir     }
572*cdf0e10cSrcweir 
573*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
574*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getLightColor() throw (RuntimeException)
575*cdf0e10cSrcweir     {
576*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
577*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetLightColor );
578*cdf0e10cSrcweir     }
579*cdf0e10cSrcweir 
580*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
581*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setLightColor( ::sal_Int32 _lightcolor ) throw (RuntimeException)
582*cdf0e10cSrcweir     {
583*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
584*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetLightColor, _lightcolor );
585*cdf0e10cSrcweir     }
586*cdf0e10cSrcweir 
587*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
588*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getMenuBarColor() throw (RuntimeException)
589*cdf0e10cSrcweir     {
590*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
591*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetMenuBarColor );
592*cdf0e10cSrcweir     }
593*cdf0e10cSrcweir 
594*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
595*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setMenuBarColor( ::sal_Int32 _menubarcolor ) throw (RuntimeException)
596*cdf0e10cSrcweir     {
597*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
598*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetMenuBarColor, _menubarcolor );
599*cdf0e10cSrcweir     }
600*cdf0e10cSrcweir 
601*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
602*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getMenuBarTextColor() throw (RuntimeException)
603*cdf0e10cSrcweir     {
604*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
605*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetMenuBarTextColor );
606*cdf0e10cSrcweir     }
607*cdf0e10cSrcweir 
608*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
609*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setMenuBarTextColor( ::sal_Int32 _menubartextcolor ) throw (RuntimeException)
610*cdf0e10cSrcweir     {
611*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
612*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetMenuBarTextColor, _menubartextcolor );
613*cdf0e10cSrcweir     }
614*cdf0e10cSrcweir 
615*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
616*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getMenuBorderColor() throw (RuntimeException)
617*cdf0e10cSrcweir     {
618*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
619*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetMenuBorderColor );
620*cdf0e10cSrcweir     }
621*cdf0e10cSrcweir 
622*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
623*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setMenuBorderColor( ::sal_Int32 _menubordercolor ) throw (RuntimeException)
624*cdf0e10cSrcweir     {
625*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
626*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetMenuBorderColor, _menubordercolor );
627*cdf0e10cSrcweir     }
628*cdf0e10cSrcweir 
629*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
630*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getMenuColor() throw (RuntimeException)
631*cdf0e10cSrcweir     {
632*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
633*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetMenuColor );
634*cdf0e10cSrcweir     }
635*cdf0e10cSrcweir 
636*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
637*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setMenuColor( ::sal_Int32 _menucolor ) throw (RuntimeException)
638*cdf0e10cSrcweir     {
639*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
640*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetMenuColor, _menucolor );
641*cdf0e10cSrcweir     }
642*cdf0e10cSrcweir 
643*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
644*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getMenuHighlightColor() throw (RuntimeException)
645*cdf0e10cSrcweir     {
646*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
647*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetMenuHighlightColor );
648*cdf0e10cSrcweir     }
649*cdf0e10cSrcweir 
650*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
651*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setMenuHighlightColor( ::sal_Int32 _menuhighlightcolor ) throw (RuntimeException)
652*cdf0e10cSrcweir     {
653*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
654*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetMenuHighlightColor, _menuhighlightcolor );
655*cdf0e10cSrcweir     }
656*cdf0e10cSrcweir 
657*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
658*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getMenuHighlightTextColor() throw (RuntimeException)
659*cdf0e10cSrcweir     {
660*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
661*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetMenuHighlightTextColor );
662*cdf0e10cSrcweir     }
663*cdf0e10cSrcweir 
664*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
665*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setMenuHighlightTextColor( ::sal_Int32 _menuhighlighttextcolor ) throw (RuntimeException)
666*cdf0e10cSrcweir     {
667*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
668*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetMenuHighlightTextColor, _menuhighlighttextcolor );
669*cdf0e10cSrcweir     }
670*cdf0e10cSrcweir 
671*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
672*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getMenuTextColor() throw (RuntimeException)
673*cdf0e10cSrcweir     {
674*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
675*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetMenuTextColor );
676*cdf0e10cSrcweir     }
677*cdf0e10cSrcweir 
678*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
679*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setMenuTextColor( ::sal_Int32 _menutextcolor ) throw (RuntimeException)
680*cdf0e10cSrcweir     {
681*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
682*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetMenuTextColor, _menutextcolor );
683*cdf0e10cSrcweir     }
684*cdf0e10cSrcweir 
685*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
686*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getMonoColor() throw (RuntimeException)
687*cdf0e10cSrcweir     {
688*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
689*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetMonoColor );
690*cdf0e10cSrcweir     }
691*cdf0e10cSrcweir 
692*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
693*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setMonoColor( ::sal_Int32 _monocolor ) throw (RuntimeException)
694*cdf0e10cSrcweir     {
695*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
696*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetMonoColor, _monocolor );
697*cdf0e10cSrcweir     }
698*cdf0e10cSrcweir 
699*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
700*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getRadioCheckTextColor() throw (RuntimeException)
701*cdf0e10cSrcweir     {
702*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
703*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetRadioCheckTextColor );
704*cdf0e10cSrcweir     }
705*cdf0e10cSrcweir 
706*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
707*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setRadioCheckTextColor( ::sal_Int32 _radiochecktextcolor ) throw (RuntimeException)
708*cdf0e10cSrcweir     {
709*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
710*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetRadioCheckTextColor, _radiochecktextcolor );
711*cdf0e10cSrcweir     }
712*cdf0e10cSrcweir 
713*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
714*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getSeparatorColor() throw (RuntimeException)
715*cdf0e10cSrcweir     {
716*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
717*cdf0e10cSrcweir         const Window* pWindow = m_pData->pOwningWindow->GetWindow();
718*cdf0e10cSrcweir         const AllSettings aAllSettings = pWindow->GetSettings();
719*cdf0e10cSrcweir         const StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
720*cdf0e10cSrcweir         return aStyleSettings.GetSeparatorColor().GetColor();
721*cdf0e10cSrcweir     }
722*cdf0e10cSrcweir 
723*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
724*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getShadowColor() throw (RuntimeException)
725*cdf0e10cSrcweir     {
726*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
727*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetShadowColor );
728*cdf0e10cSrcweir     }
729*cdf0e10cSrcweir 
730*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
731*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setShadowColor( ::sal_Int32 _shadowcolor ) throw (RuntimeException)
732*cdf0e10cSrcweir     {
733*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
734*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetShadowColor, _shadowcolor );
735*cdf0e10cSrcweir     }
736*cdf0e10cSrcweir 
737*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
738*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getWindowColor() throw (RuntimeException)
739*cdf0e10cSrcweir     {
740*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
741*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetWindowColor );
742*cdf0e10cSrcweir     }
743*cdf0e10cSrcweir 
744*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
745*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setWindowColor( ::sal_Int32 _windowcolor ) throw (RuntimeException)
746*cdf0e10cSrcweir     {
747*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
748*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetWindowColor, _windowcolor );
749*cdf0e10cSrcweir     }
750*cdf0e10cSrcweir 
751*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
752*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getWindowTextColor() throw (RuntimeException)
753*cdf0e10cSrcweir     {
754*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
755*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetWindowTextColor );
756*cdf0e10cSrcweir     }
757*cdf0e10cSrcweir 
758*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
759*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setWindowTextColor( ::sal_Int32 _windowtextcolor ) throw (RuntimeException)
760*cdf0e10cSrcweir     {
761*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
762*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetWindowTextColor, _windowtextcolor );
763*cdf0e10cSrcweir     }
764*cdf0e10cSrcweir 
765*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
766*cdf0e10cSrcweir     ::sal_Int32 SAL_CALL WindowStyleSettings::getWorkspaceColor() throw (RuntimeException)
767*cdf0e10cSrcweir     {
768*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
769*cdf0e10cSrcweir         return lcl_getStyleColor( *m_pData, &StyleSettings::GetWorkspaceColor );
770*cdf0e10cSrcweir     }
771*cdf0e10cSrcweir 
772*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
773*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setWorkspaceColor( ::sal_Int32 _workspacecolor ) throw (RuntimeException)
774*cdf0e10cSrcweir     {
775*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
776*cdf0e10cSrcweir         lcl_setStyleColor( *m_pData, &StyleSettings::SetWorkspaceColor, _workspacecolor );
777*cdf0e10cSrcweir     }
778*cdf0e10cSrcweir 
779*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
780*cdf0e10cSrcweir     ::sal_Bool SAL_CALL WindowStyleSettings::getHighContrastMode() throw (RuntimeException)
781*cdf0e10cSrcweir     {
782*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
783*cdf0e10cSrcweir         const Window* pWindow = m_pData->pOwningWindow->GetWindow();
784*cdf0e10cSrcweir         const AllSettings aAllSettings = pWindow->GetSettings();
785*cdf0e10cSrcweir         const StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
786*cdf0e10cSrcweir         return aStyleSettings.GetHighContrastMode();
787*cdf0e10cSrcweir     }
788*cdf0e10cSrcweir 
789*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
790*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setHighContrastMode( ::sal_Bool _highcontrastmode ) throw (RuntimeException)
791*cdf0e10cSrcweir     {
792*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
793*cdf0e10cSrcweir         Window* pWindow = m_pData->pOwningWindow->GetWindow();
794*cdf0e10cSrcweir         AllSettings aAllSettings = pWindow->GetSettings();
795*cdf0e10cSrcweir         StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
796*cdf0e10cSrcweir         aStyleSettings.SetHighContrastMode( _highcontrastmode );
797*cdf0e10cSrcweir         aAllSettings.SetStyleSettings( aStyleSettings );
798*cdf0e10cSrcweir         pWindow->SetSettings( aAllSettings );
799*cdf0e10cSrcweir     }
800*cdf0e10cSrcweir 
801*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
802*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getApplicationFont() throw (RuntimeException)
803*cdf0e10cSrcweir     {
804*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
805*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetAppFont );
806*cdf0e10cSrcweir     }
807*cdf0e10cSrcweir 
808*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
809*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setApplicationFont( const FontDescriptor& _applicationfont ) throw (RuntimeException)
810*cdf0e10cSrcweir     {
811*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
812*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetAppFont, &StyleSettings::GetAppFont, _applicationfont );
813*cdf0e10cSrcweir     }
814*cdf0e10cSrcweir 
815*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
816*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getHelpFont() throw (RuntimeException)
817*cdf0e10cSrcweir     {
818*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
819*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetHelpFont );
820*cdf0e10cSrcweir     }
821*cdf0e10cSrcweir 
822*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
823*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setHelpFont( const FontDescriptor& _helpfont ) throw (RuntimeException)
824*cdf0e10cSrcweir     {
825*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
826*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetHelpFont, &StyleSettings::GetHelpFont, _helpfont );
827*cdf0e10cSrcweir     }
828*cdf0e10cSrcweir 
829*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
830*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getTitleFont() throw (RuntimeException)
831*cdf0e10cSrcweir     {
832*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
833*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetTitleFont );
834*cdf0e10cSrcweir     }
835*cdf0e10cSrcweir 
836*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
837*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setTitleFont( const FontDescriptor& _titlefont ) throw (RuntimeException)
838*cdf0e10cSrcweir     {
839*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
840*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetTitleFont, &StyleSettings::GetTitleFont, _titlefont );
841*cdf0e10cSrcweir     }
842*cdf0e10cSrcweir 
843*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
844*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getFloatTitleFont() throw (RuntimeException)
845*cdf0e10cSrcweir     {
846*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
847*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetFloatTitleFont );
848*cdf0e10cSrcweir     }
849*cdf0e10cSrcweir 
850*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
851*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setFloatTitleFont( const FontDescriptor& _floattitlefont ) throw (RuntimeException)
852*cdf0e10cSrcweir     {
853*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
854*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetFloatTitleFont, &StyleSettings::GetFloatTitleFont, _floattitlefont );
855*cdf0e10cSrcweir     }
856*cdf0e10cSrcweir 
857*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
858*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getMenuFont() throw (RuntimeException)
859*cdf0e10cSrcweir     {
860*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
861*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetMenuFont );
862*cdf0e10cSrcweir     }
863*cdf0e10cSrcweir 
864*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
865*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setMenuFont( const FontDescriptor& _menufont ) throw (RuntimeException)
866*cdf0e10cSrcweir     {
867*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
868*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetMenuFont, &StyleSettings::GetMenuFont, _menufont );
869*cdf0e10cSrcweir     }
870*cdf0e10cSrcweir 
871*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
872*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getToolFont() throw (RuntimeException)
873*cdf0e10cSrcweir     {
874*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
875*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetToolFont );
876*cdf0e10cSrcweir     }
877*cdf0e10cSrcweir 
878*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
879*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setToolFont( const FontDescriptor& _toolfont ) throw (RuntimeException)
880*cdf0e10cSrcweir     {
881*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
882*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetToolFont, &StyleSettings::GetToolFont, _toolfont );
883*cdf0e10cSrcweir     }
884*cdf0e10cSrcweir 
885*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
886*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getGroupFont() throw (RuntimeException)
887*cdf0e10cSrcweir     {
888*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
889*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetGroupFont );
890*cdf0e10cSrcweir     }
891*cdf0e10cSrcweir 
892*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
893*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setGroupFont( const FontDescriptor& _groupfont ) throw (RuntimeException)
894*cdf0e10cSrcweir     {
895*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
896*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetGroupFont, &StyleSettings::GetGroupFont, _groupfont );
897*cdf0e10cSrcweir     }
898*cdf0e10cSrcweir 
899*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
900*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getLabelFont() throw (RuntimeException)
901*cdf0e10cSrcweir     {
902*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
903*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetLabelFont );
904*cdf0e10cSrcweir     }
905*cdf0e10cSrcweir 
906*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
907*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setLabelFont( const FontDescriptor& _labelfont ) throw (RuntimeException)
908*cdf0e10cSrcweir     {
909*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
910*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetLabelFont, &StyleSettings::GetLabelFont, _labelfont );
911*cdf0e10cSrcweir     }
912*cdf0e10cSrcweir 
913*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
914*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getInfoFont() throw (RuntimeException)
915*cdf0e10cSrcweir     {
916*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
917*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetInfoFont );
918*cdf0e10cSrcweir     }
919*cdf0e10cSrcweir 
920*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
921*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setInfoFont( const FontDescriptor& _infofont ) throw (RuntimeException)
922*cdf0e10cSrcweir     {
923*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
924*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetInfoFont, &StyleSettings::GetInfoFont, _infofont );
925*cdf0e10cSrcweir     }
926*cdf0e10cSrcweir 
927*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
928*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getRadioCheckFont() throw (RuntimeException)
929*cdf0e10cSrcweir     {
930*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
931*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetRadioCheckFont );
932*cdf0e10cSrcweir     }
933*cdf0e10cSrcweir 
934*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
935*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setRadioCheckFont( const FontDescriptor& _radiocheckfont ) throw (RuntimeException)
936*cdf0e10cSrcweir     {
937*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
938*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetRadioCheckFont, &StyleSettings::GetRadioCheckFont, _radiocheckfont );
939*cdf0e10cSrcweir     }
940*cdf0e10cSrcweir 
941*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
942*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getPushButtonFont() throw (RuntimeException)
943*cdf0e10cSrcweir     {
944*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
945*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetPushButtonFont );
946*cdf0e10cSrcweir     }
947*cdf0e10cSrcweir 
948*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
949*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setPushButtonFont( const FontDescriptor& _pushbuttonfont ) throw (RuntimeException)
950*cdf0e10cSrcweir     {
951*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
952*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetPushButtonFont, &StyleSettings::GetPushButtonFont, _pushbuttonfont );
953*cdf0e10cSrcweir     }
954*cdf0e10cSrcweir 
955*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
956*cdf0e10cSrcweir     FontDescriptor SAL_CALL WindowStyleSettings::getFieldFont() throw (RuntimeException)
957*cdf0e10cSrcweir     {
958*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
959*cdf0e10cSrcweir         return lcl_getStyleFont( *m_pData, &StyleSettings::GetFieldFont );
960*cdf0e10cSrcweir     }
961*cdf0e10cSrcweir 
962*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
963*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::setFieldFont( const FontDescriptor& _fieldfont ) throw (RuntimeException)
964*cdf0e10cSrcweir     {
965*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
966*cdf0e10cSrcweir         lcl_setStyleFont( *m_pData, &StyleSettings::SetFieldFont, &StyleSettings::GetFieldFont, _fieldfont );
967*cdf0e10cSrcweir     }
968*cdf0e10cSrcweir 
969*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
970*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::addStyleChangeListener( const Reference< XStyleChangeListener >& i_rListener ) throw (RuntimeException)
971*cdf0e10cSrcweir     {
972*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
973*cdf0e10cSrcweir         if ( i_rListener.is() )
974*cdf0e10cSrcweir             m_pData->aStyleChangeListeners.addInterface( i_rListener );
975*cdf0e10cSrcweir     }
976*cdf0e10cSrcweir 
977*cdf0e10cSrcweir 	//------------------------------------------------------------------------------------------------------------------
978*cdf0e10cSrcweir     void SAL_CALL WindowStyleSettings::removeStyleChangeListener( const Reference< XStyleChangeListener >& i_rListener ) throw (RuntimeException)
979*cdf0e10cSrcweir     {
980*cdf0e10cSrcweir         StyleMethodGuard aGuard( *m_pData );
981*cdf0e10cSrcweir         if ( i_rListener.is() )
982*cdf0e10cSrcweir             m_pData->aStyleChangeListeners.removeInterface( i_rListener );
983*cdf0e10cSrcweir     }
984*cdf0e10cSrcweir 
985*cdf0e10cSrcweir //......................................................................................................................
986*cdf0e10cSrcweir } // namespace toolkit
987*cdf0e10cSrcweir //......................................................................................................................
988