From f14f316cdba0a39c95b947bd79c0ad3bbaef3682 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 1 Jul 2008 11:38:34 +0000 Subject: INTEGRATION: CWS xmlfilter05 (1.1.2); FILE ADDED 2008/05/21 14:09:49 dr 1.1.2.2: #i10000# new header 2008/05/02 08:57:56 mav 1.1.2.1: #i88938# import document properties --- .../document/XOOXMLDocumentPropertiesImporter.idl | 108 +++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 offapi/com/sun/star/document/XOOXMLDocumentPropertiesImporter.idl (limited to 'offapi/com/sun/star/document/XOOXMLDocumentPropertiesImporter.idl') diff --git a/offapi/com/sun/star/document/XOOXMLDocumentPropertiesImporter.idl b/offapi/com/sun/star/document/XOOXMLDocumentPropertiesImporter.idl new file mode 100644 index 000000000000..bf163bd5f1e1 --- /dev/null +++ b/offapi/com/sun/star/document/XOOXMLDocumentPropertiesImporter.idl @@ -0,0 +1,108 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XOOXMLDocumentPropertiesImporter.idl,v $ + * $Revision: 1.2 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_document_XOOXMLDocumentPropertiesImporter_idl__ +#define __com_sun_star_document_XOOXMLDocumentPropertiesImporter_idl__ + +#ifndef __com_sun_star_document_XDocumentProperties_idl__ +#include +#endif + +#ifndef __com_sun_star_embed_XStorage_idl__ +#include +#endif + +#ifndef __com_sun_star_xml_sax_SAXException_idl__ +#include +#endif + +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include +#endif + +#ifndef __com_sun_star_uno_Exception_idl__ +#include +#endif + +//============================================================================= + +module com { module sun { module star { module document { + +//============================================================================= +/** allows to import the document properties from OOXML fomat + */ +interface XOOXMLDocumentPropertiesImporter: com::sun::star::uno::XInterface +{ + // ----------------------------------------------------------------------- + /** allows to import the document properties from OOXML format + +

+ The implementation should parse the document properties from OOXML + format storage and set them to the target + XDocumentProperties implementation. +

+ +

+ The storage must represent OOXML format and support + XRelationshipAccess + interface. Please see + StorageFactory for details + regarding creation of such a storage. +

+ + @param xSource + the source storage representing OOXML document + + @param xDocumentProperties + the target XDocumentProperties interface implementation + + @throws ::com::sun::star::lang::IllegalArgumentException + the exception is thrown in case unexpected arguments are provided + + @throws ::com::sun::star::xml::sax::SAXException + the exception is thrown in case of parsing problems + + @throws ::com::sun::star::uno::Exception + the exception is thrown in case of other problems during the import + */ + + void importProperties( + [in] com::sun::star::embed::XStorage xSource, + [in] com::sun::star::document::XDocumentProperties xDocumentProperties ) + raises( com::sun::star::lang::IllegalArgumentException, + com::sun::star::xml::sax::SAXException, + com::sun::star::uno::Exception ); +}; + +//============================================================================= + +}; }; }; }; + +#endif + -- cgit