]> git.lyx.org Git - lyx.git/blob - src/frontends/WorkArea.h
Disable "search in selection only" with instant search
[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 namespace frontend {
22
23 /**
24  * The work area class represents the widget that provides the view
25  * onto a document. It owns the BufferView, and is responsible for
26  * handing events back to its BufferView.
27  */
28 class WorkArea
29 {
30 public:
31         ///
32         virtual ~WorkArea() {}
33
34         /// Update metrics if needed and schedule a paint event
35         virtual void scheduleRedraw(bool update_metrics) = 0;
36
37         /// close this work area.
38         /// Slot for Buffer::closing signal.
39         virtual void close() = 0;
40
41         /// Update window titles of all users.
42         virtual void updateWindowTitle() = 0;
43 };
44
45 } // namespace frontend
46 } // namespace lyx
47
48 #endif // BASE_WORKAREA_H