Update ooo320-m1
[ooovba.git] / sdext / source / presenter / PresenterPaneAnimator.hxx
blob4143f3d4da49d13e5cb66fb1a0532cd9ab747e28
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PresenterPaneAnimator.hxx,v $
11 * $Revision: 1.3 $
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
32 #ifndef SDEXT_PRESENTER_PRESENTER_PANE_ANIMATOR_HXXs
33 #define SDEXT_PRESENTER_PRESENTER_PANE_ANIMATOR_HXX
35 #include <com/sun/star/awt/Point.hpp>
36 #include <com/sun/star/awt/Rectangle.hpp>
37 #include <com/sun/star/awt/XWindow.hpp>
38 #include <com/sun/star/drawing/framework/XResourceId.hpp>
39 #include <com/sun/star/geometry/RealPoint2D.hpp>
40 #include <com/sun/star/rendering/XBitmap.hpp>
41 #include <com/sun/star/rendering/XSprite.hpp>
42 #include <com/sun/star/rendering/XSpriteCanvas.hpp>
43 #include <com/sun/star/uno/XComponentContext.hpp>
44 #include <rtl/ref.hxx>
45 #include <vector>
46 #include <boost/function.hpp>
47 #include <boost/noncopyable.hpp>
48 #include <boost/shared_ptr.hpp>
50 namespace css = ::com::sun::star;
52 namespace sdext { namespace presenter {
54 class PresenterController;
55 class PresenterPaneContainer;
56 class PresenterWindowManager;
58 /** Base class for different types of pane animations. Each of these
59 animations either shows or hides a single pane.
61 class PresenterPaneAnimator
62 : private ::boost::noncopyable
64 public:
65 virtual void ShowPane (void) = 0;
66 virtual void HidePane (void) = 0;
68 protected:
69 virtual ~PresenterPaneAnimator (void) {};
73 typedef ::std::vector< ::boost::function<void()> > EndActions;
75 ::boost::shared_ptr<PresenterPaneAnimator> CreateUnfoldInCenterAnimator (
76 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
77 const ::rtl::Reference<PresenterController>& rpPresenterController,
78 const bool bAnimate,
79 const EndActions& rShowEndActions,
80 const EndActions& rEndEndActions);
82 ::boost::shared_ptr<PresenterPaneAnimator> CreateMoveInFromBottomAnimator (
83 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
84 const ::rtl::Reference<PresenterController>& rpPresenterController,
85 const bool bAnimate,
86 const EndActions& rShowEndActions,
87 const EndActions& rEndEndActions);
89 ::boost::shared_ptr<PresenterPaneAnimator> CreateTransparentOverlay (
90 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
91 const ::rtl::Reference<PresenterController>& rpPresenterController,
92 const bool bAnimate,
93 const EndActions& rShowEndActions,
94 const EndActions& rEndEndActions);
96 } }
98 #endif