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>
22 #include <vcl/svapp.hxx>
23 #include <vcl/window.hxx>
25 using namespace ::com::sun::star
;
26 using namespace ::com::sun::star::accessibility
;
27 using ::com::sun::star::uno::Reference
;
29 namespace accessibility
{
31 AccessibleShapeTreeInfo::AccessibleShapeTreeInfo()
34 mpViewForwarder (NULL
)
42 AccessibleShapeTreeInfo::AccessibleShapeTreeInfo (const AccessibleShapeTreeInfo
& rInfo
)
43 : mxDocumentWindow (rInfo
.mxDocumentWindow
),
44 mxModelBroadcaster (rInfo
.mxModelBroadcaster
),
45 mpView (rInfo
.mpView
),
46 mxController (rInfo
.mxController
),
47 mpWindow (rInfo
.mpWindow
),
48 mpViewForwarder (rInfo
.mpViewForwarder
)
56 AccessibleShapeTreeInfo
& AccessibleShapeTreeInfo::operator= (const AccessibleShapeTreeInfo
& rInfo
)
60 mxDocumentWindow
= rInfo
.mxDocumentWindow
;
61 mxModelBroadcaster
= rInfo
.mxModelBroadcaster
;
62 mpView
= rInfo
.mpView
;
63 mxController
= rInfo
.mxController
,
64 mpWindow
= rInfo
.mpWindow
;
65 mpViewForwarder
= rInfo
.mpViewForwarder
;
73 AccessibleShapeTreeInfo::~AccessibleShapeTreeInfo()
82 void AccessibleShapeTreeInfo::SetDocumentWindow (
83 const Reference
<XAccessibleComponent
>& rxDocumentWindow
)
85 if (mxDocumentWindow
!= rxDocumentWindow
)
86 mxDocumentWindow
= rxDocumentWindow
;
89 void AccessibleShapeTreeInfo::SetModelBroadcaster (
90 const Reference
<document::XEventBroadcaster
>& rxModelBroadcaster
)
92 mxModelBroadcaster
= rxModelBroadcaster
;
102 void AccessibleShapeTreeInfo::SetSdrView (SdrView
* pView
)
114 void AccessibleShapeTreeInfo::SetController (
115 const Reference
<frame::XController
>& rxController
)
117 mxController
= rxController
;
127 void AccessibleShapeTreeInfo::SetWindow (vcl::Window
* pWindow
)
139 void AccessibleShapeTreeInfo::SetViewForwarder (const IAccessibleViewForwarder
* pViewForwarder
)
141 mpViewForwarder
= pViewForwarder
;
149 } // end of namespace accessibility
151 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */