diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 10:23:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 15:19:24 +0100 |
commit | 041fd0b068f670c59bdcf435c0839f349db27d23 (patch) | |
tree | 498811db8eb0c960ba497ee2e8835c5574bf991d /sd/source/ui/accessibility | |
parent | 44863c2f2fd78c291092037aaf0d7abfa21f773d (diff) |
don't see a reason this needs to be global
Diffstat (limited to 'sd/source/ui/accessibility')
-rw-r--r-- | sd/source/ui/accessibility/SdShapeTypes.cxx | 130 |
1 files changed, 62 insertions, 68 deletions
diff --git a/sd/source/ui/accessibility/SdShapeTypes.cxx b/sd/source/ui/accessibility/SdShapeTypes.cxx index 3b869c72c568..731829df1cb5 100644 --- a/sd/source/ui/accessibility/SdShapeTypes.cxx +++ b/sd/source/ui/accessibility/SdShapeTypes.cxx @@ -70,81 +70,75 @@ AccessibleShape* } } - - - -ShapeTypeDescriptor aSdShapeTypeList[] = { - ShapeTypeDescriptor ( - PRESENTATION_OUTLINER, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.OutlinerShape"))), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_SUBTITLE, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.SubtitleShape"))), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_GRAPHIC_OBJECT, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.GraphicObjectShape"))), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_PAGE, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.PageShape"))), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_OLE, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.OLE2Shape"))), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_CHART, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.ChartShape"))), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_TABLE, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.TableShape"))), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_NOTES, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.NotesShape"))), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_TITLE, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.TitleTextShape")), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_HANDOUT, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.HandoutShape")), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_HEADER, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.HeaderShape")), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_FOOTER, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.FooterShape")), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_DATETIME, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.DateTimeShape")), - CreateSdAccessibleShape ), - ShapeTypeDescriptor ( - PRESENTATION_PAGENUMBER, - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.SlideNumberShape")), - CreateSdAccessibleShape ) -}; - - - - void RegisterImpressShapeTypes (void) { + /** List of shape type descriptors corresponding to the + <type>SdShapeTypes</type> enum. + */ + ShapeTypeDescriptor aSdShapeTypeList[] = { + ShapeTypeDescriptor ( + PRESENTATION_OUTLINER, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.OutlinerShape"))), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_SUBTITLE, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.SubtitleShape"))), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_GRAPHIC_OBJECT, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.GraphicObjectShape"))), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_PAGE, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.PageShape"))), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_OLE, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.OLE2Shape"))), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_CHART, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.ChartShape"))), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_TABLE, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.TableShape"))), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_NOTES, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ("com.sun.star.presentation.NotesShape"))), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_TITLE, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.TitleTextShape")), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_HANDOUT, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.HandoutShape")), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_HEADER, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.HeaderShape")), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_FOOTER, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.FooterShape")), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_DATETIME, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.DateTimeShape")), + CreateSdAccessibleShape ), + ShapeTypeDescriptor ( + PRESENTATION_PAGENUMBER, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("com.sun.star.presentation.SlideNumberShape")), + CreateSdAccessibleShape ) + }; + ShapeTypeHandler::Instance().AddShapeTypeList ( PRESENTATION_PAGENUMBER - PRESENTATION_OUTLINER + 1, aSdShapeTypeList); } - - - } // end of namespace accessibility /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |