diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-01-24 19:27:41 +1100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-02-04 10:46:23 +0000 |
commit | a1e4bd413e7a8e4db454d65e5226b9d1859bd5d7 (patch) | |
tree | 1d73da441c6da9cc05a8542bd8a29cc31ede94ad /desktop | |
parent | 849cc7893ddf39f869b2efa93bd10fcf45c09d24 (diff) |
Change Application::SystemSettingsChanging to OverrideSystemSettings
The name Application::SystemSettingsChanging implies that the app is
being notified that system settings are being changed. This is not
what the function does - in fact, SystemSettingsChanging overrides
a settings object with user defined settings
Change-Id: Ibbf821ff3c7ec5b38e2e79751058494c749b6428
Reviewed-on: https://gerrit.libreoffice.org/7629
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/inc/app.hxx | 43 | ||||
-rw-r--r-- | desktop/source/app/app.cxx | 2 |
2 files changed, 22 insertions, 23 deletions
diff --git a/desktop/inc/app.hxx b/desktop/inc/app.hxx index 009bd759ea2b..fb30a7a00502 100644 --- a/desktop/inc/app.hxx +++ b/desktop/inc/app.hxx @@ -72,16 +72,16 @@ class Desktop : public Application Desktop(); ~Desktop(); - virtual int Main( ); + virtual int Main( ); virtual void Init(); virtual void InitFinished(); virtual void DeInit(); - virtual sal_Bool QueryExit(); - virtual sal_uInt16 Exception(sal_uInt16 nError); - virtual void SystemSettingsChanging( AllSettings& rSettings ); + virtual sal_Bool QueryExit(); + virtual sal_uInt16 Exception(sal_uInt16 nError); + virtual void OverrideSystemSettings( AllSettings& rSettings ); virtual void AppEvent( const ApplicationEvent& rAppEvent ); - DECL_LINK( OpenClients_Impl, void* ); + DECL_LINK( OpenClients_Impl, void* ); static void OpenClients(); static void OpenDefault(); @@ -93,9 +93,9 @@ class Desktop : public Application static CommandLineArgs& GetCommandLineArgs(); void HandleBootstrapErrors( - BootstrapError nError, OUString const & aMessage ); + BootstrapError nError, OUString const & aMessage ); void SetBootstrapError( - BootstrapError nError, OUString const & aMessage ) + BootstrapError nError, OUString const & aMessage ) { if ( m_aBootstrapError == BE_OK ) { @@ -127,9 +127,8 @@ class Desktop : public Application // throws an exception upon failure private: - void RegisterServices( - css::uno::Reference< - css::uno::XComponentContext > const & context); + void RegisterServices( + css::uno::Reference< css::uno::XComponentContext > const & context); void DeregisterServices(); void CreateTemporaryDirectory(); @@ -144,7 +143,7 @@ class Desktop : public Application void StartSetup( const OUString& aParameters ); // Create a error message depending on bootstrap failure code and an optional file url - OUString CreateErrorMsgString( utl::Bootstrap::FailureCode nFailureCode, + OUString CreateErrorMsgString( utl::Bootstrap::FailureCode nFailureCode, const OUString& aFileURL ); static void PreloadModuleData( const CommandLineArgs& ); @@ -156,7 +155,7 @@ class Desktop : public Application void EnableOleAutomation(); DECL_LINK( ImplInitFilterHdl, ConvertData* ); - DECL_LINK( AsyncInitFirstRun, void* ); + DECL_LINK( AsyncInitFirstRun, void* ); /** checks if the office is run the first time <p>If so, <method>DoFirstRunInitializations</method> is called (asynchronously and delayed) and the respective flag in the configuration is reset.</p> @@ -174,20 +173,20 @@ class Desktop : public Application static sal_Bool isUIOnSessionShutdownAllowed(); // on-demand acceptors - static void createAcceptor(const OUString& aDescription); - static void enableAcceptors(); - static void destroyAcceptor(const OUString& aDescription); + static void createAcceptor(const OUString& aDescription); + static void enableAcceptors(); + static void destroyAcceptor(const OUString& aDescription); - bool m_bCleanedExtensionCache; - bool m_bServicesRegistered; - BootstrapError m_aBootstrapError; - OUString m_aBootstrapErrorMessage; - BootstrapStatus m_aBootstrapStatus; + bool m_bCleanedExtensionCache; + bool m_bServicesRegistered; + BootstrapError m_aBootstrapError; + OUString m_aBootstrapErrorMessage; + BootstrapStatus m_aBootstrapStatus; boost::scoped_ptr<Lockfile> m_xLockfile; - Timer m_firstRunTimer; + Timer m_firstRunTimer; - static ResMgr* pResMgr; + static ResMgr* pResMgr; }; } diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index e391c860d242..e16697bec439 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1925,7 +1925,7 @@ sal_Bool Desktop::InitializeQuickstartMode( const Reference< XComponentContext > } } -void Desktop::SystemSettingsChanging( AllSettings& rSettings ) +void Desktop::OverrideSystemSettings( AllSettings& rSettings ) { if ( !SvtTabAppearanceCfg::IsInitialized () ) return; |