#include "lyxtext.h"
#include "support/filetools.h"
+#define MOVE_TEXT 1
class LyXRC;
class TeXErrors;
*/
bool saveParamsAsDefaults();
+ /** high-level interface to buffer functionality
+ This function parses a command string and executes it
+ */
+ void Dispatch(const string & command);
+
+ /// Maybe we know the function already by number...
+ void Dispatch(int ac, const string & argument);
+
/// should be changed to work for a list.
void resize()
{
if (users) {
users->resize();
- } else if (text) {
+ }
+#ifndef MOVE_TEXT
+ else if (text) {
delete text;
text = 0;
}
+#endif
}
/// Update window titles of all users
Since we only can have one at the moment, we just reset it.
*/
void delUser(BufferView *){ users = 0; }
-
+
+#ifndef MOVE_TEXT
///
void update(signed char f);
+#endif
///
void redraw() {
}
///
- string getFileName() const { return filename; }
+ string const & fileName() const { return filename; }
/// A transformed version of the file name, adequate for LaTeX
string getLatexName() const {
}
/// Change name of buffer. Updates "read-only" flag.
- void setFileName(string const & newfile);
+ void fileName(string const & newfile);
/// Name of the document's parent
void setParentName(string const &);
/** is a list of paragraphs.
*/
LyXParagraph * paragraph;
-
+
+#ifndef MOVE_TEXT
/** This holds the mapping between buffer paragraphs and screen rows.
Should be moved to BufferView. (Asger)
*/
LyXText * text;
-
- ///
+#endif
+ /// per view not per buffer?
UpdatableInset * the_locking_inset;
/// RCS object
/** While writing as LaTeX, tells whether we are
doing a 'nice' LaTeX file */
bool niceFile;
-protected:
+
///
void InsetUnlock();
///
void DocBookHandleCaption(ostream & os, string & inner_tag,
int const depth, int desc_on,
- LyXParagraph * &par);
+ LyXParagraph * & par);
///
void DocBookHandleFootnote(ostream & os,
LyXParagraph * & par, int const depth);
*/
BufferView * users;
- ///
- friend class BufferList;
- ///
- friend class BufferView;
-
/// Used when typesetting to place errorboxes.
TexRow texrow;
};