LCOV - code coverage report
Current view: top level - xmlsecurity/source/xmlsec - xmlelementwrapper_xmlsecimpl.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 2 0.0 %
Date: 2014-11-03 Functions: 0 3 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             : #ifndef INCLUDED_XMLSECURITY_SOURCE_XMLSEC_XMLELEMENTWRAPPER_XMLSECIMPL_HXX
      21             : #define INCLUDED_XMLSECURITY_SOURCE_XMLSEC_XMLELEMENTWRAPPER_XMLSECIMPL_HXX
      22             : 
      23             : #include <com/sun/star/xml/wrapper/XXMLElementWrapper.hpp>
      24             : #include <com/sun/star/lang/XUnoTunnel.hpp>
      25             : #include <com/sun/star/lang/XInitialization.hpp>
      26             : #include <com/sun/star/lang/XServiceInfo.hpp>
      27             : #include <cppuhelper/implbase3.hxx>
      28             : 
      29             : #include <libxml/tree.h>
      30             : 
      31             : namespace com { namespace sun { namespace star { namespace uno {
      32             :     class XComponentContext;
      33             : } } } }
      34             : 
      35             : class XMLElementWrapper_XmlSecImpl : public cppu::WeakImplHelper3
      36             : <
      37             :     com::sun::star::xml::wrapper::XXMLElementWrapper,
      38             :     com::sun::star::lang::XUnoTunnel,
      39             :     com::sun::star::lang::XServiceInfo
      40             : >
      41             : /****** XMLElementWrapper_XmlSecImpl.hxx/CLASS XMLElementWrapper_XmlSecImpl ***
      42             :  *
      43             :  *   NAME
      44             :  *  XMLElementWrapper_XmlSecImpl -- Class to wrap a libxml2 node
      45             :  *
      46             :  *   FUNCTION
      47             :  *  Used as a wrapper class to transfer a libxml2 node structure
      48             :  *  between different UNO components.
      49             :  *
      50             :  *   AUTHOR
      51             :  *  Michael Mi
      52             :  *  Email: michael.mi@sun.com
      53             :  ******************************************************************************/
      54             : {
      55             : private:
      56             :     /* the libxml2 node wrapped by this object */
      57             :     xmlNodePtr m_pElement;
      58             : 
      59             : public:
      60             :     explicit XMLElementWrapper_XmlSecImpl(const xmlNodePtr pNode);
      61           0 :     virtual ~XMLElementWrapper_XmlSecImpl() {};
      62             : 
      63             :     /* XXMLElementWrapper */
      64             : 
      65             :     /* com::sun::star::lang::XUnoTunnel */
      66             :     virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier )
      67             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      68             :     static com::sun::star::uno::Sequence < sal_Int8 > getUnoTunnelImplementationId( void )
      69             :         throw(com::sun::star::uno::RuntimeException);
      70             : 
      71             :     /* com::sun::star::lang::XServiceInfo */
      72             :     virtual OUString SAL_CALL getImplementationName(  )
      73             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             :     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
      75             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      76             :     virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(  )
      77             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      78             : 
      79             : public:
      80             :     /*
      81             :     *   NAME
      82             :     *  getNativeElement -- Retrieves the libxml2 node wrapped by this object
      83             :     *
      84             :     *   SYNOPSIS
      85             :     *  pNode = getNativeElement();
      86             :     *
      87             :     *   RESULT
      88             :     *  pNode - the libxml2 node wrapped by this object
      89             :     */
      90           0 :     xmlNodePtr getNativeElement( ) const { return m_pElement;}
      91             :     void setNativeElement(const xmlNodePtr pNode);
      92             : };
      93             : 
      94             : OUString XMLElementWrapper_XmlSecImpl_getImplementationName()
      95             :     throw ( com::sun::star::uno::RuntimeException );
      96             : 
      97             : com::sun::star::uno::Sequence< OUString > SAL_CALL XMLElementWrapper_XmlSecImpl_getSupportedServiceNames(  )
      98             :     throw ( com::sun::star::uno::RuntimeException );
      99             : 
     100             : com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
     101             : SAL_CALL XMLElementWrapper_XmlSecImpl_createInstance(
     102             :     const com::sun::star::uno::Reference<
     103             :         com::sun::star::uno::XComponentContext > &)
     104             :     throw ( com::sun::star::uno::Exception );
     105             : 
     106             : #endif
     107             : 
     108             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10