fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / AccessiblePageHeaderArea.hxx
blob123e9b8bd64329a693d27c932caa13d030b7b7f0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_ACCESSIBLEPAGEHEADERAREA_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_ACCESSIBLEPAGEHEADERAREA_HXX
23 #include "AccessibleContextBase.hxx"
24 #include <editeng/svxenum.hxx>
26 class EditTextObject;
27 namespace accessibility
29 class AccessibleTextHelper;
31 class ScPreviewShell;
33 class ScAccessiblePageHeaderArea
34 : public ScAccessibleContextBase
36 public:
37 //===== internal ========================================================
38 ScAccessiblePageHeaderArea(
39 const ::com::sun::star::uno::Reference<
40 ::com::sun::star::accessibility::XAccessible>& rxParent,
41 ScPreviewShell* pViewShell,
42 const EditTextObject* pEditObj,
43 bool bHeader,
44 SvxAdjust eAdjust);
45 protected:
46 virtual ~ScAccessiblePageHeaderArea();
47 public:
48 const EditTextObject* GetEditTextObject() const { return mpEditObj; }
50 using ScAccessibleContextBase::disposing;
51 virtual void SAL_CALL disposing() SAL_OVERRIDE;
53 ///===== SfxListener =====================================================
55 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
57 ///===== XAccessibleComponent ============================================
59 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
60 SAL_CALL getAccessibleAtPoint(
61 const ::com::sun::star::awt::Point& rPoint )
62 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
64 ///===== XAccessibleContext ==============================================
66 /// Return the number of currently visible children.
67 /// override to calculate this on demand
68 virtual sal_Int32 SAL_CALL
69 getAccessibleChildCount()
70 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
72 /// Return the specified child or NULL if index is invalid.
73 /// override to calculate this on demand
74 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
75 getAccessibleChild(sal_Int32 nIndex)
76 throw (::com::sun::star::uno::RuntimeException,
77 ::com::sun::star::lang::IndexOutOfBoundsException, std::exception) SAL_OVERRIDE;
79 /// Return the set of current states.
80 virtual ::com::sun::star::uno::Reference<
81 ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL
82 getAccessibleStateSet()
83 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
85 ///===== XServiceInfo ====================================================
87 /** Returns an identifier for the implementation of this object.
89 virtual OUString SAL_CALL
90 getImplementationName()
91 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
93 /** Returns a list of all supported services. In this case that is just
94 the AccessibleContext and Accessible service.
96 virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL
97 getSupportedServiceNames()
98 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
100 ///===== XTypeProvider ===================================================
102 /** Returns a implementation id.
104 virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL
105 getImplementationId()
106 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
108 protected:
109 virtual OUString SAL_CALL createAccessibleDescription() throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
110 virtual OUString SAL_CALL createAccessibleName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
112 virtual Rectangle GetBoundingBoxOnScreen() const throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
113 virtual Rectangle GetBoundingBox() const throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
115 private:
116 EditTextObject* mpEditObj;
117 accessibility::AccessibleTextHelper* mpTextHelper;
118 ScPreviewShell* mpViewShell;
119 bool mbHeader;
120 SvxAdjust meAdjust;
122 void CreateTextHelper();
125 #endif
127 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */