summaryrefslogtreecommitdiff
path: root/svx/source/dialog/contwnd.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-05 12:51:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-05 15:41:30 +0100
commit149c7ac26a97c96574fbbd86225d1486cef13417 (patch)
tree5de0d9d0a669d0e9ac5d18c196e51ae86bf9facf /svx/source/dialog/contwnd.cxx
parent8b4c5348a31f52dd69f5611897aeaf1551a8da09 (diff)
convert floating RID_SVXDLG_CONTOUR to .ui
Change-Id: I5c441f6d4fccb771a0b2a4a1315497335ba8f81f
Diffstat (limited to 'svx/source/dialog/contwnd.cxx')
-rw-r--r--svx/source/dialog/contwnd.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/svx/source/dialog/contwnd.cxx b/svx/source/dialog/contwnd.cxx
index d1765f6ee936..6289f3db1e75 100644
--- a/svx/source/dialog/contwnd.cxx
+++ b/svx/source/dialog/contwnd.cxx
@@ -20,7 +20,6 @@
#include <svx/xoutbmp.hxx>
#include <svx/dialogs.hrc>
#include <svx/svxids.hrc>
-#include <contdlg.hrc>
#include <contwnd.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdopath.hxx>
@@ -34,8 +33,8 @@ using namespace com::sun::star;
#define TRANSCOL Color( COL_WHITE )
-ContourWindow::ContourWindow( Window* pParent, const ResId& rResId ) :
- GraphCtrl ( pParent, rResId ),
+ContourWindow::ContourWindow( Window* pParent, WinBits nBits ) :
+ GraphCtrl ( pParent, nBits ),
aWorkRect ( 0, 0, 0, 0 ),
bPipetteMode ( false ),
bWorkplaceMode ( false ),
@@ -267,4 +266,9 @@ void ContourWindow::Paint( const Rectangle& rRect )
pView->EndCompleteRedraw(*pPaintWindow, true);
}
+Size ContourWindow::GetOptimalSize() const
+{
+ return LogicToPixel(Size(270, 170), MAP_APPFONT);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */