summaryrefslogtreecommitdiff
path: root/slideshow/test/demoshow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/test/demoshow.cxx')
-rw-r--r--slideshow/test/demoshow.cxx12
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 ));