/src/libreoffice/include/svx/svdobjkind.hxx
Line | Count | Source |
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 | | #pragma once |
21 | | |
22 | | #include <com/sun/star/form/FormComponentType.hpp> |
23 | | |
24 | | enum class SdrObjKind : sal_uInt16 |
25 | | { |
26 | | NONE = 0, /// abstract object (SdrObject) |
27 | | Group = 1, /// object group |
28 | | Line = 2, /// line |
29 | | Rectangle = 3, /// rectangle (round corners optional) |
30 | | CircleOrEllipse = 4, /// circle, ellipse |
31 | | CircleSection = 5, /// circle section |
32 | | CircleArc = 6, /// circle arc |
33 | | CircleCut = 7, /// circle cut |
34 | | Polygon = 8, /// polygon, PolyPolygon |
35 | | PolyLine = 9, /// PolyLine |
36 | | PathLine = 10, /// open Bezier-curve |
37 | | PathFill = 11, /// closed Bezier-curve |
38 | | FreehandLine = 12, /// open free-hand line |
39 | | FreehandFill = 13, /// closed free-hand line |
40 | | Text = 16, /// text object |
41 | | TitleText = 20, /// TitleText, special text object for StarDraw |
42 | | OutlineText = 21, /// OutlineText, special text object for StarDraw |
43 | | Graphic = 22, /// foreign graphic (StarView Graphic) |
44 | | OLE2 = 23, /// OLE object |
45 | | Edge = 24, /// connector object |
46 | | Caption = 25, /// caption object |
47 | | PathPoly = 26, /// Polygon/PolyPolygon represented by SdrPathObj |
48 | | PathPolyLine = 27, /// Polyline represented by SdrPathObj |
49 | | Page = 28, /// object that represents a SdrPage |
50 | | Measure = 29, /// measurement object |
51 | | OLEPluginFrame = 31, /// continuously activated OLE (PlugIn-Frame or similar) |
52 | | UNO = 32, /// Universal Network Object packed into SvDraw object |
53 | | CustomShape = 33, /// custom shape |
54 | | Media = 34, /// media shape |
55 | | Table = 35, /// table |
56 | | Annotation = 36, /// annotation object |
57 | | |
58 | | OLE2Applet = 100, |
59 | | OLE2Plugin = 101, |
60 | | |
61 | | // engine3d, arbitrarily place at 200 |
62 | | E3D_Scene = 202, |
63 | | // E3D_OBJECT_ID should not be used, it's only a helper class for E3DScene and E3DCompoundObject |
64 | | E3D_Object = 203, |
65 | | E3D_Cube = 204, |
66 | | E3D_Sphere = 205, |
67 | | E3D_Extrusion = 206, |
68 | | E3D_Lathe = 207, |
69 | | E3D_CompoundObject = 208, |
70 | | E3D_Polygon = 209, |
71 | | E3D_INVENTOR_FIRST = E3D_Scene, |
72 | | E3D_INVENTOR_LAST = E3D_Polygon, |
73 | | |
74 | | // for form components, arbitrarily place at 300 |
75 | | FormControl = 300 + css::form::FormComponentType::CONTROL, |
76 | | FormEdit = 300 + css::form::FormComponentType::TEXTFIELD, |
77 | | FormButton = 300 + css::form::FormComponentType::COMMANDBUTTON, |
78 | | FormFixedText = 300 + css::form::FormComponentType::FIXEDTEXT, |
79 | | FormListbox = 300 + css::form::FormComponentType::LISTBOX, |
80 | | FormCheckbox = 300 + css::form::FormComponentType::CHECKBOX, |
81 | | FormCombobox = 300 + css::form::FormComponentType::COMBOBOX, |
82 | | FormRadioButton = 300 + css::form::FormComponentType::RADIOBUTTON, |
83 | | FormGroupBox = 300 + css::form::FormComponentType::GROUPBOX, |
84 | | FormGrid = 300 + css::form::FormComponentType::GRIDCONTROL, |
85 | | FormImageButton = 300 + css::form::FormComponentType::IMAGEBUTTON, |
86 | | FormFileControl = 300 + css::form::FormComponentType::FILECONTROL, |
87 | | FormDateField = 300 + css::form::FormComponentType::DATEFIELD, |
88 | | FormTimeField = 300 + css::form::FormComponentType::TIMEFIELD, |
89 | | FormNumericField = 300 + css::form::FormComponentType::NUMERICFIELD, |
90 | | FormCurrencyField = 300 + css::form::FormComponentType::CURRENCYFIELD, |
91 | | FormPatternField = 300 + css::form::FormComponentType::PATTERNFIELD, |
92 | | FormHidden = 300 + css::form::FormComponentType::HIDDENCONTROL, |
93 | | FormImageControl = 300 + css::form::FormComponentType::IMAGECONTROL, |
94 | | FormFormattedField = 300 + css::form::FormComponentType::PATTERNFIELD + 1, |
95 | | FormScrollbar = 300 + css::form::FormComponentType::PATTERNFIELD + 2, |
96 | | FormSpinButton = 300 + css::form::FormComponentType::PATTERNFIELD + 3, |
97 | | FormNavigationBar = 300 + css::form::FormComponentType::PATTERNFIELD + 4, |
98 | | |
99 | | // basctl, arbitrarily place at 400 |
100 | | BasicDialogControl = 401, |
101 | | BasicDialogDialog = 402, |
102 | | BasicDialogPushButton = 403, |
103 | | BasicDialogRadioButton = 404, |
104 | | BasicDialogCheckbox = 405, |
105 | | BasicDialogListbox = 406, |
106 | | BasicDialogCombobox = 407, |
107 | | BasicDialogGroupBox = 408, |
108 | | BasicDialogEdit = 409, |
109 | | BasicDialogFixedText = 410, |
110 | | BasicDialogImageControl = 411, |
111 | | BasicDialogProgressbar = 412, |
112 | | BasicDialogHorizontalScrollbar = 413, |
113 | | BasicDialogVerticalScrollbar = 414, |
114 | | BasicDialogHorizontalFixedLine = 415, |
115 | | BasicDialogVerticalFixedLine = 416, |
116 | | BasicDialogDateField = 417, |
117 | | BasicDialogTimeField = 418, |
118 | | BasicDialogNumericField = 419, |
119 | | BasicDialogCurencyField = 420, |
120 | | BasicDialogFormattedField = 421, |
121 | | BasicDialogPatternField = 422, |
122 | | BasicDialogFileControl = 423, |
123 | | BasicDialogTreeControl = 424, |
124 | | BasicDialogSpinButton = 425, |
125 | | BasicDialogGridControl = 426, |
126 | | BasicDialogHyperlinkControl = 427, |
127 | | |
128 | | BasicDialogFormRadio = 428, |
129 | | BasicDialogFormCheck = 429, |
130 | | BasicDialogFormList = 430, |
131 | | BasicDialogFormCombo = 431, |
132 | | BasicDialogFormSpin = 432, |
133 | | BasicDialogFormVerticalScroll = 433, |
134 | | BasicDialogFormHorizontalScroll = 434, |
135 | | |
136 | | // reportdesign, arbitrarily place at 500 |
137 | | ReportDesignFixedText = 501, |
138 | | ReportDesignImageControl = 502, |
139 | | ReportDesignFormattedField = 503, |
140 | | ReportDesignHorizontalFixedLine = 504, |
141 | | ReportDesignVerticalFixedLine = 505, |
142 | | ReportDesignSubReport = 506, |
143 | | |
144 | | // writer, arbitrarily place at 600 |
145 | | SwFlyDrawObjIdentifier = 601, |
146 | | NewFrame = 602 |
147 | | }; |
148 | | |
149 | | inline constexpr bool IsInventorE3D(SdrObjKind e) |
150 | 86.8k | { |
151 | 86.8k | return e >= SdrObjKind::E3D_INVENTOR_FIRST && e <= SdrObjKind::E3D_INVENTOR_LAST; |
152 | 86.8k | } |
153 | | |
154 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |