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 #ifndef _ACCEMBEDDED_HXX 24 #define _ACCEMBEDDED_HXX 25 #include "accnotextframe.hxx" 26 27 //IAccessibility2 Implementation 2009----- 28 #include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp> 29 //-----IAccessibility2 Implementation 2009 30 class SwAccessibleEmbeddedObject : public SwAccessibleNoTextFrame 31 , public ::com::sun::star::accessibility::XAccessibleExtendedAttributes 32 33 { 34 35 protected: 36 37 virtual ~SwAccessibleEmbeddedObject(); 38 39 public: 40 41 SwAccessibleEmbeddedObject( SwAccessibleMap* pInitMap, 42 const SwFlyFrm* pFlyFrm ); 43 44 //IAccessibility2 Implementation 2009----- 45 //===== XInterface ====================================================== 46 47 virtual com::sun::star::uno::Any SAL_CALL 48 queryInterface (const com::sun::star::uno::Type & rType) 49 throw (::com::sun::star::uno::RuntimeException); 50 51 virtual void SAL_CALL 52 acquire (void) 53 throw (); 54 55 virtual void SAL_CALL 56 release (void) 57 throw (); 58 //-----IAccessibility2 Implementation 2009 59 //===== XServiceInfo ==================================================== 60 61 /** Returns an identifier for the implementation of this object. 62 */ 63 virtual ::rtl::OUString SAL_CALL 64 getImplementationName (void) 65 throw (::com::sun::star::uno::RuntimeException); 66 67 /** Return whether the specified service is supported by this class. 68 */ 69 virtual sal_Bool SAL_CALL 70 supportsService (const ::rtl::OUString& sServiceName) 71 throw (::com::sun::star::uno::RuntimeException); 72 73 /** Returns a list of all supported services. In this case that is just 74 the AccessibleContext service. 75 */ 76 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL 77 getSupportedServiceNames (void) 78 throw (::com::sun::star::uno::RuntimeException); 79 80 //===== XTypeProvider ==================================================== 81 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException); 82 83 //IAccessibility2 Implementation 2009----- 84 // ====== XAccessibleExtendedAttributes ===================================== 85 virtual ::com::sun::star::uno::Any SAL_CALL getExtendedAttributes() 86 throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) ; 87 //-----IAccessibility2 Implementation 2009 88 }; 89 90 91 #endif 92