1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #if ! defined _XMLSCRIPT_XML_IMPORT_HXX_ 28 #define _XMLSCRIPT_XML_IMPORT_HXX_ 29 30 #include "com/sun/star/xml/input/XRoot.hpp" 31 #include "com/sun/star/xml/sax/XExtendedDocumentHandler.hpp" 32 33 34 namespace xmlscript 35 { 36 37 /*############################################################################## 38 39 IMPORTING 40 41 ##############################################################################*/ 42 43 /** Creates a document handler to be used for SAX1 parser that can handle 44 namespaces. Namespace URI are mapped to integer ids for performance. 45 Implementing the XImporter interface, you will get a startRootElement() 46 for the root element of your XML document and subsequent 47 startChildElement() callbacks for each sub element. 48 Namespaces of tags are identified by their integer value. 49 50 @param xRoot 51 initial object being called for root context 52 @param bSingleThreadedUse 53 flag whether context management is synchronized. 54 @return 55 document handler for parser 56 */ 57 ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > 58 SAL_CALL createDocumentHandler( 59 ::com::sun::star::uno::Reference< 60 ::com::sun::star::xml::input::XRoot > const & xRoot, 61 bool bSingleThreadedUse = true ) 62 SAL_THROW( () ); 63 64 } 65 66 #endif 67