summaryrefslogtreecommitdiff
path: root/svx/inc/dragmt3d.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-10-17 08:40:10 +0000
committerOliver Bolte <obo@openoffice.org>2008-10-17 08:40:10 +0000
commita8ac4bc4145e7e558153b58c87b2def339aebe36 (patch)
treed1f5da0a1b702f12725b2b82117b7ff49872bb21 /svx/inc/dragmt3d.hxx
parentae562e931a98e708a75e8d140cf1ff24854acfc7 (diff)
CWS-TOOLING: integrate CWS aw057
Diffstat (limited to 'svx/inc/dragmt3d.hxx')
-rw-r--r--svx/inc/dragmt3d.hxx68
1 files changed, 31 insertions, 37 deletions
diff --git a/svx/inc/dragmt3d.hxx b/svx/inc/dragmt3d.hxx
index 5abf576f9ce3..54485f9e05c7 100644
--- a/svx/inc/dragmt3d.hxx
+++ b/svx/inc/dragmt3d.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dragmt3d.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.18.1 $
*
* This file is part of OpenOffice.org.
*
@@ -33,8 +33,9 @@
#include <svx/svddrgmt.hxx>
#include <svx/view3d.hxx>
-#include <basegfx/polygon/b3dpolygon.hxx>
+#include <basegfx/polygon/b3dpolypolygon.hxx>
#include <vcl/timer.hxx>
+#include <basegfx/matrix/b3dhommatrix.hxx>
class E3dScene;
@@ -43,35 +44,32 @@ class E3dScene;
|* Parameter fuer Interaktion eines 3D-Objektes
|*
\************************************************************************/
-
class E3dDragMethodUnit
{
public:
- E3dObject* p3DObj;
- basegfx::B3DPolygon aWireframePoly;
- basegfx::B3DHomMatrix aDisplayTransform;
- basegfx::B3DHomMatrix aInvDisplayTransform;
- basegfx::B3DHomMatrix aInitTransform;
- basegfx::B3DHomMatrix aTransform;
- INT32 nStartAngle;
- INT32 nLastAngle;
-
- // TimingVars
- UINT8 nOrigQuality;
-
- E3dDragMethodUnit() {}
+ E3dObject* mp3DObj;
+ basegfx::B3DPolyPolygon maWireframePoly;
+ basegfx::B3DHomMatrix maDisplayTransform;
+ basegfx::B3DHomMatrix maInvDisplayTransform;
+ basegfx::B3DHomMatrix maInitTransform;
+ basegfx::B3DHomMatrix maTransform;
+ sal_Int32 mnStartAngle;
+ sal_Int32 mnLastAngle;
+
+ E3dDragMethodUnit()
+ : mp3DObj(0),
+ maWireframePoly(),
+ maDisplayTransform(),
+ maInvDisplayTransform(),
+ maInitTransform(),
+ maTransform(),
+ mnStartAngle(0),
+ mnLastAngle(0)
+ {}
};
/*************************************************************************
|*
-|* Parameter fuer Interaktion eines 3D-Objektes
-|*
-\************************************************************************/
-
-SV_DECL_PTRARR_DEL(E3dDragMethodUnitGroup, E3dDragMethodUnit*, 1, 3)
-
-/*************************************************************************
-|*
|* Ableitung von SdrDragMethod fuer 3D-Objekte
|*
\************************************************************************/
@@ -79,13 +77,12 @@ SV_DECL_PTRARR_DEL(E3dDragMethodUnitGroup, E3dDragMethodUnit*, 1, 3)
class E3dDragMethod : public SdrDragMethod
{
protected:
- E3dDragMethodUnitGroup aGrp;
- E3dDragConstraint eConstraint;
- Point aLastPos;
- Rectangle aFullBound;
- BOOL bMoveFull;
- BOOL bMovedAtAll;
- Timer aCallbackTimer;
+ ::std::vector< E3dDragMethodUnit > maGrp;
+ E3dDragConstraint meConstraint;
+ Point maLastPos;
+ Rectangle maFullBound;
+ bool mbMoveFull;
+ bool mbMovedAtAll;
public:
TYPEINFO();
@@ -95,7 +92,6 @@ public:
BOOL bFull=FALSE);
virtual void TakeComment(String& rStr) const;
-
virtual FASTBOOL Beg();
virtual void Mov(const Point& rPnt);
virtual void Brk();
@@ -103,8 +99,6 @@ public:
E3dView& Get3DView() { return (E3dView&)rView; }
- DECL_LINK(TimerInterruptHdl, void*);
-
// for migration from XOR to overlay
virtual void CreateOverlayGeometry(::sdr::overlay::OverlayManager& rOverlayManager, ::sdr::overlay::OverlayObjectList& rOverlayList);
};
@@ -118,7 +112,7 @@ public:
class E3dDragRotate : public E3dDragMethod
{
- basegfx::B3DPoint aGlobalCenter;
+ basegfx::B3DPoint maGlobalCenter;
public:
TYPEINFO();
@@ -140,8 +134,8 @@ public:
class E3dDragMove : public E3dDragMethod
{
- SdrHdlKind eWhatDragHdl;
- Point aScaleFixPos;
+ SdrHdlKind meWhatDragHdl;
+ Point maScaleFixPos;
public:
TYPEINFO();