Bump version to 24.04.3.4
[LibreOffice.git] / slideshow / source / inc / view.hxx
blob0d1937b60e8595a6b7b697d1ca9e36a0272d6b95
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_SOURCE_INC_VIEW_HXX
21 #define INCLUDED_SLIDESHOW_SOURCE_INC_VIEW_HXX
23 #include "viewlayer.hxx"
25 #include <memory>
26 #include <vector>
29 namespace basegfx { class B2DRange; class B2DVector; }
32 /* Definition of View interface */
34 namespace slideshow::internal
36 class View : public ViewLayer
38 public:
39 /** Create a new view layer for this view
41 @param rLayerBounds
42 Specifies the bound rect of the layer relative to the
43 user view coordinate system.
45 This method sets the bounds of the view layer in
46 document coordinates (i.e. 'logical' coordinates). The
47 resulting transformation is then concatenated with the
48 underlying view transformation, returned by the
49 getTransformation() method.
51 virtual ViewLayerSharedPtr createViewLayer( const basegfx::B2DRange& rLayerBounds ) const = 0;
53 /** Update screen representation from backbuffer
55 virtual bool updateScreen() const = 0;
57 /** Paint screen content unconditionally from backbuffer
59 virtual bool paintScreen() const = 0;
61 /** Set the size of the user view coordinate system.
63 This method sets the width and height of the view in
64 document coordinates (i.e. 'logical' coordinates). The
65 resulting transformation is then concatenated with the
66 underlying view transformation, returned by the
67 getTransformation() method.
69 virtual void setViewSize( const ::basegfx::B2DSize& ) = 0;
71 /** Change the view's mouse cursor.
73 @param nPointerShape
74 One of the css::awt::SystemPointer
75 constant group members.
77 virtual void setCursorShape( sal_Int16 nPointerShape ) = 0;
80 typedef std::shared_ptr< View > ViewSharedPtr;
81 typedef std::vector< ViewSharedPtr > ViewVector;
85 #endif // INCLUDED_SLIDESHOW_SOURCE_INC_VIEW_HXX
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */