From ca0ea73a4ab104031a16b5bac7a9bb6e57c77ba0 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 20 Sep 2012 10:28:56 +0200 Subject: rework selection of transformer for an XSLT filter Change-Id: I765762f11813c6b612416a8db2707bf94114c876 --- offapi/UnoApi_offapi.mk | 9 ++++++ offapi/com/sun/star/xml/xslt/XSLT2Transformer.idl | 30 +++++++++++++++++++ offapi/com/sun/star/xml/xslt/XSLTTransformer.idl | 32 ++++++++++++++++++++ offapi/com/sun/star/xml/xslt/XXSLTTransformer.idl | 36 +++++++++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 offapi/com/sun/star/xml/xslt/XSLT2Transformer.idl create mode 100644 offapi/com/sun/star/xml/xslt/XSLTTransformer.idl create mode 100644 offapi/com/sun/star/xml/xslt/XXSLTTransformer.idl (limited to 'offapi') diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index c590daca339d..e8ca1fdabdee 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -326,6 +326,10 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/xml/sax,\ Parser \ Writer \ )) +$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/xml/xslt,\ + XSLTTransformer \ + XSLT2Transformer \ +)) $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star,\ @@ -4272,6 +4276,11 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/xml/xpath,\ XXPathExtension \ XXPathObject \ )) + +$(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/xml/xslt,\ + XXSLTTransformer \ +)) + $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/xsd,\ DataTypeClass \ WhiteSpaceTreatment \ diff --git a/offapi/com/sun/star/xml/xslt/XSLT2Transformer.idl b/offapi/com/sun/star/xml/xslt/XSLT2Transformer.idl new file mode 100644 index 000000000000..1f7502eb321e --- /dev/null +++ b/offapi/com/sun/star/xml/xslt/XSLT2Transformer.idl @@ -0,0 +1,30 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_COM_SUN_STAR_XML_XSLT_XSLT2TRANSFORMER_IDL +#define INCLUDED_COM_SUN_STAR_XML_XSLT_XSLT2TRANSFORMER_IDL + +#include + +module com { module sun { module star { module xml { module xslt { + +/** Get XSLT filter transformer supporting XSLT 2.0. + + @since LibreOffice 3.7 + */ +service XSLT2Transformer : XXSLTTransformer +{ + create([in] sequence args); +}; + +}; }; }; }; }; + +#endif // INCLUDED_COM_SUN_STAR_XML_XSLT_XSLT2TRANSFORMER_IDL + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xml/xslt/XSLTTransformer.idl b/offapi/com/sun/star/xml/xslt/XSLTTransformer.idl new file mode 100644 index 000000000000..0130531bd755 --- /dev/null +++ b/offapi/com/sun/star/xml/xslt/XSLTTransformer.idl @@ -0,0 +1,32 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_COM_SUN_STAR_XML_XSLT_XSLTTRANSFORMER_IDL +#define INCLUDED_COM_SUN_STAR_XML_XSLT_XSLTTRANSFORMER_IDL + +#include + +module com { module sun { module star { module xml { module xslt { + +/** Get unspecified XSLT filter transformer. + +

It is not safe to expect support for any features except XSLT 1.0 . + + @since LibreOffice 3.7 + */ +service XSLTTransformer : XXSLTTransformer +{ + create([in] sequence args); +}; + +}; }; }; }; }; + +#endif // INCLUDED_COM_SUN_STAR_XML_XSLT_XSLTTRANSFORMER_IDL + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xml/xslt/XXSLTTransformer.idl b/offapi/com/sun/star/xml/xslt/XXSLTTransformer.idl new file mode 100644 index 000000000000..2b0e3246e852 --- /dev/null +++ b/offapi/com/sun/star/xml/xslt/XXSLTTransformer.idl @@ -0,0 +1,36 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_COM_SUN_STAR_XML_XSLT_XXSLTTRANSFORMER_IDL +#define INCLUDED_COM_SUN_STAR_XML_XSLT_XXSLTTRANSFORMER_IDL + +#include +#include +#include +#include + +module com { module sun { module star { module xml { module xslt { + +/** An interface for XSLT transformers. + + @since LibreOffice 3.7 + */ +interface XXSLTTransformer +{ + interface com::sun::star::io::XActiveDataControl; + interface com::sun::star::io::XActiveDataSink; + interface com::sun::star::io::XActiveDataSource; + interface com::sun::star::lang::XInitialization; +}; + +}; }; }; }; }; + +#endif // INCLUDED_COM_SUN_STAR_XML_XSLT_XXSLTTRANSFORMER_IDL + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit