1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _SDR_IPOLYPOLYGONEDITORCONTROLLER_HXX 25 #define _SDR_IPOLYPOLYGONEDITORCONTROLLER_HXX 26 27 #include "svx/svxdllapi.h" 28 #include <svx/svdedtv.hxx> 29 30 //************************************************************ 31 // Defines 32 //************************************************************ 33 34 enum SdrPathSmoothKind {SDRPATHSMOOTH_DONTCARE, // nur fuer Statusabfrage 35 SDRPATHSMOOTH_ANGULAR, // Eckig 36 SDRPATHSMOOTH_ASYMMETRIC, // unsymmetrisch, normales Smooth 37 SDRPATHSMOOTH_SYMMETRIC}; // symmetrisch 38 39 enum SdrPathSegmentKind {SDRPATHSEGMENT_DONTCARE, // nur fuer Statusabfrage 40 SDRPATHSEGMENT_LINE, // gerader Streckenabschnitt 41 SDRPATHSEGMENT_CURVE, // Kurvenabschnitt (Bezier) 42 SDRPATHSEGMENT_TOGGLE}; // nur fuer Set: Toggle 43 44 enum SdrObjClosedKind {SDROBJCLOSED_DONTCARE, // nur fuer Statusabfrage 45 SDROBJCLOSED_OPEN, // Objekte geoeffnet (Linie, Polyline, ...) 46 SDROBJCLOSED_CLOSED, // Objekte geschlossen (Polygon, ...) 47 SDROBJCLOSED_TOGGLE}; // nur fuer Set: Toggle (not implemented yet) 48 49 class IPolyPolygonEditorController 50 { 51 public: 52 virtual void DeleteMarkedPoints() = 0; 53 virtual sal_Bool IsDeleteMarkedPointsPossible() const = 0; 54 55 virtual void RipUpAtMarkedPoints() = 0; 56 virtual bool IsRipUpAtMarkedPointsPossible() const = 0; 57 58 virtual sal_Bool IsSetMarkedSegmentsKindPossible() const = 0; 59 virtual SdrPathSegmentKind GetMarkedSegmentsKind() const = 0; 60 virtual void SetMarkedSegmentsKind(SdrPathSegmentKind eKind) = 0; 61 62 virtual sal_Bool IsSetMarkedPointsSmoothPossible() const = 0; 63 virtual SdrPathSmoothKind GetMarkedPointsSmooth() const = 0; 64 virtual void SetMarkedPointsSmooth(SdrPathSmoothKind eKind) = 0; 65 66 virtual void CloseMarkedObjects(sal_Bool bToggle, sal_Bool bOpen ) = 0; 67 virtual bool IsOpenCloseMarkedObjectsPossible() const = 0; 68 virtual SdrObjClosedKind GetMarkedObjectsClosedState() const = 0; 69 }; 70 71 #endif //_SDR_IPOLYPOLYGONEDITORCONTROLLER_HXX 72 73