LibreOffice Module sc (master) 1
AccessibleDocumentPagePreview.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 <sal/config.h>
23
24#include <rtl/ref.hxx>
25
27
28class ScPreviewShell;
29class ScNotesChildren;
30class ScShapeChildren;
33
36{
37public:
38 //===== internal ========================================================
40 const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
41 ScPreviewShell* pViewShell );
42protected:
43 virtual ~ScAccessibleDocumentPagePreview() override;
44
46
47public:
49
50 virtual void SAL_CALL disposing() override;
51
53
54 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
55
57
58 virtual css::uno::Reference< css::accessibility::XAccessible >
59 SAL_CALL getAccessibleAtPoint(
60 const css::awt::Point& rPoint ) override;
61
62 virtual void SAL_CALL grabFocus( ) override;
63
65
67 virtual sal_Int64 SAL_CALL getAccessibleChildCount() override;
68
70 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
71 getAccessibleChild(sal_Int64 nIndex) override;
72
74 virtual sal_Int64 SAL_CALL getAccessibleStateSet() override;
75
76 virtual OUString SAL_CALL getAccessibleName() override;
78
81 virtual OUString SAL_CALL
82 getImplementationName() override;
83
86 virtual css::uno::Sequence< OUString> SAL_CALL
87 getSupportedServiceNames() override;
88
90
93 virtual css::uno::Sequence<sal_Int8> SAL_CALL
94 getImplementationId() override;
95
97
98protected:
100 virtual OUString
102
104 virtual OUString
105 createAccessibleName() override;
106
107public: // needed in ScShapeChildren
109 virtual tools::Rectangle GetBoundingBoxOnScreen() const override;
110
111protected:
113 virtual tools::Rectangle GetBoundingBox() const override;
114
115private:
117 std::unique_ptr<ScNotesChildren> mpNotesChildren;
118 std::unique_ptr<ScShapeChildren> mpShapeChildren;
122
123 bool IsDefunc(sal_Int64 nParentStates);
124
127};
128
129/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL disposing() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
rtl::Reference< ScAccessiblePreviewTable > mpTable
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
===== XTypeProvider ===================================================
virtual OUString SAL_CALL getAccessibleName() override
Return the object's current name.
virtual OUString createAccessibleName() override
Return the object's current name.
rtl::Reference< ScAccessiblePageHeader > mpFooter
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &rPoint) override
===== XAccessibleComponent ============================================
virtual void SAL_CALL disposing() override
virtual tools::Rectangle GetBoundingBox() const override
Return the object's current bounding box relative to the parent object.
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
===== XAccessibleContext ==============================================
virtual OUString createAccessibleDescription() override
===== internal ========================================================
std::unique_ptr< ScNotesChildren > mpNotesChildren
virtual void SAL_CALL grabFocus() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 nIndex) override
Return the specified child or NULL if index is invalid.
rtl::Reference< ScAccessiblePageHeader > mpHeader
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
Return the set of current states.
virtual tools::Rectangle GetBoundingBoxOnScreen() const override
Return the object's current bounding box relative to the desktop.
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
ScAccessibleDocumentPagePreview(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell)
std::unique_ptr< ScShapeChildren > mpShapeChildren
sal_Int32 nIndex