]> git.lyx.org Git - lyx.git/blob - src/frontends/WorkArea.h
Set a maximum value to zoom level
[lyx.git] / src / frontends / WorkArea.h
1 // -*- C++ -*-
2 /**
3  * \file WorkArea.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author unknown
8  * \author John Levon
9  * \author Abdelrazak Younes
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef BASE_WORKAREA_H
15 #define BASE_WORKAREA_H
16
17 #include "frontends/KeyModifier.h"
18
19 namespace lyx {
20
21 class BufferView;
22 class KeySymbol;
23
24 namespace frontend {
25
26 /**
27  * The work area class represents the widget that provides the
28  * view onto a document. It is owned by the BufferView, and
29  * is responsible for handing events back to its owning BufferView.
30  * It works in concert with the BaseScreen class to update the
31  * widget view of a document.
32  */
33 class WorkArea
34 {
35 public:
36         ///
37         virtual ~WorkArea() {}
38
39         /// Update metrics if needed and schedule a paint event
40         virtual void scheduleRedraw(bool update_metrics) = 0;
41
42         /// close this work area.
43         /// Slot for Buffer::closing signal.
44         virtual void close() = 0;
45
46         /// Update window titles of all users.
47         virtual void updateWindowTitle() = 0;
48 };
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #endif // BASE_WORKAREA_H