Line data Source code
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 :
21 : #include <svx/AccessibleShapeTreeInfo.hxx>
22 :
23 : using namespace ::com::sun::star;
24 : using namespace ::com::sun::star::accessibility;
25 : using ::com::sun::star::uno::Reference;
26 :
27 : namespace accessibility {
28 :
29 32 : AccessibleShapeTreeInfo::AccessibleShapeTreeInfo (void)
30 : : mpView (NULL),
31 : mpWindow (NULL),
32 32 : mpViewForwarder (NULL)
33 : {
34 : // Empty.
35 32 : }
36 :
37 :
38 :
39 :
40 28 : AccessibleShapeTreeInfo::AccessibleShapeTreeInfo (const AccessibleShapeTreeInfo& rInfo)
41 : : mxDocumentWindow (rInfo.mxDocumentWindow),
42 : mxModelBroadcaster (rInfo.mxModelBroadcaster),
43 : mpView (rInfo.mpView),
44 : mxController (rInfo.mxController),
45 : mpWindow (rInfo.mpWindow),
46 28 : mpViewForwarder (rInfo.mpViewForwarder)
47 : {
48 : // Empty.
49 28 : }
50 :
51 :
52 :
53 :
54 22 : AccessibleShapeTreeInfo& AccessibleShapeTreeInfo::operator= (const AccessibleShapeTreeInfo& rInfo)
55 : {
56 22 : if ( this != &rInfo )
57 : {
58 22 : mxDocumentWindow = rInfo.mxDocumentWindow;
59 22 : mxModelBroadcaster = rInfo.mxModelBroadcaster;
60 22 : mpView = rInfo.mpView;
61 22 : mxController = rInfo.mxController,
62 22 : mpWindow = rInfo.mpWindow;
63 22 : mpViewForwarder = rInfo.mpViewForwarder;
64 : }
65 22 : return *this;
66 : }
67 :
68 :
69 :
70 :
71 60 : AccessibleShapeTreeInfo::~AccessibleShapeTreeInfo (void)
72 : {
73 : //empty
74 60 : }
75 :
76 :
77 :
78 :
79 12 : void AccessibleShapeTreeInfo::SetDocumentWindow (
80 : const Reference<XAccessibleComponent>& rxDocumentWindow)
81 : {
82 12 : if (mxDocumentWindow != rxDocumentWindow)
83 12 : mxDocumentWindow = rxDocumentWindow;
84 12 : }
85 :
86 :
87 :
88 :
89 :
90 :
91 :
92 :
93 6 : void AccessibleShapeTreeInfo::SetControllerBroadcaster (
94 : const uno::Reference<document::XEventBroadcaster>& rxControllerBroadcaster)
95 : {
96 6 : mxModelBroadcaster = rxControllerBroadcaster;
97 6 : }
98 :
99 :
100 :
101 :
102 :
103 :
104 :
105 :
106 16 : void AccessibleShapeTreeInfo::SetModelBroadcaster (
107 : const Reference<document::XEventBroadcaster>& rxModelBroadcaster)
108 : {
109 16 : mxModelBroadcaster = rxModelBroadcaster;
110 16 : }
111 :
112 :
113 :
114 :
115 :
116 :
117 :
118 :
119 10 : void AccessibleShapeTreeInfo::SetSdrView (SdrView* pView)
120 : {
121 10 : mpView = pView;
122 10 : }
123 :
124 :
125 :
126 :
127 :
128 :
129 :
130 :
131 16 : void AccessibleShapeTreeInfo::SetController (
132 : const Reference<frame::XController>& rxController)
133 : {
134 16 : mxController = rxController;
135 16 : }
136 :
137 :
138 :
139 :
140 :
141 :
142 :
143 :
144 10 : void AccessibleShapeTreeInfo::SetWindow (vcl::Window* pWindow)
145 : {
146 10 : mpWindow = pWindow;
147 10 : }
148 :
149 :
150 :
151 :
152 :
153 :
154 :
155 :
156 10 : void AccessibleShapeTreeInfo::SetViewForwarder (const IAccessibleViewForwarder* pViewForwarder)
157 : {
158 10 : mpViewForwarder = pViewForwarder;
159 10 : }
160 :
161 :
162 :
163 :
164 :
165 :
166 : } // end of namespace accessibility
167 :
168 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|