summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-16 09:42:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-08-16 13:59:31 +0100
commitb36e10d4e15fc83717a83d8fe5fd724f1ee0d102 (patch)
treee98b76325959d0fd959dc80292379a37c57eff43 /svx
parent071f8b97ab92148058b714de25fce87fc1d88f3d (diff)
convert frame type page to .ui
Change-Id: Id2be1940652e0d26efe4fdb92b750039744632de
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/swframeexample.cxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/svx/source/dialog/swframeexample.cxx b/svx/source/dialog/swframeexample.cxx
index 740fef4c738e..ee6bfdff4504 100644
--- a/svx/source/dialog/swframeexample.cxx
+++ b/svx/source/dialog/swframeexample.cxx
@@ -18,6 +18,7 @@
*/
#include <tools/poly.hxx>
+#include <vcl/builder.hxx>
#include <vcl/metric.hxx>
#include <vcl/svapp.hxx>
#include <svtools/colorcfg.hxx>
@@ -50,6 +51,33 @@ SvxSwFrameExample::SvxSwFrameExample( Window *pParent, const ResId& rResID ) :
SetMapMode(MAP_PIXEL);
}
+SvxSwFrameExample::SvxSwFrameExample( Window *pParent, WinBits nStyle ) :
+
+ Window(pParent, nStyle),
+
+ nHAlign (HoriOrientation::CENTER),
+ nHRel (RelOrientation::FRAME),
+ nVAlign (VertOrientation::TOP),
+ nVRel (RelOrientation::PRINT_AREA),
+ nWrap (WrapTextMode_NONE),
+ nAnchor (TextContentAnchorType_AT_PAGE),
+ bTrans (sal_False),
+ aRelPos (Point(0,0))
+{
+ InitColors_Impl();
+ SetMapMode(MAP_PIXEL);
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxSwFrameExample(Window *pParent, VclBuilder::stringmap &)
+{
+ return new SvxSwFrameExample(pParent, 0);
+}
+
+Size SvxSwFrameExample::GetOptimalSize() const
+{
+ return LogicToPixel(Size(52, 86), MapMode(MAP_APPFONT));
+}
+
SvxSwFrameExample::~SvxSwFrameExample()
{
}