summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/inc/SdShapeTypes.hxx119
-rw-r--r--sd/prj/build.lst3
-rw-r--r--sd/source/ui/accessibility/AccessiblePresentationShape.cxx169
-rw-r--r--sd/source/ui/accessibility/SdShapeTypes.cxx140
-rwxr-xr-xsd/source/ui/accessibility/makefile.mk92
-rw-r--r--sd/source/ui/inc/AccessiblePresentationShape.hxx106
-rw-r--r--sd/util/makefile.mk7
7 files changed, 632 insertions, 4 deletions
diff --git a/sd/inc/SdShapeTypes.hxx b/sd/inc/SdShapeTypes.hxx
new file mode 100644
index 000000000000..cfdaa3963969
--- /dev/null
+++ b/sd/inc/SdShapeTypes.hxx
@@ -0,0 +1,119 @@
+/*************************************************************************
+ *
+ * $RCSfile: SdShapeTypes.hxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: af $ $Date: 2002-02-05 14:36:20 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SD_SD_SHAPE_TYPES_HXX
+#define _SD_SD_SHAPE_TYPES_HXX
+
+#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SHAPE_TYPE_HANDLERHXX
+#include <svx/ShapeTypeHandler.hxx>
+#endif
+#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SHAPE_HXX
+#include <svx/AccessibleShape.hxx>
+#endif
+
+#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLE_HPP_
+#include <drafts/com/sun/star/accessibility/XAccessible.hpp>
+#endif
+
+namespace accessibility {
+
+/** Register the SD presentation shape types with the ShapeTypeHandler singleton.
+ This method is usually called while loading the sd library.
+*/
+void RegisterImpressShapeTypes (void);
+
+/** Enum describing all shape types known in the SD project.
+*/
+enum SdShapeTypes
+{
+ PRESENTATION_OUTLINER,
+ PRESENTATION_SUBTITLE,
+ PRESENTATION_GRAPHIC_OBJECT,
+ PRESENTATION_PAGE,
+ PRESENTATION_OLE,
+ PRESENTATION_CHART,
+ PRESENTATION_TABLE,
+ PRESENTATION_NOTES,
+ PRESENTATION_TITLE,
+ PRESENTATION_HANDOUT
+};
+
+/** Factory method that creates accessibility objects corresponding to the
+ type of the given shape.
+*/
+::com::sun::star::uno::Reference<
+ ::drafts::com::sun::star::accessibility::XAccessible>
+ createSdAccessibleShape (const ::com::sun::star::uno::Reference<
+ ::drafts::com::sun::star::accessibility::XAccessible>& rxParent,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::drawing::XShape>& rxShape
+ );
+
+
+/** List of shape type descriptors corresponding to the
+ <type>SdShapeTypes</type> enum.
+*/
+extern ShapeTypeDescriptor aSdShapeTypeList[];
+
+
+} // end of namespace accessibility
+
+#endif
diff --git a/sd/prj/build.lst b/sd/prj/build.lst
index 23a5a26ed498..d6e791a6e7a4 100644
--- a/sd/prj/build.lst
+++ b/sd/prj/build.lst
@@ -14,10 +14,11 @@ sd sd\source\ui\dlg nmake - all sd_dlg sd_sdi NULL
sd sd\source\core nmake - all sd_core sd_sdi NULL
sd sd\source\ui\docshell nmake - all sd_docsh sd_sdi NULL
sd sd\source\ui\unoidl nmake - all sd_unid sd_sdi NULL
+sd sd\source\ui\accessibility nmake - all sd_accessibility NULL
sd sd\source\filter nmake - all sd_filt sd_sdi NULL
sd sd\source\filter\bin nmake - all sd_bin NULL
sd sd\source\filter\cgm nmake - all sd_cgm NULL
sd sd\source\filter\eppt nmake - all sd_eppt NULL
sd sd\source\filter\grf nmake - all sd_grf NULL
sd sd\source\filter\xml nmake - all sd_xml NULL
-sd sd\util nmake - all sd_util sd_app sd_bin sd_cgm sd_core sd_dlg sd_docsh sd_eppt sd_filt sd_func sd_grf sd_unid sd_view sd_xml NULL
+sd sd\util nmake - all sd_util sd_app sd_bin sd_cgm sd_core sd_dlg sd_docsh sd_eppt sd_filt sd_func sd_grf sd_unid sd_view sd_xml sd_accessibility NULL
diff --git a/sd/source/ui/accessibility/AccessiblePresentationShape.cxx b/sd/source/ui/accessibility/AccessiblePresentationShape.cxx
new file mode 100644
index 000000000000..799ffb873adf
--- /dev/null
+++ b/sd/source/ui/accessibility/AccessiblePresentationShape.cxx
@@ -0,0 +1,169 @@
+/*************************************************************************
+ *
+ * $RCSfile: AccessiblePresentationShape.cxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: af $ $Date: 2002-02-05 14:34:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+
+#ifndef _SD_ACCESSIBILITY_ACCESSIBLE_PRESENTATION_SHAPE_HXX
+#include "AccessiblePresentationShape.hxx"
+#endif
+
+#include "SdShapeTypes.hxx"
+
+using namespace accessibility;
+using namespace ::rtl;
+using namespace ::com::sun::star;
+using namespace ::drafts::com::sun::star::accessibility;
+
+//===== internal ============================================================
+
+AccessiblePresentationShape::AccessiblePresentationShape (const ::com::sun::star::uno::Reference<
+ ::com::sun::star::drawing::XShape>& rxShape,
+ const ::com::sun::star::uno::Reference<
+ ::drafts::com::sun::star::accessibility::XAccessible>& rxParent)
+ : AccessibleShape (rxShape, rxParent)
+{
+}
+
+
+
+
+AccessiblePresentationShape::~AccessiblePresentationShape (void)
+{
+}
+
+
+
+
+//===== XServiceInfo ========================================================
+
+::rtl::OUString SAL_CALL
+ AccessiblePresentationShape::getImplementationName (void)
+ throw (::com::sun::star::uno::RuntimeException)
+{
+ return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("AccessiblePresentationShape"));
+}
+
+
+
+
+/// Set this object's name if is different to the current name.
+::rtl::OUString SAL_CALL
+ AccessiblePresentationShape::createAccessibleName (void)
+ throw (::com::sun::star::uno::RuntimeException)
+{
+ ::rtl::OUString sName;
+
+ ShapeTypeId nShapeType = ShapeTypeHandler::Instance().getTypeId (mxShape);
+ switch (nShapeType)
+ {
+ case PRESENTATION_TITLE:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressTitle"));
+ break;
+ case PRESENTATION_OUTLINER:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressOutliner"));
+ break;
+ case PRESENTATION_SUBTITLE:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressSubtitle"));
+ break;
+ case PRESENTATION_GRAPHIC_OBJECT:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressGraphicObject"));
+ break;
+ case PRESENTATION_PAGE:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressPage"));
+ break;
+ case PRESENTATION_OLE:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressOLE"));
+ break;
+ case PRESENTATION_CHART:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressChart"));
+ break;
+ case PRESENTATION_TABLE:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressTable"));
+ break;
+ case PRESENTATION_NOTES:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressNotes"));
+ break;
+ case PRESENTATION_HANDOUT:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM ("ImpressHandout"));
+ break;
+ default:
+ sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM (
+ "UnknownAccessibleImpressShape"));
+ uno::Reference<drawing::XShapeDescriptor> xDescriptor (mxShape, uno::UNO_QUERY);
+ if (xDescriptor.is())
+ sName += ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM (": "))
+ + xDescriptor->getShapeType();
+ }
+
+ return sName;
+}
+
+
+
+
+::rtl::OUString SAL_CALL
+ AccessiblePresentationShape::createAccessibleDescription (void)
+ throw (::com::sun::star::uno::RuntimeException)
+{
+ return createAccessibleName ();
+}
+
+
diff --git a/sd/source/ui/accessibility/SdShapeTypes.cxx b/sd/source/ui/accessibility/SdShapeTypes.cxx
new file mode 100644
index 000000000000..d0564fe4b89a
--- /dev/null
+++ b/sd/source/ui/accessibility/SdShapeTypes.cxx
@@ -0,0 +1,140 @@
+/*************************************************************************
+ *
+ * $RCSfile: SdShapeTypes.cxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: af $ $Date: 2002-02-05 14:34:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "SdShapeTypes.hxx"
+#include "AccessiblePresentationShape.hxx"
+
+namespace accessibility {
+
+::com::sun::star::uno::Reference<
+ ::drafts::com::sun::star::accessibility::XAccessible>
+ createSdAccessibleShape (const ::com::sun::star::uno::Reference<
+ ::drafts::com::sun::star::accessibility::XAccessible>& rxParent,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::drawing::XShape>& rxShape,
+ ShapeTypeId nId)
+{
+ switch (nId)
+ {
+ case PRESENTATION_TITLE:
+ case PRESENTATION_OUTLINER:
+ case PRESENTATION_SUBTITLE:
+ case PRESENTATION_GRAPHIC_OBJECT:
+ case PRESENTATION_PAGE:
+ case PRESENTATION_OLE:
+ case PRESENTATION_CHART:
+ case PRESENTATION_TABLE:
+ case PRESENTATION_NOTES:
+ case PRESENTATION_HANDOUT:
+ return new AccessiblePresentationShape (rxShape, rxParent);
+ }
+}
+
+
+
+
+ShapeTypeDescriptor aSdShapeTypeList[] = {
+ { PRESENTATION_TITLE,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.TitleTextShape"),
+ createSdAccessibleShape },
+ { PRESENTATION_OUTLINER,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.OutlinerShape"),
+ createSdAccessibleShape },
+ { PRESENTATION_SUBTITLE,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.SubtitleShape"),
+ createSdAccessibleShape },
+ { PRESENTATION_GRAPHIC_OBJECT,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.GraphicObjectShape"),
+ createSdAccessibleShape },
+ { PRESENTATION_PAGE,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.PageShape"),
+ createSdAccessibleShape },
+ { PRESENTATION_OLE,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.OLE2Shape"),
+ createSdAccessibleShape },
+ { PRESENTATION_CHART,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.ChartShape"),
+ createSdAccessibleShape },
+ { PRESENTATION_TABLE,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.TableShape"),
+ createSdAccessibleShape },
+ { PRESENTATION_NOTES,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.NotesShape"),
+ createSdAccessibleShape },
+ { PRESENTATION_HANDOUT,
+ ::rtl::OUString::createFromAscii ("com.sun.star.presentation.HandoutShape"),
+ createSdAccessibleShape }
+};
+
+
+
+
+void RegisterImpressShapeTypes (void)
+{
+ ShapeTypeHandler::Instance().addShapeTypeList (
+ PRESENTATION_HANDOUT - PRESENTATION_TITLE + 1,
+ aSdShapeTypeList);
+}
+
+
+
+
+} // end of namespace accessibility
diff --git a/sd/source/ui/accessibility/makefile.mk b/sd/source/ui/accessibility/makefile.mk
new file mode 100755
index 000000000000..85b3d44d84bc
--- /dev/null
+++ b/sd/source/ui/accessibility/makefile.mk
@@ -0,0 +1,92 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1 $
+#
+# last change: $Author: af $ $Date: 2002-02-05 14:35:13 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+
+PRJ=..$/..$/..
+
+PROJECTPCH=sd
+PROJECTPCHSOURCE=$(PRJ)$/util$/sd
+PRJNAME=sd
+TARGET=accessibility
+#ENABLE_EXCEPTIONS=TRUE
+AUTOSEG=true
+
+# --- Settings -----------------------------------------------------
+
+#.INCLUDE : sdpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : sv.mk
+.INCLUDE : $(PRJ)$/util$/makefile.pmk
+
+# --- Files --------------------------------------------------------
+
+SLOFILES = \
+ $(SLO)$/AccessibleDocumentView.obj \
+ $(SLO)$/SdShapeTypes.obj \
+ $(SLO)$/AccessiblePresentationShape.obj
+
+EXCEPTIONSFILES=
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sd/source/ui/inc/AccessiblePresentationShape.hxx b/sd/source/ui/inc/AccessiblePresentationShape.hxx
new file mode 100644
index 000000000000..882a252e4e5e
--- /dev/null
+++ b/sd/source/ui/inc/AccessiblePresentationShape.hxx
@@ -0,0 +1,106 @@
+/*************************************************************************
+ *
+ * $RCSfile: AccessiblePresentationShape.hxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: af $ $Date: 2002-02-05 14:37:11 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+#ifndef _SD_ACCESSIBILITY_ACCESSIBLE_PRESENTATION_SHAPE_HXX
+#define _SD_ACCESSIBILITY_ACCESSIBLE_PRESENTATION_SHAPE_HXX
+
+#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SHAPE_HXX
+#include <svx/AccessibleShape.hxx>
+#endif
+
+namespace accessibility {
+
+/** This class makes Impress shapes accessible.
+*/
+class AccessiblePresentationShape
+ : public AccessibleShape
+{
+public:
+ //===== internal ========================================================
+ AccessiblePresentationShape (const ::com::sun::star::uno::Reference<
+ ::com::sun::star::drawing::XShape>& rxShape,
+ const ::com::sun::star::uno::Reference<
+ ::drafts::com::sun::star::accessibility::XAccessible>& rxParent);
+ virtual ~AccessiblePresentationShape (void);
+
+ //===== XServiceInfo ====================================================
+
+ /** Returns an identifier for the implementation of this object.
+ */
+ virtual ::rtl::OUString SAL_CALL
+ getImplementationName (void)
+ throw (::com::sun::star::uno::RuntimeException);
+
+ /// Create a name string that contains the accessible name.
+ virtual ::rtl::OUString SAL_CALL
+ createAccessibleName ()
+ throw (::com::sun::star::uno::RuntimeException);
+
+ /// Create a description string that contains the accessible description.
+ virtual ::rtl::OUString SAL_CALL
+ createAccessibleDescription ()
+ throw (::com::sun::star::uno::RuntimeException);
+};
+
+} // end of namespace accessibility
+
+#endif
diff --git a/sd/util/makefile.mk b/sd/util/makefile.mk
index 7f5a6ef7a4ee..8f700e934f27 100644
--- a/sd/util/makefile.mk
+++ b/sd/util/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.14 $
+# $Revision: 1.15 $
#
-# last change: $Author: kz $ $Date: 2002-01-10 09:41:50 $
+# last change: $Author: af $ $Date: 2002-02-05 14:39:38 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -183,7 +183,8 @@ LIB3FILES= \
$(SLB)$/grf.lib \
$(SLB)$/bin.lib \
$(SLB)$/filter.lib \
- $(SLB)$/unoidl.lib
+ $(SLB)$/unoidl.lib \
+ $(SLB)$/accessibility.lib
LIB4TARGET=$(LB)$/sdlib.lib