// -*- C++ -*-
-/** \file
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+/**
+ * \file BufferView.h
+ * Copyright 2002 the LyX Team
+ * Read the file COPYING
*
* \author Lars Gullik Bjønnes
*/
#include "LString.h"
#include "undo.h"
-#include "commandtags.h"
#include "insets/inset.h"
class LyXText;
class TeXErrors;
class Buffer;
-class LScreen;
+class LyXScreen;
class Language;
class Painter;
class UpdatableInset;
+class WordLangTuple;
///
class BufferView : boost::noncopyable {
///
Painter & painter() const;
///
- LScreen & screen() const;
+ LyXScreen & screen() const;
///
void buffer(Buffer * b);
///
- void resize(int, int, int, int);
- ///
void resize();
- ///
- void redraw();
+ /**
+ * Repaint the pixmap. Used for when we don't want
+ * to go through the full update() logic, just a simple
+ * repaint of the whole screen.
+ */
+ void repaint();
///
bool fitCursor();
///
///
void redoCurrentBuffer();
///
- int resizeCurrentBuffer();
- ///
void cursorPrevious(LyXText *);
///
void cursorNext(LyXText *);
void endOfSpellCheck();
///
void selectLastWord();
- ///
- string const nextWord(float & value);
+ /// return the next word
+ WordLangTuple const nextWord(float & value);
///
bool gotoLabel(string const & label);
///
///
void center();
- ///
- bool focus() const;
- ///
- void focus(bool);
/// Scroll the view by a number of pixels
void scrollDocView(int);
///
- void setState();
+ void switchKeyMap();
///
bool ChangeInsets(Inset::Code code, string const & from,
///
void stuffClipboard(string const &) const;
///
- bool Dispatch(kb_action action, string const & argument);
+ bool dispatch(FuncRequest const & argument);
private:
///
struct Pimpl;