3 #ifndef BUFFERVIEW_PIMPL_H
4 #define BUFFERVIEW_PIMPL_H
6 #include "BufferView.h"
7 #include "UpdateInset.h"
19 #ifdef SIGC_CXX_NAMESPACES
24 struct BufferView::Pimpl : public Object {
26 Pimpl(BufferView * i, LyXView * o,
27 int xpos, int ypos, int width, int height);
31 void buffer(Buffer *);
33 void resize(int xpos, int ypos, int width, int height);
38 /// Return true if the cursor was fitted.
41 void redoCurrentBuffer();
43 int resizeCurrentBuffer();
47 void update(BufferView::UpdateCodes);
50 /// Update pixmap of screen
53 void workAreaExpose();
55 void updateScrollbar();
57 void scrollCB(double value);
59 Inset * checkInsetHit(LyXText *, int & x, int & y,
62 int scrollUp(long time);
64 int scrollDown(long time);
66 void workAreaKeyPress(KeySym, unsigned int state);
68 void workAreaMotionNotify(int x, int y, unsigned int state);
70 void workAreaButtonPress(int x, int y, unsigned int button);
72 void workAreaButtonRelease(int x, int y, unsigned int button);
74 void doubleClick(int x, int y, unsigned int button);
76 void tripleClick(int x, int y, unsigned int button);
84 void cursorPrevious();
88 bool available() const;
94 void restorePosition();
96 bool NoSavedPositions();
112 bool belowMouse() const;
118 void toggleSelection(bool = true);
132 long current_scrollbar_value;
134 FL_OBJECT * figinset_canvas;
136 Timeout cursor_timeout;
144 WorkArea * workarea_;
146 UpdateInset updatelist;
148 void pasteClipboard(bool asPara);
150 void stuffClipboard(string const &) const;
153 bool using_xterm_cursor;