138d50f7bSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 338d50f7bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 438d50f7bSAndrew Rist * or more contributor license agreements. See the NOTICE file 538d50f7bSAndrew Rist * distributed with this work for additional information 638d50f7bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 738d50f7bSAndrew Rist * to you under the Apache License, Version 2.0 (the 838d50f7bSAndrew Rist * "License"); you may not use this file except in compliance 938d50f7bSAndrew Rist * with the License. You may obtain a copy of the License at 1038d50f7bSAndrew Rist * 1138d50f7bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 1238d50f7bSAndrew Rist * 1338d50f7bSAndrew Rist * Unless required by applicable law or agreed to in writing, 1438d50f7bSAndrew Rist * software distributed under the License is distributed on an 1538d50f7bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1638d50f7bSAndrew Rist * KIND, either express or implied. See the License for the 1738d50f7bSAndrew Rist * specific language governing permissions and limitations 1838d50f7bSAndrew Rist * under the License. 1938d50f7bSAndrew Rist * 2038d50f7bSAndrew Rist *************************************************************/ 2138d50f7bSAndrew Rist 2238d50f7bSAndrew 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 88*0deba7fbSSteve Yin virtual ::rtl::OUString SAL_CALL getAccessibleName(void) 89*0deba7fbSSteve Yin throw (::com::sun::star::uno::RuntimeException); 90cdf0e10cSrcweir ///===== XServiceInfo ==================================================== 91cdf0e10cSrcweir 92cdf0e10cSrcweir /** Returns an identifier for the implementation of this object. 93cdf0e10cSrcweir */ 94cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL 95cdf0e10cSrcweir getImplementationName(void) 96cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 97cdf0e10cSrcweir 98cdf0e10cSrcweir /** Returns a list of all supported services. 99cdf0e10cSrcweir */ 100cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL 101cdf0e10cSrcweir getSupportedServiceNames(void) 102cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 103cdf0e10cSrcweir 104cdf0e10cSrcweir ///===== XTypeProvider =================================================== 105cdf0e10cSrcweir 106cdf0e10cSrcweir /** Returns a implementation id. 107cdf0e10cSrcweir */ 108cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL 109cdf0e10cSrcweir getImplementationId(void) 110cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 111cdf0e10cSrcweir 112cdf0e10cSrcweir ///===== internal ======================================================== 113cdf0e10cSrcweir 114cdf0e10cSrcweir //UNUSED2009-05 com::sun::star::uno::Reference < com::sun::star::accessibility::XAccessible > 115cdf0e10cSrcweir //UNUSED2009-05 GetCurrentAccessibleTable(); 116cdf0e10cSrcweir 117cdf0e10cSrcweir //UNUSED2009-05 void ChildCountChanged(); 118cdf0e10cSrcweir 119cdf0e10cSrcweir protected: 120cdf0e10cSrcweir /// Return this object's description. 121cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL 122cdf0e10cSrcweir createAccessibleDescription(void) 123cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 124cdf0e10cSrcweir 125cdf0e10cSrcweir /// Return the object's current name. 126cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL 127cdf0e10cSrcweir createAccessibleName(void) 128cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 129cdf0e10cSrcweir 130cdf0e10cSrcweir public: // needed in ScShapeChilds 131cdf0e10cSrcweir /// Return the object's current bounding box relative to the desktop. 132cdf0e10cSrcweir virtual Rectangle GetBoundingBoxOnScreen(void) const 133cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 134cdf0e10cSrcweir 135cdf0e10cSrcweir protected: 136cdf0e10cSrcweir /// Return the object's current bounding box relative to the parent object. 137cdf0e10cSrcweir virtual Rectangle GetBoundingBox(void) const 138cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 139cdf0e10cSrcweir 140cdf0e10cSrcweir private: 141cdf0e10cSrcweir ScPreviewShell* mpViewShell; 142cdf0e10cSrcweir ScNotesChilds* mpNotesChilds; 143cdf0e10cSrcweir ScShapeChilds* mpShapeChilds; 144cdf0e10cSrcweir ScAccessiblePreviewTable* mpTable; 145cdf0e10cSrcweir ScAccessiblePageHeader* mpHeader; 146cdf0e10cSrcweir ScAccessiblePageHeader* mpFooter; 147cdf0e10cSrcweir 148cdf0e10cSrcweir sal_Bool IsDefunc( 149cdf0e10cSrcweir const com::sun::star::uno::Reference< 150cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates); 151cdf0e10cSrcweir 152cdf0e10cSrcweir ScNotesChilds* GetNotesChilds(); 153cdf0e10cSrcweir ScShapeChilds* GetShapeChilds(); 154cdf0e10cSrcweir }; 155cdf0e10cSrcweir 156cdf0e10cSrcweir 157cdf0e10cSrcweir #endif 158