]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/WorkArea.h
Keep dialog connected to cross-ref inset after Apply.
[lyx.git] / src / frontends / WorkArea.h
index c5aadfef6fb5b944a0e77eb2ce9de78e198cb43f..d6912fc7fad982d59ba7ec90675ff970eee0a4e8 100644 (file)
 #define BASE_WORKAREA_H
 
 #include "frontends/KeyModifier.h"
-#include "frontends/LyXView.h"
 
 namespace lyx {
 
-class BufferView;
-class KeySymbol;
-
 namespace frontend {
 
 /**
- * The work area class represents the widget that provides the
- * view onto a document. It is owned by the BufferView, and
- * is responsible for handing events back to its owning BufferView.
- * It works in concert with the BaseScreen class to update the
- * widget view of a document.
+ * The work area class represents the widget that provides the view
+ * onto a document. It owns the BufferView, and is responsible for
+ * handing events back to its BufferView.
  */
 class WorkArea
 {
@@ -37,8 +31,8 @@ public:
        ///
        virtual ~WorkArea() {}
 
-       /// redraw the screen, without using existing pixmap
-       virtual void redraw(bool update_metrics) = 0;
+       /// Update metrics if needed and schedule a paint event
+       virtual void scheduleRedraw(bool update_metrics) = 0;
 
        /// close this work area.
        /// Slot for Buffer::closing signal.