summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-26 17:09:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-26 17:11:56 +0100
commit902276557566bbcbcef7e8de4d119196fdcfa345 (patch)
tree845f8be0300bada6b6e3515326d853648da3939e /sfx2
parent6d21d95f2d24a4f1fd0be5e754953f6cf718e56a (diff)
stash rather arbitrary widget sizes in one place
Change-Id: I26cc3185d6abbce516f7c7d9243962b873587859
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/dialoghelper.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sfx2/source/dialog/dialoghelper.cxx b/sfx2/source/dialog/dialoghelper.cxx
index e0ac93107780..c3440e6bf5be 100644
--- a/sfx2/source/dialog/dialoghelper.cxx
+++ b/sfx2/source/dialog/dialoghelper.cxx
@@ -57,6 +57,16 @@ Size getParagraphPreviewOptimalSize(const Window *pReference)
return pReference->LogicToPixel(Size(68 , 112), MAP_APPFONT);
}
+Size getDrawPreviewOptimalSize(const Window *pReference)
+{
+ return pReference->LogicToPixel(Size(88, 42), MAP_APPFONT);
+}
+
+Size getDrawListBoxOptimalSize(const Window *pReference)
+{
+ return pReference->LogicToPixel(Size(88, 110), MAP_APPFONT);
+}
+
OUString SFX2_DLLPUBLIC getWidestTime(const LocaleDataWrapper& rWrapper)
{
Date aDate(22, 12, 2000);