13334a7e6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 33334a7e6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 43334a7e6SAndrew Rist * or more contributor license agreements. See the NOTICE file 53334a7e6SAndrew Rist * distributed with this work for additional information 63334a7e6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 73334a7e6SAndrew Rist * to you under the Apache License, Version 2.0 (the 83334a7e6SAndrew Rist * "License"); you may not use this file except in compliance 93334a7e6SAndrew Rist * with the License. You may obtain a copy of the License at 103334a7e6SAndrew Rist * 113334a7e6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 123334a7e6SAndrew Rist * 133334a7e6SAndrew Rist * Unless required by applicable law or agreed to in writing, 143334a7e6SAndrew Rist * software distributed under the License is distributed on an 153334a7e6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 163334a7e6SAndrew Rist * KIND, either express or implied. See the License for the 173334a7e6SAndrew Rist * specific language governing permissions and limitations 183334a7e6SAndrew Rist * under the License. 193334a7e6SAndrew Rist * 203334a7e6SAndrew Rist *************************************************************/ 213334a7e6SAndrew Rist 223334a7e6SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_OLE_SHAPE_HXX 25cdf0e10cSrcweir #define _SVX_ACCESSIBILITY_ACCESSIBLE_OLE_SHAPE_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SHAPE_MANAGER_HXX 28cdf0e10cSrcweir #include <svx/AccessibleShape.hxx> 29cdf0e10cSrcweir #endif 30cdf0e10cSrcweir 31cdf0e10cSrcweir #ifndef _COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLE_ACTION_HPP_ 32cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessibleAction.hpp> 33cdf0e10cSrcweir #endif 34cdf0e10cSrcweir #include "svx/svxdllapi.h" 35cdf0e10cSrcweir 36cdf0e10cSrcweir namespace accessibility { 37cdf0e10cSrcweir 38cdf0e10cSrcweir /** @descr 39cdf0e10cSrcweir This class makes OLE objects accessible. With respect to its 40cdf0e10cSrcweir base class <type>AccessibleShape</type> it supports the additional 41cdf0e10cSrcweir <type>XAccessibleAction</type> interface. 42cdf0e10cSrcweir */ 43cdf0e10cSrcweir class SVX_DLLPUBLIC AccessibleOLEShape 44cdf0e10cSrcweir : public AccessibleShape, 45cdf0e10cSrcweir public ::com::sun::star::accessibility::XAccessibleAction 46cdf0e10cSrcweir { 47cdf0e10cSrcweir public: 48cdf0e10cSrcweir //===== internal ======================================================== 49cdf0e10cSrcweir AccessibleOLEShape ( 50cdf0e10cSrcweir const AccessibleShapeInfo& rShapeInfo, 51cdf0e10cSrcweir const AccessibleShapeTreeInfo& rShapeTreeInfo); 52cdf0e10cSrcweir virtual ~AccessibleOLEShape (void); 53cdf0e10cSrcweir 54cdf0e10cSrcweir //===== XAccessibleAction =============================================== 55cdf0e10cSrcweir 56cdf0e10cSrcweir sal_Int32 SAL_CALL getAccessibleActionCount (void) 57cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 58cdf0e10cSrcweir 59cdf0e10cSrcweir sal_Bool SAL_CALL doAccessibleAction (sal_Int32 nIndex) 60cdf0e10cSrcweir throw (::com::sun::star::lang::IndexOutOfBoundsException, 61cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 62cdf0e10cSrcweir 63cdf0e10cSrcweir ::rtl::OUString SAL_CALL getAccessibleActionDescription (sal_Int32 nIndex) 64cdf0e10cSrcweir throw (::com::sun::star::lang::IndexOutOfBoundsException, 65cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 66cdf0e10cSrcweir 67cdf0e10cSrcweir ::com::sun::star::uno::Reference< 68cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleKeyBinding> SAL_CALL getAccessibleActionKeyBinding ( 69cdf0e10cSrcweir sal_Int32 nIndex) 70cdf0e10cSrcweir throw (::com::sun::star::lang::IndexOutOfBoundsException, 71cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 72cdf0e10cSrcweir 73cdf0e10cSrcweir //===== XInterface ====================================================== 74cdf0e10cSrcweir 75cdf0e10cSrcweir virtual com::sun::star::uno::Any SAL_CALL 76cdf0e10cSrcweir queryInterface (const com::sun::star::uno::Type & rType) 77cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 78cdf0e10cSrcweir 79cdf0e10cSrcweir virtual void SAL_CALL 80cdf0e10cSrcweir acquire (void) 81cdf0e10cSrcweir throw (); 82cdf0e10cSrcweir 83cdf0e10cSrcweir virtual void SAL_CALL 84cdf0e10cSrcweir release (void) 85cdf0e10cSrcweir throw (); 86cdf0e10cSrcweir 87cdf0e10cSrcweir //===== XServiceInfo ==================================================== 88cdf0e10cSrcweir 89cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL 90cdf0e10cSrcweir getImplementationName (void) 91cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 92cdf0e10cSrcweir 93cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL 94cdf0e10cSrcweir getSupportedServiceNames (void) 95cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 96cdf0e10cSrcweir 97cdf0e10cSrcweir //===== XTypeProvider =================================================== 98cdf0e10cSrcweir 99cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL 100cdf0e10cSrcweir getTypes (void) 101cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 102*9b8096d0SSteve Yin // ====== XAccessibleExtendedAttributes ===================================== 103*9b8096d0SSteve Yin virtual ::com::sun::star::uno::Any SAL_CALL getExtendedAttributes() throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) ; 104cdf0e10cSrcweir protected: 105cdf0e10cSrcweir /// Create a name string that contains the accessible name. 106cdf0e10cSrcweir virtual ::rtl::OUString 107cdf0e10cSrcweir CreateAccessibleBaseName () 108cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 109cdf0e10cSrcweir 110cdf0e10cSrcweir /// Create a description string that contains the accessible description. 111cdf0e10cSrcweir virtual ::rtl::OUString 112cdf0e10cSrcweir CreateAccessibleDescription () 113cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 114cdf0e10cSrcweir 115cdf0e10cSrcweir private: 116cdf0e10cSrcweir /** Don't use the default constructor. Use the public constructor that 117cdf0e10cSrcweir takes the original shape and the parent as arguments instead. 118cdf0e10cSrcweir */ 119cdf0e10cSrcweir SVX_DLLPRIVATE AccessibleOLEShape (void); 120cdf0e10cSrcweir 121cdf0e10cSrcweir /// Don't use the constructor. Not yet implemented. 122cdf0e10cSrcweir SVX_DLLPRIVATE AccessibleOLEShape (const AccessibleOLEShape&); 123cdf0e10cSrcweir 124cdf0e10cSrcweir /// Don't use the assignment operator. Not yet implemented. 125cdf0e10cSrcweir SVX_DLLPRIVATE AccessibleOLEShape& operator= (const AccessibleOLEShape&); 126cdf0e10cSrcweir }; 127cdf0e10cSrcweir 128cdf0e10cSrcweir } // end of namespace accessibility 129cdf0e10cSrcweir 130cdf0e10cSrcweir #endif 131