summaryrefslogtreecommitdiff
path: root/slideshow/test/testview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/test/testview.cxx')
-rw-r--r--slideshow/test/testview.cxx96
1 files changed, 51 insertions, 45 deletions
diff --git a/slideshow/test/testview.cxx b/slideshow/test/testview.cxx
index bac8ab5998ec..503cd796a2bb 100644
--- a/slideshow/test/testview.cxx
+++ b/slideshow/test/testview.cxx
@@ -33,9 +33,9 @@
#include <cppcanvas/spritecanvas.hxx>
#include "tests.hxx"
-#include "view.hxx"
-#include "unoview.hxx"
-#include "com/sun/star/presentation/XSlideShowView.hpp"
+#include <view.hxx>
+#include <unoview.hxx>
+#include <com/sun/star/presentation/XSlideShowView.hpp>
#include <vector>
#include <exception>
@@ -74,132 +74,138 @@ public:
{
}
- virtual ~ImplTestView()
- {
- }
-
// XSlideShowView
- virtual uno::Reference< rendering::XSpriteCanvas > SAL_CALL getCanvas( ) throw (uno::RuntimeException)
+ virtual uno::Reference< rendering::XSpriteCanvas > SAL_CALL getCanvas( ) override
{
return uno::Reference< rendering::XSpriteCanvas >();
}
- virtual void SAL_CALL clear( ) throw (uno::RuntimeException)
+ virtual void SAL_CALL clear( ) override
{
}
- virtual geometry::AffineMatrix2D SAL_CALL getTransformation( ) throw (uno::RuntimeException)
+ virtual geometry::AffineMatrix2D SAL_CALL getTransformation( ) override
{
return geometry::AffineMatrix2D();
}
- virtual void SAL_CALL addTransformationChangedListener( const uno::Reference< util::XModifyListener >& ) throw (uno::RuntimeException)
+ virtual ::css::geometry::IntegerSize2D SAL_CALL getTranslationOffset() override
+ {
+ return geometry::IntegerSize2D();
+ }
+
+ virtual geometry::IntegerSize2D getTranslationOffset() const override
+ {
+ return geometry::IntegerSize2D();
+ }
+
+ virtual void SAL_CALL addTransformationChangedListener( const uno::Reference< util::XModifyListener >& ) override
{
}
- virtual void SAL_CALL removeTransformationChangedListener( const uno::Reference< util::XModifyListener >& ) throw (uno::RuntimeException)
+ virtual void SAL_CALL removeTransformationChangedListener( const uno::Reference< util::XModifyListener >& ) override
{
}
- virtual void SAL_CALL addPaintListener( const uno::Reference< awt::XPaintListener >& ) throw (uno::RuntimeException)
+ virtual void SAL_CALL addPaintListener( const uno::Reference< awt::XPaintListener >& ) override
{
}
- virtual void SAL_CALL removePaintListener( const uno::Reference< awt::XPaintListener >& ) throw (uno::RuntimeException)
+ virtual void SAL_CALL removePaintListener( const uno::Reference< awt::XPaintListener >& ) override
{
}
- virtual void SAL_CALL addMouseListener( const uno::Reference< awt::XMouseListener >& ) throw (uno::RuntimeException)
+ virtual void SAL_CALL addMouseListener( const uno::Reference< awt::XMouseListener >& ) override
{
}
- virtual void SAL_CALL removeMouseListener( const uno::Reference< awt::XMouseListener >& ) throw (uno::RuntimeException)
+ virtual void SAL_CALL removeMouseListener( const uno::Reference< awt::XMouseListener >& ) override
{
}
- virtual void SAL_CALL addMouseMotionListener( const uno::Reference< awt::XMouseMotionListener >& ) throw (uno::RuntimeException)
+ virtual void SAL_CALL addMouseMotionListener( const uno::Reference< awt::XMouseMotionListener >& ) override
{
}
- virtual void SAL_CALL removeMouseMotionListener( const uno::Reference< awt::XMouseMotionListener >& ) throw (uno::RuntimeException)
+ virtual void SAL_CALL removeMouseMotionListener( const uno::Reference< awt::XMouseMotionListener >& ) override
{
}
- virtual void SAL_CALL setMouseCursor( ::sal_Int16 ) throw (uno::RuntimeException)
+ virtual void SAL_CALL setMouseCursor( ::sal_Int16 ) override
{
}
- virtual awt::Rectangle SAL_CALL getCanvasArea( ) throw (uno::RuntimeException)
+ virtual awt::Rectangle SAL_CALL getCanvasArea( ) override
{
return awt::Rectangle(0,0,100,100);
}
// TestView
- virtual bool isClearCalled() const
+ virtual bool isClearCalled() const override
{
return mbIsClearCalled;
}
- virtual std::vector<std::pair<basegfx::B2DVector,double> > getCreatedSprites() const
+ virtual std::vector<std::pair<basegfx::B2DVector,double> > getCreatedSprites() const override
{
return maCreatedSprites;
}
- virtual basegfx::B1DRange getPriority() const
+ virtual basegfx::B1DRange getPriority() const override
{
return maPriority;
}
- virtual bool wasClipSet() const
+ virtual bool wasClipSet() const override
{
return mbIsClipEmptied;
}
- virtual basegfx::B2DRange getBounds() const
+ virtual basegfx::B2DRange getBounds() const override
{
return maBounds;
}
- virtual std::vector<std::shared_ptr<TestView> > getViewLayers() const
+ virtual std::vector<std::shared_ptr<TestView> > getViewLayers() const override
{
return maViewLayers;
}
// ViewLayer
- virtual bool isOnView(target::ViewSharedPtr const& /*rView*/) const
+ virtual bool isOnView(target::ViewSharedPtr const& /*rView*/) const override
{
return true;
}
- virtual ::cppcanvas::CanvasSharedPtr getCanvas() const
+ virtual ::cppcanvas::CanvasSharedPtr getCanvas() const override
{
return ::cppcanvas::CanvasSharedPtr();
}
virtual ::cppcanvas::CustomSpriteSharedPtr createSprite( const ::basegfx::B2DSize& rSpriteSizePixel,
- double nPriority ) const
+ double nPriority ) const override
{
maCreatedSprites.push_back( std::make_pair(rSpriteSizePixel,nPriority) );
return ::cppcanvas::CustomSpriteSharedPtr();
}
- virtual void setPriority( const basegfx::B1DRange& rRange )
+ virtual void setPriority( const basegfx::B1DRange& rRange ) override
{
maPriority = rRange;
}
- virtual ::basegfx::B2DHomMatrix getTransformation() const
+ virtual ::basegfx::B2DHomMatrix getTransformation() const override
{
return ::basegfx::B2DHomMatrix();
}
- virtual ::basegfx::B2DHomMatrix getSpriteTransformation() const
+ virtual ::basegfx::B2DHomMatrix getSpriteTransformation() const override
{
return ::basegfx::B2DHomMatrix();
}
- virtual void setClip( const ::basegfx::B2DPolyPolygon& rClip )
+ virtual void setClip( const ::basegfx::B2DPolyPolygon& rClip ) override
{
if( !mbIsClipSet )
{
@@ -223,7 +229,7 @@ public:
}
}
- virtual bool resize( const basegfx::B2DRange& rArea )
+ virtual bool resize( const basegfx::B2DRange& rArea ) override
{
const bool bRet( maBounds != rArea );
maBounds = rArea;
@@ -231,7 +237,7 @@ public:
}
virtual target::ViewLayerSharedPtr createViewLayer(
- const basegfx::B2DRange& rLayerBounds ) const
+ const basegfx::B2DRange& rLayerBounds ) const override
{
maViewLayers.push_back( TestViewSharedPtr(new ImplTestView()));
maViewLayers.back()->resize( rLayerBounds );
@@ -239,50 +245,50 @@ public:
return maViewLayers.back();
}
- virtual bool updateScreen() const
+ virtual bool updateScreen() const override
{
// misusing updateScreen for state reporting
return !mbDisposed;
}
- virtual bool paintScreen() const
+ virtual bool paintScreen() const override
{
// misusing updateScreen for state reporting
return !mbDisposed;
}
- virtual void clear() const
+ virtual void clear() const override
{
}
- virtual void clearAll() const
+ virtual void clearAll() const override
{
}
- virtual void setViewSize( const ::basegfx::B2DSize& )
+ virtual void setViewSize( const ::basegfx::B2DSize& ) override
{
}
- virtual void setCursorShape( sal_Int16 /*nPointerShape*/ )
+ virtual void setCursorShape( sal_Int16 /*nPointerShape*/ ) override
{
}
- virtual uno::Reference< presentation::XSlideShowView > getUnoView() const
+ virtual uno::Reference< presentation::XSlideShowView > getUnoView() const override
{
return uno::Reference< presentation::XSlideShowView >( const_cast<ImplTestView*>(this) );
}
- virtual void _dispose()
+ virtual void _dispose() override
{
mbDisposed = true;
}
- virtual bool isSoundEnabled() const
+ virtual bool isSoundEnabled() const override
{
return true;
}
- virtual void setIsSoundEnabled (const bool /*bValue*/)
+ virtual void setIsSoundEnabled (const bool /*bValue*/) override
{
}
};