#include "support/strfwd.h"
-#include <QList>
#include <QString>
class QWidget;
/// 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.
//@{
bool isBufferAvailable() const;
bool isBufferReadonly() const;
- QString bufferFilepath() const;
+ QString bufferFilePath() const;
//@}
/// The type of the current buffer.
*/
//@{
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;
//@}