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 #pragma once
21 
22 #include <sal/config.h>
23 
24 #include <rtl/ref.hxx>
25 
27 
28 class ScPreviewShell;
29 class ScNotesChildren;
30 class ScShapeChildren;
33 
36 {
37 public:
38  //===== internal ========================================================
40  const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
41  ScPreviewShell* pViewShell );
42 protected:
43  virtual ~ScAccessibleDocumentPagePreview() override;
44 
46 
47 public:
49 
50  virtual void SAL_CALL disposing() override;
51 
53 
54  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
55 
57 
58  virtual css::uno::Reference< css::accessibility::XAccessible >
59  SAL_CALL getAccessibleAtPoint(
60  const css::awt::Point& rPoint ) override;
61 
62  virtual void SAL_CALL grabFocus( ) override;
63 
65 
67  virtual sal_Int32 SAL_CALL getAccessibleChildCount() override;
68 
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 
78  virtual OUString SAL_CALL getAccessibleName() override;
80 
83  virtual OUString SAL_CALL
84  getImplementationName() override;
85 
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 
99 
100 protected:
102  virtual OUString
103  createAccessibleDescription() override;
104 
106  virtual OUString
107  createAccessibleName() override;
108 
109 public: // needed in ScShapeChildren
111  virtual tools::Rectangle GetBoundingBoxOnScreen() const override;
112 
113 protected:
115  virtual tools::Rectangle GetBoundingBox() const override;
116 
117 private:
119  std::unique_ptr<ScNotesChildren> mpNotesChildren;
120  std::unique_ptr<ScShapeChildren> mpShapeChildren;
124 
125  bool IsDefunc(
126  const css::uno::Reference<css::accessibility::XAccessibleStateSet>& rxParentStates);
127 
130 };
131 
132 /* 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 ===================================================