summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-18 22:07:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-18 22:07:56 +0100
commite20ebf2653bdd42e90ae97f1e77aa4591907b882 (patch)
tree4f6ae75f0fe59536ac1d509684e8d3db5d4f6db6 /vcl/inc
parent9aa8e185d49cd694ac1e00771c1ef2c02cf08382 (diff)
support width-chars property for labels
Change-Id: Iba51f30a5e74d1e486bce10901ccb58f3488ce97
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/vcl/fixed.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/vcl/fixed.hxx b/vcl/inc/vcl/fixed.hxx
index 397e3cf0c507..1d6f1bf6df9a 100644
--- a/vcl/inc/vcl/fixed.hxx
+++ b/vcl/inc/vcl/fixed.hxx
@@ -45,6 +45,7 @@ class VCL_DLLPUBLIC FixedText : public Control
{
private:
sal_Int32 m_nMaxWidthChars;
+ sal_Int32 m_nMinWidthChars;
using Control::ImplInitSettings;
using Window::ImplInit;
@@ -75,6 +76,8 @@ public:
void setMaxWidthChars(sal_Int32 nWidth);
sal_Int32 getMaxWidthChars() const { return m_nMaxWidthChars; }
+ void setMinWidthChars(sal_Int32 nWidth);
+ sal_Int32 getMinWidthChars() const { return m_nMinWidthChars; }
static Size CalcMinimumTextSize(Control const* pControl, long nMaxWidth = 0x7fffffff);
static Size getTextDimensions(Control const *pControl, const OUString &rTxt, long nMaxWidth);
Size CalcMinimumSize(long nMaxWidth = 0x7fffffff) const;