]> git.lyx.org Git - features.git/blobdiff - src/BufferView.h
Dekels tabular/textinset patches
[features.git] / src / BufferView.h
index 5eaaf1b53f6a68c11757b056ac5771914fc2a6b8..b9ca44b8b5d9d5119429c932e7d09c85f8837948 100644 (file)
@@ -26,6 +26,7 @@ class TeXErrors;
 class Buffer;
 class LyXScreen;
 class WorkArea;
+class Language;
 
 ///
 class BufferView : public noncopyable {
@@ -102,6 +103,10 @@ public:
        ///
        LyXText * getLyXText() const;
        ///
+       LyXText * getParentText(Inset * inset) const;
+       ///
+       Language const * getParentLanguage(Inset * inset) const;
+       ///
        int workWidth() const;
        ///
        UpdatableInset * theLockingInset() const;
@@ -188,7 +193,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.
        */