]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
fix reading the author field.
[lyx.git] / src / BufferView.h
index 10ee911ab71dacf8081a35e0ff6cd2b0feb927a1..e9a8101e6f9abd8dc2a62c1b78aba06bbc87564e 100644 (file)
 class Buffer;
 class Change;
 class DocIterator;
-class Encoding;
 class ErrorList;
 class FuncRequest;
-class InsetBase;
+class FuncStatus;
 class InsetOld;
 class Language;
 class LCursor;
@@ -36,8 +35,6 @@ class LyXScreen;
 class LyXView;
 class Painter;
 class ParIterator;
-class TeXErrors;
-class UpdatableInset;
 
 /**
  * A buffer view encapsulates a view onto a particular
@@ -53,7 +50,7 @@ public:
         * Create a view with the given owner main window,
         * of the given dimensions.
         */
-       BufferView(LyXView * owner, int x, int y, int w, int h);
+       BufferView(LyXView * owner, int w, int h);
 
        ~BufferView();
 
@@ -111,10 +108,7 @@ public:
        /// return the lyxtext we are using
        LyXText * getLyXText() const;
 
-       /// return the parent language of the given inset
-       Language const * getParentLanguage(InsetOld * inset) const;
-
-       /// simple replacing. Use the font of the first selected character 
+       /// simple replacing. Use the font of the first selected character
        void replaceSelectionWithString(std::string const & str);
 
        /// move cursor to the named label
@@ -127,12 +121,6 @@ public:
        /// set the cursor based on the given TeX source row
        void setCursorFromRow(int row);
 
-       /// Inserts a lyx file at cursor position. return false if it fails
-       bool insertLyXFile(std::string const & file);
-
-       /// FIXME
-       bool fitLockedInsetCursor(int x, int y, int asc, int desc);
-
        /// hide the cursor if it is visible
        void hideCursor();
 
@@ -141,7 +129,7 @@ public:
        /// scroll document by the given number of lines of default height
        void scroll(int lines);
        /// Scroll the view by a number of pixels
-       void scrollDocView(int);
+       void scrollDocView(int pixels);
 
        /// return the pixel width of the document view
        int workWidth() const;
@@ -158,9 +146,11 @@ public:
        /// tell the window system we have a selection
        void haveSelection(bool sel);
 
+       /// return true for events that will handle
+       FuncStatus getStatus(FuncRequest const & cmd);
        /// execute the given function
        bool dispatch(FuncRequest const & argument);
-       
+
        /// clear the X selection
        void unsetXSel();