diff options
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/config/asiancfg.cxx | 11 | ||||
-rw-r--r-- | svl/source/items/itemprop.cxx | 9 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 9 |
3 files changed, 19 insertions, 10 deletions
diff --git a/svl/source/config/asiancfg.cxx b/svl/source/config/asiancfg.cxx index a8f4e08e519d..d1515f6e76f7 100644 --- a/svl/source/config/asiancfg.cxx +++ b/svl/source/config/asiancfg.cxx @@ -71,7 +71,8 @@ void SvxAsianConfig::Commit() { impl_->batch->commit(); } -bool SvxAsianConfig::IsKerningWesternTextOnly() const { +// static +bool SvxAsianConfig::IsKerningWesternTextOnly() { return officecfg::Office::Common::AsianLayout::IsKerningWesternTextOnly::get(); } @@ -81,7 +82,8 @@ void SvxAsianConfig::SetKerningWesternTextOnly(bool value) { value, impl_->batch); } -CharCompressType SvxAsianConfig::GetCharDistanceCompression() const { +// static +CharCompressType SvxAsianConfig::GetCharDistanceCompression() { return static_cast<CharCompressType>(officecfg::Office::Common::AsianLayout::CompressCharacterDistance::get()); } @@ -90,8 +92,8 @@ void SvxAsianConfig::SetCharDistanceCompression(CharCompressType value) { static_cast<sal_uInt16>(value), impl_->batch); } +// static css::uno::Sequence< css::lang::Locale > SvxAsianConfig::GetStartEndCharLocales() - const { const css::uno::Sequence< OUString > ns( officecfg::Office::Common::AsianLayout::StartEndCharacters::get()-> @@ -103,9 +105,10 @@ css::uno::Sequence< css::lang::Locale > SvxAsianConfig::GetStartEndCharLocales() return ls; } +// static bool SvxAsianConfig::GetStartEndChars( css::lang::Locale const & locale, OUString & startChars, - OUString & endChars) const + OUString & endChars) { css::uno::Reference< css::container::XNameAccess > set( officecfg::Office::Common::AsianLayout::StartEndCharacters::get()); diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index 8478eaadc98a..9595ce62ea55 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -113,8 +113,9 @@ SfxItemPropertySet::~SfxItemPropertySet() { } +// static void SfxItemPropertySet::getPropertyValue( const SfxItemPropertyMapEntry& rEntry, - const SfxItemSet& rSet, Any& rAny ) const + const SfxItemSet& rSet, Any& rAny ) { // get the SfxPoolItem const SfxPoolItem* pItem = nullptr; @@ -159,9 +160,10 @@ Any SfxItemPropertySet::getPropertyValue( const OUString &rName, return aVal; } +// static void SfxItemPropertySet::setPropertyValue( const SfxItemPropertyMapEntry& rEntry, const Any& aVal, - SfxItemSet& rSet ) const + SfxItemSet& rSet ) { // get the SfxPoolItem const SfxPoolItem* pItem = nullptr; @@ -196,7 +198,8 @@ void SfxItemPropertySet::setPropertyValue( const OUString &rName, setPropertyValue(*pEntry, aVal, rSet); } -PropertyState SfxItemPropertySet::getPropertyState(const SfxItemPropertyMapEntry& rEntry, const SfxItemSet& rSet) const +// static +PropertyState SfxItemPropertySet::getPropertyState(const SfxItemPropertyMapEntry& rEntry, const SfxItemSet& rSet) noexcept { PropertyState eRet = PropertyState_DIRECT_VALUE; diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index b4ef00d2a96c..ace560bad560 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -4917,17 +4917,20 @@ const NfKeywordTable & SvNumberFormatter::GetKeywords( sal_uInt32 nKey ) return pFormatScanner->GetKeywords(); } -const NfKeywordTable & SvNumberFormatter::GetEnglishKeywords() const +// static +const NfKeywordTable & SvNumberFormatter::GetEnglishKeywords() { return ImpSvNumberformatScan::GetEnglishKeywords(); } -const std::vector<Color> & SvNumberFormatter::GetStandardColors() const +// static +const std::vector<Color> & SvNumberFormatter::GetStandardColors() { return ImpSvNumberformatScan::GetStandardColors(); } -size_t SvNumberFormatter::GetMaxDefaultColors() const +// static +size_t SvNumberFormatter::GetMaxDefaultColors() { return ImpSvNumberformatScan::GetMaxDefaultColors(); } |