LCOV - code coverage report
Current view: top level - libreoffice/svx/source/form - datalistener.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 23 0.0 %
Date: 2012-12-27 Functions: 0 9 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 "datalistener.hxx"
      22             : #include "datanavi.hxx"
      23             : 
      24             : using namespace ::com::sun::star::container;
      25             : using namespace ::com::sun::star::frame;
      26             : using namespace ::com::sun::star::lang;
      27             : using namespace ::com::sun::star::uno;
      28             : using namespace ::com::sun::star::xml::dom::events;
      29             : 
      30             : //............................................................................
      31             : namespace svxform
      32             : {
      33             : //............................................................................
      34             : 
      35           0 :     DataListener::DataListener( DataNavigatorWindow* pNaviWin ) :
      36             : 
      37           0 :         m_pNaviWin( pNaviWin )
      38             : 
      39             :     {
      40             :         DBG_ASSERT( m_pNaviWin, "DataListener::Ctor(): no navigator win" );
      41           0 :     }
      42             : 
      43           0 :     DataListener::~DataListener()
      44             :     {
      45           0 :     }
      46             : 
      47             :     // XContainerListener
      48           0 :     void SAL_CALL DataListener::elementInserted( const ContainerEvent& /*Event*/ ) throw (RuntimeException)
      49             :     {
      50           0 :         m_pNaviWin->NotifyChanges();
      51           0 :     }
      52             : 
      53           0 :     void SAL_CALL DataListener::elementRemoved( const ContainerEvent& /*Event*/ ) throw (RuntimeException)
      54             :     {
      55           0 :         m_pNaviWin->NotifyChanges();
      56           0 :     }
      57             : 
      58           0 :     void SAL_CALL DataListener::elementReplaced( const ContainerEvent& /*Event*/ ) throw (RuntimeException)
      59             :     {
      60           0 :         m_pNaviWin->NotifyChanges();
      61           0 :     }
      62             : 
      63             :     // XFrameActionListener
      64           0 :     void SAL_CALL DataListener::frameAction( const FrameActionEvent& rActionEvt ) throw (RuntimeException)
      65             :     {
      66           0 :         if ( FrameAction_COMPONENT_ATTACHED == rActionEvt.Action ||
      67             :              FrameAction_COMPONENT_REATTACHED == rActionEvt.Action )
      68             :         {
      69           0 :             m_pNaviWin->NotifyChanges( FrameAction_COMPONENT_REATTACHED == rActionEvt.Action );
      70             :         }
      71           0 :     }
      72             : 
      73             :     // xml::dom::events::XEventListener
      74           0 :     void SAL_CALL DataListener::handleEvent( const Reference< XEvent >& /*evt*/ ) throw (RuntimeException)
      75             :     {
      76           0 :         m_pNaviWin->NotifyChanges();
      77           0 :     }
      78             : 
      79             :     // lang::XEventListener
      80           0 :     void SAL_CALL DataListener::disposing( const EventObject& /*Source*/ ) throw (RuntimeException)
      81             :     {
      82             :         SAL_WARN( "svx.form", "disposing" );
      83           0 :     }
      84             : 
      85             : //............................................................................
      86             : }   // namespace svxform
      87             : //............................................................................
      88             : 
      89             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10