LibreOffice Module sc (master)
1
sc
source
ui
inc
AccessiblePageHeader.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 <
editeng/svxenum.hxx
>
24
#include <rtl/ref.hxx>
25
26
class
ScPreviewShell
;
27
class
EditTextObject
;
28
class
ScAccessiblePageHeaderArea
;
29
30
class
ScAccessiblePageHeader
:
public
ScAccessibleContextBase
31
{
32
public
:
33
ScAccessiblePageHeader
(
const
css::uno::Reference<css::accessibility::XAccessible>& rxParent,
34
ScPreviewShell
* pViewShell,
bool
bHeader, sal_Int32
nIndex
);
35
36
protected
:
37
virtual
~ScAccessiblePageHeader
()
override
;
38
39
using
ScAccessibleContextBase::IsDefunc
;
40
41
public
:
42
using
ScAccessibleContextBase::disposing
;
43
virtual
void
SAL_CALL
disposing
()
override
;
44
45
//===== SfxListener =====================================================
46
47
virtual
void
Notify
(
SfxBroadcaster
& rBC,
const
SfxHint
& rHint )
override
;
48
49
//===== XAccessibleComponent ============================================
50
51
virtual
css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
52
getAccessibleAtPoint
(
const
css::awt::Point& aPoint )
override
;
53
virtual
void
SAL_CALL
grabFocus
()
override
;
54
55
//===== XAccessibleContext ==============================================
56
57
virtual
sal_Int64 SAL_CALL
getAccessibleChildCount
()
override
;
58
virtual
css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
59
getAccessibleChild
( sal_Int64
i
)
override
;
60
virtual
sal_Int64 SAL_CALL
getAccessibleIndexInParent
()
override
;
61
virtual
sal_Int64 SAL_CALL
getAccessibleStateSet
()
override
;
62
63
//===== XServiceInfo ====================================================
64
65
virtual
OUString SAL_CALL
getImplementationName
()
override
;
66
virtual
css::uno::Sequence< OUString > SAL_CALL
getSupportedServiceNames
()
override
;
67
68
protected
:
69
virtual
OUString
createAccessibleDescription
()
override
;
70
virtual
OUString
createAccessibleName
()
override
;
71
72
virtual
tools::Rectangle
GetBoundingBoxOnScreen
()
const override
;
73
virtual
tools::Rectangle
GetBoundingBox
()
const override
;
74
75
private
:
76
ScPreviewShell
*
mpViewShell
;
77
sal_Int32
mnIndex
;
78
bool
mbHeader
;
79
std::vector< rtl::Reference<ScAccessiblePageHeaderArea> >
80
maAreas
;
81
sal_Int32
mnChildCount
;
82
83
bool
IsDefunc
(sal_Int64 nParentStates);
84
85
void
AddChild
(
const
EditTextObject
* pArea, sal_uInt32 nIndex,
SvxAdjust
eAdjust);
86
};
87
88
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AccessibleContextBase.hxx
EditTextObject
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
ScAccessiblePageHeaderArea
Definition:
AccessiblePageHeaderArea.hxx:34
ScAccessiblePageHeader
Definition:
AccessiblePageHeader.hxx:31
ScAccessiblePageHeader::AddChild
void AddChild(const EditTextObject *pArea, sal_uInt32 nIndex, SvxAdjust eAdjust)
Definition:
AccessiblePageHeader.cxx:349
ScAccessiblePageHeader::getSupportedServiceNames
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
Definition:
AccessiblePageHeader.cxx:284
ScAccessiblePageHeader::getImplementationName
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
Definition:
AccessiblePageHeader.cxx:279
ScAccessiblePageHeader::ScAccessiblePageHeader
ScAccessiblePageHeader(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell, bool bHeader, sal_Int32 nIndex)
Definition:
AccessiblePageHeader.cxx:50
ScAccessiblePageHeader::disposing
virtual void SAL_CALL disposing() override
Definition:
AccessiblePageHeader.cxx:73
ScAccessiblePageHeader::mpViewShell
ScPreviewShell * mpViewShell
Definition:
AccessiblePageHeader.hxx:76
ScAccessiblePageHeader::Notify
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
Definition:
AccessiblePageHeader.cxx:95
ScAccessiblePageHeader::mnIndex
sal_Int32 mnIndex
Definition:
AccessiblePageHeader.hxx:77
ScAccessiblePageHeader::IsDefunc
bool IsDefunc() const
Definition:
AccessibleContextBase.hxx:233
ScAccessiblePageHeader::maAreas
std::vector< rtl::Reference< ScAccessiblePageHeaderArea > > maAreas
Definition:
AccessiblePageHeader.hxx:80
ScAccessiblePageHeader::mnChildCount
sal_Int32 mnChildCount
Definition:
AccessiblePageHeader.hxx:81
ScAccessiblePageHeader::getAccessibleIndexInParent
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
Return this objects index among the parents children.
Definition:
AccessiblePageHeader.cxx:248
ScAccessiblePageHeader::GetBoundingBox
virtual tools::Rectangle GetBoundingBox() const override
Return the object's current bounding box relative to the parent object.
Definition:
AccessiblePageHeader.cxx:319
ScAccessiblePageHeader::getAccessibleStateSet
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
Return the set of current states.
Definition:
AccessiblePageHeader.cxx:253
ScAccessiblePageHeader::GetBoundingBoxOnScreen
virtual tools::Rectangle GetBoundingBoxOnScreen() const override
Return the object's current bounding box relative to the desktop.
Definition:
AccessiblePageHeader.cxx:304
ScAccessiblePageHeader::grabFocus
virtual void SAL_CALL grabFocus() override
Definition:
AccessiblePageHeader.cxx:173
ScAccessiblePageHeader::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:
AccessiblePageHeader.cxx:217
ScAccessiblePageHeader::getAccessibleAtPoint
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
Definition:
AccessiblePageHeader.cxx:145
ScAccessiblePageHeader::createAccessibleDescription
virtual OUString createAccessibleDescription() override
Return this object's description.
Definition:
AccessiblePageHeader.cxx:292
ScAccessiblePageHeader::mbHeader
bool mbHeader
Definition:
AccessiblePageHeader.hxx:78
ScAccessiblePageHeader::getAccessibleChildCount
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
===== XAccessibleContext ==============================================
Definition:
AccessiblePageHeader.cxx:187
ScAccessiblePageHeader::~ScAccessiblePageHeader
virtual ~ScAccessiblePageHeader() override
Definition:
AccessiblePageHeader.cxx:63
ScAccessiblePageHeader::createAccessibleName
virtual OUString createAccessibleName() override
Return the object's current name.
Definition:
AccessiblePageHeader.cxx:298
ScPreviewShell
Definition:
prevwsh.hxx:41
SfxBroadcaster
SfxHint
tools::Rectangle
nIndex
sal_Int32 nIndex
i
int i
svxenum.hxx
SvxAdjust
SvxAdjust
Generated on Sun Jul 30 2023 04:29:19 for LibreOffice Module sc (master) by
1.9.3