Bump version to 6.0-36
[LibreOffice.git] / slideshow / test / tests.hxx
blob71971b65d0e94ece6dd97d7bc1e7448cb090a021
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 <memory>
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<std::shared_ptr<TestView> > getViewLayers() const = 0;
43 typedef std::shared_ptr<TestView> TestViewSharedPtr;
44 TestViewSharedPtr createTestView();
47 class TestShape : public slideshow::internal::AnimatableShape
49 public:
50 virtual std::vector<
51 std::pair<slideshow::internal::ViewLayerSharedPtr,bool> > getViewLayers() const = 0;
52 virtual sal_Int32 getNumUpdates() const = 0;
53 virtual sal_Int32 getNumRenders() const = 0;
54 virtual sal_Int32 getAnimationCount() const = 0;
57 typedef std::shared_ptr<TestShape> TestShapeSharedPtr;
58 TestShapeSharedPtr createTestShape(const basegfx::B2DRange& rRect,
59 double nPrio);
61 #endif // INCLUDED_SLIDESHOW_TEST_TESTS_HXX
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */