summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-09 11:58:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-09 11:58:54 +0100
commit7560f765b32bf9969b89b28c6733faa8098f1809 (patch)
tree36c24f5ed6c1a5446179f72d07f03edfdd642a1d /include
parenta8dd49b9fc59371ff8edb31082bbd4f1b6179b1c (diff)
unify strip previews optimal size in one place
Change-Id: I6ae1073d013c9d9bbca39c505955436cd4950d1b
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/dialoghelper.hxx2
-rw-r--r--include/svx/dlgctrl.hxx1
-rw-r--r--include/svx/fntctrl.hxx2
-rw-r--r--include/svx/measctrl.hxx1
4 files changed, 4 insertions, 2 deletions
diff --git a/include/sfx2/dialoghelper.hxx b/include/sfx2/dialoghelper.hxx
index d31a09492ecc..5b09eb56b73c 100644
--- a/include/sfx2/dialoghelper.hxx
+++ b/include/sfx2/dialoghelper.hxx
@@ -34,6 +34,8 @@ Size SFX2_DLLPUBLIC getDrawPreviewOptimalSize(const Window *pReference);
Size SFX2_DLLPUBLIC getDrawListBoxOptimalSize(const Window *pReference);
+Size SFX2_DLLPUBLIC getPreviewStripSize(const Window *pReference);
+
OUString SFX2_DLLPUBLIC getWidestTime(const LocaleDataWrapper& rWrapper);
OUString SFX2_DLLPUBLIC formatTime(const DateTime& rDateTime, const LocaleDataWrapper& rWrapper);
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx
index c34d1543cb27..64b92ae9531a 100644
--- a/include/svx/dlgctrl.hxx
+++ b/include/svx/dlgctrl.hxx
@@ -397,6 +397,7 @@ public:
virtual void Paint( const Rectangle& rRect );
virtual void Resize();
+ virtual Size GetOptimalSize() const;
};
/*************************************************************************
diff --git a/include/svx/fntctrl.hxx b/include/svx/fntctrl.hxx
index 93edc0d04b13..f4c62621f673 100644
--- a/include/svx/fntctrl.hxx
+++ b/include/svx/fntctrl.hxx
@@ -45,8 +45,6 @@ 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 );
SvxFontPrevWindow(Window* pParent, WinBits nStyle);
diff --git a/include/svx/measctrl.hxx b/include/svx/measctrl.hxx
index f17190a3edc1..fde082fbb7e7 100644
--- a/include/svx/measctrl.hxx
+++ b/include/svx/measctrl.hxx
@@ -48,6 +48,7 @@ public:
virtual void Paint(const Rectangle& rRect);
virtual void Resize();
virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual Size GetOptimalSize() const;
void SetAttributes( const SfxItemSet& rInAttrs );