]> git.lyx.org Git - lyx.git/blob - src/BufferView_pimpl.h
25f4715165dcde89c39cd020956bd4e1b90f9d62
[lyx.git] / src / BufferView_pimpl.h
1 // -*- C++ -*-
2
3 #ifndef BUFFERVIEW_PIMPL_H
4 #define BUFFERVIEW_PIMPL_H
5
6 #include "BufferView.h"
7 #include "UpdateInset.h"
8 #include "BackStack.h"
9
10 #ifdef __GNUG__
11 #pragma interface
12 #endif
13
14 class LyXView;
15 class WorkArea;
16 class LyXScreen;
17
18 struct BufferView::Pimpl {
19         Pimpl(BufferView * i, LyXView * o,
20               int xpos, int ypos, int width, int height);
21         
22         /// Update pixmap of screen
23         void updateScreen();
24         ///
25         void workAreaExpose();
26         ///
27         void scrollUpOnePage();
28         ///
29         void scrollDownOnePage();
30         ///
31         void create_view();
32         ///
33         Inset * checkInsetHit(int & x, int & y, unsigned int button);
34         /// 
35         int scrollUp(long time);
36         ///
37         int scrollDown(long time);
38         ///
39         void workAreaMotionNotify(int x, int y, unsigned int state);
40         ///
41         void workAreaButtonPress(int x, int y, unsigned int button);
42         ///
43         void workAreaButtonRelease(int x, int y, unsigned int button);
44         ///
45         void workAreaSelectionNotify(Window win, XEvent * event);
46         ///
47         void doubleClick(int x, int y, unsigned int button);
48         ///
49         void tripleClick(int x, int y, unsigned int button);
50         ///
51         BufferView * bv_;
52         ///
53         LyXView * owner_;
54         ///
55         Buffer * buffer_;
56         ///
57         LyXScreen * screen;
58         ///
59         long current_scrollbar_value;
60         ///
61         bool lyx_focus;
62         ///
63         bool work_area_focus;
64         ///
65         FL_OBJECT * figinset_canvas;
66         ///
67         FL_OBJECT * timer_cursor;
68         ///
69         BackStack backstack;
70         ///
71         int last_click_x, last_click_y;
72         ///
73         WorkArea * workarea;
74         ///
75         UpdateInset updatelist;
76 };
77 #endif