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);
53 void smallUpdate(signed char f);
56 void updateScrollbar();
58 void redoCurrentBuffer();
60 int resizeCurrentBuffer();
64 void cursorPrevious();
68 bool available() const;
70 LyXView * owner() const;
76 void restorePosition();
77 /** This holds the mapping between buffer paragraphs and screen rows.
78 This should be private...but not yet. (Lgb)
82 unsigned short paperWidth() const;
84 UpdatableInset * the_locking_inset;
86 void updateInset(Inset * inset, bool mark_dirty);
100 void replaceWord(string const & replacestring);
102 void endOfSpellCheck();
104 void selectLastWord();
106 char * nextWord(float & value);
108 void insertCorrectQuote();
112 bool gotoLabel(string const & label);
120 void pasteEnvironment();
122 void copyEnvironment();
126 void protectedBlank();
130 void menuSeparator();
132 void endOfSentenceDot();
136 void hyphenationPoint();
148 void allFloats(char flag, char figmar);
149 /// removes all autodeletable insets
150 bool removeAutoInsets();
152 void insertErrors(TeXErrors & terr);
154 void setCursorFromRow(int row);
155 /** Insert an inset into the buffer
156 Insert inset into buffer, placing it in a layout of lout,
157 if no_table make sure that it doesn't end up in a table. */
158 void insertInset(Inset * inset, string const & lout = string(),
159 bool no_table = false);
160 /// open and lock an updatable inset
161 void open_new_inset(UpdatableInset * new_inset);
162 /// Inserts a lyx file at cursor position. Returns false if it fails.
163 bool insertLyXFile(string const & file);
165 bool lockInset(UpdatableInset * inset);
167 void showLockedInsetCursor(long x, long y, int asc, int desc);
169 void hideLockedInsetCursor();
171 void fitLockedInsetCursor(long x, long y, int asc, int desc);
173 int unlockInset(UpdatableInset * inset);
175 void lockedInsetStoreUndo(Undo::undo_kind kind);
181 void toggleSelection(bool = true);
194 bool belowMouse() const;
195 /// A callback for the slider in the scrollbar.
196 void scrollCB(double);
199 static void cursorToggleCB(FL_OBJECT * ob, long);
205 void pushIntoUpdateList(Inset * i);
207 void workAreaExpose();
209 void workAreaButtonPress(int x, int y, unsigned int button);
211 void workAreaButtonRelease(int x, int y, unsigned int button);
213 void workAreaMotionNotify(int x, int y, unsigned int state);
215 void doubleClick(int x, int y, unsigned int button);
217 void tripleClick(int x, int y, unsigned int button);
223 void workAreaSelectionNotify(Window win, XEvent * event);