merge the formfield patch from ooo-build
[ooovba.git] / slideshow / source / inc / view.hxx
blob51084989d6450174acfd2fbbc39a4236dd51dbb1
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: view.hxx,v $
10 * $Revision: 1.6 $
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_SLIDESHOW_VIEW_HXX
32 #define INCLUDED_SLIDESHOW_VIEW_HXX
34 #include "viewlayer.hxx"
36 #include <boost/shared_ptr.hpp>
37 #include <vector>
40 namespace basegfx { class B2DRange; class B2DVector; }
43 /* Definition of View interface */
45 namespace slideshow
47 namespace internal
49 class View : public ViewLayer
51 public:
52 /** Create a new view layer for this view
54 @param rLayerBounds
55 Specifies the bound rect of the layer relative to the
56 user view coordinate system.
58 This method sets the bounds of the view layer in
59 document coordinates (i.e. 'logical' coordinates). The
60 resulting transformation is then concatenated with the
61 underlying view transformation, returned by the
62 getTransformation() method.
64 virtual ViewLayerSharedPtr createViewLayer( const basegfx::B2DRange& rLayerBounds ) const = 0;
66 /** Update screen representation from backbuffer
68 virtual bool updateScreen() const = 0;
70 /** Paint screen content unconditionally from backbuffer
72 virtual bool paintScreen() const = 0;
74 /** Set the size of the user view coordinate system.
76 This method sets the width and height of the view in
77 document coordinates (i.e. 'logical' coordinates). The
78 resulting transformation is then concatenated with the
79 underlying view transformation, returned by the
80 getTransformation() method.
82 virtual void setViewSize( const ::basegfx::B2DVector& ) = 0;
84 /** Change the view's mouse cursor.
86 @param nPointerShape
87 One of the ::com::sun::star::awt::SystemPointer
88 constant group members.
90 virtual void setCursorShape( sal_Int16 nPointerShape ) = 0;
93 typedef ::boost::shared_ptr< View > ViewSharedPtr;
94 typedef ::std::vector< ViewSharedPtr > ViewVector;
98 #endif /* INCLUDED_SLIDESHOW_VIEW_HXX */