diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-09 11:58:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-09 11:58:54 +0100 |
commit | 7560f765b32bf9969b89b28c6733faa8098f1809 (patch) | |
tree | 36c24f5ed6c1a5446179f72d07f03edfdd642a1d /svx/source/dialog/measctrl.cxx | |
parent | a8dd49b9fc59371ff8edb31082bbd4f1b6179b1c (diff) |
unify strip previews optimal size in one place
Change-Id: I6ae1073d013c9d9bbca39c505955436cd4950d1b
Diffstat (limited to 'svx/source/dialog/measctrl.cxx')
-rw-r--r-- | svx/source/dialog/measctrl.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/svx/source/dialog/measctrl.cxx b/svx/source/dialog/measctrl.cxx index 646decbf06d5..1a630eeb3236 100644 --- a/svx/source/dialog/measctrl.cxx +++ b/svx/source/dialog/measctrl.cxx @@ -17,13 +17,13 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sfx2/dialoghelper.hxx> #include <svx/svdomeas.hxx> #include <svx/svdmodel.hxx> -#include <vcl/builder.hxx> - #include "svx/measctrl.hxx" #include <svx/dialmgr.hxx> #include "svx/dlgutil.hxx" +#include <vcl/builder.hxx> SvxXMeasurePreview::SvxXMeasurePreview( Window* pParent,const ResId& rResId,const SfxItemSet& rInAttrs) : Control ( pParent, rResId ) @@ -98,6 +98,10 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxXMeasurePreview(Window * return new SvxXMeasurePreview(pParent, nWinStyle); } +Size SvxXMeasurePreview::GetOptimalSize() const +{ + return getPreviewStripSize(this); +} SvxXMeasurePreview::~SvxXMeasurePreview() { |