diff options
Diffstat (limited to 'unotools/source/config/lingucfg.cxx')
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index 096ccb2950d1..eb4b38164935 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -26,8 +26,6 @@ * ************************************************************************/ - - #include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp> @@ -59,16 +57,12 @@ using ::rtl::Uri; #define EXPAND_PROTOCOL "vnd.sun.star.expand:" #define FILE_PROTOCOL "file:///" -/////////////////////////////////////////////////////////////////////////// - namespace { class theSvtLinguConfigItemMutex : public rtl::Static< osl::Mutex, theSvtLinguConfigItemMutex > {}; } -/////////////////////////////////////////////////////////////////////////// - static sal_Bool lcl_SetLocale( sal_Int16 &rLanguage, const uno::Any &rVal ) { sal_Bool bSucc = sal_False; @@ -86,7 +80,6 @@ static sal_Bool lcl_SetLocale( sal_Int16 &rLanguage, const uno::Any &rVal ) return bSucc; } - static inline const OUString lcl_LanguageToCfgLocaleStr( sal_Int16 nLanguage ) { OUString aRes; @@ -95,7 +88,6 @@ static inline const OUString lcl_LanguageToCfgLocaleStr( sal_Int16 nLanguage ) return aRes; } - static sal_Int16 lcl_CfgAnyToLanguage( const uno::Any &rVal ) { OUString aTmp; @@ -103,9 +95,6 @@ static sal_Int16 lcl_CfgAnyToLanguage( const uno::Any &rVal ) return (aTmp.getLength() == 0) ? LANGUAGE_SYSTEM : MsLangId::convertIsoStringToLanguage( aTmp ); } - -////////////////////////////////////////////////////////////////////// - SvtLinguOptions::SvtLinguOptions() { nDefaultLanguage = LANGUAGE_NONE; @@ -154,10 +143,6 @@ SvtLinguOptions::SvtLinguOptions() } - -////////////////////////////////////////////////////////////////////// - - class SvtLinguConfigItem : public utl::ConfigItem { SvtLinguOptions aOpt; @@ -856,7 +841,6 @@ SvtLinguConfig::SvtLinguConfig() ++nCfgItemRefCount; } - SvtLinguConfig::~SvtLinguConfig() { osl::MutexGuard aGuard(theSvtLinguConfigItemMutex::get()); @@ -872,7 +856,6 @@ SvtLinguConfig::~SvtLinguConfig() } } - SvtLinguConfigItem & SvtLinguConfig::GetConfigItem() { // Global access, must be guarded (multithreading) @@ -885,72 +868,52 @@ SvtLinguConfigItem & SvtLinguConfig::GetConfigItem() return *pCfgItem; } - uno::Sequence< OUString > SvtLinguConfig::GetNodeNames( const OUString &rNode ) { return GetConfigItem().GetNodeNames( rNode ); } - uno::Sequence< uno::Any > SvtLinguConfig::GetProperties( const uno::Sequence< OUString > &rNames ) { return GetConfigItem().GetProperties(rNames); } - sal_Bool SvtLinguConfig::ReplaceSetProperties( const OUString &rNode, uno::Sequence< beans::PropertyValue > rValues ) { return GetConfigItem().ReplaceSetProperties( rNode, rValues ); } - uno::Any SvtLinguConfig::GetProperty( const OUString &rPropertyName ) const { return GetConfigItem().GetProperty( rPropertyName ); } - uno::Any SvtLinguConfig::GetProperty( sal_Int32 nPropertyHandle ) const { return GetConfigItem().GetProperty( nPropertyHandle ); } - sal_Bool SvtLinguConfig::SetProperty( const OUString &rPropertyName, const uno::Any &rValue ) { return GetConfigItem().SetProperty( rPropertyName, rValue ); } - sal_Bool SvtLinguConfig::SetProperty( sal_Int32 nPropertyHandle, const uno::Any &rValue ) { return GetConfigItem().SetProperty( nPropertyHandle, rValue ); } - sal_Bool SvtLinguConfig::GetOptions( SvtLinguOptions &rOptions ) const { return GetConfigItem().GetOptions( rOptions ); } - -sal_Bool SvtLinguConfig::SetOptions( const SvtLinguOptions &rOptions ) -{ - return GetConfigItem().SetOptions( rOptions ); -} - - sal_Bool SvtLinguConfig::IsReadOnly( const rtl::OUString &rPropertyName ) const { return GetConfigItem().IsReadOnly( rPropertyName ); } -sal_Bool SvtLinguConfig::IsReadOnly( sal_Int32 nPropertyHandle ) const -{ - return GetConfigItem().IsReadOnly( nPropertyHandle ); -} - sal_Bool SvtLinguConfig::GetElementNamesFor( const rtl::OUString &rNodeName, uno::Sequence< rtl::OUString > &rElementNames ) const |