// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
+/** \file
+ * Copyright 2002 the LyX Team
+ * Read the file COPYING
*
- * ====================================================== */
+ * \author Lars Gullik Bjønnes
+*/
#ifndef BUFFER_VIEW_H
#define BUFFER_VIEW_H
#include "LString.h"
#include "undo.h"
#include "commandtags.h"
+
+#include "insets/inset.h"
+
#include <boost/utility.hpp>
class LyXView;
class TeXErrors;
class Buffer;
class LyXScreen;
-class WorkArea;
class Language;
+class Painter;
+class UpdatableInset;
///
class BufferView : boost::noncopyable {
///
void redraw();
///
- void fitCursor(LyXText *);
+ void fitCursor();
///
void update();
//
///
void updateScrollbar();
///
- Inset * checkInsetHit(LyXText *, int & x, int & y,
- unsigned int button);
+ Inset * checkInsetHit(LyXText *, int & x, int & y);
///
void redoCurrentBuffer();
///
///
string const nextWord(float & value);
///
- void insertCorrectQuote();
- ///
bool gotoLabel(string const & label);
///
void paste();
///
- void cut();
+ void cut(bool realcut = true);
///
void copy();
///
// bool no_table = false);
bool insertInset(Inset * inset, string const & lout = string());
/** Inserts a lyx file at cursor position.
- @return #false# if it fails.
+ \return #false# if it fails.
*/
bool insertLyXFile(string const & file);
///
///
void setState();
- ///
- void pushIntoUpdateList(Inset * i);
///
bool ChangeInsets(Inset::Code code, string const & from,
string const & to);
///
bool Dispatch(kb_action action, string const & argument);
private:
+ ///
struct Pimpl;
///
friend struct BufferView::Pimpl;