bump product version to 5.0.4.1
[LibreOffice.git] / xmlscript / source / inc / xml_import.hxx
blob6f3cacd2b1cbdbb169bfd3246a4a707011d282a2
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_SOURCE_INC_XML_IMPORT_HXX
20 #define INCLUDED_XMLSCRIPT_SOURCE_INC_XML_IMPORT_HXX
22 #include <osl/mutex.hxx>
23 #include <osl/diagnose.h>
24 #include <rtl/ustrbuf.hxx>
25 #include <tools/diagnose_ex.h>
26 #include <comphelper/processfactory.hxx>
28 #include <com/sun/star/xml/input/XRoot.hpp>
29 #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
31 namespace xmlscript
35 // IMPORTING
37 /** Creates a document handler to be used for SAX1 parser that can handle
38 namespaces. Namespace URI are mapped to integer ids for performance.
39 Implementing the XImporter interface, you will get a startRootElement()
40 for the root element of your XML document and subsequent
41 startChildElement() callbacks for each sub element.
42 Namespaces of tags are identified by their integer value.
44 @param xRoot
45 initial object being called for root context
46 @param bSingleThreadedUse
47 flag whether context management is synchronized.
48 @return
49 document handler for parser
51 ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler >
52 SAL_CALL createDocumentHandler(
53 ::com::sun::star::uno::Reference<
54 ::com::sun::star::xml::input::XRoot > const & xRoot,
55 bool bSingleThreadedUse = true );
59 #endif
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */