update dev300-m58
[ooovba.git] / sc / source / ui / inc / AccessibleDocumentPagePreview.hxx
blob91b41c449fbd48a5312faf1381688aba0b40c0f7
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: AccessibleDocumentPagePreview.hxx,v $
10 * $Revision: 1.14 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #ifndef _SC_ACCESSIBLEDOCUMENTPAGEPREVIEW_HXX
33 #define _SC_ACCESSIBLEDOCUMENTPAGEPREVIEW_HXX
35 #include "AccessibleDocumentBase.hxx"
37 class ScPreviewShell;
38 class ScNotesChilds;
39 class ScShapeChilds;
40 class ScAccessiblePreviewTable;
41 class ScAccessiblePageHeader;
43 class ScAccessibleDocumentPagePreview
44 : public ScAccessibleDocumentBase
46 public:
47 //===== internal ========================================================
48 ScAccessibleDocumentPagePreview(
49 const ::com::sun::star::uno::Reference<
50 ::com::sun::star::accessibility::XAccessible>& rxParent,
51 ScPreviewShell* pViewShell );
52 protected:
53 virtual ~ScAccessibleDocumentPagePreview(void);
55 using ScAccessibleDocumentBase::IsDefunc;
57 public:
58 using ScAccessibleContextBase::disposing;
60 virtual void SAL_CALL disposing();
62 ///===== SfxListener =====================================================
64 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
66 ///===== XAccessibleComponent ============================================
68 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
69 SAL_CALL getAccessibleAtPoint(
70 const ::com::sun::star::awt::Point& rPoint )
71 throw (::com::sun::star::uno::RuntimeException);
73 virtual void SAL_CALL grabFocus( )
74 throw (::com::sun::star::uno::RuntimeException);
76 ///===== XAccessibleContext ==============================================
78 /// Return the number of currently visible children.
79 virtual sal_Int32 SAL_CALL
80 getAccessibleChildCount(void)
81 throw (::com::sun::star::uno::RuntimeException);
83 /// Return the specified child or NULL if index is invalid.
84 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
85 getAccessibleChild(sal_Int32 nIndex)
86 throw (::com::sun::star::uno::RuntimeException,
87 ::com::sun::star::lang::IndexOutOfBoundsException);
89 /// Return the set of current states.
90 virtual ::com::sun::star::uno::Reference<
91 ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL
92 getAccessibleStateSet(void)
93 throw (::com::sun::star::uno::RuntimeException);
95 ///===== XServiceInfo ====================================================
97 /** Returns an identifier for the implementation of this object.
99 virtual ::rtl::OUString SAL_CALL
100 getImplementationName(void)
101 throw (::com::sun::star::uno::RuntimeException);
103 /** Returns a list of all supported services.
105 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
106 getSupportedServiceNames(void)
107 throw (::com::sun::star::uno::RuntimeException);
109 ///===== XTypeProvider ===================================================
111 /** Returns a implementation id.
113 virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL
114 getImplementationId(void)
115 throw (::com::sun::star::uno::RuntimeException);
117 ///===== internal ========================================================
119 //UNUSED2009-05 com::sun::star::uno::Reference < com::sun::star::accessibility::XAccessible >
120 //UNUSED2009-05 GetCurrentAccessibleTable();
122 //UNUSED2009-05 void ChildCountChanged();
124 protected:
125 /// Return this object's description.
126 virtual ::rtl::OUString SAL_CALL
127 createAccessibleDescription(void)
128 throw (::com::sun::star::uno::RuntimeException);
130 /// Return the object's current name.
131 virtual ::rtl::OUString SAL_CALL
132 createAccessibleName(void)
133 throw (::com::sun::star::uno::RuntimeException);
135 public: // needed in ScShapeChilds
136 /// Return the object's current bounding box relative to the desktop.
137 virtual Rectangle GetBoundingBoxOnScreen(void) const
138 throw (::com::sun::star::uno::RuntimeException);
140 protected:
141 /// Return the object's current bounding box relative to the parent object.
142 virtual Rectangle GetBoundingBox(void) const
143 throw (::com::sun::star::uno::RuntimeException);
145 private:
146 ScPreviewShell* mpViewShell;
147 ScNotesChilds* mpNotesChilds;
148 ScShapeChilds* mpShapeChilds;
149 ScAccessiblePreviewTable* mpTable;
150 ScAccessiblePageHeader* mpHeader;
151 ScAccessiblePageHeader* mpFooter;
153 sal_Bool IsDefunc(
154 const com::sun::star::uno::Reference<
155 ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates);
157 ScNotesChilds* GetNotesChilds();
158 ScShapeChilds* GetShapeChilds();
162 #endif