fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / AccessiblePreviewHeaderCell.hxx
blob4b8d2c9c980e33b9bc9e5c5e92106b8cd5916574
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_ACCESSIBLEPREVIEWHEADERCELL_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_ACCESSIBLEPREVIEWHEADERCELL_HXX
23 #include "AccessibleContextBase.hxx"
24 #include <com/sun/star/accessibility/XAccessibleValue.hpp>
25 #include <tools/gen.hxx>
26 #include "global.hxx"
27 #include "address.hxx"
28 #include <cppuhelper/implbase1.hxx>
30 class ScPreviewShell;
31 class ScPreviewTableInfo;
32 namespace accessibility {
33 class AccessibleTextHelper;
36 typedef cppu::ImplHelper1< ::com::sun::star::accessibility::XAccessibleValue>
37 ScAccessiblePreviewHeaderCellImpl;
39 class ScAccessiblePreviewHeaderCell :
40 public ScAccessibleContextBase,
41 public ScAccessiblePreviewHeaderCellImpl
43 public:
44 ScAccessiblePreviewHeaderCell( const ::com::sun::star::uno::Reference<
45 ::com::sun::star::accessibility::XAccessible>& rxParent,
46 ScPreviewShell* pViewShell,
47 const ScAddress& rCellPos, bool bIsColHdr, bool bIsRowHdr,
48 sal_Int32 nIndex );
50 protected:
51 virtual ~ScAccessiblePreviewHeaderCell();
53 using ScAccessibleContextBase::IsDefunc;
55 public:
56 using ScAccessibleContextBase::disposing;
57 virtual void SAL_CALL disposing() SAL_OVERRIDE;
59 //===== SfxListener =====================================================
61 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
63 ///===== XInterface =====================================================
65 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
66 ::com::sun::star::uno::Type const & rType )
67 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
69 virtual void SAL_CALL acquire() throw () SAL_OVERRIDE;
71 virtual void SAL_CALL release() throw () SAL_OVERRIDE;
73 //===== XAccessibleValue ================================================
75 virtual ::com::sun::star::uno::Any SAL_CALL getCurrentValue() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
76 virtual sal_Bool SAL_CALL setCurrentValue( const ::com::sun::star::uno::Any& aNumber )
77 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
78 virtual ::com::sun::star::uno::Any SAL_CALL getMaximumValue() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
79 virtual ::com::sun::star::uno::Any SAL_CALL getMinimumValue() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
81 //===== XAccessibleComponent ============================================
83 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
84 getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint )
85 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
86 virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
88 //===== XAccessibleContext ==============================================
90 virtual sal_Int32 SAL_CALL getAccessibleChildCount() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
91 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
92 getAccessibleChild( sal_Int32 i )
93 throw (::com::sun::star::lang::IndexOutOfBoundsException,
94 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
95 virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
96 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL
97 getAccessibleStateSet() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
99 //===== XServiceInfo ====================================================
101 virtual OUString SAL_CALL getImplementationName()
102 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
103 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
104 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
106 ///===== XTypeProvider ===================================================
108 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL
109 getTypes()
110 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
112 /** Returns a implementation id.
114 virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL
115 getImplementationId()
116 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
118 protected:
119 virtual OUString SAL_CALL createAccessibleDescription() throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
120 virtual OUString SAL_CALL createAccessibleName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
122 virtual Rectangle GetBoundingBoxOnScreen() const throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
123 virtual Rectangle GetBoundingBox() const throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
125 private:
126 ScPreviewShell* mpViewShell;
127 accessibility::AccessibleTextHelper* mpTextHelper;
128 sal_Int32 mnIndex;
129 ScAddress maCellPos;
130 bool mbColumnHeader;
131 bool mbRowHeader;
132 mutable ScPreviewTableInfo* mpTableInfo;
134 bool IsDefunc(
135 const com::sun::star::uno::Reference<
136 ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates);
138 void CreateTextHelper();
139 void FillTableInfo() const;
142 #endif
144 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */