diff options
author | Thorsten Behrens <tbehrens@novell.com> | 2010-11-07 00:15:27 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@novell.com> | 2010-11-15 17:43:14 +0100 |
commit | f1c45fad02ee12937b4e80dfac3db5f97ea9dbc9 (patch) | |
tree | 72de3a1c964993471cf4d23a6b0282bf3dba92ea /slideshow/test/demoshow.cxx | |
parent | f37609830b20839ce2a4c9aee0ec57435d5112a2 (diff) |
Make slideshow unittest work again
Well, it still fails. But for all the right reasons.
Diffstat (limited to 'slideshow/test/demoshow.cxx')
-rw-r--r-- | slideshow/test/demoshow.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/slideshow/test/demoshow.cxx b/slideshow/test/demoshow.cxx index cd0435849eb3..6e80a3637f32 100644 --- a/slideshow/test/demoshow.cxx +++ b/slideshow/test/demoshow.cxx @@ -54,6 +54,7 @@ #include <ucbhelper/configurationkeys.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> +#include <basegfx/matrix/b2dhommatrixtools.hxx> #include <basegfx/tools/canvastools.hxx> #include <basegfx/range/b2drectangle.hxx> #include <basegfx/polygon/b2dpolygon.hxx> @@ -199,6 +200,11 @@ private: { } + virtual awt::Rectangle SAL_CALL getCanvasArea( ) throw (uno::RuntimeException) + { + return awt::Rectangle(0,0,maSize.Width(),maSize.Height()); + } + uno::Reference< rendering::XSpriteCanvas > mxCanvas; ::cppu::OInterfaceContainerHelper maPaintListeners; ::cppu::OInterfaceContainerHelper maTransformationListeners; @@ -418,7 +424,7 @@ DemoWindow::DemoWindow() : maUpdateTimer(), mbSlideDisplayed( false ) { - SetText( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Slideshow Demo" )) ); + SetText( rtl::OUString::createFromAscii( "Slideshow Demo" ) ); SetSizePixel( Size( 640, 480 ) ); EnablePaint( true ); @@ -456,11 +462,13 @@ void DemoWindow::init() if( mxShow.is() && !mbSlideDisplayed ) { uno::Reference< drawing::XDrawPage > xSlide( new DummySlide ); + uno::Reference< drawing::XDrawPages > xDrawPages; mxShow->displaySlide( xSlide, + uno::Reference< drawing::XDrawPagesSupplier >(), uno::Reference< animations::XAnimationNode >(), uno::Sequence< beans::PropertyValue >() ); mxShow->setProperty( beans::PropertyValue( - rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RehearseTimings")), + rtl::OUString::createFromAscii("RehearseTimings"), 0, uno::makeAny( sal_True ), beans::PropertyState_DIRECT_VALUE )); |