summaryrefslogtreecommitdiff
path: root/unotools/source/config/lingucfg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/lingucfg.cxx')
-rw-r--r--unotools/source/config/lingucfg.cxx25
1 files changed, 5 insertions, 20 deletions
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx
index eb4b38164935..27516fbe14d2 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -183,8 +183,7 @@ public:
sal_Bool SetProperty( sal_Int32 nPropertyHandle,
const com::sun::star::uno::Any &rValue );
- sal_Bool GetOptions( SvtLinguOptions &rOptions ) const;
- sal_Bool SetOptions( const SvtLinguOptions &rOptions );
+ const SvtLinguOptions& GetOptions() const;
sal_Bool IsReadOnly( const rtl::OUString &rPropertyName ) const;
sal_Bool IsReadOnly( sal_Int32 nPropertyHandle ) const;
@@ -556,27 +555,12 @@ sal_Bool SvtLinguConfigItem::SetProperty( sal_Int32 nPropertyHandle, const uno::
return bSucc;
}
-
-sal_Bool SvtLinguConfigItem::GetOptions( SvtLinguOptions &rOptions ) const
+const SvtLinguOptions& SvtLinguConfigItem::GetOptions() const
{
osl::MutexGuard aGuard(theSvtLinguConfigItemMutex::get());
-
- rOptions = aOpt;
- return sal_True;
+ return aOpt;
}
-
-sal_Bool SvtLinguConfigItem::SetOptions( const SvtLinguOptions &rOptions )
-{
- osl::MutexGuard aGuard(theSvtLinguConfigItemMutex::get());
-
- aOpt = rOptions;
- SetModified();
- NotifyListeners(0);
- return sal_True;
-}
-
-
sal_Bool SvtLinguConfigItem::LoadOptions( const uno::Sequence< OUString > &rProperyNames )
{
osl::MutexGuard aGuard(theSvtLinguConfigItemMutex::get());
@@ -906,7 +890,8 @@ sal_Bool SvtLinguConfig::SetProperty( sal_Int32 nPropertyHandle, const uno::Any
sal_Bool SvtLinguConfig::GetOptions( SvtLinguOptions &rOptions ) const
{
- return GetConfigItem().GetOptions( rOptions );
+ rOptions = GetConfigItem().GetOptions();
+ return sal_True;
}
sal_Bool SvtLinguConfig::IsReadOnly( const rtl::OUString &rPropertyName ) const