LibreOffice Module svx (master)  1
AccessibleShapeTreeInfo.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_SVX_ACCESSIBLESHAPETREEINFO_HXX
21 #define INCLUDED_SVX_ACCESSIBLESHAPETREEINFO_HXX
22 
23 #include <com/sun/star/uno/Reference.hxx>
24 #include <svx/svxdllapi.h>
25 #include <vcl/window.hxx>
26 
27 namespace com::sun::star {
28  namespace accessibility { class XAccessibleComponent; }
29  namespace document { class XShapeEventBroadcaster; }
30  namespace frame { class XController; }
31 }
32 
33 class SdrView;
34 
35 namespace accessibility {
36 
37 class IAccessibleViewForwarder;
38 
55 {
56 public:
61 
67 
69 
70  AccessibleShapeTreeInfo& operator= (const AccessibleShapeTreeInfo& rInfo);
71 
72  void dispose();
73 
76  void SetDocumentWindow (const css::uno::Reference<
77  css::accessibility::XAccessibleComponent>& rxViewWindow);
78 
81  const css::uno::Reference<
82  css::accessibility::XAccessibleComponent>&
83  GetDocumentWindow() const { return mxDocumentWindow;}
84 
91  void SetModelBroadcaster (const css::uno::Reference<
92  css::document::XShapeEventBroadcaster>& rxModelBroadcaster);
93 
99  const css::uno::Reference<
100  css::document::XShapeEventBroadcaster>&
101  GetModelBroadcaster() const { return mxModelBroadcaster;}
102 
109  void SetSdrView (SdrView* pView);
110 
115  SdrView* GetSdrView() const { return mpView;}
116 
123  void SetController (const css::uno::Reference<
124  css::frame::XController>& rxController);
125 
130  const css::uno::Reference<
131  css::frame::XController>&
132  GetController() const { return mxController;}
133 
137  void SetDevice(OutputDevice* pWindow);
138 
144  {
146  return static_cast<vcl::Window*>(mpWindow.get());
147  return nullptr;
148  }
149  OutputDevice* GetDevice() const { return mpWindow;}
150 
156  void SetViewForwarder (const IAccessibleViewForwarder* pViewForwarder);
157 
162  const IAccessibleViewForwarder* GetViewForwarder() const { return mpViewForwarder;}
163 
164 private:
167  css::uno::Reference<
168  css::accessibility::XAccessibleComponent> mxDocumentWindow;
169 
175  css::uno::Reference<
176  css::document::XShapeEventBroadcaster> mxModelBroadcaster;
177 
182 
185  css::uno::Reference<
186  css::frame::XController> mxController;
187 
192 
197 };
198 
199 } // end of namespace accessibility
200 
201 #endif
202 
203 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OutDevType GetOutDevType() const
css::uno::Reference< css::accessibility::XAccessibleComponent > mxDocumentWindow
Deprecated.
vcl::Window * GetWindow() const
Return the current Window.
SdrView * GetSdrView() const
Return the current SdrView.
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
OUTDEV_WINDOW
const IAccessibleViewForwarder * mpViewForwarder
The view forwarder allows the transformation between internal and pixel coordinates and can be asked ...
SdrView * mpView
This view is necessary to construct an SvxTextEditSource which in turn is used to create an accessibl...
css::uno::Reference< css::document::XShapeEventBroadcaster > mxModelBroadcaster
this broadcaster sends events indicating shape changes.
VclPtr< vcl::Window > mpWindow
const css::uno::Reference< css::document::XShapeEventBroadcaster > & GetModelBroadcaster() const
Return the current model broadcaster.
const css::uno::Reference< css::accessibility::XAccessibleComponent > & GetDocumentWindow() const
Deprecated.
const IAccessibleViewForwarder * GetViewForwarder() const
Return the current view forwarder.
UnoViewSharedPtr mpView
vcl::Window * get() const
css::uno::Reference< css::frame::XController > mxController
The controller is used e.g.
void dispose()
This class bundles all information that is passed down the tree of accessible shapes so that each sha...
const css::uno::Reference< css::frame::XController > & GetController() const
Return the currently set controller.
VclPtr< OutputDevice > mpWindow
This window is necessary to construct an SvxTextEditSource which in turn is used to create an accessi...