diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-06 18:54:13 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-06 19:37:47 +0300 |
commit | 88bea0a5a8b1e5c1fb601f4e4ba61ba7bce38a3a (patch) | |
tree | 3efd83cf3c67f727f473b73da69e30963f08dc0f /unotools/source/config/moduleoptions.cxx | |
parent | dcb88d170b6ced0ee805b787c1e9be820ff90d25 (diff) |
Kill superfluous vertical whitespace
Change-Id: I949ba575951998d36cb4d38746f2182633046b3b
Diffstat (limited to 'unotools/source/config/moduleoptions.cxx')
-rw-r--r-- | unotools/source/config/moduleoptions.cxx | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index a246788903b9..0504c63285fd 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <unotools/moduleoptions.hxx> #include <comphelper/sequenceashashmap.hxx> #include <unotools/configmgr.hxx> @@ -99,7 +98,6 @@ struct FactoryInfo free(); } - // easy way to reset struct member! void free() { @@ -119,7 +117,6 @@ struct FactoryInfo bDefaultFilterReadonly = false; } - // returns list of properties, which has changed only! // We use given value of sNodeBase to build full qualified paths ... // Last sign of it must be "/". because we use it directly, without any additional things! @@ -184,7 +181,6 @@ struct FactoryInfo return lProperties; } - // We must support setting AND marking of changed values. // That's why we can't make our member public. We must use get/set/init methods // to control access on it! @@ -197,7 +193,6 @@ struct FactoryInfo bool isDefaultFilterReadonly() const { return bDefaultFilterReadonly; } sal_Int32 getIcon () const { return nIcon; }; - // If you call set-methods - we check for changes of valkues and mark it. // But if you wish to set it without that ... you must initialize it! void initInstalled ( bool bNewInstalled ) { bInstalled = bNewInstalled ; } @@ -209,7 +204,6 @@ struct FactoryInfo void setDefaultFilterReadonly( const bool bVal){bDefaultFilterReadonly = bVal;} void initIcon ( sal_Int32 nNewIcon ) { nIcon = nNewIcon ; } - void initTemplateFile( const OUString& sNewTemplateFile ) { if ( !sNewTemplateFile.isEmpty() ) @@ -224,7 +218,6 @@ struct FactoryInfo } } - void setTemplateFile( const OUString& sNewTemplateFile ) { if( sTemplateFile != sNewTemplateFile ) @@ -234,7 +227,6 @@ struct FactoryInfo } }; - void setWindowAttributes( const OUString& sNewWindowAttributes ) { if( sWindowAttributes != sNewWindowAttributes ) @@ -244,7 +236,6 @@ struct FactoryInfo } }; - void setDefaultFilter( const OUString& sNewDefaultFilter ) { if( sDefaultFilter != sNewDefaultFilter ) @@ -309,13 +300,11 @@ class SvtModuleOptions_Impl : public ::utl::ConfigItem SvtModuleOptions_Impl(); virtual ~SvtModuleOptions_Impl(); - // overloaded methods of baseclass virtual void Notify( const css::uno::Sequence< OUString >& lPropertyNames ) SAL_OVERRIDE; virtual void Commit( ) SAL_OVERRIDE; - // public interface bool IsModuleInstalled ( SvtModuleOptions::EModule eModule ) const; @@ -334,19 +323,16 @@ class SvtModuleOptions_Impl : public ::utl::ConfigItem const OUString& sFilter ); void MakeReadonlyStatesAvailable(); - // private methods private: static css::uno::Sequence< OUString > impl_ExpandSetNames ( const css::uno::Sequence< OUString >& lSetNames ); void impl_Read ( const css::uno::Sequence< OUString >& lSetNames ); - // private types private: - // private member private: @@ -587,7 +573,6 @@ bool SvtModuleOptions_Impl::IsModuleInstalled( SvtModuleOptions::EModule eModule return aRet; } - OUString SvtModuleOptions_Impl::GetFactoryName( SvtModuleOptions::EFactory eFactory ) const { OUString sName; @@ -600,7 +585,6 @@ OUString SvtModuleOptions_Impl::GetFactoryName( SvtModuleOptions::EFactory eFact return sName; } - OUString SvtModuleOptions::GetFactoryShortName(SvtModuleOptions::EFactory eFactory) { // Attention: Hard configured yet ... because it's not fine to make changes possible by xml file yet. @@ -639,7 +623,6 @@ OUString SvtModuleOptions::GetFactoryShortName(SvtModuleOptions::EFactory eFacto return sShortName; } - OUString SvtModuleOptions_Impl::GetFactoryStandardTemplate( SvtModuleOptions::EFactory eFactory ) const { OUString sFile; @@ -652,7 +635,6 @@ OUString SvtModuleOptions_Impl::GetFactoryStandardTemplate( SvtModuleOptions::EF return sFile; } - OUString SvtModuleOptions_Impl::GetFactoryEmptyDocumentURL( SvtModuleOptions::EFactory eFactory ) const { // Attention: Hard configured yet ... because it's not fine to make changes possible by xml file yet. @@ -690,7 +672,6 @@ OUString SvtModuleOptions_Impl::GetFactoryEmptyDocumentURL( SvtModuleOptions::EF return sURL; } - OUString SvtModuleOptions_Impl::GetFactoryDefaultFilter( SvtModuleOptions::EFactory eFactory ) const { OUString sDefaultFilter; @@ -712,7 +693,6 @@ bool SvtModuleOptions_Impl::IsDefaultFilterReadonly( SvtModuleOptions::EFactory return bRet; } - sal_Int32 SvtModuleOptions_Impl::GetFactoryIcon( SvtModuleOptions::EFactory eFactory ) const { sal_Int32 nIcon = 0; @@ -725,7 +705,6 @@ sal_Int32 SvtModuleOptions_Impl::GetFactoryIcon( SvtModuleOptions::EFactory eFac return nIcon; } - void SvtModuleOptions_Impl::SetFactoryStandardTemplate( SvtModuleOptions::EFactory eFactory , const OUString& sTemplate ) { @@ -736,7 +715,6 @@ void SvtModuleOptions_Impl::SetFactoryStandardTemplate( SvtModuleOptions:: } } - void SvtModuleOptions_Impl::SetFactoryDefaultFilter( SvtModuleOptions::EFactory eFactory, const OUString& sFilter ) { @@ -939,7 +917,6 @@ void SvtModuleOptions_Impl::impl_Read( const css::uno::Sequence< OUString >& lFa } } - void SvtModuleOptions_Impl::MakeReadonlyStatesAvailable() { if (m_bReadOnlyStatesWellKnown) @@ -974,7 +951,6 @@ void SvtModuleOptions_Impl::MakeReadonlyStatesAvailable() m_bReadOnlyStatesWellKnown = true; } - // initialize static member // DON'T DO IT IN YOUR HEADER! // see definition for further information @@ -1007,7 +983,6 @@ SvtModuleOptions::SvtModuleOptions() } } - SvtModuleOptions::~SvtModuleOptions() { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); @@ -1038,28 +1013,24 @@ bool SvtModuleOptions::IsModuleInstalled( EModule eModule ) const return m_pDataContainer->IsModuleInstalled( eModule ); } - OUString SvtModuleOptions::GetFactoryName( EFactory eFactory ) const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); return m_pDataContainer->GetFactoryName( eFactory ); } - OUString SvtModuleOptions::GetFactoryStandardTemplate( EFactory eFactory ) const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); return m_pDataContainer->GetFactoryStandardTemplate( eFactory ); } - OUString SvtModuleOptions::GetFactoryEmptyDocumentURL( EFactory eFactory ) const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); return m_pDataContainer->GetFactoryEmptyDocumentURL( eFactory ); } - OUString SvtModuleOptions::GetFactoryDefaultFilter( EFactory eFactory ) const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); @@ -1079,7 +1050,6 @@ sal_Int32 SvtModuleOptions::GetFactoryIcon( EFactory eFactory ) const return m_pDataContainer->GetFactoryIcon( eFactory ); } - bool SvtModuleOptions::ClassifyFactoryByName( const OUString& sName , EFactory& eFactory ) { @@ -1087,7 +1057,6 @@ bool SvtModuleOptions::ClassifyFactoryByName( const OUString& sName , return SvtModuleOptions_Impl::ClassifyFactoryByName( sName, eFactory ); } - void SvtModuleOptions::SetFactoryStandardTemplate( EFactory eFactory , const OUString& sTemplate ) { @@ -1095,7 +1064,6 @@ void SvtModuleOptions::SetFactoryStandardTemplate( EFactory eFacto m_pDataContainer->SetFactoryStandardTemplate( eFactory, sTemplate ); } - void SvtModuleOptions::SetFactoryDefaultFilter( EFactory eFactory, const OUString& sFilter ) { @@ -1103,49 +1071,42 @@ void SvtModuleOptions::SetFactoryDefaultFilter( EFactory eFactory, m_pDataContainer->SetFactoryDefaultFilter( eFactory, sFilter ); } - bool SvtModuleOptions::IsMath() const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); return m_pDataContainer->IsModuleInstalled( E_SMATH ); } - bool SvtModuleOptions::IsChart() const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); return m_pDataContainer->IsModuleInstalled( E_SCHART ); } - bool SvtModuleOptions::IsCalc() const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); return m_pDataContainer->IsModuleInstalled( E_SCALC ); } - bool SvtModuleOptions::IsDraw() const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); return m_pDataContainer->IsModuleInstalled( E_SDRAW ); } - bool SvtModuleOptions::IsWriter() const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); return m_pDataContainer->IsModuleInstalled( E_SWRITER ); } - bool SvtModuleOptions::IsImpress() const { ::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() ); return m_pDataContainer->IsModuleInstalled( E_SIMPRESS ); } - bool SvtModuleOptions::IsBasicIDE() const { return true; |