LCOV - code coverage report
Current view: top level - toolkit/source/awt - stylesettings.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 469 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 124 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.11