1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _SD_SD_SHAPE_TYPES_HXX 29 #define _SD_SD_SHAPE_TYPES_HXX 30 31 #ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SHAPE_TYPE_HANDLERHXX 32 #include <svx/ShapeTypeHandler.hxx> 33 #endif 34 #include <svx/AccessibleShape.hxx> 35 #include <com/sun/star/accessibility/XAccessible.hpp> 36 37 namespace accessibility { 38 39 /** Register the SD presentation shape types with the ShapeTypeHandler singleton. 40 This method is usually called while loading the sd library. 41 */ 42 void RegisterImpressShapeTypes (void); 43 44 /** Enum describing all shape types known in the SD project. 45 */ 46 enum SdShapeTypes 47 { 48 PRESENTATION_OUTLINER, 49 PRESENTATION_SUBTITLE, 50 PRESENTATION_GRAPHIC_OBJECT, 51 PRESENTATION_PAGE, 52 PRESENTATION_OLE, 53 PRESENTATION_CHART, 54 PRESENTATION_TABLE, 55 PRESENTATION_NOTES, 56 PRESENTATION_TITLE, 57 PRESENTATION_HANDOUT, 58 PRESENTATION_HEADER, 59 PRESENTATION_FOOTER, 60 PRESENTATION_DATETIME, 61 PRESENTATION_PAGENUMBER 62 }; 63 64 /** Factory method that creates accessibility objects corresponding to the 65 type of the given shape. 66 */ 67 AccessibleShape* 68 CreateSdAccessibleShape (const ::com::sun::star::uno::Reference< 69 ::com::sun::star::accessibility::XAccessible>& rxParent, 70 const ::com::sun::star::uno::Reference< 71 ::com::sun::star::drawing::XShape>& rxShape 72 ); 73 74 75 /** List of shape type descriptors corresponding to the 76 <type>SdShapeTypes</type> enum. 77 */ 78 extern ShapeTypeDescriptor aSdShapeTypeList[]; 79 80 81 } // end of namespace accessibility 82 83 #endif 84