summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-08-01 10:05:05 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-08-01 10:57:10 +0200
commitf5a98e08e7f12453c469b277554b0e45f0c2310f (patch)
tree5df66f0f9754a182d77212f07ebe26974938a787 /test/source
parent12a35ec8905559a5f2e0e00f792489bbcf0095db (diff)
test::BootstrapFixture: make GraphicConverter work
Change-Id: I566448db441eaa324cf619630a2e87cb8cbaeb99
Diffstat (limited to 'test/source')
-rw-r--r--test/source/bootstrapfixture.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index edb7b63b30a0..86e2acbd4b35 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -41,6 +41,7 @@
#include <vcl/svapp.hxx>
#include <tools/resmgr.hxx>
+#include <svtools/filter.hxx>
#include <unotools/syslocaleoptions.hxx>
using namespace ::com::sun::star;
@@ -103,6 +104,9 @@ void test::BootstrapFixture::setUp()
if( m_bAssertOnDialog )
ErrorHandler::RegisterDisplay( aBasicErrorFunc );
+
+ // Make GraphicConverter work, normally done in desktop::Desktop::Main()
+ Application::SetFilterHdl( LINK( this, test::BootstrapFixture, ImplInitFilterHdl ) );
}
void test::BootstrapFixture::tearDown()
@@ -115,4 +119,9 @@ test::BootstrapFixture::~BootstrapFixture()
{
}
+IMPL_LINK( test::BootstrapFixture, ImplInitFilterHdl, ConvertData*, pData )
+{
+ return GraphicFilter::GetGraphicFilter().GetFilterCallback().Call( pData );
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */