4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * \author Abdelrazak Younes
11 * Full author contact details are available in file CREDITS.
14 #ifndef BASE_WORKAREA_H
15 #define BASE_WORKAREA_H
17 #include "frontends/KeyModifier.h"
27 * The work area class represents the widget that provides the view
28 * onto a document. It owns the BufferView, and is responsible for
29 * handing events back to its BufferView.
35 virtual ~WorkArea() {}
37 /// Update metrics if needed and schedule a paint event
38 virtual void scheduleRedraw(bool update_metrics) = 0;
40 /// close this work area.
41 /// Slot for Buffer::closing signal.
42 virtual void close() = 0;
44 /// Update window titles of all users.
45 virtual void updateWindowTitle() = 0;
48 } // namespace frontend
51 #endif // BASE_WORKAREA_H