LibreOffice Module svx (master)  1
ipolypolygoneditorcontroller.hxx
Go to the documentation of this file.
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 <sal/config.h>
24 
25 #include <sal/types.h>
26 
27 // Defines
28 
30 {
31  DontCare, // only for status query
32  Angular, // angular
33  Asymmetric, // asymmetric, normal Smooth
34  Symmetric // symmetric
35 };
37 {
38  DontCare, // only for status query
39  Line, // straight path segment
40  Curve, // curve path segment (Bezier)
41  Toggle // only for Set: Toggle
42 };
43 enum class SdrObjClosedKind
44 {
45  DontCare, // only for status query
46  Open, // non-closed object (line, polyline, ...)
47  Closed // closed object (polygon, ...)
48 };
49 
50 class SAL_DLLPUBLIC_RTTI IPolyPolygonEditorController
51 {
52 public:
53  virtual void DeleteMarkedPoints() = 0;
54  virtual bool IsDeleteMarkedPointsPossible() const = 0;
55 
56  virtual void RipUpAtMarkedPoints() = 0;
57  virtual bool IsRipUpAtMarkedPointsPossible() const = 0;
58 
59  virtual bool IsSetMarkedSegmentsKindPossible() const = 0;
60  virtual SdrPathSegmentKind GetMarkedSegmentsKind() const = 0;
61  virtual void SetMarkedSegmentsKind(SdrPathSegmentKind eKind) = 0;
62 
63  virtual bool IsSetMarkedPointsSmoothPossible() const = 0;
64  virtual SdrPathSmoothKind GetMarkedPointsSmooth() const = 0;
65  virtual void SetMarkedPointsSmooth(SdrPathSmoothKind eKind) = 0;
66 
67  virtual bool IsOpenCloseMarkedObjectsPossible() const = 0;
68  virtual SdrObjClosedKind GetMarkedObjectsClosedState() const = 0;
69 
70 protected:
72 };
73 
74 #endif // INCLUDED_SVX_IPOLYPOLYGONEDITORCONTROLLER_HXX
75 
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */