summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dlgctl3d.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/svx/source/dialog/dlgctl3d.cxx b/svx/source/dialog/dlgctl3d.cxx
index 63a19499800a..bf0c3886738b 100644
--- a/svx/source/dialog/dlgctl3d.cxx
+++ b/svx/source/dialog/dlgctl3d.cxx
@@ -28,6 +28,7 @@
#include <svx/sphere3d.hxx>
#include <svx/cube3d.hxx>
#include <vcl/svapp.hxx>
+#include <vcl/builder.hxx>
#include <svx/helperhittest3d.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <svx/polygn3d.hxx>
@@ -960,6 +961,28 @@ SvxLightCtl3D::SvxLightCtl3D( Window* pParent, const ResId& rResId)
Init();
}
+SvxLightCtl3D::SvxLightCtl3D( Window* pParent)
+: Control(pParent, WB_BORDER | WB_TABSTOP),
+ maLightControl(this, 0),
+ maHorScroller(this, WB_HORZ | WB_DRAG),
+ maVerScroller(this, WB_VERT | WB_DRAG),
+ maSwitcher(this, 0)
+{
+ // init members
+ Init();
+}
+
+Size SvxLightCtl3D::GetOptimalSize() const
+{
+ return LogicToPixel(Size(80, 100), MAP_APPFONT);
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxLightCtl3D(Window *pParent, VclBuilder::stringmap &)
+{
+ return new SvxLightCtl3D(pParent);
+}
+
+
void SvxLightCtl3D::Init()
{
// #i58240# set HelpIDs for scrollbars and switcher