Bump version to 6.4-15
[LibreOffice.git] / include / svx / ipolypolygoneditorcontroller.hxx
blob4e1ef9124821dc610ad3885aa0b71aeea9c3e5fd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SVX_IPOLYPOLYGONEDITORCONTROLLER_HXX
21 #define INCLUDED_SVX_IPOLYPOLYGONEDITORCONTROLLER_HXX
23 #include <sal/config.h>
25 #include <sal/types.h>
28 // Defines
30 enum class SdrPathSmoothKind
32 DontCare, // only for status query
33 Angular, // angular
34 Asymmetric, // asymmetric, normal Smooth
35 Symmetric // symmetric
37 enum class SdrPathSegmentKind
39 DontCare, // only for status query
40 Line, // straight path segment
41 Curve, // curve path segment (Bezier)
42 Toggle // only for Set: Toggle
44 enum class SdrObjClosedKind
46 DontCare, // only for status query
47 Open, // non-closed object (line, polyline, ...)
48 Closed // closed object (polygon, ...)
51 class SAL_DLLPUBLIC_RTTI IPolyPolygonEditorController
53 public:
54 virtual void DeleteMarkedPoints() = 0;
55 virtual bool IsDeleteMarkedPointsPossible() const = 0;
57 virtual void RipUpAtMarkedPoints() = 0;
58 virtual bool IsRipUpAtMarkedPointsPossible() const = 0;
60 virtual bool IsSetMarkedSegmentsKindPossible() const = 0;
61 virtual SdrPathSegmentKind GetMarkedSegmentsKind() const = 0;
62 virtual void SetMarkedSegmentsKind(SdrPathSegmentKind eKind) = 0;
64 virtual bool IsSetMarkedPointsSmoothPossible() const = 0;
65 virtual SdrPathSmoothKind GetMarkedPointsSmooth() const = 0;
66 virtual void SetMarkedPointsSmooth(SdrPathSmoothKind eKind) = 0;
68 virtual bool IsOpenCloseMarkedObjectsPossible() const = 0;
69 virtual SdrObjClosedKind GetMarkedObjectsClosedState() const = 0;
71 protected:
72 ~IPolyPolygonEditorController() {}
75 #endif // INCLUDED_SVX_IPOLYPOLYGONEDITORCONTROLLER_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */