X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.h;h=bb1a72c3a330f573bc66aff22155b87e2bd5b8b4;hb=d11fd01ce743c4974a96f241a99853f46078c80c;hp=5610aa32c5d066d6b7b39aa15863048e3f60e799;hpb=57a2087d37403e5f60837e8ecbd9268649c36bc2;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index 5610aa32c5..bb1a72c3a3 100644 --- a/src/BufferView.h +++ b/src/BufferView.h @@ -1,13 +1,10 @@ // -*- 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 @@ -19,7 +16,9 @@ #include "LString.h" #include "undo.h" #include "commandtags.h" + #include "insets/inset.h" + #include class LyXView; @@ -45,7 +44,7 @@ public: /// CHANGE = 4 }; - + /// BufferView(LyXView * owner, int , int , int, int); /// @@ -65,7 +64,7 @@ public: /// void redraw(); /// - void fitCursor(LyXText *); + void fitCursor(); /// void update(); // @@ -73,9 +72,8 @@ public: /// void updateScrollbar(); /// - Inset * checkInsetHit(LyXText *, int & x, int & y, - unsigned int button); - /// + Inset * checkInsetHit(LyXText *, int & x, int & y); + /// void redoCurrentBuffer(); /// int resizeCurrentBuffer(); @@ -83,16 +81,16 @@ public: void cursorPrevious(LyXText *); /// void cursorNext(LyXText *); - /// + /// bool available() const; /// LyXView * owner() const; /// void beforeChange(LyXText *); - /// - void savePosition(unsigned int i); - /// - void restorePosition(unsigned int i); + /// + void savePosition(unsigned int i); + /// + void restorePosition(unsigned int i); /// bool isSavedPosition(unsigned int i); /** This holds the mapping between buffer paragraphs and screen rows. @@ -110,7 +108,7 @@ public: /// UpdatableInset * theLockingInset() const; /// - void theLockingInset(UpdatableInset * inset); + void theLockingInset(UpdatableInset * inset); /// void updateInset(Inset * inset, bool mark_dirty); /// @@ -136,7 +134,7 @@ public: /// void paste(); /// - void cut(); + void cut(bool realcut = true); /// void copy(); /// @@ -161,7 +159,7 @@ public: // 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); /// @@ -186,7 +184,7 @@ public: void toggleToggle(); /// void center(); - + /// bool focus() const; /// @@ -202,9 +200,7 @@ public: void setState(); /// - void pushIntoUpdateList(Inset * i); - /// - bool ChangeInsets(Inset::Code code, string const & from, + bool ChangeInsets(Inset::Code code, string const & from, string const & to); /// bool ChangeRefsIfUnique(string const & from, string const & to); @@ -219,6 +215,7 @@ public: /// bool Dispatch(kb_action action, string const & argument); private: + /// struct Pimpl; /// friend struct BufferView::Pimpl;