LCOV - code coverage report
Current view: top level - libreoffice/svx/source/accessibility - AccessibleShapeTreeInfo.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 51 0.0 %
Date: 2012-12-27 Functions: 0 17 0.0 %
Legend: Lines: hit not hit

          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           0 : AccessibleShapeTreeInfo::AccessibleShapeTreeInfo (void)
      30             :     : mpView (NULL),
      31             :       mpWindow (NULL),
      32           0 :       mpViewForwarder (NULL)
      33             : {
      34             :     // Empty.
      35           0 : }
      36             : 
      37             : 
      38             : 
      39             : 
      40           0 : 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           0 :       mpViewForwarder (rInfo.mpViewForwarder)
      47             : {
      48             :     // Empty.
      49           0 : }
      50             : 
      51             : 
      52             : 
      53             : 
      54           0 : AccessibleShapeTreeInfo& AccessibleShapeTreeInfo::operator= (const AccessibleShapeTreeInfo& rInfo)
      55             : {
      56           0 :     if ( this != &rInfo )
      57             :     {
      58           0 :         mxDocumentWindow = rInfo.mxDocumentWindow;
      59           0 :         mxModelBroadcaster = rInfo.mxModelBroadcaster;
      60           0 :         mpView = rInfo.mpView;
      61           0 :         mxController = rInfo.mxController,
      62           0 :         mpWindow = rInfo.mpWindow;
      63           0 :         mpViewForwarder = rInfo.mpViewForwarder;
      64             :     }
      65           0 :     return *this;
      66             : }
      67             : 
      68             : 
      69             : 
      70             : 
      71           0 : AccessibleShapeTreeInfo::~AccessibleShapeTreeInfo (void)
      72             : {
      73             :     //empty
      74           0 : }
      75             : 
      76             : 
      77             : 
      78             : 
      79           0 : void AccessibleShapeTreeInfo::SetDocumentWindow (
      80             :     const Reference<XAccessibleComponent>& rxDocumentWindow)
      81             : {
      82           0 :     if (mxDocumentWindow != rxDocumentWindow)
      83           0 :         mxDocumentWindow = rxDocumentWindow;
      84           0 : }
      85             : 
      86             : 
      87             : 
      88             : 
      89           0 : void AccessibleShapeTreeInfo::SetControllerBroadcaster (
      90             :     const uno::Reference<document::XEventBroadcaster>& rxControllerBroadcaster)
      91             : {
      92           0 :     mxModelBroadcaster = rxControllerBroadcaster;
      93           0 : }
      94             : 
      95             : 
      96             : 
      97             : 
      98             : uno::Reference<document::XEventBroadcaster>
      99           0 :     AccessibleShapeTreeInfo::GetControllerBroadcaster (void) const
     100             : {
     101           0 :     return mxModelBroadcaster;
     102             : }
     103             : 
     104             : 
     105             : 
     106             : 
     107           0 : void AccessibleShapeTreeInfo::SetModelBroadcaster (
     108             :     const Reference<document::XEventBroadcaster>& rxModelBroadcaster)
     109             : {
     110           0 :     mxModelBroadcaster = rxModelBroadcaster;
     111           0 : }
     112             : 
     113             : 
     114             : 
     115             : 
     116             : Reference<document::XEventBroadcaster>
     117           0 :         AccessibleShapeTreeInfo::GetModelBroadcaster (void) const
     118             : {
     119           0 :     return mxModelBroadcaster;
     120             : }
     121             : 
     122             : 
     123             : 
     124             : 
     125           0 : void AccessibleShapeTreeInfo::SetSdrView (SdrView* pView)
     126             : {
     127           0 :     mpView = pView;
     128           0 : }
     129             : 
     130             : 
     131             : 
     132             : 
     133           0 : SdrView* AccessibleShapeTreeInfo::GetSdrView (void) const
     134             : {
     135           0 :     return mpView;
     136             : }
     137             : 
     138             : 
     139             : 
     140             : 
     141           0 : void AccessibleShapeTreeInfo::SetController (
     142             :     const Reference<frame::XController>& rxController)
     143             : {
     144           0 :     mxController = rxController;
     145           0 : }
     146             : 
     147             : 
     148             : 
     149             : 
     150             : Reference<frame::XController>
     151           0 :     AccessibleShapeTreeInfo::GetController (void) const
     152             : {
     153           0 :     return mxController;
     154             : }
     155             : 
     156             : 
     157             : 
     158             : 
     159           0 : void AccessibleShapeTreeInfo::SetWindow (Window* pWindow)
     160             : {
     161           0 :     mpWindow = pWindow;
     162           0 : }
     163             : 
     164             : 
     165             : 
     166             : 
     167           0 : Window* AccessibleShapeTreeInfo::GetWindow (void) const
     168             : {
     169           0 :     return mpWindow;
     170             : }
     171             : 
     172             : 
     173             : 
     174             : 
     175           0 : void AccessibleShapeTreeInfo::SetViewForwarder (const IAccessibleViewForwarder* pViewForwarder)
     176             : {
     177           0 :     mpViewForwarder = pViewForwarder;
     178           0 : }
     179             : 
     180             : 
     181             : 
     182             : 
     183           0 : const IAccessibleViewForwarder* AccessibleShapeTreeInfo::GetViewForwarder (void) const
     184             : {
     185           0 :     return mpViewForwarder;
     186             : }
     187             : 
     188             : 
     189             : } // end of namespace accessibility
     190             : 
     191             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10