Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef INCLUDED_SVX_IPOLYPOLYGONEDITORCONTROLLER_HXX
21 : #define INCLUDED_SVX_IPOLYPOLYGONEDITORCONTROLLER_HXX
22 :
23 : #include <svx/svxdllapi.h>
24 : #include <svx/svdedtv.hxx>
25 :
26 :
27 : // Defines
28 :
29 :
30 : enum SdrPathSmoothKind {SDRPATHSMOOTH_DONTCARE, // only for status query
31 : SDRPATHSMOOTH_ANGULAR, // angular
32 : SDRPATHSMOOTH_ASYMMETRIC, // asymmetric, normal Smooth
33 : SDRPATHSMOOTH_SYMMETRIC}; // symmetric
34 :
35 : enum SdrPathSegmentKind {SDRPATHSEGMENT_DONTCARE, // only for status query
36 : SDRPATHSEGMENT_LINE, // straight path segment
37 : SDRPATHSEGMENT_CURVE, // curve path segment (Bezier)
38 : SDRPATHSEGMENT_TOGGLE}; // only for Set: Toggle
39 :
40 : enum SdrObjClosedKind {SDROBJCLOSED_DONTCARE, // only for status query
41 : SDROBJCLOSED_OPEN, // non-closed object (line, polyline, ...)
42 : SDROBJCLOSED_CLOSED, // closed object (polygon, ...)
43 : SDROBJCLOSED_TOGGLE}; // only for Set: Toggle (not implemented yet)
44 :
45 9504 : class IPolyPolygonEditorController
46 : {
47 : public:
48 : virtual void DeleteMarkedPoints() = 0;
49 : virtual bool IsDeleteMarkedPointsPossible() const = 0;
50 :
51 : virtual void RipUpAtMarkedPoints() = 0;
52 : virtual bool IsRipUpAtMarkedPointsPossible() const = 0;
53 :
54 : virtual bool IsSetMarkedSegmentsKindPossible() const = 0;
55 : virtual SdrPathSegmentKind GetMarkedSegmentsKind() const = 0;
56 : virtual void SetMarkedSegmentsKind(SdrPathSegmentKind eKind) = 0;
57 :
58 : virtual bool IsSetMarkedPointsSmoothPossible() const = 0;
59 : virtual SdrPathSmoothKind GetMarkedPointsSmooth() const = 0;
60 : virtual void SetMarkedPointsSmooth(SdrPathSmoothKind eKind) = 0;
61 :
62 : virtual void CloseMarkedObjects(bool bToggle, bool bOpen ) = 0;
63 : virtual bool IsOpenCloseMarkedObjectsPossible() const = 0;
64 : virtual SdrObjClosedKind GetMarkedObjectsClosedState() const = 0;
65 :
66 : protected:
67 9438 : ~IPolyPolygonEditorController() {}
68 : };
69 :
70 : #endif // INCLUDED_SVX_IPOLYPOLYGONEDITORCONTROLLER_HXX
71 :
72 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|