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 #ifndef INCLUDED_SC_SOURCE_UI_INC_ACCESSIBLEDOCUMENTPAGEPREVIEW_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_ACCESSIBLEDOCUMENTPAGEPREVIEW_HXX
22 
23 #include <sal/config.h>
24 
25 #include <rtl/ref.hxx>
26 
28 
29 class ScPreviewShell;
30 class ScNotesChildren;
31 class ScShapeChildren;
34 
37 {
38 public:
39  //===== internal ========================================================
41  const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
42  ScPreviewShell* pViewShell );
43 protected:
44  virtual ~ScAccessibleDocumentPagePreview() override;
45 
47 
48 public:
50 
51  virtual void SAL_CALL disposing() override;
52 
54 
55  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
56 
58 
59  virtual css::uno::Reference< css::accessibility::XAccessible >
60  SAL_CALL getAccessibleAtPoint(
61  const css::awt::Point& rPoint ) override;
62 
63  virtual void SAL_CALL grabFocus( ) override;
64 
66 
68  virtual sal_Int32 SAL_CALL getAccessibleChildCount() override;
69 
71  virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
72  getAccessibleChild(sal_Int32 nIndex) override;
73 
75  virtual css::uno::Reference<
76  css::accessibility::XAccessibleStateSet> SAL_CALL
77  getAccessibleStateSet() override;
78 
79  virtual OUString SAL_CALL getAccessibleName() override;
81 
84  virtual OUString SAL_CALL
85  getImplementationName() override;
86 
89  virtual css::uno::Sequence< OUString> SAL_CALL
90  getSupportedServiceNames() override;
91 
93 
96  virtual css::uno::Sequence<sal_Int8> SAL_CALL
97  getImplementationId() override;
98 
100 
101 protected:
103  virtual OUString
104  createAccessibleDescription() override;
105 
107  virtual OUString
108  createAccessibleName() override;
109 
110 public: // needed in ScShapeChildren
112  virtual tools::Rectangle GetBoundingBoxOnScreen() const override;
113 
114 protected:
116  virtual tools::Rectangle GetBoundingBox() const override;
117 
118 private:
120  std::unique_ptr<ScNotesChildren> mpNotesChildren;
121  std::unique_ptr<ScShapeChildren> mpShapeChildren;
125 
126  bool IsDefunc(
127  const css::uno::Reference<css::accessibility::XAccessibleStateSet>& rxParentStates);
128 
131 };
132 
133 #endif
134 
135 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 nIndex
virtual void SAL_CALL disposing() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &rPoint) override
===== XAccessibleComponent ============================================
std::unique_ptr< ScNotesChildren > mpNotesChildren
virtual OUString SAL_CALL getAccessibleName() override
Return the object's current name.
virtual sal_Int32 SAL_CALL getAccessibleChildCount() override
===== XAccessibleContext ==============================================
virtual OUString createAccessibleDescription() override
===== internal ========================================================
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
virtual OUString createAccessibleName() override
Return the object's current name.
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet() override
Return the set of current states.
std::unique_ptr< ScShapeChildren > mpShapeChildren
ScAccessibleDocumentPagePreview(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell)
rtl::Reference< ScAccessiblePreviewTable > mpTable
virtual tools::Rectangle GetBoundingBoxOnScreen() const override
Return the object's current bounding box relative to the desktop.
virtual void SAL_CALL disposing() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
virtual tools::Rectangle GetBoundingBox() const override
Return the object's current bounding box relative to the parent object.
rtl::Reference< ScAccessiblePageHeader > mpFooter
virtual void SAL_CALL grabFocus() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
rtl::Reference< ScAccessiblePageHeader > mpHeader
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::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
===== XTypeProvider ===================================================