merge the formfield patch from ooo-build
[ooovba.git] / sw / source / core / access / accpage.hxx
blob149afde46692c9603f01f7aa3a56ba5e7c316508
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: accpage.hxx,v $
10 * $Revision: 1.9 $
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 ************************************************************************/
30 #ifndef _ACCPAGE_HXX
31 #define _ACCPAGE_HXX
33 #ifndef _ACCCONTEXT_HXX
34 #include "acccontext.hxx"
35 #endif
38 /**
39 * accessibility implementation for the page (SwPageFrm)
40 * The page is _only_ visible in the page preview. For the regular
41 * document view, it doesn't make sense to add this additional element
42 * into the hierarchy. For the page preview, however, the page is the
43 * important.
45 class SwAccessiblePage : public SwAccessibleContext
47 sal_Bool bIsSelected; // protected by base class mutex
49 sal_Bool IsSelected();
51 using SwAccessibleFrame::GetBounds;
53 protected:
55 // return the bounding box for the page in page preview mode
56 SwRect GetBounds( /* const SwFrm *pFrm =0 */ );
58 // Set states for getAccessibleStateSet.
59 // This drived class additionaly sets
60 // FOCUSABLE(1) and FOCUSED(+)
61 virtual void GetStates( ::utl::AccessibleStateSetHelper& rStateSet );
63 virtual void _InvalidateCursorPos();
64 virtual void _InvalidateFocus();
66 virtual ~SwAccessiblePage();
68 public:
69 // convenience constructor to avoid typecast;
70 // may only be called with SwPageFrm argument
71 SwAccessiblePage( SwAccessibleMap* pInitMap, const SwFrm* pFrame );
76 // XAccessibleContext methods that need to be overridden
79 virtual ::rtl::OUString SAL_CALL getAccessibleDescription (void)
80 throw (::com::sun::star::uno::RuntimeException);
83 // XServiceInfo
86 virtual ::rtl::OUString SAL_CALL getImplementationName (void)
87 throw (::com::sun::star::uno::RuntimeException);
88 virtual sal_Bool SAL_CALL supportsService (
89 const ::rtl::OUString& sServiceName)
90 throw (::com::sun::star::uno::RuntimeException);
91 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
92 getSupportedServiceNames (void)
93 throw (::com::sun::star::uno::RuntimeException);
95 //===== XTypeProvider ====================================================
96 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
98 virtual sal_Bool HasCursor(); // required by map to remember that object
101 #endif