1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #ifndef _SC_ACCESSIBLEPAGEHEADER_HXX
22 #define _SC_ACCESSIBLEPAGEHEADER_HXX
24 #include "AccessibleContextBase.hxx"
25 #include <editeng/svxenum.hxx>
29 class ScAccessiblePageHeaderArea
;
32 class ScAccessiblePageHeader
: public ScAccessibleContextBase
35 ScAccessiblePageHeader( const ::com::sun::star::uno::Reference
<
36 ::com::sun::star::accessibility::XAccessible
>& rxParent
,
37 ScPreviewShell
* pViewShell
, sal_Bool bHeader
, sal_Int32 nIndex
);
40 virtual ~ScAccessiblePageHeader();
42 using ScAccessibleContextBase::IsDefunc
;
45 using ScAccessibleContextBase::disposing
;
46 virtual void SAL_CALL
disposing();
48 //===== SfxListener =====================================================
50 virtual void Notify( SfxBroadcaster
& rBC
, const SfxHint
& rHint
);
52 //===== XAccessibleComponent ============================================
54 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
55 getAccessibleAtPoint( const ::com::sun::star::awt::Point
& aPoint
)
56 throw (::com::sun::star::uno::RuntimeException
);
57 virtual void SAL_CALL
grabFocus() throw (::com::sun::star::uno::RuntimeException
);
59 //===== XAccessibleContext ==============================================
61 virtual sal_Int32 SAL_CALL
getAccessibleChildCount() throw (::com::sun::star::uno::RuntimeException
);
62 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
63 getAccessibleChild( sal_Int32 i
)
64 throw (::com::sun::star::lang::IndexOutOfBoundsException
,
65 ::com::sun::star::uno::RuntimeException
);
66 virtual sal_Int32 SAL_CALL
getAccessibleIndexInParent() throw (::com::sun::star::uno::RuntimeException
);
67 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleStateSet
> SAL_CALL
68 getAccessibleStateSet() throw (::com::sun::star::uno::RuntimeException
);
70 //===== XServiceInfo ====================================================
72 virtual OUString SAL_CALL
getImplementationName()
73 throw(::com::sun::star::uno::RuntimeException
);
74 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames()
75 throw(::com::sun::star::uno::RuntimeException
);
77 //===== internal ========================================================
78 void SetCurrentIndexInParent(sal_Int32 nNew
) { mnIndex
= nNew
; }
81 virtual OUString SAL_CALL
createAccessibleDescription(void) throw(::com::sun::star::uno::RuntimeException
);
82 virtual OUString SAL_CALL
createAccessibleName(void) throw (::com::sun::star::uno::RuntimeException
);
84 virtual Rectangle
GetBoundingBoxOnScreen(void) const throw(::com::sun::star::uno::RuntimeException
);
85 virtual Rectangle
GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException
);
88 ScPreviewShell
* mpViewShell
;
91 typedef std::vector
< ScAccessiblePageHeaderArea
* > ScHFAreas
;
93 sal_Int32 mnChildCount
;
96 const com::sun::star::uno::Reference
<
97 ::com::sun::star::accessibility::XAccessibleStateSet
>& rxParentStates
);
99 void AddChild(const EditTextObject
* pArea
, sal_uInt32 nIndex
, SvxAdjust eAdjust
);
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */