1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tests.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_TESTS_HXX
32 #define INCLUDED_TESTS_HXX
34 #include "animatableshape.hxx"
35 #include "unoview.hxx"
36 #include <boost/shared_ptr.hpp>
38 namespace basegfx
{ class B1DRange
; class B2DRange
; class B2DVector
; }
40 class TestView
: public slideshow::internal::UnoView
43 /// true iff clear() has been called
44 virtual bool isClearCalled() const = 0;
45 virtual std::vector
<std::pair
<basegfx::B2DVector
,double> > getCreatedSprites() const = 0;
46 virtual basegfx::B1DRange
getPriority() const = 0;
47 /// true iff setClip was called (on and off)
48 virtual bool wasClipSet() const = 0;
49 virtual basegfx::B2DRange
getBounds() const = 0;
51 virtual std::vector
<boost::shared_ptr
<TestView
> > getViewLayers() const = 0;
54 typedef boost::shared_ptr
<TestView
> TestViewSharedPtr
;
55 TestViewSharedPtr
createTestView();
58 ///////////////////////////////////////////////////////////////////////////////////////
61 class TestShape
: public slideshow::internal::AnimatableShape
65 std::pair
<slideshow::internal::ViewLayerSharedPtr
,bool> > getViewLayers() const = 0;
66 virtual sal_Int32
getNumUpdates() const = 0;
67 virtual sal_Int32
getNumRenders() const = 0;
68 virtual sal_Int32
getAnimationCount() const = 0;
71 typedef boost::shared_ptr
<TestShape
> TestShapeSharedPtr
;
72 TestShapeSharedPtr
createTestShape(const basegfx::B2DRange
& rRect
,
75 #endif /* INCLUDED_TESTS_HXX */