LCOV - code coverage report
Current view: top level - xmloff/source/transform - OOo2Oasis.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 4 4 100.0 %
Date: 2012-08-25 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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                 :            : #ifndef _XMLOFF_OOO2OASIS_HXX
      21                 :            : #define _XMLOFF_OOO2OASIS_HXX
      22                 :            : 
      23                 :            : #include <com/sun/star/document/XImporter.hpp>
      24                 :            : #include <com/sun/star/document/XFilter.hpp>
      25                 :            : #include "ActionMapTypesOOo.hxx"
      26                 :            : #include "TransformerBase.hxx"
      27                 :            : 
      28                 :            : class XMLTransformerOOoEventMap_Impl;
      29                 :            : 
      30                 :            : class OOo2OasisTransformer :
      31                 :            :         public XMLTransformerBase,
      32                 :            :         public ::com::sun::star::document::XImporter,
      33                 :            :         public ::com::sun::star::document::XFilter
      34                 :            : {
      35                 :            :     ::rtl::OUString m_aImplName;
      36                 :            :     ::rtl::OUString m_aSubServiceName;
      37                 :            : 
      38                 :            :     XMLTransformerActions       *m_aActions[MAX_OOO_ACTIONS];
      39                 :            :     XMLTransformerOOoEventMap_Impl *m_pEventMap;
      40                 :            : protected:
      41                 :            : 
      42                 :            :     virtual XMLTransformerContext *CreateUserDefinedContext(
      43                 :            :                                       const TransformerAction_Impl& rAction,
      44                 :            :                                       const ::rtl::OUString& rQName,
      45                 :            :                                          sal_Bool bPersistent=sal_False );
      46                 :            : 
      47                 :            :     virtual XMLTransformerActions *GetUserDefinedActions( sal_uInt16 n );
      48                 :            : 
      49                 :            : public:
      50                 :            :     OOo2OasisTransformer( const sal_Char *pImplName=0,
      51                 :            :                           const sal_Char *pSubServiceName=0 ) throw();
      52                 :            :     virtual ~OOo2OasisTransformer() throw();
      53                 :            : 
      54                 :            :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
      55                 :            : 
      56                 :            :     // XInterface
      57                 :            : 
      58                 :            :     // (XInterface methods need to be implemented to disambigouate
      59                 :            :     // between those inherited through XMLTransformerBase and
      60                 :            :     // the new interfaces).
      61                 :            : 
      62                 :            :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
      63                 :            :         const ::com::sun::star::uno::Type& aType )
      64                 :            :         throw (::com::sun::star::uno::RuntimeException);
      65                 :            : 
      66                 :       1722 :     virtual void SAL_CALL acquire(  ) throw ()
      67                 :       1722 :         { XMLTransformerBase::acquire(); };
      68                 :            : 
      69                 :       1722 :     virtual void SAL_CALL release(  ) throw ()
      70                 :       1722 :         { XMLTransformerBase::release(); };
      71                 :            : 
      72                 :            :     // XInitialization
      73                 :            :     virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
      74                 :            : 
      75                 :            : 
      76                 :            :     // XServiceInfo
      77                 :            :     virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
      78                 :            :     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
      79                 :            :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
      80                 :            : 
      81                 :            :     // XTypeProvider
      82                 :            :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
      83                 :            : 
      84                 :            :     // XUnoTunnel
      85                 :            :     virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
      86                 :            : 
      87                 :            :     // XImporter
      88                 :            :     virtual void SAL_CALL setTargetDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
      89                 :            : 
      90                 :            :     // XFilter
      91                 :            :     virtual sal_Bool SAL_CALL filter( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor ) throw (::com::sun::star::uno::RuntimeException);
      92                 :            :     virtual void SAL_CALL cancel(  ) throw (::com::sun::star::uno::RuntimeException);
      93                 :            : 
      94                 :            :     void SAL_CALL Initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
      95                 :            : 
      96                 :            :     // ::com::sun::star::xml::sax::XDocumentHandler
      97                 :            :     virtual void SAL_CALL startDocument(void)
      98                 :            :         throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
      99                 :            : 
     100                 :            :     virtual ::rtl::OUString GetEventName( const ::rtl::OUString& rName,
     101                 :            :                                             sal_Bool bForm = sal_False );
     102                 :            : };
     103                 :            : 
     104                 :            : #endif  //  _XMLOFF_TRANSFORMER_BASE_HXX
     105                 :            : 
     106                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10