LibreOffice Module sc (master) 1
AccessiblePageHeaderArea.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#include <editeng/svxenum.hxx>
24
25class EditTextObject;
26namespace accessibility
27{
28 class AccessibleTextHelper;
29}
30class ScPreviewShell;
31
34{
35public:
36 //===== internal ========================================================
38 const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
39 ScPreviewShell* pViewShell,
40 const EditTextObject* pEditObj,
41 SvxAdjust eAdjust);
42protected:
43 virtual ~ScAccessiblePageHeaderArea() override;
44public:
45 const EditTextObject* GetEditTextObject() const { return mpEditObj.get(); }
46
48 virtual void SAL_CALL disposing() override;
49
51
52 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
53
55
56 virtual css::uno::Reference< css::accessibility::XAccessible >
57 SAL_CALL getAccessibleAtPoint(
58 const css::awt::Point& rPoint ) override;
59
61
64 virtual sal_Int64 SAL_CALL
65 getAccessibleChildCount() override;
66
69 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
70 getAccessibleChild(sal_Int64 nIndex) override;
71
73 virtual sal_Int64 SAL_CALL
74 getAccessibleStateSet() override;
75
77
80 virtual OUString SAL_CALL
81 getImplementationName() override;
82
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
96protected:
97 virtual OUString createAccessibleDescription() override;
98 virtual OUString createAccessibleName() override;
99
100 virtual tools::Rectangle GetBoundingBoxOnScreen() const override;
101 virtual tools::Rectangle GetBoundingBox() const override;
102
103private:
104 std::unique_ptr<EditTextObject> mpEditObj;
105 std::unique_ptr<accessibility::AccessibleTextHelper> mpTextHelper;
108
109 void CreateTextHelper();
110};
111
112/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL disposing() override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
===== XAccessibleContext ==============================================
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &rPoint) override
===== XAccessibleComponent ============================================
virtual void SAL_CALL disposing() override
virtual ~ScAccessiblePageHeaderArea() override
ScAccessiblePageHeaderArea(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell, const EditTextObject *pEditObj, SvxAdjust eAdjust)
const EditTextObject * GetEditTextObject() const
virtual tools::Rectangle GetBoundingBoxOnScreen() const override
Return the object's current bounding box relative to the desktop.
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
virtual OUString createAccessibleDescription() override
Return this object's description.
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 nIndex) override
Return the specified child or NULL if index is invalid.
virtual tools::Rectangle GetBoundingBox() const override
Return the object's current bounding box relative to the parent object.
std::unique_ptr< EditTextObject > mpEditObj
std::unique_ptr< accessibility::AccessibleTextHelper > mpTextHelper
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
Return the set of current states.
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
===== XTypeProvider ===================================================
virtual OUString createAccessibleName() override
Return the object's current name.
SvxAdjust