summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svx/SvxColorValueSet.hxx4
-rw-r--r--include/vcl/settings.hxx4
-rw-r--r--svx/source/tbxctrls/SvxColorValueSet.cxx5
-rw-r--r--vcl/source/app/settings.cxx6
4 files changed, 3 insertions, 16 deletions
diff --git a/include/svx/SvxColorValueSet.hxx b/include/svx/SvxColorValueSet.hxx
index 82792acf64f4..dd8f93348153 100644
--- a/include/svx/SvxColorValueSet.hxx
+++ b/include/svx/SvxColorValueSet.hxx
@@ -32,7 +32,9 @@ public:
virtual void Resize() override;
- static sal_uInt32 getMaxRowCount();
+ /* Maximum row/line count for the ColorValueSet control. If more lines would be needed, a scrollbar will
+ be used. */
+ static constexpr sal_uInt32 getMaxRowCount() { return 10; }
static sal_uInt32 getEntryEdgeLength();
static sal_uInt32 getColumnCount();
diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx
index 1e18e005cb70..38b7d423936c 100644
--- a/include/vcl/settings.hxx
+++ b/include/vcl/settings.hxx
@@ -597,10 +597,6 @@ public:
void SetColorValueSetColumnCount(sal_uInt16 nCount);
sal_uInt16 GetColorValueSetColumnCount() const;
- // maximum row/line count for the ColorValueSet control. If more lines would be needed, a scrollbar will
- // be used.
- static sal_uInt16 GetColorValueSetMaximumRowCount();
-
void SetListBoxPreviewDefaultLogicSize(Size const & rSize);
const Size& GetListBoxPreviewDefaultPixelSize() const;
diff --git a/svx/source/tbxctrls/SvxColorValueSet.cxx b/svx/source/tbxctrls/SvxColorValueSet.cxx
index e349083e34aa..9176c00a2a8d 100644
--- a/svx/source/tbxctrls/SvxColorValueSet.cxx
+++ b/svx/source/tbxctrls/SvxColorValueSet.cxx
@@ -36,11 +36,6 @@ FactoryFunction SvxColorValueSet::GetUITestFactory() const
return SvxColorValueSetUIObject::create;
}
-sal_uInt32 SvxColorValueSet::getMaxRowCount()
-{
- return StyleSettings::GetColorValueSetMaximumRowCount();
-}
-
sal_uInt32 SvxColorValueSet::getEntryEdgeLength()
{
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index bfce93a9736b..66a285288242 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -2137,12 +2137,6 @@ StyleSettings::GetColorValueSetColumnCount() const
}
sal_uInt16
-StyleSettings::GetColorValueSetMaximumRowCount()
-{
- return 10;
-}
-
-sal_uInt16
StyleSettings::GetListBoxPreviewDefaultLineWidth()
{
return 1;