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/vclptr.hxx>
26
27namespace com::sun::star {
28 namespace accessibility { class XAccessibleComponent; }
29 namespace document { class XShapeEventBroadcaster; }
30 namespace frame { class XController; }
31}
32namespace vcl { class Window; }
33
34class SdrView;
35
36namespace accessibility {
37
38class IAccessibleViewForwarder;
39
56{
57public:
62
68
70
71 AccessibleShapeTreeInfo& operator= (const AccessibleShapeTreeInfo& rInfo);
72
73 void dispose();
74
77 void SetDocumentWindow (const css::uno::Reference<
78 css::accessibility::XAccessibleComponent>& rxViewWindow);
79
82 const css::uno::Reference<
83 css::accessibility::XAccessibleComponent>&
84 GetDocumentWindow() const { return mxDocumentWindow;}
85
92 void SetModelBroadcaster (const css::uno::Reference<
93 css::document::XShapeEventBroadcaster>& rxModelBroadcaster);
94
100 const css::uno::Reference<
101 css::document::XShapeEventBroadcaster>&
102 GetModelBroadcaster() const { return mxModelBroadcaster;}
103
110 void SetSdrView (SdrView* pView);
111
116 SdrView* GetSdrView() const { return mpView;}
117
124 void SetController (const css::uno::Reference<
125 css::frame::XController>& rxController);
126
131 const css::uno::Reference<
132 css::frame::XController>&
133 GetController() const { return mxController;}
134
138 void SetWindow(vcl::Window* pWindow);
139
145 {
146 return mpWindow.get();
147 }
148
154 void SetViewForwarder (const IAccessibleViewForwarder* pViewForwarder);
155
160 const IAccessibleViewForwarder* GetViewForwarder() const { return mpViewForwarder;}
161
162private:
165 css::uno::Reference<
166 css::accessibility::XAccessibleComponent> mxDocumentWindow;
167
173 css::uno::Reference<
174 css::document::XShapeEventBroadcaster> mxModelBroadcaster;
175
180
183 css::uno::Reference<
184 css::frame::XController> mxController;
185
190
195};
196
197} // end of namespace accessibility
198
199#endif
200
201/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
reference_type * get() const
This class bundles all information that is passed down the tree of accessible shapes so that each sha...
const IAccessibleViewForwarder * GetViewForwarder() const
Return the current view forwarder.
const css::uno::Reference< css::accessibility::XAccessibleComponent > & GetDocumentWindow() const
Deprecated.
SdrView * mpView
This view is necessary to construct an SvxTextEditSource which in turn is used to create an accessibl...
css::uno::Reference< css::frame::XController > mxController
The controller is used e.g.
VclPtr< vcl::Window > mpWindow
This window is necessary to construct an SvxTextEditSource which in turn is used to create an accessi...
css::uno::Reference< css::accessibility::XAccessibleComponent > mxDocumentWindow
Deprecated.
SdrView * GetSdrView() const
Return the current SdrView.
const IAccessibleViewForwarder * mpViewForwarder
The view forwarder allows the transformation between internal and pixel coordinates and can be asked ...
css::uno::Reference< css::document::XShapeEventBroadcaster > mxModelBroadcaster
this broadcaster sends events indicating shape changes.
vcl::Window * GetWindow() const
Return the current Window.
const css::uno::Reference< css::document::XShapeEventBroadcaster > & GetModelBroadcaster() const
Return the current model broadcaster.
const css::uno::Reference< css::frame::XController > & GetController() const
Return the currently set controller.
void dispose()
UnoViewSharedPtr mpView
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
VclPtr< vcl::Window > mpWindow