summaryrefslogtreecommitdiff
path: root/sfx2/source/inc/preview.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-11 10:27:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-11 12:18:55 +0000
commitf3609ac092bc520825bfd6b71ed20ecaba293317 (patch)
treee1b4b3a84495ff30f8d0eb93c40d3e3e90d9cafe /sfx2/source/inc/preview.hxx
parent89a838c193fb428c794e9d2760535ff6bfdcaf4d (diff)
convert load template dialog to .ui
and merge the expander and the "show preview" checkbox to be the same thing, i.e. expanded is showing, and not expanded is not showing Change-Id: I10e43bc36a0e2e5d1286a4dbad793ee3a700c97c
Diffstat (limited to 'sfx2/source/inc/preview.hxx')
-rw-r--r--sfx2/source/inc/preview.hxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/sfx2/source/inc/preview.hxx b/sfx2/source/inc/preview.hxx
index 19dd4a58a235..725ee3a59042 100644
--- a/sfx2/source/inc/preview.hxx
+++ b/sfx2/source/inc/preview.hxx
@@ -31,23 +31,21 @@ class SfxPreviewBase_Impl : public Window
protected:
::boost::shared_ptr<GDIMetaFile> pMetaFile;
public:
- SfxPreviewBase_Impl( Window* pParent,
- const ResId& rResId );
- ~SfxPreviewBase_Impl( );
+ SfxPreviewBase_Impl(Window* pParent, WinBits nStyle);
void SetObjectShell( SfxObjectShell* pObj );
virtual void Resize();
+ virtual Size GetOptimalSize() const;
};
-
-
class SfxPreviewWin_Impl: public SfxPreviewBase_Impl
{
protected:
virtual void Paint( const Rectangle& rRect );
public:
- SfxPreviewWin_Impl( Window* pParent,
- const ResId& rResId )
- : SfxPreviewBase_Impl( pParent, rResId ){};
+ SfxPreviewWin_Impl(Window* pParent, WinBits nStyle)
+ : SfxPreviewBase_Impl(pParent, nStyle)
+ {
+ }
static void ImpPaint(
const Rectangle& rRect, GDIMetaFile* pFile, Window* pWindow );
};