LibreOffice Module sd (master) 1
AccessiblePageShape.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
23
24namespace com::sun::star::accessibility { class XAccessible; }
25namespace com::sun::star::drawing { class XDrawPage; }
26namespace accessibility { class AccessibleShapeTreeInfo; }
27
28namespace accessibility {
29
33 : public AccessibleShape
34{
35public:
36 //===== internal ========================================================
37
52 css::uno::Reference<css::drawing::XDrawPage> xPage,
53 const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
54 const AccessibleShapeTreeInfo& rShapeTreeInfo);
55
56 virtual ~AccessiblePageShape() override;
57
58 //===== XAccessibleContext ==============================================
59
61 virtual sal_Int64 SAL_CALL
62 getAccessibleChildCount() override;
63
73 virtual css::uno::Reference<css::accessibility::XAccessible> SAL_CALL
74 getAccessibleChild (sal_Int64 nIndex) override;
75
76 //===== XAccessibleComponent ============================================
77
78 virtual css::awt::Rectangle SAL_CALL getBounds() override;
79
80 virtual sal_Int32 SAL_CALL getForeground() override;
81
82 virtual sal_Int32 SAL_CALL getBackground() override;
83
84 //===== XComponent ======================================================
85
86 virtual void SAL_CALL
87 dispose() override;
88
89 //===== XServiceInfo ====================================================
90
91 virtual OUString SAL_CALL
92 getImplementationName() override;
93
94 virtual css::uno::Sequence< OUString> SAL_CALL
95 getSupportedServiceNames() override;
96
98
99protected:
102 virtual OUString
103 CreateAccessibleBaseName() override;
104
105 virtual OUString
106 CreateAccessibleName() override;
107
108private:
109 css::uno::Reference<css::drawing::XDrawPage> mxPage;
110
113};
114
115} // end of namespace accessibility
116
117/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
A page shape represents the actual page as seen on the screen.
virtual OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::drawing::XDrawPage > mxPage
AccessibleShape & operator=(const AccessiblePageShape &)=delete
virtual OUString CreateAccessibleName() override
virtual sal_Int32 SAL_CALL getForeground() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 nIndex) override
Return the specified child.
AccessiblePageShape(const AccessiblePageShape &)=delete
virtual css::awt::Rectangle SAL_CALL getBounds() override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
Returns always 0 because there can be no children.
AccessiblePageShape(css::uno::Reference< css::drawing::XDrawPage > xPage, const css::uno::Reference< css::accessibility::XAccessible > &rxParent, const AccessibleShapeTreeInfo &rShapeTreeInfo)
Create a new accessible object that makes the given shape accessible.
virtual void SAL_CALL dispose() override
virtual sal_Int32 SAL_CALL getBackground() override
Extract the background color from the Background property of the draw page or its master page.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString CreateAccessibleBaseName() override
Create a base name string that contains the accessible name.
virtual void SAL_CALL disposing() override