LCOV - code coverage report
Current view: top level - extensions/source/plugin/base - evtlstnr.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 15 0.0 %
Date: 2014-04-14 Functions: 0 4 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             :  *
       4             :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5             :  *
       6             :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7             :  *
       8             :  * OpenOffice.org - a multi-platform office productivity suite
       9             :  *
      10             :  * This file is part of OpenOffice.org.
      11             :  *
      12             :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13             :  * it under the terms of the GNU Lesser General Public License version 3
      14             :  * only, as published by the Free Software Foundation.
      15             :  *
      16             :  * OpenOffice.org is distributed in the hope that it will be useful,
      17             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19             :  * GNU Lesser General Public License version 3 for more details
      20             :  * (a copy is included in the LICENSE file that accompanied this code).
      21             :  *
      22             :  * You should have received a copy of the GNU Lesser General Public License
      23             :  * version 3 along with OpenOffice.org.  If not, see
      24             :  * <http://www.openoffice.org/license.html>
      25             :  * for a copy of the LGPLv3 License.
      26             :  *
      27             :  ************************************************************************/
      28             : 
      29             : 
      30             : #ifdef AIX
      31             : #define _LINUX_SOURCE_COMPAT
      32             : #include <sys/timer.h>
      33             : #undef _LINUX_SOURCE_COMPAT
      34             : #endif
      35             : 
      36             : #ifdef WNT
      37             : #include <prewin.h>
      38             : #include <postwin.h>
      39             : #undef OPTIONAL
      40             : #endif
      41             : 
      42             : #include <cstdarg>
      43             : 
      44             : #include <plugin/impl.hxx>
      45             : 
      46           0 : PluginEventListener::PluginEventListener( XPlugin_Impl* pPlugin,
      47             :                                           const char* url,
      48             :                                           const char* normurl,
      49             :                                           void* notifyData ) :
      50             :         m_pPlugin( pPlugin ),
      51             :         m_xPlugin( pPlugin ),
      52           0 :         m_pUrl( strdup( url ) ),
      53           0 :         m_pNormalizedUrl( strdup( normurl ) ),
      54           0 :         m_pNotifyData( notifyData )
      55             : {
      56           0 : }
      57             : 
      58           0 : PluginEventListener::~PluginEventListener()
      59             : {
      60           0 :     if( m_pUrl )
      61           0 :         free( m_pUrl );
      62           0 :     if( m_pNormalizedUrl )
      63           0 :         free( m_pNormalizedUrl );
      64           0 : }
      65             : 
      66           0 : void PluginEventListener::disposing( const ::com::sun::star::lang::EventObject& /*rEvt*/ ) throw(std::exception)
      67             : {
      68           0 :     m_pPlugin->getPluginComm()->
      69             :         NPP_URLNotify( m_pPlugin->getNPPInstance(),
      70             :                        m_pUrl,
      71             :                        NPRES_DONE,
      72           0 :                        m_pNotifyData );
      73           0 : }
      74             : 
      75             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10