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 _XMLELEMENTWRAPPER_XMLSECIMPL_HXX
21 : : #define _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 : : class XMLElementWrapper_XmlSecImpl : public cppu::WeakImplHelper3
32 : : <
33 : : com::sun::star::xml::wrapper::XXMLElementWrapper,
34 : : com::sun::star::lang::XUnoTunnel,
35 : : com::sun::star::lang::XServiceInfo
36 : : >
37 : : /****** XMLElementWrapper_XmlSecImpl.hxx/CLASS XMLElementWrapper_XmlSecImpl ***
38 : : *
39 : : * NAME
40 : : * XMLElementWrapper_XmlSecImpl -- Class to wrap a libxml2 node
41 : : *
42 : : * FUNCTION
43 : : * Used as a wrapper class to transfer a libxml2 node structure
44 : : * between different UNO components.
45 : : *
46 : : * AUTHOR
47 : : * Michael Mi
48 : : * Email: michael.mi@sun.com
49 : : ******************************************************************************/
50 : : {
51 : : private:
52 : : /* the libxml2 node wrapped by this object */
53 : : xmlNodePtr m_pElement;
54 : :
55 : : public:
56 : : explicit XMLElementWrapper_XmlSecImpl(const xmlNodePtr pNode);
57 [ # # ]: 0 : virtual ~XMLElementWrapper_XmlSecImpl() {};
58 : :
59 : : /* XXMLElementWrapper */
60 : :
61 : : /* com::sun::star::lang::XUnoTunnel */
62 : : virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier )
63 : : throw (com::sun::star::uno::RuntimeException);
64 : : static com::sun::star::uno::Sequence < sal_Int8 > getUnoTunnelImplementationId( void )
65 : : throw(com::sun::star::uno::RuntimeException);
66 : :
67 : : /* com::sun::star::lang::XServiceInfo */
68 : : virtual rtl::OUString SAL_CALL getImplementationName( )
69 : : throw (com::sun::star::uno::RuntimeException);
70 : : virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName )
71 : : throw (com::sun::star::uno::RuntimeException);
72 : : virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames( )
73 : : throw (com::sun::star::uno::RuntimeException);
74 : :
75 : : public:
76 : : xmlNodePtr getNativeElement( ) const;
77 : : void setNativeElement(const xmlNodePtr pNode);
78 : : };
79 : :
80 : : rtl::OUString XMLElementWrapper_XmlSecImpl_getImplementationName()
81 : : throw ( com::sun::star::uno::RuntimeException );
82 : :
83 : : sal_Bool SAL_CALL XMLElementWrapper_XmlSecImpl_supportsService( const rtl::OUString& ServiceName )
84 : : throw ( com::sun::star::uno::RuntimeException );
85 : :
86 : : com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL XMLElementWrapper_XmlSecImpl_getSupportedServiceNames( )
87 : : throw ( com::sun::star::uno::RuntimeException );
88 : :
89 : : com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
90 : : SAL_CALL XMLElementWrapper_XmlSecImpl_createInstance(
91 : : const com::sun::star::uno::Reference<
92 : : com::sun::star::lang::XMultiServiceFactory > & rSMgr)
93 : : throw ( com::sun::star::uno::Exception );
94 : :
95 : : #endif
96 : :
97 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|