diff options
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/dlgctl3d.cxx | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/svx/source/dialog/dlgctl3d.cxx b/svx/source/dialog/dlgctl3d.cxx index 4711b30e64bf..ce4358124f81 100644 --- a/svx/source/dialog/dlgctl3d.cxx +++ b/svx/source/dialog/dlgctl3d.cxx @@ -41,8 +41,8 @@ using namespace com::sun::star; -Svx3DPreviewControl::Svx3DPreviewControl(vcl::Window* pParent, const ResId& rResId) -: Control(pParent, rResId), +Svx3DPreviewControl::Svx3DPreviewControl(vcl::Window* pParent, WinBits nStyle) +: Control(pParent, nStyle), mpModel(0), mpFmPage(0), mp3DView(0), @@ -57,20 +57,14 @@ Svx3DPreviewControl::Svx3DPreviewControl(vcl::Window* pParent, const ResId& rRes SetBackground(); } -Svx3DPreviewControl::Svx3DPreviewControl(vcl::Window* pParent, WinBits nStyle) -: Control(pParent, nStyle), - mpModel(0), - mpFmPage(0), - mp3DView(0), - mpScene(0), - mp3DObj(0), - mnObjectType(PREVIEW_OBJECTTYPE_SPHERE) +Size Svx3DPreviewControl::GetOptimalSize() const { - Construct(); + return LogicToPixel(Size(80, 100), MAP_APPFONT); +} - // do not paint background self, DrawingLayer paints this buffered and as page - SetControlBackground(); - SetBackground(); +extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvx3DPreviewControl(vcl::Window *pParent, VclBuilder::stringmap &) +{ + return new Svx3DPreviewControl(pParent); } Svx3DPreviewControl::~Svx3DPreviewControl() @@ -952,19 +946,6 @@ basegfx::B3DVector Svx3DLightControl::GetLightDirection(sal_uInt32 nNum) const return basegfx::B3DVector(); } - - -SvxLightCtl3D::SvxLightCtl3D( vcl::Window* pParent, const ResId& rResId) -: Control(pParent, rResId), - maLightControl(this, 0), - maHorScroller(this, WB_HORZ | WB_DRAG), - maVerScroller(this, WB_VERT | WB_DRAG), - maSwitcher(this, 0) -{ - // init members - Init(); -} - SvxLightCtl3D::SvxLightCtl3D( vcl::Window* pParent) : Control(pParent, WB_BORDER | WB_TABSTOP), maLightControl(this, 0), @@ -986,7 +967,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvxLightCtl3D(vcl::Win return new SvxLightCtl3D(pParent); } - void SvxLightCtl3D::Init() { // #i58240# set HelpIDs for scrollbars and switcher |