]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
fix typo that put too many include paths for most people
[lyx.git] / src / BufferView.h
index 18df76f34f2915fff48927f9f79dd99b75996230..72bbc4c1dc19458b49ba06c3b3e4cca159af5425 100644 (file)
@@ -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 <boost/utility.hpp>
 
 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();
+       bool fitCursor();
        ///
        void update();
        //
@@ -74,7 +73,7 @@ public:
        void updateScrollbar();
        ///
        Inset * checkInsetHit(LyXText *, int & x, int & y);
-       /// 
+       ///
        void redoCurrentBuffer();
        ///
        int resizeCurrentBuffer();
@@ -82,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.
@@ -109,7 +108,7 @@ public:
        ///
        UpdatableInset * theLockingInset() const;
        ///
-       void theLockingInset(UpdatableInset * inset); 
+       void theLockingInset(UpdatableInset * inset);
        ///
        void updateInset(Inset * inset, bool mark_dirty);
        ///
@@ -160,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);
        ///
@@ -170,7 +169,7 @@ public:
        ///
        void hideLockedInsetCursor();
        ///
-       void fitLockedInsetCursor(int x, int y, int asc, int desc);
+       bool fitLockedInsetCursor(int x, int y, int asc, int desc);
        ///
        int unlockInset(UpdatableInset * inset);
        ///
@@ -185,7 +184,7 @@ public:
        void toggleToggle();
        ///
        void center();
-       
+
        ///
        bool focus() const;
        ///
@@ -201,7 +200,7 @@ public:
        void setState();
 
        ///
-       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);
@@ -216,6 +215,7 @@ public:
        ///
        bool Dispatch(kb_action action, string const & argument);
 private:
+       ///
        struct Pimpl;
        ///
        friend struct BufferView::Pimpl;