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 _ACCNOTEXTFRAME_HXX 24 #define _ACCNOTEXTFRAME_HXX 25 #include "accframebase.hxx" 26 #include <com/sun/star/accessibility/XAccessibleImage.hpp> 27 28 class SwFlyFrm; 29 class SwNoTxtNode; 30 31 class SwAccessibleNoTextFrame : public SwAccessibleFrameBase, 32 public ::com::sun::star::accessibility::XAccessibleImage 33 { 34 SwDepend aDepend; 35 // --> OD 2009-07-14 #i73249# 36 ::rtl::OUString msTitle; 37 // <-- 38 ::rtl::OUString msDesc; 39 40 protected: 41 42 virtual ~SwAccessibleNoTextFrame(); 43 44 const SwNoTxtNode *GetNoTxtNode() const; 45 46 virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 47 48 public: 49 50 SwAccessibleNoTextFrame( SwAccessibleMap* pInitMap, 51 sal_Int16 nInitRole, 52 const SwFlyFrm *pFlyFrm ); 53 54 //===== XAccessibleContext ============================================== 55 56 // --> OD 2009-07-14 #i73249# 57 /// Return the object's current name. 58 virtual ::rtl::OUString SAL_CALL 59 getAccessibleName (void) 60 throw (::com::sun::star::uno::RuntimeException); 61 // <-- 62 63 /// Return this object's description. 64 virtual ::rtl::OUString SAL_CALL 65 getAccessibleDescription (void) 66 throw (com::sun::star::uno::RuntimeException); 67 68 //===== XInterface ====================================================== 69 70 // XInterface methods need to be implemented to disambiguate 71 // between those inherited through SwAcessibleContext and 72 // XAccessibleImage. 73 74 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( 75 const ::com::sun::star::uno::Type& aType ) 76 throw (::com::sun::star::uno::RuntimeException); 77 78 virtual void SAL_CALL acquire( ) throw () 79 { SwAccessibleContext::acquire(); }; 80 81 virtual void SAL_CALL release( ) throw () 82 { SwAccessibleContext::release(); }; 83 84 //====== XTypeProvider ==================================================== 85 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException); 86 87 //===== XAccessibleImage ================================================ 88 89 virtual ::rtl::OUString SAL_CALL 90 getAccessibleImageDescription( ) 91 throw ( ::com::sun::star::uno::RuntimeException ); 92 93 virtual sal_Int32 SAL_CALL 94 getAccessibleImageHeight( ) 95 throw ( ::com::sun::star::uno::RuntimeException ); 96 97 virtual sal_Int32 SAL_CALL 98 getAccessibleImageWidth( ) 99 throw ( ::com::sun::star::uno::RuntimeException ); 100 101 // The object is not visible an longer and should be destroyed 102 virtual void Dispose( sal_Bool bRecursive = sal_False ); 103 }; 104 105 106 #endif 107