summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unopage.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2000-12-07 14:22:53 +0000
committerArmin Weiss <aw@openoffice.org>2000-12-07 14:22:53 +0000
commit24b81f500aaf760b115c2c0dac29fb074b35a122 (patch)
tree90e3c296adab964074d9049b08b41f2c1872846e /svx/source/unodraw/unopage.cxx
parent0ab68bca5a80553606c27d9afa0a9cfc74ddf574 (diff)
#80594# added support for XML 3D extrude and lathe objects, some more
initialisations needed to be done
Diffstat (limited to 'svx/source/unodraw/unopage.cxx')
-rw-r--r--svx/source/unodraw/unopage.cxx35
1 files changed, 32 insertions, 3 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index 27d53e85b8f6..ec066ff46183 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unopage.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: sj $ $Date: 2000-12-06 11:58:06 $
+ * last change: $Author: aw $ $Date: 2000-12-07 15:22:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -93,6 +93,14 @@
#include "unoapi.hxx"
#include "svdomeas.hxx"
+#ifndef _E3D_EXTRUD3D_HXX
+#include <extrud3d.hxx>
+#endif
+
+#ifndef _E3D_LATHE3D_HXX
+#include <lathe3d.hxx>
+#endif
+
using namespace ::vos;
using namespace ::rtl;
using namespace ::cppu;
@@ -485,7 +493,28 @@ SdrObject *SvxDrawPage::_CreateSdrObject( const Reference< drawing::XShape > & x
pScene->SetRectsDirty();
pScene->InitTransformationSet();
}
-
+ else if(pNewObj->ISA(E3dExtrudeObj))
+ {
+ E3dExtrudeObj* pObj = (E3dExtrudeObj*)pNewObj;
+ Polygon3D aNewP(3);
+ aNewP[0] = Vector3D(0,0,0);
+ aNewP[1] = Vector3D(0,1,0);
+ aNewP[2] = Vector3D(1,0,0);
+ PolyPolygon3D aNewPP(aNewP);
+ pObj->SetExtrudePolygon(aNewPP);
+ pObj->SetExtrudeCharacterMode(TRUE);
+ }
+ else if(pNewObj->ISA(E3dLatheObj))
+ {
+ E3dLatheObj* pObj = (E3dLatheObj*)pNewObj;
+ Polygon3D aNewP(3);
+ aNewP[0] = Vector3D(0,0,0);
+ aNewP[1] = Vector3D(0,1,0);
+ aNewP[2] = Vector3D(1,0,0);
+ PolyPolygon3D aNewPP(aNewP);
+ pObj->SetPolyPoly3D(aNewPP);
+ pObj->SetLatheCharacterMode(TRUE);
+ }
}
}