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_Int32 SAL_CALL getAccessibleChildCount() override;
68
70 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
71 getAccessibleChild(sal_Int32 nIndex) override;
72
74 virtual css::uno::Reference<
75 css::accessibility::XAccessibleStateSet> SAL_CALL
76 getAccessibleStateSet() override;
77
78 virtual OUString SAL_CALL getAccessibleName() override;
80
83 virtual OUString SAL_CALL
84 getImplementationName() override;
85
88 virtual css::uno::Sequence< OUString> SAL_CALL
89 getSupportedServiceNames() override;
90
92
95 virtual css::uno::Sequence<sal_Int8> SAL_CALL
96 getImplementationId() override;
97
99
100protected:
102 virtual OUString
104
106 virtual OUString
107 createAccessibleName() override;
108
109public: // needed in ScShapeChildren
111 virtual tools::Rectangle GetBoundingBoxOnScreen() const override;
112
113protected:
115 virtual tools::Rectangle GetBoundingBox() const override;
116
117private:
119 std::unique_ptr<ScNotesChildren> mpNotesChildren;
120 std::unique_ptr<ScShapeChildren> mpShapeChildren;
124
125 bool IsDefunc(
126 const css::uno::Reference<css::accessibility::XAccessibleStateSet>& rxParentStates);
127
130};
131
132/* 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 getAccessibleChild(sal_Int32 nIndex) override
Return the specified child or NULL if index is invalid.
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &rPoint) override
===== XAccessibleComponent ============================================
virtual void SAL_CALL disposing() override
virtual sal_Int32 SAL_CALL getAccessibleChildCount() override
===== XAccessibleContext ==============================================
virtual tools::Rectangle GetBoundingBox() const override
Return the object's current bounding box relative to the parent object.
virtual OUString createAccessibleDescription() override
===== internal ========================================================
std::unique_ptr< ScNotesChildren > mpNotesChildren
virtual void SAL_CALL grabFocus() override
rtl::Reference< ScAccessiblePageHeader > mpHeader
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > 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