bump product version to 5.0.4.1
[LibreOffice.git] / svx / source / accessibility / AccessibleShapeTreeInfo.cxx
blobb141ce88d64a8ae457ee5c83a1ff367c7d872b0a
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>
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()
32 : mpView (NULL),
33 mpWindow (NULL),
34 mpViewForwarder (NULL)
36 // Empty.
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)
50 // Empty.
56 AccessibleShapeTreeInfo& AccessibleShapeTreeInfo::operator= (const AccessibleShapeTreeInfo& rInfo)
58 if ( this != &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;
67 return *this;
73 AccessibleShapeTreeInfo::~AccessibleShapeTreeInfo()
75 SolarMutexGuard g;
76 mpWindow.reset();
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)
104 mpView = pView;
114 void AccessibleShapeTreeInfo::SetController (
115 const Reference<frame::XController>& rxController)
117 mxController = rxController;
127 void AccessibleShapeTreeInfo::SetWindow (vcl::Window* pWindow)
129 mpWindow = pWindow;
139 void AccessibleShapeTreeInfo::SetViewForwarder (const IAccessibleViewForwarder* pViewForwarder)
141 mpViewForwarder = pViewForwarder;
149 } // end of namespace accessibility
151 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */