- WorkArea(int id, LyXView & lyx_view);
-
- virtual ~WorkArea() {}
-
- int const id() const { return id_; }
-
- void setBufferView(BufferView * buffer_view);
-
- ///
- BufferView & bufferView();
- ///
- BufferView const & bufferView() const;
-
- /// \return true if has the keyboard input focus.
- virtual bool hasFocus() const = 0;
-
- /// return the width of the work area in pixels
- virtual int width() const = 0;
-
- /// return the height of the work area in pixels
- virtual int height() const = 0;
-
- /**
- * Update the scrollbar.
- * @param height the total document height in pixels
- * @param pos the current position in the document, in pixels
- * @param line_height the line-scroll amount, in pixels
- */
- virtual void setScrollbarParams(int height, int pos, int line_height) = 0;
-
- /// redraw the screen, without using existing pixmap
- virtual void redraw(bool singlePar = false);
- ///
- void checkAndGreyOut();
- ///
- void stopBlinkingCursor();
- void startBlinkingCursor();
-
-protected:
- /// grey out (no buffer)
- virtual void greyOut();
- ///
- void processKeySym(LyXKeySymPtr key, key_modifier::state state);
- /// cause the display of the given area of the work area
- virtual void expose(int x, int y, int w, int h) = 0;