xref: /aoo4110/main/svx/inc/svx/SvxShapeTypes.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SVX_ACCESSIBILITY_SVX_SHAPE_TYPES_HXX
25 #define _SVX_ACCESSIBILITY_SVX_SHAPE_TYPES_HXX
26 
27 #ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SHAPE_HXX
28 #include <svx/ShapeTypeHandler.hxx>
29 #endif
30 #include <com/sun/star/accessibility/XAccessible.hpp>
31 
32 namespace accessibility {
33 
34 /** Register the SVX draw shape types with the ShapeTypeHandler singleton.
35     This method is usually called from the shape type handler constructor.
36 */
37 void RegisterDrawShapeTypes (void);
38 
39 /** Enum describing all shape types known in the SVX project.
40 */
41 enum SvxShapeTypes
42 {
43     DRAWING_RECTANGLE = 1,
44     DRAWING_ELLIPSE,
45     DRAWING_CONTROL,
46     DRAWING_CONNECTOR,
47     DRAWING_MEASURE,
48     DRAWING_LINE,
49     DRAWING_POLY_POLYGON,
50     DRAWING_POLY_LINE,
51     DRAWING_OPEN_BEZIER,
52     DRAWING_CLOSED_BEZIER,
53     DRAWING_OPEN_FREEHAND,
54     DRAWING_CLOSED_FREEHAND,
55     DRAWING_POLY_POLYGON_PATH,
56     DRAWING_POLY_LINE_PATH,
57     DRAWING_GRAPHIC_OBJECT,
58     DRAWING_GROUP,
59     DRAWING_TEXT,
60     DRAWING_OLE,
61     DRAWING_PAGE,
62     DRAWING_CAPTION,
63     DRAWING_FRAME,
64     DRAWING_PLUGIN,
65     DRAWING_APPLET,
66     DRAWING_3D_SCENE,
67     DRAWING_3D_CUBE,
68     DRAWING_3D_SPHERE,
69     DRAWING_3D_LATHE,
70     DRAWING_3D_EXTRUDE,
71     DRAWING_CUSTOM,
72 	DRAWING_TABLE, /* = 30 */
73     DRAWING_MEDIA, /* = 31 */
74     DRAWING_END = DRAWING_MEDIA
75 };
76 
77 /** List of shape type descriptors corresponding to the
78     <type>SvxShapeTypes</type> enum.
79 */
80 extern ShapeTypeDescriptor aSvxShapeTypeList[];
81 
82 } // end of namespace accessibility
83 
84 #endif
85