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 
25 class EditTextObject;
26 namespace accessibility
27 {
28  class AccessibleTextHelper;
29 }
30 class ScPreviewShell;
31 
34 {
35 public:
36  //===== internal ========================================================
38  const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
39  ScPreviewShell* pViewShell,
40  const EditTextObject* pEditObj,
41  SvxAdjust eAdjust);
42 protected:
43  virtual ~ScAccessiblePageHeaderArea() override;
44 public:
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_Int32 SAL_CALL
65  getAccessibleChildCount() override;
66 
69  virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
70  getAccessibleChild(sal_Int32 nIndex) override;
71 
73  virtual css::uno::Reference<
74  css::accessibility::XAccessibleStateSet> SAL_CALL
75  getAccessibleStateSet() override;
76 
78 
81  virtual OUString SAL_CALL
82  getImplementationName() override;
83 
87  virtual css::uno::Sequence< OUString> SAL_CALL
88  getSupportedServiceNames() override;
89 
91 
94  virtual css::uno::Sequence<sal_Int8> SAL_CALL
95  getImplementationId() override;
96 
97 protected:
98  virtual OUString createAccessibleDescription() override;
99  virtual OUString createAccessibleName() override;
100 
101  virtual tools::Rectangle GetBoundingBoxOnScreen() const override;
102  virtual tools::Rectangle GetBoundingBox() const override;
103 
104 private:
105  std::unique_ptr<EditTextObject> mpEditObj;
106  std::unique_ptr<accessibility::AccessibleTextHelper> mpTextHelper;
109 
110  void CreateTextHelper();
111 };
112 
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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.
const EditTextObject * GetEditTextObject() const
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 OUString createAccessibleDescription() override
Return this object's description.
std::unique_ptr< EditTextObject > mpEditObj
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
SvxAdjust
virtual ~ScAccessiblePageHeaderArea() override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
===== XTypeProvider ===================================================
virtual tools::Rectangle GetBoundingBox() const override
Return the object's current bounding box relative to the parent object.
virtual sal_Int32 SAL_CALL getAccessibleChildCount() override
===== XAccessibleContext ==============================================
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
virtual void SAL_CALL disposing() override
virtual void SAL_CALL disposing() override
ScAccessiblePageHeaderArea(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell, const EditTextObject *pEditObj, SvxAdjust eAdjust)
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &rPoint) override
===== XAccessibleComponent ============================================
std::unique_ptr< accessibility::AccessibleTextHelper > mpTextHelper
virtual OUString createAccessibleName() override
Return the object's current name.