accessiblecell.hxx (3334a7e6) | accessiblecell.hxx (9b8096d0) |
---|---|
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 --- 29 unchanged lines hidden (view full) --- 38#include <svx/AccessibleShapeTreeInfo.hxx> 39 40#include <cppuhelper/implbase1.hxx> 41 42#include "cell.hxx" 43 44#include <boost/noncopyable.hpp> 45 | 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 --- 29 unchanged lines hidden (view full) --- 38#include <svx/AccessibleShapeTreeInfo.hxx> 39 40#include <cppuhelper/implbase1.hxx> 41 42#include "cell.hxx" 43 44#include <boost/noncopyable.hpp> 45 |
46#include <svx/AccessibleTableShape.hxx> 47 |
|
46class SdrObject; 47 48 49namespace accessibility 50{ 51 52class AccessibleShapeInfo; 53class AccessibleShapeTreeInfo; --- 21 unchanged lines hidden (view full) --- 75 virtual void SAL_CALL release( ) throw (); 76 77 // XAccessibleContext 78 virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw(::com::sun::star::uno::RuntimeException); 79 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 80 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) throw(::com::sun::star::uno::RuntimeException); 81 virtual sal_Int32 SAL_CALL getAccessibleIndexInParent(void) throw(::com::sun::star::uno::RuntimeException); 82 virtual ::rtl::OUString SAL_CALL getAccessibleName (void) throw (::com::sun::star::uno::RuntimeException); | 48class SdrObject; 49 50 51namespace accessibility 52{ 53 54class AccessibleShapeInfo; 55class AccessibleShapeTreeInfo; --- 21 unchanged lines hidden (view full) --- 77 virtual void SAL_CALL release( ) throw (); 78 79 // XAccessibleContext 80 virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw(::com::sun::star::uno::RuntimeException); 81 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 82 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) throw(::com::sun::star::uno::RuntimeException); 83 virtual sal_Int32 SAL_CALL getAccessibleIndexInParent(void) throw(::com::sun::star::uno::RuntimeException); 84 virtual ::rtl::OUString SAL_CALL getAccessibleName (void) throw (::com::sun::star::uno::RuntimeException); |
85 sdr::table::CellRef getCellRef(); 86 void UpdateChildren(); 87 ::rtl::OUString getCellName( sal_Int32 nCol, sal_Int32 nRow ); |
|
83 84 // XAccessibleComponent 85 virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint) throw (::com::sun::star::uno::RuntimeException); 86 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const ::com::sun::star::awt::Point& aPoint) throw(::com::sun::star::uno::RuntimeException); 87 virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds(void) throw(::com::sun::star::uno::RuntimeException); 88 virtual ::com::sun::star::awt::Point SAL_CALL getLocation(void) throw(::com::sun::star::uno::RuntimeException); 89 virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen(void) throw(::com::sun::star::uno::RuntimeException); 90 virtual ::com::sun::star::awt::Size SAL_CALL getSize(void) throw(::com::sun::star::uno::RuntimeException); --- 23 unchanged lines hidden (view full) --- 114 using cppu::WeakComponentImplHelperBase::removeEventListener; 115 116 // Misc 117 118 /** set the index _nIndex at the accessible cell param _nIndex The new index in parent. 119 */ 120 inline void setIndexInParent(sal_Int32 _nIndex) { mnIndexInParent = _nIndex; } 121 | 88 89 // XAccessibleComponent 90 virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint) throw (::com::sun::star::uno::RuntimeException); 91 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const ::com::sun::star::awt::Point& aPoint) throw(::com::sun::star::uno::RuntimeException); 92 virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds(void) throw(::com::sun::star::uno::RuntimeException); 93 virtual ::com::sun::star::awt::Point SAL_CALL getLocation(void) throw(::com::sun::star::uno::RuntimeException); 94 virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen(void) throw(::com::sun::star::uno::RuntimeException); 95 virtual ::com::sun::star::awt::Size SAL_CALL getSize(void) throw(::com::sun::star::uno::RuntimeException); --- 23 unchanged lines hidden (view full) --- 119 using cppu::WeakComponentImplHelperBase::removeEventListener; 120 121 // Misc 122 123 /** set the index _nIndex at the accessible cell param _nIndex The new index in parent. 124 */ 125 inline void setIndexInParent(sal_Int32 _nIndex) { mnIndexInParent = _nIndex; } 126 |
127 //Get the parent table 128 AccessibleTableShape* GetParentTable() { return pAccTable; } |
|
122protected: 123 /// Bundle of information passed to all shapes in a document tree. 124 AccessibleShapeTreeInfo maShapeTreeInfo; 125 126 /// the index in parent. 127 sal_Int32 mnIndexInParent; 128 129 /// The accessible text engine. May be NULL if it can not be created. 130 AccessibleTextHelper* mpText; 131 132 sdr::table::CellRef mxCell; 133 134 /// This method is called from the component helper base class while disposing. 135 virtual void SAL_CALL disposing (void); 136 | 129protected: 130 /// Bundle of information passed to all shapes in a document tree. 131 AccessibleShapeTreeInfo maShapeTreeInfo; 132 133 /// the index in parent. 134 sal_Int32 mnIndexInParent; 135 136 /// The accessible text engine. May be NULL if it can not be created. 137 AccessibleTextHelper* mpText; 138 139 sdr::table::CellRef mxCell; 140 141 /// This method is called from the component helper base class while disposing. 142 virtual void SAL_CALL disposing (void); 143 |
144 AccessibleTableShape *pAccTable; 145 |
|
137private: 138 explicit AccessibleCell(void); // not implemented 139 explicit AccessibleCell(const AccessibleCell&); // not implemented 140 AccessibleCell& operator=(const AccessibleCell&); // not implemented 141}; 142 143} // end of namespace accessibility 144 145#endif | 146private: 147 explicit AccessibleCell(void); // not implemented 148 explicit AccessibleCell(const AccessibleCell&); // not implemented 149 AccessibleCell& operator=(const AccessibleCell&); // not implemented 150}; 151 152} // end of namespace accessibility 153 154#endif |