summaryrefslogtreecommitdiffstats
path: root/include/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-01-16 17:16:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-01-17 12:58:53 +0100
commitedf8e2b6630ca9cf7117d9c7a25ef9d7231c5a9b (patch)
treec39443c803df2bf7dbd2c0b0522dfe2e1fa255f6 /include/svtools
parentoox smartart, org chart: improve width of non-manager nodes (diff)
downloadcore-edf8e2b6630ca9cf7117d9c7a25ef9d7231c5a9b.tar.gz
core-edf8e2b6630ca9cf7117d9c7a25ef9d7231c5a9b.zip
Resolves: tdf#122744 pt/% values not limited to historic limits
Change-Id: I439bf27b3f57838d9d0ea19605fd1b684ad4f777 Reviewed-on: https://gerrit.libreoffice.org/66474 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/ctrlbox.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index ef2687cc24b0..5b2583e5ce13 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -421,6 +421,8 @@ class SVT_DLLPUBLIC SvtFontSizeBox
FontMetric aFontMetric;
const FontList* pFontList;
int nSavedValue;
+ int nMin;
+ int nMax;
FieldUnit eUnit;
sal_uInt16 nDecimalDigits;
sal_uInt16 nRelMin;
@@ -440,6 +442,7 @@ class SVT_DLLPUBLIC SvtFontSizeBox
void SetDecimalDigits(sal_uInt16 nDigits) { nDecimalDigits = nDigits; }
FieldUnit GetUnit() const { return eUnit; }
void SetUnit(FieldUnit _eUnit) { eUnit = _eUnit; }
+ void SetRange(int nNewMin, int nNewMax) { nMin = nNewMin; nMax = nNewMax; }
void SetValue(int nNewValue, FieldUnit eInUnit);
void InsertValue(int i);