xref: /trunk/main/sd/inc/SdShapeTypes.hxx (revision 67e470da)
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 _SD_SD_SHAPE_TYPES_HXX
25 #define _SD_SD_SHAPE_TYPES_HXX
26 
27 #ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SHAPE_TYPE_HANDLERHXX
28 #include <svx/ShapeTypeHandler.hxx>
29 #endif
30 #include <svx/AccessibleShape.hxx>
31 #include <com/sun/star/accessibility/XAccessible.hpp>
32 
33 namespace accessibility {
34 
35 /** Register the SD presentation shape types with the ShapeTypeHandler singleton.
36     This method is usually called while loading the sd library.
37 */
38 void RegisterImpressShapeTypes (void);
39 
40 /** Enum describing all shape types known in the SD project.
41 */
42 enum SdShapeTypes
43 {
44     PRESENTATION_OUTLINER,
45     PRESENTATION_SUBTITLE,
46     PRESENTATION_GRAPHIC_OBJECT,
47     PRESENTATION_PAGE,
48     PRESENTATION_OLE,
49     PRESENTATION_CHART,
50     PRESENTATION_TABLE,
51     PRESENTATION_NOTES,
52     PRESENTATION_TITLE,
53     PRESENTATION_HANDOUT,
54 	PRESENTATION_HEADER,
55 	PRESENTATION_FOOTER,
56 	PRESENTATION_DATETIME,
57 	PRESENTATION_PAGENUMBER
58 };
59 
60 /** Factory method that creates accessibility objects corresponding to the
61     type of the given shape.
62 */
63 AccessibleShape*
64     CreateSdAccessibleShape (const ::com::sun::star::uno::Reference<
65         ::com::sun::star::accessibility::XAccessible>& rxParent,
66         const ::com::sun::star::uno::Reference<
67         ::com::sun::star::drawing::XShape>& rxShape
68         );
69 
70 
71 /** List of shape type descriptors corresponding to the
72     <type>SdShapeTypes</type> enum.
73 */
74 extern ShapeTypeDescriptor aSdShapeTypeList[];
75 
76 
77 } // end of namespace accessibility
78 
79 #endif
80