LCOV - code coverage report
Current view: top level - svx/source/accessibility - AccessibleShapeTreeInfo.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 36 36 100.0 %
Date: 2015-06-13 12:38:46 Functions: 10 10 100.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             : #include <vcl/window.hxx>
      23             : 
      24             : using namespace ::com::sun::star;
      25             : using namespace ::com::sun::star::accessibility;
      26             : using ::com::sun::star::uno::Reference;
      27             : 
      28             : namespace accessibility {
      29             : 
      30          16 : AccessibleShapeTreeInfo::AccessibleShapeTreeInfo()
      31             :     : mpView (NULL),
      32             :       mpWindow (NULL),
      33          16 :       mpViewForwarder (NULL)
      34             : {
      35             :     // Empty.
      36          16 : }
      37             : 
      38             : 
      39             : 
      40             : 
      41          14 : AccessibleShapeTreeInfo::AccessibleShapeTreeInfo (const AccessibleShapeTreeInfo& rInfo)
      42             :     : mxDocumentWindow (rInfo.mxDocumentWindow),
      43             :       mxModelBroadcaster (rInfo.mxModelBroadcaster),
      44             :       mpView (rInfo.mpView),
      45             :       mxController (rInfo.mxController),
      46             :       mpWindow (rInfo.mpWindow),
      47          14 :       mpViewForwarder (rInfo.mpViewForwarder)
      48             : {
      49             :     // Empty.
      50          14 : }
      51             : 
      52             : 
      53             : 
      54             : 
      55          11 : AccessibleShapeTreeInfo& AccessibleShapeTreeInfo::operator= (const AccessibleShapeTreeInfo& rInfo)
      56             : {
      57          11 :     if ( this != &rInfo )
      58             :     {
      59          11 :         mxDocumentWindow = rInfo.mxDocumentWindow;
      60          11 :         mxModelBroadcaster = rInfo.mxModelBroadcaster;
      61          11 :         mpView = rInfo.mpView;
      62          11 :         mxController = rInfo.mxController,
      63          11 :         mpWindow = rInfo.mpWindow;
      64          11 :         mpViewForwarder = rInfo.mpViewForwarder;
      65             :     }
      66          11 :     return *this;
      67             : }
      68             : 
      69             : 
      70             : 
      71             : 
      72          30 : AccessibleShapeTreeInfo::~AccessibleShapeTreeInfo()
      73             : {
      74             :     //empty
      75          30 : }
      76             : 
      77             : 
      78             : 
      79             : 
      80           6 : void AccessibleShapeTreeInfo::SetDocumentWindow (
      81             :     const Reference<XAccessibleComponent>& rxDocumentWindow)
      82             : {
      83           6 :     if (mxDocumentWindow != rxDocumentWindow)
      84           6 :         mxDocumentWindow = rxDocumentWindow;
      85           6 : }
      86             : 
      87          11 : void AccessibleShapeTreeInfo::SetModelBroadcaster (
      88             :     const Reference<document::XEventBroadcaster>& rxModelBroadcaster)
      89             : {
      90          11 :     mxModelBroadcaster = rxModelBroadcaster;
      91          11 : }
      92             : 
      93             : 
      94             : 
      95             : 
      96             : 
      97             : 
      98             : 
      99             : 
     100           5 : void AccessibleShapeTreeInfo::SetSdrView (SdrView* pView)
     101             : {
     102           5 :     mpView = pView;
     103           5 : }
     104             : 
     105             : 
     106             : 
     107             : 
     108             : 
     109             : 
     110             : 
     111             : 
     112           8 : void AccessibleShapeTreeInfo::SetController (
     113             :     const Reference<frame::XController>& rxController)
     114             : {
     115           8 :     mxController = rxController;
     116           8 : }
     117             : 
     118             : 
     119             : 
     120             : 
     121             : 
     122             : 
     123             : 
     124             : 
     125           5 : void AccessibleShapeTreeInfo::SetWindow (vcl::Window* pWindow)
     126             : {
     127           5 :     mpWindow = pWindow;
     128           5 : }
     129             : 
     130             : 
     131             : 
     132             : 
     133             : 
     134             : 
     135             : 
     136             : 
     137           5 : void AccessibleShapeTreeInfo::SetViewForwarder (const IAccessibleViewForwarder* pViewForwarder)
     138             : {
     139           5 :     mpViewForwarder = pViewForwarder;
     140           5 : }
     141             : 
     142             : 
     143             : 
     144             : 
     145             : 
     146             : 
     147             : } // end of namespace accessibility
     148             : 
     149             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11