LibreOffice Module sc (master)
1
sc
source
ui
inc
AccessiblePreviewHeaderCell.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
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/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
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 .
18
*/
19
20
#pragma once
21
22
#include "
AccessibleContextBase.hxx
"
23
#include <com/sun/star/accessibility/XAccessibleValue.hpp>
24
#include <
tools/gen.hxx
>
25
#include <
address.hxx
>
26
#include <
cppuhelper/implbase1.hxx
>
27
28
class
ScPreviewShell
;
29
class
ScPreviewTableInfo
;
30
namespace
accessibility
{
31
class
AccessibleTextHelper;
32
}
33
34
typedef
cppu::ImplHelper1< css::accessibility::XAccessibleValue>
35
ScAccessiblePreviewHeaderCellImpl
;
36
37
class
ScAccessiblePreviewHeaderCell
:
38
public
ScAccessibleContextBase
,
39
public
ScAccessiblePreviewHeaderCellImpl
40
{
41
public
:
42
ScAccessiblePreviewHeaderCell
(
const
css::uno::Reference<css::accessibility::XAccessible>& rxParent,
43
ScPreviewShell
* pViewShell,
44
const
ScAddress
& rCellPos,
bool
bIsColHdr,
bool
bIsRowHdr,
45
sal_Int32
nIndex
);
46
47
protected
:
48
virtual
~ScAccessiblePreviewHeaderCell
()
override
;
49
50
using
ScAccessibleContextBase::IsDefunc
;
51
52
public
:
53
using
ScAccessibleContextBase::disposing
;
54
virtual
void
SAL_CALL
disposing
()
override
;
55
56
//===== SfxListener =====================================================
57
58
virtual
void
Notify
(
SfxBroadcaster
& rBC,
const
SfxHint
& rHint )
override
;
59
61
62
virtual
css::uno::Any SAL_CALL
queryInterface
(
63
css::uno::Type
const
& rType )
override
;
64
65
virtual
void
SAL_CALL
acquire
()
noexcept
override
;
66
67
virtual
void
SAL_CALL
release
()
noexcept
override
;
68
69
//===== XAccessibleValue ================================================
70
71
virtual
css::uno::Any SAL_CALL
getCurrentValue
()
override
;
72
virtual
sal_Bool
SAL_CALL
setCurrentValue
(
const
css::uno::Any& aNumber )
override
;
73
virtual
css::uno::Any SAL_CALL
getMaximumValue
()
override
;
74
virtual
css::uno::Any SAL_CALL
getMinimumValue
()
override
;
75
virtual
css::uno::Any SAL_CALL
getMinimumIncrement
()
override
;
76
77
//===== XAccessibleComponent ============================================
78
79
virtual
css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
80
getAccessibleAtPoint
(
const
css::awt::Point& aPoint )
override
;
81
virtual
void
SAL_CALL
grabFocus
()
override
;
82
83
//===== XAccessibleContext ==============================================
84
85
virtual
sal_Int64 SAL_CALL
getAccessibleChildCount
()
override
;
86
virtual
css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
87
getAccessibleChild
( sal_Int64
i
)
override
;
88
virtual
sal_Int64 SAL_CALL
getAccessibleIndexInParent
()
override
;
89
virtual
sal_Int64 SAL_CALL
getAccessibleStateSet
()
override
;
90
91
//===== XServiceInfo ====================================================
92
93
virtual
OUString SAL_CALL
getImplementationName
()
override
;
94
virtual
css::uno::Sequence< OUString > SAL_CALL
getSupportedServiceNames
()
override
;
95
97
98
virtual
css::uno::Sequence< css::uno::Type > SAL_CALL
99
getTypes
()
override
;
100
103
virtual
css::uno::Sequence<sal_Int8> SAL_CALL
104
getImplementationId
()
override
;
105
106
protected
:
107
virtual
OUString
createAccessibleDescription
()
override
;
108
virtual
OUString
createAccessibleName
()
override
;
109
110
virtual
tools::Rectangle
GetBoundingBoxOnScreen
()
const override
;
111
virtual
tools::Rectangle
GetBoundingBox
()
const override
;
112
113
private
:
114
ScPreviewShell
*
mpViewShell
;
115
std::unique_ptr<accessibility::AccessibleTextHelper>
mxTextHelper
;
116
sal_Int32
mnIndex
;
117
ScAddress
maCellPos
;
118
bool
mbColumnHeader
;
119
bool
mbRowHeader
;
120
mutable
std::unique_ptr<ScPreviewTableInfo>
mpTableInfo
;
121
122
bool
IsDefunc
(sal_Int64 nParentStates);
123
124
void
CreateTextHelper
();
125
void
FillTableInfo
()
const
;
126
};
127
128
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AccessibleContextBase.hxx
ScAccessiblePreviewHeaderCellImpl
cppu::ImplHelper1< css::accessibility::XAccessibleValue > ScAccessiblePreviewHeaderCellImpl
Definition:
AccessiblePreviewHeaderCell.hxx:35
address.hxx
ScAccessibleContextBase
Definition:
AccessibleContextBase.hxx:55
ScAccessibleContextBase::disposing
virtual void SAL_CALL disposing() override
Definition:
AccessibleContextBase.cxx:76
ScAccessibleContextBase::IsDefunc
bool IsDefunc() const
Definition:
AccessibleContextBase.hxx:233
ScAccessiblePreviewHeaderCell
Definition:
AccessiblePreviewHeaderCell.hxx:40
ScAccessiblePreviewHeaderCell::mnIndex
sal_Int32 mnIndex
Definition:
AccessiblePreviewHeaderCell.hxx:116
ScAccessiblePreviewHeaderCell::createAccessibleName
virtual OUString createAccessibleName() override
Return the object's current name.
Definition:
AccessiblePreviewHeaderCell.cxx:342
ScAccessiblePreviewHeaderCell::mbColumnHeader
bool mbColumnHeader
Definition:
AccessiblePreviewHeaderCell.hxx:118
ScAccessiblePreviewHeaderCell::setCurrentValue
virtual sal_Bool SAL_CALL setCurrentValue(const css::uno::Any &aNumber) override
Definition:
AccessiblePreviewHeaderCell.cxx:144
ScAccessiblePreviewHeaderCell::getMinimumIncrement
virtual css::uno::Any SAL_CALL getMinimumIncrement() override
Definition:
AccessiblePreviewHeaderCell.cxx:169
ScAccessiblePreviewHeaderCell::disposing
virtual void SAL_CALL disposing() override
Definition:
AccessiblePreviewHeaderCell.cxx:74
ScAccessiblePreviewHeaderCell::getImplementationName
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
Definition:
AccessiblePreviewHeaderCell.cxx:259
ScAccessiblePreviewHeaderCell::getAccessibleAtPoint
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
Definition:
AccessiblePreviewHeaderCell.cxx:177
ScAccessiblePreviewHeaderCell::mxTextHelper
std::unique_ptr< accessibility::AccessibleTextHelper > mxTextHelper
Definition:
AccessiblePreviewHeaderCell.hxx:115
ScAccessiblePreviewHeaderCell::acquire
virtual void SAL_CALL acquire() noexcept override
Definition:
AccessiblePreviewHeaderCell.cxx:116
ScAccessiblePreviewHeaderCell::release
virtual void SAL_CALL release() noexcept override
Definition:
AccessiblePreviewHeaderCell.cxx:122
ScAccessiblePreviewHeaderCell::IsDefunc
bool IsDefunc() const
Definition:
AccessibleContextBase.hxx:233
ScAccessiblePreviewHeaderCell::GetBoundingBox
virtual tools::Rectangle GetBoundingBox() const override
Return the object's current bounding box relative to the parent object.
Definition:
AccessiblePreviewHeaderCell.cxx:311
ScAccessiblePreviewHeaderCell::getSupportedServiceNames
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
Definition:
AccessiblePreviewHeaderCell.cxx:264
ScAccessiblePreviewHeaderCell::maCellPos
ScAddress maCellPos
Definition:
AccessiblePreviewHeaderCell.hxx:117
ScAccessiblePreviewHeaderCell::getAccessibleStateSet
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
Return the set of current states.
Definition:
AccessiblePreviewHeaderCell.cxx:231
ScAccessiblePreviewHeaderCell::getMaximumValue
virtual css::uno::Any SAL_CALL getMaximumValue() override
Definition:
AccessiblePreviewHeaderCell.cxx:150
ScAccessiblePreviewHeaderCell::getMinimumValue
virtual css::uno::Any SAL_CALL getMinimumValue() override
Definition:
AccessiblePreviewHeaderCell.cxx:164
ScAccessiblePreviewHeaderCell::mbRowHeader
bool mbRowHeader
Definition:
AccessiblePreviewHeaderCell.hxx:119
ScAccessiblePreviewHeaderCell::mpViewShell
ScPreviewShell * mpViewShell
Definition:
AccessiblePreviewHeaderCell.hxx:114
ScAccessiblePreviewHeaderCell::getAccessibleChild
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
Return the specified child or NULL if index is invalid.
Definition:
AccessiblePreviewHeaderCell.cxx:217
ScAccessiblePreviewHeaderCell::getAccessibleChildCount
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
===== XAccessibleContext ==============================================
Definition:
AccessiblePreviewHeaderCell.cxx:208
ScAccessiblePreviewHeaderCell::createAccessibleDescription
virtual OUString createAccessibleDescription() override
Return this object's description.
Definition:
AccessiblePreviewHeaderCell.cxx:337
ScAccessiblePreviewHeaderCell::ScAccessiblePreviewHeaderCell
ScAccessiblePreviewHeaderCell(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell, const ScAddress &rCellPos, bool bIsColHdr, bool bIsRowHdr, sal_Int32 nIndex)
Definition:
AccessiblePreviewHeaderCell.cxx:53
ScAccessiblePreviewHeaderCell::getAccessibleIndexInParent
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
Return this objects index among the parents children.
Definition:
AccessiblePreviewHeaderCell.cxx:226
ScAccessiblePreviewHeaderCell::queryInterface
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) override
===== XInterface =====================================================
Definition:
AccessiblePreviewHeaderCell.cxx:110
ScAccessiblePreviewHeaderCell::FillTableInfo
void FillTableInfo() const
Definition:
AccessiblePreviewHeaderCell.cxx:388
ScAccessiblePreviewHeaderCell::CreateTextHelper
void CreateTextHelper()
Definition:
AccessiblePreviewHeaderCell.cxx:375
ScAccessiblePreviewHeaderCell::getTypes
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
===== XTypeProvider ===================================================
Definition:
AccessiblePreviewHeaderCell.cxx:272
ScAccessiblePreviewHeaderCell::getCurrentValue
virtual css::uno::Any SAL_CALL getCurrentValue() override
Definition:
AccessiblePreviewHeaderCell.cxx:130
ScAccessiblePreviewHeaderCell::getImplementationId
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Returns an implementation id.
Definition:
AccessiblePreviewHeaderCell.cxx:278
ScAccessiblePreviewHeaderCell::~ScAccessiblePreviewHeaderCell
virtual ~ScAccessiblePreviewHeaderCell() override
Definition:
AccessiblePreviewHeaderCell.cxx:68
ScAccessiblePreviewHeaderCell::grabFocus
virtual void SAL_CALL grabFocus() override
Definition:
AccessiblePreviewHeaderCell.cxx:194
ScAccessiblePreviewHeaderCell::mpTableInfo
std::unique_ptr< ScPreviewTableInfo > mpTableInfo
Definition:
AccessiblePreviewHeaderCell.hxx:120
ScAccessiblePreviewHeaderCell::GetBoundingBoxOnScreen
virtual tools::Rectangle GetBoundingBoxOnScreen() const override
Return the object's current bounding box relative to the desktop.
Definition:
AccessiblePreviewHeaderCell.cxx:285
ScAccessiblePreviewHeaderCell::Notify
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
Definition:
AccessiblePreviewHeaderCell.cxx:90
ScAddress
Definition:
address.hxx:207
ScPreviewShell
Definition:
prevwsh.hxx:41
ScPreviewTableInfo
Definition:
prevloc.hxx:60
SfxBroadcaster
SfxHint
cppu::ImplHelper1
tools::Rectangle
gen.hxx
implbase1.hxx
nIndex
sal_Int32 nIndex
accessibility
i
int i
sal_Bool
unsigned char sal_Bool
Generated on Sun Jul 30 2023 04:29:19 for LibreOffice Module sc (master) by
1.9.3