]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Dialog.h
Fix handling of the add branch textfield in GuiBranches
[lyx.git] / src / frontends / qt4 / Dialog.h
index 10d1af5a8ff6cc7affa235336cfac3bbe3b97deb..af33f3fe8accfa6b5ec10fdd2d942555c47f594b 100644 (file)
@@ -159,10 +159,15 @@ public:
        /// Enable the Controller to dispatch its data back to the LyX kernel.
        virtual void dispatchParams() = 0;
 
+       /** \return true if the dialog should be updated when the
+        *  buffer has changed.
+        */
+       virtual bool isBufferDependent() const = 0;
+
        /** \return true if the dialog should be shown only when
         *  a buffer is open.
         */
-       virtual bool isBufferDependent() const = 0;
+       virtual bool needBufferOpen() const = 0;
 
        /** \return true if the dialog can apply data also
         *  for ReadOnly buffers.
@@ -247,7 +252,11 @@ public:
         */
        //@{
        GuiView const & lyxview() const { return *lyxview_; }
+       /// Current buffer
        Buffer const & buffer() const;
+       /// Main document buffer
+       Buffer const & documentBuffer() const;
+       /// Current BufferView
        BufferView const * bufferview() const;
        //@}