summaryrefslogtreecommitdiffstats
path: root/svx/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-01 10:17:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:07 +0100
commit792a4cc0f88e97ab210171dd6d0e166eab435f08 (patch)
treeeaedfae842b3d81ec6152381c439b62ee40d87f8 /svx/inc
parentset sane-ish maximum dialog size (diff)
downloadcore-792a4cc0f88e97ab210171dd6d0e166eab435f08.tar.gz
core-792a4cc0f88e97ab210171dd6d0e166eab435f08.zip
implement a basic optimal size for the preview window
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svx/fntctrl.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/inc/svx/fntctrl.hxx b/svx/inc/svx/fntctrl.hxx
index 2ba8483f3385..2b32f5f694f2 100644
--- a/svx/inc/svx/fntctrl.hxx
+++ b/svx/inc/svx/fntctrl.hxx
@@ -54,6 +54,8 @@ private:
SVX_DLLPRIVATE void SetFontSize(const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont);
SVX_DLLPRIVATE void SetFontLang(const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont);
+ Size m_aInitialSize;
+
public:
SvxFontPrevWindow( Window* pParent, const ResId& rId );
virtual ~SvxFontPrevWindow();
@@ -94,6 +96,8 @@ public:
void SetFromItemSet( const SfxItemSet &rSet,
bool bPreviewBackgroundToCharacter = false );
+
+ virtual Size GetOptimalSize(WindowSizeType eType) const;
};
#endif // #ifndef _SVX_FNTCTRL_HXX