summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2012-07-31 17:42:22 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-08-06 10:23:08 +0100
commit365f3e71c10eafdb239e70180beb62b41659e753 (patch)
tree2019db88276660071051b8b3848196cf73350724 /sd
parent3a834ee08edafaea3deb0688f46e6e5087935d64 (diff)
Discovered correct filter name.
Change-Id: I2542ec663addca02874f3d449a1d8a243c7e5e97
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/remotecontrol/ImagePreparer.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/sd/source/ui/remotecontrol/ImagePreparer.cxx b/sd/source/ui/remotecontrol/ImagePreparer.cxx
index 21754d1a31a3..f948834fbb03 100644
--- a/sd/source/ui/remotecontrol/ImagePreparer.cxx
+++ b/sd/source/ui/remotecontrol/ImagePreparer.cxx
@@ -342,7 +342,7 @@ OString ImagePreparer::prepareNotes( sal_uInt32 aSlideNumber )
sal_Bool ExportTo( uno::Reference< drawing::XDrawPage>& aNotesPage, String aUrl )
{
- ::rtl::OUString aFilterName( "com.sun.star.comp.Writer.XmlFilterAdaptor" );
+ ::rtl::OUString aFilterName( "XHTML Draw File" );
uno::Reference< document::XExporter > xExporter;
{
@@ -354,6 +354,8 @@ sal_Bool ExportTo( uno::Reference< drawing::XDrawPage>& aNotesPage, String aUrl
uno::Reference < container::XNameAccess > xFilters ( xFilterFact, uno::UNO_QUERY );
if ( xFilters->hasByName( aFilterName ) )
xFilters->getByName( aFilterName ) >>= aProps;
+ else
+ fprintf( stderr, "Couldn't find by name.\n" );
::rtl::OUString aFilterImplName;
sal_Int32 nFilterProps = aProps.getLength();
@@ -367,16 +369,25 @@ sal_Bool ExportTo( uno::Reference< drawing::XDrawPage>& aNotesPage, String aUrl
}
}
+ fprintf( stderr, "aName%s\n", OUStringToOString(aFilterImplName, RTL_TEXTENCODING_UTF8).getStr() );
if ( !aFilterImplName.isEmpty() )
{
try{
xExporter = uno::Reference< document::XExporter >
( xFilterFact->createInstanceWithArguments( aFilterName, uno::Sequence < uno::Any >() ), uno::UNO_QUERY );
}catch(const uno::Exception&)
- { xExporter.clear(); }
+ {
+ xExporter.clear();
+ fprintf( stderr, "Couldn't create instance of filter.\n" );
+ }
}
}
+ if (xExporter.is())
+ fprintf( stderr, "Is!\n" );
+ else
+ fprintf( stderr, "Isn't\n" );
+
if ( xExporter.is() )
{
try{