fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / slideshow / test / tests.hxx
blob1cf44c831dd5975f2a1cc65a530899e01b8a5f50
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SLIDESHOW_TEST_TESTS_HXX
21 #define INCLUDED_SLIDESHOW_TEST_TESTS_HXX
23 #include "animatableshape.hxx"
24 #include "unoview.hxx"
25 #include <boost/shared_ptr.hpp>
27 namespace basegfx{ class B1DRange; class B2DRange; class B2DVector; }
29 class TestView : public slideshow::internal::UnoView
31 public:
32 /// true iff clear() has been called
33 virtual bool isClearCalled() const = 0;
34 virtual std::vector<std::pair<basegfx::B2DVector,double> > getCreatedSprites() const = 0;
35 virtual basegfx::B1DRange getPriority() const = 0;
36 /// true iff setClip was called (on and off)
37 virtual bool wasClipSet() const = 0;
38 virtual basegfx::B2DRange getBounds() const = 0;
40 virtual std::vector<boost::shared_ptr<TestView> > getViewLayers() const = 0;
43 typedef boost::shared_ptr<TestView> TestViewSharedPtr;
44 TestViewSharedPtr createTestView();
50 class TestShape : public slideshow::internal::AnimatableShape
52 public:
53 virtual std::vector<
54 std::pair<slideshow::internal::ViewLayerSharedPtr,bool> > getViewLayers() const = 0;
55 virtual sal_Int32 getNumUpdates() const = 0;
56 virtual sal_Int32 getNumRenders() const = 0;
57 virtual sal_Int32 getAnimationCount() const = 0;
60 typedef boost::shared_ptr<TestShape> TestShapeSharedPtr;
61 TestShapeSharedPtr createTestShape(const basegfx::B2DRange& rRect,
62 double nPrio);
64 #endif // INCLUDED_SLIDESHOW_TEST_TESTS_HXX
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */