bump product version to 4.2.0.1
[LibreOffice.git] / include / xmlscript / xmllib_imexp.hxx
blobe86a4d94392a3ea42fdd6af8e16612b4414a94e1
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 .
19 #ifndef INCLUDED_XMLSCRIPT_XMLLIB_IMEXP_HXX
20 #define INCLUDED_XMLSCRIPT_XMLLIB_IMEXP_HXX
22 #include <com/sun/star/xml/sax/XWriter.hpp>
23 #include <com/sun/star/uno/Sequence.hxx>
25 #include <xmlscript/xmlns.h>
26 #include <xmlscript/xmlscriptdllapi.h>
28 namespace xmlscript
31 //==============================================================================
32 // Library container export
33 // HACK C++ struct to transport info. Later the container
34 // itself should do the export/import and use exportet XML
35 // functionality from xmlscript
36 struct XMLSCRIPT_DLLPUBLIC LibDescriptor
38 OUString aName;
39 OUString aStorageURL;
40 sal_Bool bLink;
41 sal_Bool bReadOnly;
42 sal_Bool bPasswordProtected;
43 ::com::sun::star::uno::Sequence< OUString > aElementNames;
44 sal_Bool bPreload;
47 struct XMLSCRIPT_DLLPUBLIC LibDescriptorArray
49 LibDescriptor* mpLibs;
50 sal_Int32 mnLibCount;
52 LibDescriptorArray( void ) { mpLibs = NULL; mnLibCount = 0; }
53 LibDescriptorArray( sal_Int32 nLibCount );
55 ~LibDescriptorArray();
59 XMLSCRIPT_DLLPUBLIC void
60 SAL_CALL exportLibraryContainer(
61 ::com::sun::star::uno::Reference<
62 ::com::sun::star::xml::sax::XWriter > const & xOut,
63 const LibDescriptorArray* pLibArray )
64 SAL_THROW( (::com::sun::star::uno::Exception) );
66 XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference<
67 ::com::sun::star::xml::sax::XDocumentHandler >
68 SAL_CALL importLibraryContainer( LibDescriptorArray* pLibArray )
69 SAL_THROW( (::com::sun::star::uno::Exception) );
72 XMLSCRIPT_DLLPUBLIC void
73 SAL_CALL exportLibrary(
74 ::com::sun::star::uno::Reference<
75 ::com::sun::star::xml::sax::XWriter > const & xOut,
76 const LibDescriptor& rLib )
77 SAL_THROW( (::com::sun::star::uno::Exception) );
79 XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference<
80 ::com::sun::star::xml::sax::XDocumentHandler >
81 SAL_CALL importLibrary( LibDescriptor& rLib )
82 SAL_THROW( (::com::sun::star::uno::Exception) );
86 #endif
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */