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 #ifndef _XMLSCRIPT_XMLDLG_IMEXP_HXX_ 28 #define _XMLSCRIPT_XMLDLG_IMEXP_HXX_ 29 30 #ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HXX_ 31 #include <com/sun/star/container/XNameContainer.hpp> 32 #endif 33 #ifndef _COM_SUN_STAR_IO_XINPUTSTREAMPROVIDER_HXX_ 34 #include <com/sun/star/io/XInputStreamProvider.hpp> 35 #endif 36 #ifndef _COM_SUN_STAR_XML_SAX_XEXTENDEDDOCUMENTHANDLER_HXX_ 37 #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp> 38 #endif 39 #ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HXX_ 40 #include <com/sun/star/uno/XComponentContext.hpp> 41 #endif 42 43 #include "xmlscript/xmlns.h" 44 45 46 namespace xmlscript 47 { 48 49 //============================================================================== 50 void SAL_CALL exportDialogModel( 51 ::com::sun::star::uno::Reference< 52 ::com::sun::star::xml::sax::XExtendedDocumentHandler > const & xOut, 53 ::com::sun::star::uno::Reference< 54 ::com::sun::star::container::XNameContainer > const & xDialogModel ) 55 SAL_THROW( (::com::sun::star::uno::Exception) ); 56 57 //============================================================================== 58 ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > 59 SAL_CALL importDialogModel( 60 ::com::sun::star::uno::Reference< 61 ::com::sun::star::container::XNameContainer > const & xDialogModel, 62 ::com::sun::star::uno::Reference< 63 ::com::sun::star::uno::XComponentContext > const & xContext ) 64 SAL_THROW( (::com::sun::star::uno::Exception) ); 65 66 // additional functions for convenience 67 68 //============================================================================== 69 ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStreamProvider > 70 SAL_CALL exportDialogModel( 71 ::com::sun::star::uno::Reference< 72 ::com::sun::star::container::XNameContainer > const & xDialogModel, 73 ::com::sun::star::uno::Reference< 74 ::com::sun::star::uno::XComponentContext > const & xContext ) 75 SAL_THROW( (::com::sun::star::uno::Exception) ); 76 77 //============================================================================== 78 void SAL_CALL importDialogModel( 79 ::com::sun::star::uno::Reference< 80 ::com::sun::star::io::XInputStream > xInput, 81 ::com::sun::star::uno::Reference< 82 ::com::sun::star::container::XNameContainer > const & xDialogModel, 83 ::com::sun::star::uno::Reference< 84 ::com::sun::star::uno::XComponentContext > const & xContext ) 85 SAL_THROW( (::com::sun::star::uno::Exception) ); 86 87 } 88 89 #endif 90