diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-26 17:08:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-28 08:57:46 +0000 |
commit | a52ee51269a47e52d68405caf8507e1abaa6fd8f (patch) | |
tree | f41a54e71288dd9ba9f8224508f111d550cad226 /sw/source/core/text/portxt.hxx | |
parent | 328d747821c937508b3464567e2eb1b68205765a (diff) |
Resolves: fdo#73936 make FormFieldDropDowns a real fieldportion
split the checkbox and list and use a field portion for the list.
That way it knows how to line break correctly wrt hardspaces and doesn't hang
when the situation arises.
Change-Id: I46d73f19ef8e51e7c21c8783ce70bb80d98a784c
Diffstat (limited to 'sw/source/core/text/portxt.hxx')
-rw-r--r-- | sw/source/core/text/portxt.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/core/text/portxt.hxx b/sw/source/core/text/portxt.hxx index 2a9b275c3bcc..b84dd2a215df 100644 --- a/sw/source/core/text/portxt.hxx +++ b/sw/source/core/text/portxt.hxx @@ -107,11 +107,12 @@ class SwFieldMarkPortion : public SwTxtPortion virtual bool Format( SwTxtFormatInfo &rInf ) SAL_OVERRIDE; }; -class SwFieldFormPortion : public SwTxtPortion +class SwFieldFormCheckboxPortion : public SwTxtPortion { - public: - inline SwFieldFormPortion() : SwTxtPortion() - { } +public: + SwFieldFormCheckboxPortion() : SwTxtPortion() + { + } virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE; virtual bool Format( SwTxtFormatInfo &rInf ) SAL_OVERRIDE; }; |