2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
19 #include FORMS_H_LOCATION
30 BufferView(LyXView * owner, int , int , int, int);
34 Buffer * buffer() const;
38 void buffer(Buffer * b);
40 void resize(int, int, int, int);
50 void update(signed char f);
52 void updateScrollbar();
54 void redoCurrentBuffer();
56 int resizeCurrentBuffer();
60 void cursorPrevious();
64 bool available() const;
66 LyXView * owner() const;
72 void restorePosition();
73 /** This holds the mapping between buffer paragraphs and screen rows.
74 This should be private...but not yet. (Lgb)
78 unsigned short paperWidth() const;
80 UpdatableInset * the_locking_inset;
82 void updateInset(Inset * inset, bool mark_dirty);
96 void replaceWord(string const & replacestring);
98 void endOfSpellCheck();
100 void selectLastWord();
102 char * nextWord(float & value);
104 void insertCorrectQuote();
108 bool gotoLabel(string const & label);
116 void pasteEnvironment();
118 void copyEnvironment();
122 void protectedBlank();
126 void menuSeparator();
128 void endOfSentenceDot();
132 void hyphenationPoint();
144 void allFloats(char flag, char figmar);
145 /// removes all autodeletable insets
146 bool removeAutoInsets();
148 void insertErrors(TeXErrors & terr);
150 void setCursorFromRow(int row);
151 /** Insert an inset into the buffer
152 Insert inset into buffer, placing it in a layout of lout,
153 if no_table make sure that it doesn't end up in a table. */
154 void insertInset(Inset * inset, string const & lout = string(),
155 bool no_table = false);
156 /// open and lock an updatable inset
157 void open_new_inset(UpdatableInset * new_inset);
158 /// Inserts a lyx file at cursor position. Returns false if it fails.
159 bool insertLyXFile(string const & file);
161 bool lockInset(UpdatableInset * inset);
163 void showLockedInsetCursor(long x, long y, int asc, int desc);
165 void hideLockedInsetCursor();
167 void fitLockedInsetCursor(long x, long y, int asc, int desc);
169 int unlockInset(UpdatableInset * inset);
171 void lockedInsetStoreUndo(Undo::undo_kind kind);
177 void toggleSelection(bool = true);
190 bool belowMouse() const;
191 /// A callback for the slider in the scrollbar.
192 void scrollCB(double);
195 static void cursorToggleCB(FL_OBJECT * ob, long);
201 void pushIntoUpdateList(Inset * i);
203 void workAreaExpose();
205 void workAreaButtonPress(int x, int y, unsigned int button);
207 void workAreaButtonRelease(int x, int y, unsigned int button);
209 void workAreaMotionNotify(int x, int y, unsigned int state);
211 void doubleClick(int x, int y, unsigned int button);
213 void tripleClick(int x, int y, unsigned int button);
219 void workAreaSelectionNotify(Window win, XEvent * event);