Kaydet (Commit) 346e0ffe authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS pathfinder01 (1.3.82); FILE MERGED

2007/07/01 16:35:22 cl 1.3.82.1: #i41800# added inteface IPolyPolygonEditorControler to allow edit of non marked path objects
üst c5f89aeb
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: svdpoev.hxx,v $ * $RCSfile: svdpoev.hxx,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: kz $ $Date: 2007-05-09 13:29:55 $ * last change: $Author: rt $ $Date: 2007-07-06 13:18:29 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -44,24 +44,7 @@ ...@@ -44,24 +44,7 @@
#include <svx/svdedtv.hxx> #include <svx/svdedtv.hxx>
#endif #endif
//************************************************************ #include "svx/ipolypolygoneditorcontroller.hxx"
// Defines
//************************************************************
enum SdrPathSmoothKind {SDRPATHSMOOTH_DONTCARE, // nur fuer Statusabfrage
SDRPATHSMOOTH_ANGULAR, // Eckig
SDRPATHSMOOTH_ASYMMETRIC, // unsymmetrisch, normales Smooth
SDRPATHSMOOTH_SYMMETRIC}; // symmetrisch
enum SdrPathSegmentKind {SDRPATHSEGMENT_DONTCARE, // nur fuer Statusabfrage
SDRPATHSEGMENT_LINE, // gerader Streckenabschnitt
SDRPATHSEGMENT_CURVE, // Kurvenabschnitt (Bezier)
SDRPATHSEGMENT_TOGGLE}; // nur fuer Set: Toggle
enum SdrObjClosedKind {SDROBJCLOSED_DONTCARE, // nur fuer Statusabfrage
SDROBJCLOSED_OPEN, // Objekte geoeffnet (Linie, Polyline, ...)
SDROBJCLOSED_CLOSED, // Objekte geschlossen (Polygon, ...)
SDROBJCLOSED_TOGGLE}; // nur fuer Set: Toggle (not implemented yet)
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
...@@ -77,7 +60,7 @@ enum SdrObjClosedKind {SDROBJCLOSED_DONTCARE, // nur fuer Statusabfrage ...@@ -77,7 +60,7 @@ enum SdrObjClosedKind {SDROBJCLOSED_DONTCARE, // nur fuer Statusabfrage
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
class SVX_DLLPUBLIC SdrPolyEditView: public SdrEditView class SVX_DLLPUBLIC SdrPolyEditView: public SdrEditView, public IPolyPolygonEditorController
{ {
friend class SdrEditView; friend class SdrEditView;
...@@ -105,18 +88,18 @@ protected: ...@@ -105,18 +88,18 @@ protected:
virtual ~SdrPolyEditView(); virtual ~SdrPolyEditView();
public: public:
BOOL IsSetMarkedPointsSmoothPossible() const { ForcePossibilities(); return bSetMarkedPointsSmoothPossible; } BOOL IsSetMarkedPointsSmoothPossible() const;
SdrPathSmoothKind GetMarkedPointsSmooth() const { ForcePossibilities(); return eMarkedPointsSmooth; } SdrPathSmoothKind GetMarkedPointsSmooth() const;
void SetMarkedPointsSmooth(SdrPathSmoothKind eKind); void SetMarkedPointsSmooth(SdrPathSmoothKind eKind);
// Ein PolySegment kann eine Strecke oder eine Bezierkurve sein. // Ein PolySegment kann eine Strecke oder eine Bezierkurve sein.
BOOL IsSetMarkedSegmentsKindPossible() const { ForcePossibilities(); return bSetMarkedSegmentsKindPossible; } BOOL IsSetMarkedSegmentsKindPossible() const;
SdrPathSegmentKind GetMarkedSegmentsKind() const { ForcePossibilities(); return eMarkedSegmentsKind; } SdrPathSegmentKind GetMarkedSegmentsKind() const;
void SetMarkedSegmentsKind(SdrPathSegmentKind eKind); void SetMarkedSegmentsKind(SdrPathSegmentKind eKind);
// Moeglicherweise ist das Obj hinterher geloescht: // Moeglicherweise ist das Obj hinterher geloescht:
void DeleteMarkedPoints(); void DeleteMarkedPoints();
BOOL IsDeleteMarkedPointsPossible() const { return HasMarkedPoints(); } BOOL IsDeleteMarkedPointsPossible() const;
void MoveMarkedPoints(const Size& rSiz, bool bCopy=false); void MoveMarkedPoints(const Size& rSiz, bool bCopy=false);
void ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy=false); void ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy=false);
...@@ -132,6 +115,8 @@ public: ...@@ -132,6 +115,8 @@ public:
void CloseMarkedObjects(BOOL bToggle=FALSE, BOOL bOpen=FALSE); // , long nOpenDistance=0); void CloseMarkedObjects(BOOL bToggle=FALSE, BOOL bOpen=FALSE); // , long nOpenDistance=0);
bool IsOpenCloseMarkedObjectsPossible() const; bool IsOpenCloseMarkedObjectsPossible() const;
SdrObjClosedKind GetMarkedObjectsClosedState() const; SdrObjClosedKind GetMarkedObjectsClosedState() const;
void CheckPolyPossibilitiesHelper( SdrMark* pM, bool& b1stSmooth, bool& b1stSegm, bool& bCurve, bool& bSmoothFuz, bool& bSegmFuz, basegfx::B2VectorContinuity& eSmooth );
}; };
#endif //_SVDPOEV_HXX #endif //_SVDPOEV_HXX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment