3 #ifndef BUFFERVIEW_PIMPL_H
4 #define BUFFERVIEW_PIMPL_H
6 #include "BufferView.h"
7 #include "UpdateInset.h"
19 #ifdef SIGC_CXX_NAMESPACES
23 struct BufferView::Pimpl : public Object {
24 Pimpl(BufferView * i, LyXView * o,
25 int xpos, int ypos, int width, int height);
29 void buffer(Buffer *);
31 void resize(int xpos, int ypos, int width, int height);
36 /// Return true if the cursor was fitted.
39 void redoCurrentBuffer();
41 int resizeCurrentBuffer();
45 void update(BufferView::UpdateCodes);
48 /// Update pixmap of screen
51 void workAreaExpose();
53 void updateScrollbar();
55 void scrollCB(double value);
57 Inset * checkInsetHit(LyXText *, 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;
129 FL_OBJECT * figinset_canvas;
131 Timeout cursor_timeout;
135 int last_click_x, last_click_y;
137 WorkArea * workarea_;
139 UpdateInset updatelist;
141 void pasteClipboard(bool asPara);
143 void stuffClipboard(string const &) const;
145 bool using_xterm_cursor;