summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@edx.srv.br>2013-12-08 19:33:42 -0200
committerCaolán McNamara <caolanm@redhat.com>2013-12-09 20:32:52 +0000
commit56e1133f724896aec3f5b5c409fb5917a3b13eb4 (patch)
tree480f9aa58416a1caedc6c2a08cad85dda553962c /svx
parent9f87de91cee05656808a98ab1bd65ad9509ef7df (diff)
Convert chart 3D scene illumination to .ui
Change-Id: I55e56196818e181d16e74ae93376ff4ff1c4c395 Reviewed-on: https://gerrit.libreoffice.org/6998 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
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