[Libreoffice-commits] .: Branch 'libreoffice-3-4' - filter/source
Michael Meeks
michael at kemper.freedesktop.org
Thu Oct 20 06:05:58 PDT 2011
filter/source/xsltdialog/typedetectionimport.cxx | 1 +
filter/source/xsltdialog/xmlfiltercommon.hxx | 1 +
filter/source/xsltdialog/xmlfiltersettingsdialog.cxx | 9 +++++++--
3 files changed, 9 insertions(+), 2 deletions(-)
New commits:
commit f709e7ac395fed12490edb2037372a2d4e219db4
Author: Peter Jentsch <pjotr at guineapics.de>
Date: Thu Oct 20 14:06:10 2011 +0100
initial support for user defined xslt service impl in filter jar
Supports importing the 2nd userdata parameter for xslt filter
definitions from manually edited custom XML filter settings.
Signed-off-by: Michael Meeks <michael.meeks at suse.com>
diff --git a/filter/source/xsltdialog/typedetectionimport.cxx b/filter/source/xsltdialog/typedetectionimport.cxx
index 83b377d..ec01ba1 100644
--- a/filter/source/xsltdialog/typedetectionimport.cxx
+++ b/filter/source/xsltdialog/typedetectionimport.cxx
@@ -183,6 +183,7 @@ filter_info_impl* TypeDetectionImporter::createFilterForNode( Node * pNode )
OUString aAdapterService( getSubdata( 0, aDelim, aFilterUserData ) );
//Import/ExportService
+ pFilter->maXSLTTransformerImpl = getSubdata( 1, aDelim, aFilterUserData );
pFilter->maImportService = getSubdata( 2, aDelim, aFilterUserData );
pFilter->maExportService = getSubdata( 3, aDelim, aFilterUserData );
pFilter->maImportXSLT = getSubdata( 4, aDelim, aFilterUserData );
diff --git a/filter/source/xsltdialog/xmlfiltercommon.hxx b/filter/source/xsltdialog/xmlfiltercommon.hxx
index 9303a12..f58e42d 100644
--- a/filter/source/xsltdialog/xmlfiltercommon.hxx
+++ b/filter/source/xsltdialog/xmlfiltercommon.hxx
@@ -70,6 +70,7 @@ public:
rtl::OUString maDocType;
rtl::OUString maImportService;
rtl::OUString maExportService;
+ rtl::OUString maXSLTTransformerImpl;
sal_Int32 maFlags;
sal_Int32 maFileFormatVersion;
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
index 541a529..5ae38a8 100644
--- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
@@ -1167,6 +1167,7 @@ void XMLFilterSettingsDialog::initFilterList()
continue;
// get filter information from userdata
+ pTempFilter->maXSLTTransformerImpl = aUserData[1];
pTempFilter->maImportService = aUserData[2];
pTempFilter->maExportService = aUserData[3];
pTempFilter->maImportXSLT = aUserData[4];
@@ -1645,7 +1646,8 @@ filter_info_impl::filter_info_impl( const filter_info_impl& rInfo ) :
maFlags( rInfo.maFlags ),
maFileFormatVersion( rInfo.maFileFormatVersion ),
mnDocumentIconID( rInfo.mnDocumentIconID ),
- mbReadonly( rInfo.mbReadonly )
+ mbReadonly( rInfo.mbReadonly ),
+ maXSLTTransformerImpl( rInfo.maXSLTTransformerImpl )
{
}
@@ -1668,7 +1670,9 @@ int filter_info_impl::operator==( const filter_info_impl& r ) const
maImportService != r.maImportService ||
maImportTemplate != r.maImportTemplate ||
maFlags != r.maFlags ||
- maFileFormatVersion != r.maFileFormatVersion )
+ maFileFormatVersion != r.maFileFormatVersion ||
+ maXSLTTransformerImpl != r.maXSLTTransformerImpl
+ )
return false;
return true;
@@ -1689,6 +1693,7 @@ Sequence< OUString > filter_info_impl::getFilterUserData() const
aUserData[3] = pInfo->maXMLExporter;
}
*/
+ aUserData[1] = maXSLTTransformerImpl;
aUserData[2] = maImportService;
aUserData[3] = maExportService;
aUserData[4] = maImportXSLT;
More information about the Libreoffice-commits
mailing list