LCOV - code coverage report
Current view: top level - svx/source/accessibility - AccessibleShapeTreeInfo.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 53 0.0 %
Date: 2014-04-14 Functions: 0 18 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             : uno::Reference<XAccessibleComponent>
      90           0 :     AccessibleShapeTreeInfo::GetDocumentWindow (void) const
      91             : {
      92           0 :     return mxDocumentWindow;
      93             : }
      94             : 
      95             : 
      96             : 
      97             : 
      98           0 : void AccessibleShapeTreeInfo::SetControllerBroadcaster (
      99             :     const uno::Reference<document::XEventBroadcaster>& rxControllerBroadcaster)
     100             : {
     101           0 :     mxModelBroadcaster = rxControllerBroadcaster;
     102           0 : }
     103             : 
     104             : 
     105             : 
     106             : 
     107             : uno::Reference<document::XEventBroadcaster>
     108           0 :     AccessibleShapeTreeInfo::GetControllerBroadcaster (void) const
     109             : {
     110           0 :     return mxModelBroadcaster;
     111             : }
     112             : 
     113             : 
     114             : 
     115             : 
     116           0 : void AccessibleShapeTreeInfo::SetModelBroadcaster (
     117             :     const Reference<document::XEventBroadcaster>& rxModelBroadcaster)
     118             : {
     119           0 :     mxModelBroadcaster = rxModelBroadcaster;
     120           0 : }
     121             : 
     122             : 
     123             : 
     124             : 
     125             : Reference<document::XEventBroadcaster>
     126           0 :         AccessibleShapeTreeInfo::GetModelBroadcaster (void) const
     127             : {
     128           0 :     return mxModelBroadcaster;
     129             : }
     130             : 
     131             : 
     132             : 
     133             : 
     134           0 : void AccessibleShapeTreeInfo::SetSdrView (SdrView* pView)
     135             : {
     136           0 :     mpView = pView;
     137           0 : }
     138             : 
     139             : 
     140             : 
     141             : 
     142           0 : SdrView* AccessibleShapeTreeInfo::GetSdrView (void) const
     143             : {
     144           0 :     return mpView;
     145             : }
     146             : 
     147             : 
     148             : 
     149             : 
     150           0 : void AccessibleShapeTreeInfo::SetController (
     151             :     const Reference<frame::XController>& rxController)
     152             : {
     153           0 :     mxController = rxController;
     154           0 : }
     155             : 
     156             : 
     157             : 
     158             : 
     159             : Reference<frame::XController>
     160           0 :     AccessibleShapeTreeInfo::GetController (void) const
     161             : {
     162           0 :     return mxController;
     163             : }
     164             : 
     165             : 
     166             : 
     167             : 
     168           0 : void AccessibleShapeTreeInfo::SetWindow (Window* pWindow)
     169             : {
     170           0 :     mpWindow = pWindow;
     171           0 : }
     172             : 
     173             : 
     174             : 
     175             : 
     176           0 : Window* AccessibleShapeTreeInfo::GetWindow (void) const
     177             : {
     178           0 :     return mpWindow;
     179             : }
     180             : 
     181             : 
     182             : 
     183             : 
     184           0 : void AccessibleShapeTreeInfo::SetViewForwarder (const IAccessibleViewForwarder* pViewForwarder)
     185             : {
     186           0 :     mpViewForwarder = pViewForwarder;
     187           0 : }
     188             : 
     189             : 
     190             : 
     191             : 
     192           0 : const IAccessibleViewForwarder* AccessibleShapeTreeInfo::GetViewForwarder (void) const
     193             : {
     194           0 :     return mpViewForwarder;
     195             : }
     196             : 
     197             : 
     198             : } // end of namespace accessibility
     199             : 
     200             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10