1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
21 #include <svx/AccessibleShapeTreeInfo.hxx>
23 using namespace ::com::sun::star
;
24 using namespace ::com::sun::star::accessibility
;
25 using ::com::sun::star::uno::Reference
;
27 namespace accessibility
{
29 AccessibleShapeTreeInfo::AccessibleShapeTreeInfo (void)
32 mpViewForwarder (NULL
)
40 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 mpViewForwarder (rInfo
.mpViewForwarder
)
54 AccessibleShapeTreeInfo
& AccessibleShapeTreeInfo::operator= (const AccessibleShapeTreeInfo
& rInfo
)
58 mxDocumentWindow
= rInfo
.mxDocumentWindow
;
59 mxModelBroadcaster
= rInfo
.mxModelBroadcaster
;
60 mpView
= rInfo
.mpView
;
61 mxController
= rInfo
.mxController
,
62 mpWindow
= rInfo
.mpWindow
;
63 mpViewForwarder
= rInfo
.mpViewForwarder
;
71 AccessibleShapeTreeInfo::~AccessibleShapeTreeInfo (void)
79 void AccessibleShapeTreeInfo::SetDocumentWindow (
80 const Reference
<XAccessibleComponent
>& rxDocumentWindow
)
82 if (mxDocumentWindow
!= rxDocumentWindow
)
83 mxDocumentWindow
= rxDocumentWindow
;
89 uno::Reference
<XAccessibleComponent
>
90 AccessibleShapeTreeInfo::GetDocumentWindow (void) const
92 return mxDocumentWindow
;
98 void AccessibleShapeTreeInfo::SetControllerBroadcaster (
99 const uno::Reference
<document::XEventBroadcaster
>& rxControllerBroadcaster
)
101 mxModelBroadcaster
= rxControllerBroadcaster
;
107 uno::Reference
<document::XEventBroadcaster
>
108 AccessibleShapeTreeInfo::GetControllerBroadcaster (void) const
110 return mxModelBroadcaster
;
116 void AccessibleShapeTreeInfo::SetModelBroadcaster (
117 const Reference
<document::XEventBroadcaster
>& rxModelBroadcaster
)
119 mxModelBroadcaster
= rxModelBroadcaster
;
125 Reference
<document::XEventBroadcaster
>
126 AccessibleShapeTreeInfo::GetModelBroadcaster (void) const
128 return mxModelBroadcaster
;
134 void AccessibleShapeTreeInfo::SetSdrView (SdrView
* pView
)
142 SdrView
* AccessibleShapeTreeInfo::GetSdrView (void) const
150 void AccessibleShapeTreeInfo::SetController (
151 const Reference
<frame::XController
>& rxController
)
153 mxController
= rxController
;
159 Reference
<frame::XController
>
160 AccessibleShapeTreeInfo::GetController (void) const
168 void AccessibleShapeTreeInfo::SetWindow (Window
* pWindow
)
176 Window
* AccessibleShapeTreeInfo::GetWindow (void) const
184 void AccessibleShapeTreeInfo::SetViewForwarder (const IAccessibleViewForwarder
* pViewForwarder
)
186 mpViewForwarder
= pViewForwarder
;
192 const IAccessibleViewForwarder
* AccessibleShapeTreeInfo::GetViewForwarder (void) const
194 return mpViewForwarder
;
198 } // end of namespace accessibility
200 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */