1*38d50f7bSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*38d50f7bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*38d50f7bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*38d50f7bSAndrew Rist * distributed with this work for additional information 6*38d50f7bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*38d50f7bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*38d50f7bSAndrew Rist * "License"); you may not use this file except in compliance 9*38d50f7bSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*38d50f7bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*38d50f7bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*38d50f7bSAndrew Rist * software distributed under the License is distributed on an 15*38d50f7bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*38d50f7bSAndrew Rist * KIND, either express or implied. See the License for the 17*38d50f7bSAndrew Rist * specific language governing permissions and limitations 18*38d50f7bSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*38d50f7bSAndrew Rist *************************************************************/ 21*38d50f7bSAndrew Rist 22*38d50f7bSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir 25cdf0e10cSrcweir #ifndef _SC_ACCESSIBLEDOCUMENTPAGEPREVIEW_HXX 26cdf0e10cSrcweir #define _SC_ACCESSIBLEDOCUMENTPAGEPREVIEW_HXX 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include "AccessibleDocumentBase.hxx" 29cdf0e10cSrcweir 30cdf0e10cSrcweir class ScPreviewShell; 31cdf0e10cSrcweir class ScNotesChilds; 32cdf0e10cSrcweir class ScShapeChilds; 33cdf0e10cSrcweir class ScAccessiblePreviewTable; 34cdf0e10cSrcweir class ScAccessiblePageHeader; 35cdf0e10cSrcweir 36cdf0e10cSrcweir class ScAccessibleDocumentPagePreview 37cdf0e10cSrcweir : public ScAccessibleDocumentBase 38cdf0e10cSrcweir { 39cdf0e10cSrcweir public: 40cdf0e10cSrcweir //===== internal ======================================================== 41cdf0e10cSrcweir ScAccessibleDocumentPagePreview( 42cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 43cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessible>& rxParent, 44cdf0e10cSrcweir ScPreviewShell* pViewShell ); 45cdf0e10cSrcweir protected: 46cdf0e10cSrcweir virtual ~ScAccessibleDocumentPagePreview(void); 47cdf0e10cSrcweir 48cdf0e10cSrcweir using ScAccessibleDocumentBase::IsDefunc; 49cdf0e10cSrcweir 50cdf0e10cSrcweir public: 51cdf0e10cSrcweir using ScAccessibleContextBase::disposing; 52cdf0e10cSrcweir 53cdf0e10cSrcweir virtual void SAL_CALL disposing(); 54cdf0e10cSrcweir 55cdf0e10cSrcweir ///===== SfxListener ===================================================== 56cdf0e10cSrcweir 57cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 58cdf0e10cSrcweir 59cdf0e10cSrcweir ///===== XAccessibleComponent ============================================ 60cdf0e10cSrcweir 61cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > 62cdf0e10cSrcweir SAL_CALL getAccessibleAtPoint( 63cdf0e10cSrcweir const ::com::sun::star::awt::Point& rPoint ) 64cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 65cdf0e10cSrcweir 66cdf0e10cSrcweir virtual void SAL_CALL grabFocus( ) 67cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 68cdf0e10cSrcweir 69cdf0e10cSrcweir ///===== XAccessibleContext ============================================== 70cdf0e10cSrcweir 71cdf0e10cSrcweir /// Return the number of currently visible children. 72cdf0e10cSrcweir virtual sal_Int32 SAL_CALL 73cdf0e10cSrcweir getAccessibleChildCount(void) 74cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 75cdf0e10cSrcweir 76cdf0e10cSrcweir /// Return the specified child or NULL if index is invalid. 77cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL 78cdf0e10cSrcweir getAccessibleChild(sal_Int32 nIndex) 79cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException, 80cdf0e10cSrcweir ::com::sun::star::lang::IndexOutOfBoundsException); 81cdf0e10cSrcweir 82cdf0e10cSrcweir /// Return the set of current states. 83cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 84cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL 85cdf0e10cSrcweir getAccessibleStateSet(void) 86cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 87cdf0e10cSrcweir 88cdf0e10cSrcweir ///===== XServiceInfo ==================================================== 89cdf0e10cSrcweir 90cdf0e10cSrcweir /** Returns an identifier for the implementation of this object. 91cdf0e10cSrcweir */ 92cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL 93cdf0e10cSrcweir getImplementationName(void) 94cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 95cdf0e10cSrcweir 96cdf0e10cSrcweir /** Returns a list of all supported services. 97cdf0e10cSrcweir */ 98cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL 99cdf0e10cSrcweir getSupportedServiceNames(void) 100cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 101cdf0e10cSrcweir 102cdf0e10cSrcweir ///===== XTypeProvider =================================================== 103cdf0e10cSrcweir 104cdf0e10cSrcweir /** Returns a implementation id. 105cdf0e10cSrcweir */ 106cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL 107cdf0e10cSrcweir getImplementationId(void) 108cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 109cdf0e10cSrcweir 110cdf0e10cSrcweir ///===== internal ======================================================== 111cdf0e10cSrcweir 112cdf0e10cSrcweir //UNUSED2009-05 com::sun::star::uno::Reference < com::sun::star::accessibility::XAccessible > 113cdf0e10cSrcweir //UNUSED2009-05 GetCurrentAccessibleTable(); 114cdf0e10cSrcweir 115cdf0e10cSrcweir //UNUSED2009-05 void ChildCountChanged(); 116cdf0e10cSrcweir 117cdf0e10cSrcweir protected: 118cdf0e10cSrcweir /// Return this object's description. 119cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL 120cdf0e10cSrcweir createAccessibleDescription(void) 121cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 122cdf0e10cSrcweir 123cdf0e10cSrcweir /// Return the object's current name. 124cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL 125cdf0e10cSrcweir createAccessibleName(void) 126cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 127cdf0e10cSrcweir 128cdf0e10cSrcweir public: // needed in ScShapeChilds 129cdf0e10cSrcweir /// Return the object's current bounding box relative to the desktop. 130cdf0e10cSrcweir virtual Rectangle GetBoundingBoxOnScreen(void) const 131cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 132cdf0e10cSrcweir 133cdf0e10cSrcweir protected: 134cdf0e10cSrcweir /// Return the object's current bounding box relative to the parent object. 135cdf0e10cSrcweir virtual Rectangle GetBoundingBox(void) const 136cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 137cdf0e10cSrcweir 138cdf0e10cSrcweir private: 139cdf0e10cSrcweir ScPreviewShell* mpViewShell; 140cdf0e10cSrcweir ScNotesChilds* mpNotesChilds; 141cdf0e10cSrcweir ScShapeChilds* mpShapeChilds; 142cdf0e10cSrcweir ScAccessiblePreviewTable* mpTable; 143cdf0e10cSrcweir ScAccessiblePageHeader* mpHeader; 144cdf0e10cSrcweir ScAccessiblePageHeader* mpFooter; 145cdf0e10cSrcweir 146cdf0e10cSrcweir sal_Bool IsDefunc( 147cdf0e10cSrcweir const com::sun::star::uno::Reference< 148cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates); 149cdf0e10cSrcweir 150cdf0e10cSrcweir ScNotesChilds* GetNotesChilds(); 151cdf0e10cSrcweir ScShapeChilds* GetShapeChilds(); 152cdf0e10cSrcweir }; 153cdf0e10cSrcweir 154cdf0e10cSrcweir 155cdf0e10cSrcweir #endif 156