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 #ifndef INCLUDED_SC_SOURCE_UI_INC_ACCESSIBLEPAGEHEADERAREA_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_ACCESSIBLEPAGEHEADERAREA_HXX
22 
24 #include <editeng/svxenum.hxx>
25 
26 class EditTextObject;
27 namespace accessibility
28 {
29  class AccessibleTextHelper;
30 }
31 class ScPreviewShell;
32 
35 {
36 public:
37  //===== internal ========================================================
39  const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
40  ScPreviewShell* pViewShell,
41  const EditTextObject* pEditObj,
42  SvxAdjust eAdjust);
43 protected:
44  virtual ~ScAccessiblePageHeaderArea() override;
45 public:
46  const EditTextObject* GetEditTextObject() const { return mpEditObj.get(); }
47 
49  virtual void SAL_CALL disposing() override;
50 
52 
53  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
54 
56 
57  virtual css::uno::Reference< css::accessibility::XAccessible >
58  SAL_CALL getAccessibleAtPoint(
59  const css::awt::Point& rPoint ) override;
60 
62 
65  virtual sal_Int32 SAL_CALL
66  getAccessibleChildCount() override;
67 
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 
79 
82  virtual OUString SAL_CALL
83  getImplementationName() override;
84 
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 
98 protected:
99  virtual OUString createAccessibleDescription() override;
100  virtual OUString createAccessibleName() override;
101 
102  virtual tools::Rectangle GetBoundingBoxOnScreen() const override;
103  virtual tools::Rectangle GetBoundingBox() const override;
104 
105 private:
106  std::unique_ptr<EditTextObject> mpEditObj;
107  std::unique_ptr<accessibility::AccessibleTextHelper> mpTextHelper;
110 
111  void CreateTextHelper();
112 };
113 
114 #endif
115 
116 /* 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.