Update ooo320-m1
[ooovba.git] / xmlsecurity / source / xmlsec / xmlelementwrapper_xmlsecimpl.hxx
blobe9ef87fdaad07430a9b5e02371d360d799c3510b
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmlelementwrapper_xmlsecimpl.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _XMLELEMENTWRAPPER_XMLSECIMPL_HXX
32 #define _XMLELEMENTWRAPPER_XMLSECIMPL_HXX
34 #include <com/sun/star/xml/wrapper/XXMLElementWrapper.hpp>
35 #include <com/sun/star/lang/XUnoTunnel.hpp>
36 #include <com/sun/star/lang/XInitialization.hpp>
37 #include <com/sun/star/lang/XServiceInfo.hpp>
38 #include <cppuhelper/implbase3.hxx>
40 #include <libxml/tree.h>
42 class XMLElementWrapper_XmlSecImpl : public cppu::WeakImplHelper3
44 com::sun::star::xml::wrapper::XXMLElementWrapper,
45 com::sun::star::lang::XUnoTunnel,
46 com::sun::star::lang::XServiceInfo
48 /****** XMLElementWrapper_XmlSecImpl.hxx/CLASS XMLElementWrapper_XmlSecImpl ***
50 * NAME
51 * XMLElementWrapper_XmlSecImpl -- Class to wrap a libxml2 node
53 * FUNCTION
54 * Used as a wrapper class to transfer a libxml2 node structure
55 * between different UNO components.
57 * HISTORY
58 * 05.01.2004 - Interface supported: XXMLElementWrapper, XUnoTunnel
59 * XServiceInfo
61 * AUTHOR
62 * Michael Mi
63 * Email: michael.mi@sun.com
64 ******************************************************************************/
66 private:
67 /* the libxml2 node wrapped by this object */
68 xmlNodePtr m_pElement;
70 public:
71 explicit XMLElementWrapper_XmlSecImpl(const xmlNodePtr pNode);
72 virtual ~XMLElementWrapper_XmlSecImpl() {};
74 /* XXMLElementWrapper */
76 /* com::sun::star::lang::XUnoTunnel */
77 virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier )
78 throw (com::sun::star::uno::RuntimeException);
79 static com::sun::star::uno::Sequence < sal_Int8 > getUnoTunnelImplementationId( void )
80 throw(com::sun::star::uno::RuntimeException);
82 /* com::sun::star::lang::XServiceInfo */
83 virtual rtl::OUString SAL_CALL getImplementationName( )
84 throw (com::sun::star::uno::RuntimeException);
85 virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName )
86 throw (com::sun::star::uno::RuntimeException);
87 virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames( )
88 throw (com::sun::star::uno::RuntimeException);
90 public:
91 xmlNodePtr getNativeElement( ) const;
92 void setNativeElement(const xmlNodePtr pNode);
95 rtl::OUString XMLElementWrapper_XmlSecImpl_getImplementationName()
96 throw ( com::sun::star::uno::RuntimeException );
98 sal_Bool SAL_CALL XMLElementWrapper_XmlSecImpl_supportsService( const rtl::OUString& ServiceName )
99 throw ( com::sun::star::uno::RuntimeException );
101 com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL XMLElementWrapper_XmlSecImpl_getSupportedServiceNames( )
102 throw ( com::sun::star::uno::RuntimeException );
104 com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
105 SAL_CALL XMLElementWrapper_XmlSecImpl_createInstance(
106 const com::sun::star::uno::Reference<
107 com::sun::star::lang::XMultiServiceFactory > & rSMgr)
108 throw ( com::sun::star::uno::Exception );
110 #endif