bump product version to 4.1.6.2
[LibreOffice.git] / xmlscript / source / inc / xml_import.hxx
bloba0373bc433f64dffc7f1ba0ce27cbc3bba2e465f
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 _XMLSCRIPT_XML_IMPORT_HXX_
20 #define _XMLSCRIPT_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
34 /*##############################################################################
36 IMPORTING
38 ##############################################################################*/
40 /** Creates a document handler to be used for SAX1 parser that can handle
41 namespaces. Namespace URI are mapped to integer ids for performance.
42 Implementing the XImporter interface, you will get a startRootElement()
43 for the root element of your XML document and subsequent
44 startChildElement() callbacks for each sub element.
45 Namespaces of tags are identified by their integer value.
47 @param xRoot
48 initial object being called for root context
49 @param bSingleThreadedUse
50 flag whether context management is synchronized.
51 @return
52 document handler for parser
54 ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler >
55 SAL_CALL createDocumentHandler(
56 ::com::sun::star::uno::Reference<
57 ::com::sun::star::xml::input::XRoot > const & xRoot,
58 bool bSingleThreadedUse = true )
59 SAL_THROW(());
63 #endif
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */