]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
mathed31.diff
[lyx.git] / src / BufferView.h
index 7f786fcd501bb83b861a46fc5a50b335284b99e2..3f20c3a0892a756a07776c8a730b0ff2846a1cdf 100644 (file)
@@ -26,6 +26,7 @@ class TeXErrors;
 class Buffer;
 class LyXScreen;
 class WorkArea;
+class Language;
 
 ///
 class BufferView : public noncopyable {
@@ -67,7 +68,7 @@ public:
        ///
        void update();
        //
-       void update(UpdateCodes uc);
+       void update(LyXText *, UpdateCodes uc);
        ///
        void updateScrollbar();
        ///
@@ -78,31 +79,41 @@ public:
        ///
        int resizeCurrentBuffer();
        ///
-       void gotoError();
+       void gotoInset(std::vector<Inset::Code> const & codes,
+                      bool same_content);
        ///
-       void cursorPrevious();
+       void gotoInset(Inset::Code codes, bool same_content);
        ///
-       void cursorNext();
+       void cursorPrevious(LyXText *);
+       ///
+       void cursorNext(LyXText *);
        /// 
        bool available() const;
        ///
        LyXView * owner() const;
        ///
-       void beforeChange();
+       void beforeChange(LyXText *);
         ///
-        void savePosition();
+        void savePosition(unsigned int i);
         ///
-        void restorePosition();
+        void restorePosition(unsigned int i);
        ///
-       bool NoSavedPositions();
+       bool isSavedPosition(unsigned int i);
        /** This holds the mapping between buffer paragraphs and screen rows.
            This should be private...but not yet. (Lgb)
        */
        LyXText * text;
        ///
+       LyXText * getLyXText() const;
+       ///
+       LyXText * getParentText(Inset * inset) const;
+       ///
+       Language const * getParentLanguage(Inset * inset) const;
+       ///
        int workWidth() const;
        ///
        UpdatableInset * theLockingInset() const;
+       ///
        void theLockingInset(UpdatableInset * inset); 
        ///
        void updateInset(Inset * inset, bool mark_dirty);
@@ -129,8 +140,6 @@ public:
        ///
        void insertCorrectQuote();
        ///
-       void gotoNote();
-       ///
        bool gotoLabel(string const & label);
        ///
        void paste();
@@ -145,7 +154,7 @@ public:
        ///
        void hfill();
        ///
-       void protectedBlank();
+       void protectedBlank(LyXText *);
        ///
        void newline();
        ///
@@ -185,7 +194,7 @@ public:
        bool insertInset(Inset * inset, string const & lout = string(),
                         bool no_table = false);
        /// open and lock an updatable inset
-       bool open_new_inset(UpdatableInset * new_inset);
+       bool open_new_inset(UpdatableInset * new_inset, bool behind = false);
        /** Inserts a lyx file at cursor position.
            @return #false# if it fails.
        */
@@ -230,23 +239,12 @@ public:
        ///
        void pushIntoUpdateList(Inset * i);
        ///
-       void workAreaExpose();
-       ///
-       void workAreaButtonPress(int x, int y, unsigned int button);
-       ///
-       void workAreaButtonRelease(int x, int y, unsigned int button);
-       ///
-       void workAreaMotionNotify(int x, int y, unsigned int state);
-       ///
-       void doubleClick(int x, int y, unsigned int button);
-       ///
-       void tripleClick(int x, int y, unsigned int button);
-       ///
-       void enterView();
+       bool ChangeInsets(Inset::Code code, string const & from, 
+                         string const & to);
        ///
-       void leaveView();
+       bool ChangeRefsIfUnique(string const & from, string const & to);
        ///
-       bool ChangeRefs(string const & from, string const & to);
+       bool ChangeCitationsIfUnique(string const & from, string const & to);
        ///
        void pasteClipboard(bool asPara);
        ///