diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-20 21:04:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:03 +0100 |
commit | 3e16300a08c9394be8b58d1ea56eb64b60d0aeac (patch) | |
tree | 5e288038c7715c99e92069216d6da68fc85c2b14 /sw | |
parent | e01ec6abecb8b0d6da6a7c6516a59128e14c6f32 (diff) |
only Dialog has SetMinOutputSizePixel
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/dialog/wordcountdialog.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/inc/wordcountdialog.hxx | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/dialog/wordcountdialog.cxx b/sw/source/ui/dialog/wordcountdialog.cxx index 9ca3624d7091..5c281ab76379 100644 --- a/sw/source/ui/dialog/wordcountdialog.cxx +++ b/sw/source/ui/dialog/wordcountdialog.cxx @@ -40,7 +40,7 @@ #include <wrtsh.hxx> //TODO, add asian/non-asian word count to UI when CJK mode is enabled. -SwWordCountDialog::SwWordCountDialog(Window* pParent) +SwWordCountDialog::SwWordCountDialog(Dialog* pParent) : dialog_vbox1(pParent) , box1(&dialog_vbox1) , aCurrentSelection(&box1) @@ -166,6 +166,8 @@ SwWordCountDialog::SwWordCountDialog(Window* pParent) fprintf(stderr, "aCurrentSelectionText is is %p\n", &aCurrentSelectionText); fprintf(stderr, "aCurrentSelection is is %p\n", &aCurrentSelection); fprintf(stderr, "dialog_vbox1 is is %p\n", &dialog_vbox1); + + pParent->SetMinOutputSizePixel(dialog_vbox1.GetOptimalSize(WINDOWSIZE_PREFERRED)); } IMPL_LINK_NOARG(SwWordCountDialog, OkHdl) diff --git a/sw/source/ui/inc/wordcountdialog.hxx b/sw/source/ui/inc/wordcountdialog.hxx index 316e5f0deac6..c124170b3e93 100644 --- a/sw/source/ui/inc/wordcountdialog.hxx +++ b/sw/source/ui/inc/wordcountdialog.hxx @@ -79,7 +79,7 @@ class SwWordCountDialog void InitControls(); public: - SwWordCountDialog(Window* pParent); + SwWordCountDialog(Dialog* pParent); ~SwWordCountDialog(); void SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc); |