LibreOffice Module svx (master)  1
svdobjkind.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 #pragma once
21 
22 #include <com/sun/star/form/FormComponentType.hpp>
23 
24 enum class SdrObjKind : sal_uInt16
25 {
26  NONE = 0,
27  Group = 1,
28  Line = 2,
29  Rectangle = 3,
30  CircleOrEllipse = 4,
31  CircleSection = 5,
32  CircleArc = 6,
33  CircleCut = 7,
34  Polygon = 8,
35  PolyLine = 9,
36  PathLine = 10,
37  PathFill = 11,
38  FreehandLine = 12,
39  FreehandFill = 13,
40  SplineLine = 14,
41  SplineFill = 15,
42  Text = 16,
43  TitleText = 20,
44  OutlineText = 21,
45  Graphic = 22,
46  OLE2 = 23,
47  Edge = 24,
48  Caption = 25,
49  PathPoly = 26,
50  PathPolyLine = 27,
51  Page = 28,
52  Measure = 29,
53  OLEPluginFrame = 31,
54  UNO = 32,
55  CustomShape = 33,
56  Media = 34,
57  Table = 35,
58 
59  OLE2Applet = 100,
60  OLE2Plugin = 101,
61 
62  // engine3d, arbitrarily place at 200
63  E3D_Scene = 202,
64  // E3D_OBJECT_ID should not be used, it's only a helper class for E3DScene and E3DCompoundObject
65  E3D_Object = 203,
66  E3D_Cube = 204,
67  E3D_Sphere = 205,
68  E3D_Extrusion = 206,
69  E3D_Lathe = 207,
70  E3D_CompoundObject = 208,
71  E3D_Polygon = 209,
74 
75  // for form components, arbitrarily place at 300
76  FormControl = 300 + css::form::FormComponentType::CONTROL,
77  FormEdit = 300 + css::form::FormComponentType::TEXTFIELD,
78  FormButton = 300 + css::form::FormComponentType::COMMANDBUTTON,
79  FormFixedText = 300 + css::form::FormComponentType::FIXEDTEXT,
80  FormListbox = 300 + css::form::FormComponentType::LISTBOX,
81  FormCheckbox = 300 + css::form::FormComponentType::CHECKBOX,
82  FormCombobox = 300 + css::form::FormComponentType::COMBOBOX,
83  FormRadioButton = 300 + css::form::FormComponentType::RADIOBUTTON,
84  FormGroupBox = 300 + css::form::FormComponentType::GROUPBOX,
85  FormGrid = 300 + css::form::FormComponentType::GRIDCONTROL,
86  FormImageButton = 300 + css::form::FormComponentType::IMAGEBUTTON,
87  FormFileControl = 300 + css::form::FormComponentType::FILECONTROL,
88  FormDateField = 300 + css::form::FormComponentType::DATEFIELD,
89  FormTimeField = 300 + css::form::FormComponentType::TIMEFIELD,
90  FormNumericField = 300 + css::form::FormComponentType::NUMERICFIELD,
91  FormCurrencyField = 300 + css::form::FormComponentType::CURRENCYFIELD,
92  FormPatternField = 300 + css::form::FormComponentType::PATTERNFIELD,
93  FormHidden = 300 + css::form::FormComponentType::HIDDENCONTROL,
94  FormImageControl = 300 + css::form::FormComponentType::IMAGECONTROL,
95  FormFormattedField = 300 + css::form::FormComponentType::PATTERNFIELD + 1,
96  FormScrollbar = 300 + css::form::FormComponentType::PATTERNFIELD + 2,
97  FormSpinButton = 300 + css::form::FormComponentType::PATTERNFIELD + 3,
98  FormNavigationBar = 300 + css::form::FormComponentType::PATTERNFIELD + 4,
99 
100  // basctl, arbitrarily place at 400
101  BasicDialogControl = 401,
102  BasicDialogDialog = 402,
103  BasicDialogPushButton = 403,
105  BasicDialogCheckbox = 405,
106  BasicDialogListbox = 406,
107  BasicDialogCombobox = 407,
108  BasicDialogGroupBox = 408,
109  BasicDialogEdit = 409,
110  BasicDialogFixedText = 410,
117  BasicDialogDateField = 417,
118  BasicDialogTimeField = 418,
125  BasicDialogSpinButton = 425,
128 
129  BasicDialogFormRadio = 428,
130  BasicDialogFormCheck = 429,
131  BasicDialogFormList = 430,
132  BasicDialogFormCombo = 431,
133  BasicDialogFormSpin = 432,
136 
137  // reportdesign, arbitrarily place at 500
138  ReportDesignFixedText = 501,
143  ReportDesignSubReport = 506,
144 
145  // writer, arbitrarily place at 600
147 };
148 
149 inline constexpr bool IsInventorE3D(SdrObjKind e)
150 {
152 }
153 
154 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Group
OLE object.
periodic cubic Spline (ni)
continuously activated OLE (PlugIn-Frame or similar)
open free-hand line
open Bezier-curve
closed free-hand line
SdrObjKind
Definition: svdobjkind.hxx:24
caption object
measurement object
constexpr bool IsInventorE3D(SdrObjKind e)
Definition: svdobjkind.hxx:149
natural cubic Spline (ni)
foreign graphic (StarView Graphic)
connector object
Polygon/PolyPolygon represented by SdrPathObj.
TitleText, special text object for StarDraw.
Universal Network Object packed into SvDraw object.
circle section
Polyline represented by SdrPathObj.
rectangle (round corners optional)
custom shape
closed Bezier-curve
object that represents a SdrPage