3 #ifndef BUFFERVIEW_PIMPL_H
4 #define BUFFERVIEW_PIMPL_H
6 #include "BufferView.h"
7 #include "UpdateInset.h"
19 struct BufferView::Pimpl {
20 Pimpl(BufferView * i, LyXView * o,
21 int xpos, int ypos, int width, int height);
25 void buffer(Buffer *);
27 void resize(int xpos, int ypos, int width, int height);
32 /// Return true if the cursor was fitted.
35 void redoCurrentBuffer();
37 int resizeCurrentBuffer();
41 void update(signed char f);
44 /// Update pixmap of screen
47 void workAreaExpose();
49 void updateScrollbar();
51 void scrollCB(double value);
57 Inset * checkInsetHit(int & x, int & y, unsigned int button);
59 int scrollUp(long time);
61 int scrollDown(long time);
63 void workAreaMotionNotify(int x, int y, unsigned int state);
65 void workAreaButtonPress(int x, int y, unsigned int button);
67 void workAreaButtonRelease(int x, int y, unsigned int button);
69 void doubleClick(int x, int y, unsigned int button);
71 void tripleClick(int x, int y, unsigned int button);
79 void cursorPrevious();
83 bool available() const;
89 void restorePosition();
91 bool NoSavedPositions();
107 bool belowMouse() const;
113 void toggleSelection(bool = true);
127 long current_scrollbar_value;
131 bool work_area_focus;
133 FL_OBJECT * figinset_canvas;
136 FL_OBJECT * timer_cursor;
138 Timeout cursor_timeout;
143 int last_click_x, last_click_y;
147 UpdateInset updatelist;
149 void pasteClipboard(bool asPara);
151 void stuffClipboard(string const &) const;
153 bool using_xterm_cursor;