summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-06-06 10:42:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-06-06 20:45:52 +0200
commit0558926c2f9201a12b4c46efc36b8a4080af4d46 (patch)
tree7a13040d1aae85340ec5d9fe7e880ec8009fbab3 /svtools
parentc9d92e3a33e5f21ac2c72c58d49eeb138cece109 (diff)
use more officecfg for SvtMiscOptions
Change-Id: I6c87025fc0997b5edbc085fc88333fe9e150eb3e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152648 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/miscopt.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx
index 1ea1e3b7e695..f09d07feabed 100644
--- a/svtools/source/config/miscopt.cxx
+++ b/svtools/source/config/miscopt.cxx
@@ -31,6 +31,7 @@
#include <svtools/imgdef.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
+#include <officecfg/Office/Common.hxx>
#include <mutex>
#include <vector>
@@ -94,9 +95,6 @@ public:
// public interface
- sal_Int16 GetSymbolsSize() const
- { return m_nSymbolsSize; }
-
void SetSymbolsSize( sal_Int16 nSet );
static OUString GetIconTheme();
@@ -399,9 +397,9 @@ SvtMiscOptions::~SvtMiscOptions()
}
-sal_Int16 SvtMiscOptions::GetSymbolsSize() const
+sal_Int16 SvtMiscOptions::GetSymbolsSize()
{
- return m_pImpl->GetSymbolsSize();
+ return officecfg::Office::Common::Misc::SymbolSet::get();
}
void SvtMiscOptions::SetSymbolsSize( sal_Int16 nSet )
@@ -409,9 +407,9 @@ void SvtMiscOptions::SetSymbolsSize( sal_Int16 nSet )
m_pImpl->SetSymbolsSize( nSet );
}
-sal_Int16 SvtMiscOptions::GetCurrentSymbolsSize() const
+sal_Int16 SvtMiscOptions::GetCurrentSymbolsSize()
{
- sal_Int16 eOptSymbolsSize = m_pImpl->GetSymbolsSize();
+ sal_Int16 eOptSymbolsSize = GetSymbolsSize();
if ( eOptSymbolsSize == SFX_SYMBOLS_SIZE_AUTO )
{
@@ -429,12 +427,12 @@ sal_Int16 SvtMiscOptions::GetCurrentSymbolsSize() const
return eOptSymbolsSize;
}
-bool SvtMiscOptions::AreCurrentSymbolsLarge() const
+bool SvtMiscOptions::AreCurrentSymbolsLarge()
{
return ( GetCurrentSymbolsSize() == SFX_SYMBOLS_SIZE_LARGE || GetCurrentSymbolsSize() == SFX_SYMBOLS_SIZE_32);
}
-OUString SvtMiscOptions::GetIconTheme() const
+OUString SvtMiscOptions::GetIconTheme()
{
return SvtMiscOptions_Impl::GetIconTheme();
}