]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / BufferView_pimpl.h
index 799d513d1eebf5871af94d648ae500f087e396a7..2032a09ec374afe611052a9dd483ef4906743473 100644 (file)
@@ -1,10 +1,18 @@
 // -*- C++ -*-
 /**
  * \file BufferView_pimpl.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author various
+ * \author Asger Alstrup
+ * \author Alfredo Braustein
+ * \author Lars Gullik Bjønnes
+ * \author John Levon
+ * \author André Pönitz
+ * \author Dekel Tsur
+ * \author Jürgen Vigna
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef BUFFERVIEW_PIMPL_H
@@ -43,13 +51,9 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        ///
        void redoCurrentBuffer();
        ///
-       int resizeCurrentBuffer();
+       void resizeCurrentBuffer();
        ///
        void update();
-       //
-       void update(LyXText *, BufferView::UpdateCodes);
-       /// update the toplevel lyx text
-       void update(BufferView::UpdateCodes);
        /**
         * Repaint pixmap. Used for when we've made a visible
         * change but don't need the full update() logic
@@ -59,8 +63,6 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        ///
        bool loadLyXFile(string const &, bool);
        ///
-       void repaint();
-       ///
        void workAreaResize();
        ///
        void updateScrollbar();
@@ -95,18 +97,22 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        ///
        void insetUnlock();
        ///
-       void toggleSelection(bool = true);
-       ///
        void center();
        ///
        bool insertInset(InsetOld * inset, string const & lout = string());
        ///
-       void updateInset(InsetOld * inset);
+       void updateInset(InsetOld const * inset);
        /// a function should be executed from the workarea
        bool workAreaDispatch(FuncRequest const & ev);
        /// a function should be executed
        bool dispatch(FuncRequest const & ev);
+       ///
+       int top_y() const;
+       ///
+       void top_y(int y);
 private:
+       /// the y coordinate of the top of the screen
+       int top_y_;
        /// An error list (replaces the error insets)
        ErrorList errorlist_;
        /// add an error to the list