diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2001-02-16 13:14:51 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2001-02-16 13:14:51 +0000 |
commit | 2b10ef45dabc74ea553821b7c7928f101957ef17 (patch) | |
tree | b66a497b84fb62ae9c68afc968849b6d554e5a51 /xmlscript/inc | |
parent | 182f47927d2dc2b1efea60a80be77bb57063324f (diff) |
new
Diffstat (limited to 'xmlscript/inc')
-rw-r--r-- | xmlscript/inc/xmlscript/xml_helper.hxx | 109 | ||||
-rw-r--r-- | xmlscript/inc/xmlscript/xmldlg_imexp.hxx | 89 |
2 files changed, 198 insertions, 0 deletions
diff --git a/xmlscript/inc/xmlscript/xml_helper.hxx b/xmlscript/inc/xmlscript/xml_helper.hxx new file mode 100644 index 000000000000..44f573858c4c --- /dev/null +++ b/xmlscript/inc/xmlscript/xml_helper.hxx @@ -0,0 +1,109 @@ +/************************************************************************* + * + * $RCSfile: xml_helper.hxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: dbo $ $Date: 2001-02-16 14:14:47 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _XMLSCRIPT_XML_HELPER_HXX_ +#define _XMLSCRIPT_XML_HELPER_HXX_ + +#include <rtl/byteseq.hxx> + +#include <com/sun/star/xml/XImporter.hpp> +#include <com/sun/star/xml/sax/XDocumentHandler.hpp> + +#include <com/sun/star/io/XInputStream.hpp> +#include <com/sun/star/io/XOutputStream.hpp> + + +namespace xmlscript +{ + +struct NameSpaceUid +{ + ::rtl::OUString sURI; + sal_Int32 nUid; + + NameSpaceUid( ::rtl::OUString const & sURI_, sal_Int32 nUid_ ) + : sURI( sURI_ ) + , nUid( nUid_ ) + {} +}; + +//================================================================================================== +::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > +SAL_CALL createDocumentHandler( + NameSpaceUid const * pNamespaceUids, sal_Int32 nNameSpaceUids, + sal_Int32 nUnknownNamespaceUid, + ::com::sun::star::uno::Reference< ::com::sun::star::xml::XImporter > const & xImporter, + bool bSingleThreadedUse = true ) + throw (); + +//================================================================================================== +::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > +SAL_CALL createInputStream( + ::rtl::ByteSequence const & rInData ) + throw (); +//================================================================================================== +::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > +SAL_CALL createOutputStream( + ::rtl::ByteSequence * pOutData ) + throw (); + +}; + +#endif diff --git a/xmlscript/inc/xmlscript/xmldlg_imexp.hxx b/xmlscript/inc/xmlscript/xmldlg_imexp.hxx new file mode 100644 index 000000000000..9641c6547162 --- /dev/null +++ b/xmlscript/inc/xmlscript/xmldlg_imexp.hxx @@ -0,0 +1,89 @@ +/************************************************************************* + * + * $RCSfile: xmldlg_imexp.hxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: dbo $ $Date: 2001-02-16 14:14:47 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _XMLSCRIPT_XMLDLG_IMEXP_HXX_ +#define _XMLSCRIPT_XMLDLG_IMEXP_HXX_ + +#include <com/sun/star/container/XNameContainer.hpp> +#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp> + + +namespace xmlscript +{ + +#define XMLNS_DIALOGS_URI "http://openoffice.org/2000/dialog" +#define XMLNS_DIALOGS_UID 1 +#define XMLNS_DIALOGS_PREFIX "dlg" + + +//================================================================================================== +void exportDialogModel( + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > const & xDialogModel, + ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XExtendedDocumentHandler > const & xOut ) + throw (::com::sun::star::uno::Exception); + +//================================================================================================== +::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > importDialogModel( + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > const & xDialogModel ) + throw (::com::sun::star::uno::Exception); + +}; + +#endif |