fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / svx / source / accessibility / AccessibleShapeTreeInfo.cxx
blob4526f48e0bb6d33f65f0d7aa85b2f5912f89b271
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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)
30 : mpView (NULL),
31 mpWindow (NULL),
32 mpViewForwarder (NULL)
34 // Empty.
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)
48 // Empty.
54 AccessibleShapeTreeInfo& AccessibleShapeTreeInfo::operator= (const AccessibleShapeTreeInfo& rInfo)
56 if ( this != &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;
65 return *this;
71 AccessibleShapeTreeInfo::~AccessibleShapeTreeInfo (void)
73 //empty
79 void AccessibleShapeTreeInfo::SetDocumentWindow (
80 const Reference<XAccessibleComponent>& rxDocumentWindow)
82 if (mxDocumentWindow != rxDocumentWindow)
83 mxDocumentWindow = rxDocumentWindow;
89 void AccessibleShapeTreeInfo::SetControllerBroadcaster (
90 const uno::Reference<document::XEventBroadcaster>& rxControllerBroadcaster)
92 mxModelBroadcaster = rxControllerBroadcaster;
98 uno::Reference<document::XEventBroadcaster>
99 AccessibleShapeTreeInfo::GetControllerBroadcaster (void) const
101 return mxModelBroadcaster;
107 void AccessibleShapeTreeInfo::SetModelBroadcaster (
108 const Reference<document::XEventBroadcaster>& rxModelBroadcaster)
110 mxModelBroadcaster = rxModelBroadcaster;
116 Reference<document::XEventBroadcaster>
117 AccessibleShapeTreeInfo::GetModelBroadcaster (void) const
119 return mxModelBroadcaster;
125 void AccessibleShapeTreeInfo::SetSdrView (SdrView* pView)
127 mpView = pView;
133 SdrView* AccessibleShapeTreeInfo::GetSdrView (void) const
135 return mpView;
141 void AccessibleShapeTreeInfo::SetController (
142 const Reference<frame::XController>& rxController)
144 mxController = rxController;
150 Reference<frame::XController>
151 AccessibleShapeTreeInfo::GetController (void) const
153 return mxController;
159 void AccessibleShapeTreeInfo::SetWindow (Window* pWindow)
161 mpWindow = pWindow;
167 Window* AccessibleShapeTreeInfo::GetWindow (void) const
169 return mpWindow;
175 void AccessibleShapeTreeInfo::SetViewForwarder (const IAccessibleViewForwarder* pViewForwarder)
177 mpViewForwarder = pViewForwarder;
183 const IAccessibleViewForwarder* AccessibleShapeTreeInfo::GetViewForwarder (void) const
185 return mpViewForwarder;
189 } // end of namespace accessibility
191 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */