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