Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / xmlsecurity / source / xmlsec / xmlelementwrapper_xmlsecimpl.hxx
blobcf550f3e4f33f16ae7fa9e9e350c52d337e04400
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_XMLSECURITY_SOURCE_XMLSEC_XMLELEMENTWRAPPER_XMLSECIMPL_HXX
21 #define INCLUDED_XMLSECURITY_SOURCE_XMLSEC_XMLELEMENTWRAPPER_XMLSECIMPL_HXX
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/implbase.hxx>
29 #include <libxml/tree.h>
30 #include <xsecxmlsecdllapi.h>
32 namespace com { namespace sun { namespace star { namespace uno {
33 class XComponentContext;
34 } } } }
36 class XSECXMLSEC_DLLPUBLIC XMLElementWrapper_XmlSecImpl : public cppu::WeakImplHelper
38 css::xml::wrapper::XXMLElementWrapper,
39 css::lang::XUnoTunnel,
40 css::lang::XServiceInfo
42 /****** XMLElementWrapper_XmlSecImpl.hxx/CLASS XMLElementWrapper_XmlSecImpl ***
44 * NAME
45 * XMLElementWrapper_XmlSecImpl -- Class to wrap a libxml2 node
47 * FUNCTION
48 * Used as a wrapper class to transfer a libxml2 node structure
49 * between different UNO components.
50 ******************************************************************************/
52 private:
53 /* the libxml2 node wrapped by this object */
54 xmlNodePtr m_pElement;
56 public:
57 explicit XMLElementWrapper_XmlSecImpl(const xmlNodePtr pNode);
59 /* XXMLElementWrapper */
61 /* css::lang::XUnoTunnel */
62 virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
63 /// @throws css::uno::RuntimeException
64 static css::uno::Sequence < sal_Int8 > getUnoTunnelImplementationId();
66 /* css::lang::XServiceInfo */
67 virtual OUString SAL_CALL getImplementationName( ) override;
68 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
69 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
71 public:
73 * NAME
74 * getNativeElement -- Retrieves the libxml2 node wrapped by this object
76 * SYNOPSIS
77 * pNode = getNativeElement();
79 * RESULT
80 * pNode - the libxml2 node wrapped by this object
82 xmlNodePtr getNativeElement( ) const { return m_pElement;}
85 #endif
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */