LibreOffice Module svx (master) 1
AccessibleShapeTreeInfo.cxx
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
22#include <vcl/svapp.hxx>
23#include <vcl/window.hxx>
24
25using namespace ::com::sun::star;
26using namespace ::com::sun::star::accessibility;
27using ::com::sun::star::uno::Reference;
28
29namespace accessibility {
30
32 : mpView (nullptr),
33 mpWindow (nullptr),
34 mpViewForwarder (nullptr)
35{
36 // Empty.
37}
38
39
41 : mxDocumentWindow (rInfo.mxDocumentWindow),
42 mxModelBroadcaster (rInfo.mxModelBroadcaster),
43 mpView (rInfo.mpView),
44 mxController (rInfo.mxController),
45 mpWindow (rInfo.mpWindow),
46 mpViewForwarder (rInfo.mpViewForwarder)
47{
48 // Empty.
49}
50
52{
53 mxDocumentWindow.clear();
54 mxModelBroadcaster.clear();
55 mpView = nullptr;
56 mxController.clear();
58 mpViewForwarder = nullptr;
59}
60
62{
63 if ( this != &rInfo )
64 {
67 mpView = rInfo.mpView;
69 mpWindow = rInfo.mpWindow;
71 }
72 return *this;
73}
74
76{
77 if (mpWindow)
78 {
81 }
82}
83
85 const Reference<XAccessibleComponent>& rxDocumentWindow)
86{
87 if (mxDocumentWindow != rxDocumentWindow)
88 mxDocumentWindow = rxDocumentWindow;
89}
90
92 const Reference<document::XShapeEventBroadcaster>& rxModelBroadcaster)
93{
94 mxModelBroadcaster = rxModelBroadcaster;
95}
96
98{
99 mpView = pView;
100}
101
103 const Reference<frame::XController>& rxController)
104{
105 mxController = rxController;
106}
107
109{
110 mpWindow = pDevice;
111}
112
114{
115 mpViewForwarder = pViewForwarder;
116}
117
118} // end of namespace accessibility
119
120/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void reset(reference_type *pBody)
This class bundles all information that is passed down the tree of accessible shapes so that each sha...
AccessibleShapeTreeInfo & operator=(const AccessibleShapeTreeInfo &rInfo)
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.
void SetViewForwarder(const IAccessibleViewForwarder *pViewForwarder)
The view forwarder allows the transformation between internal and pixel coordinates and can be asked ...
AccessibleShapeTreeInfo()
Use this constructor to create an empty object that is filled later with more meaningful data.
void SetSdrView(SdrView *pView)
Set the view that will be used to construct SvxTextEditSources which in turn are used to create acces...
void SetWindow(vcl::Window *pWindow)
Set the window that is used to construct SvxTextEditSources which in turn is used to create accessibl...
void SetModelBroadcaster(const css::uno::Reference< css::document::XShapeEventBroadcaster > &rxModelBroadcaster)
Set a new broadcaster that sends events indicating shape changes.
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.
void SetDocumentWindow(const css::uno::Reference< css::accessibility::XAccessibleComponent > &rxViewWindow)
Deprecated.
void SetController(const css::uno::Reference< css::frame::XController > &rxController)
Set a new controller.
UnoViewSharedPtr mpView
VclPtr< vcl::Window > mpWindow