#endif
#include FORMS_H_LOCATION
+#include "LString.h"
#include "undo.h"
+#include "commandtags.h"
#include <boost/utility.hpp>
class LyXView;
class Language;
///
-class BufferView : public noncopyable {
+class BufferView : public boost::noncopyable {
public:
///
enum UpdateCodes {
///
void update();
//
- void update(UpdateCodes uc);
+ void update(LyXText *, UpdateCodes uc);
///
void updateScrollbar();
///
///
LyXView * owner() const;
///
- void beforeChange();
+ void beforeChange(LyXText *);
///
- void savePosition();
+ void savePosition(unsigned int i);
///
- void restorePosition();
+ void restorePosition(unsigned int i);
///
- bool NoSavedPositions();
+ bool isSavedPosition(unsigned int i);
/** This holds the mapping between buffer paragraphs and screen rows.
This should be private...but not yet. (Lgb)
*/
///
void hfill();
///
- void protectedBlank();
+ void protectedBlank(LyXText *);
///
void newline();
///
///
void pushIntoUpdateList(Inset * i);
-#if 0
///
- void workAreaExpose();
- ///
- void workAreaButtonPress(int x, int y, unsigned int button);
- ///
- void workAreaButtonRelease(int x, int y, unsigned int button);
- ///
- void workAreaMotionNotify(int x, int y, unsigned int state);
- ///
- void doubleClick(int x, int y, unsigned int button);
- ///
- void tripleClick(int x, int y, unsigned int button);
- ///
- void enterView();
- ///
- void leaveView();
-#endif
- ///
- bool ChangeRefs(string const & from, string const & to);
+ bool ChangeInsets(Inset::Code code, string const & from,
+ string const & to);
///
bool ChangeRefsIfUnique(string const & from, string const & to);
///
+ bool ChangeCitationsIfUnique(string const & from, string const & to);
+ ///
void pasteClipboard(bool asPara);
///
void stuffClipboard(string const &) const;
+ ///
+ bool Dispatch(kb_action action, string const & argument);
private:
struct Pimpl;
///