]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/LyXView.h
* Doxy: polish html output.
[lyx.git] / src / frontends / LyXView.h
index 91f564971ba4adcd177999c21e839795ec4c608a..db9f33fb20ff5ce9914df7e8cb8dd145868a9d54 100644 (file)
@@ -13,7 +13,6 @@
 #ifndef LYXVIEW_H
 #define LYXVIEW_H
 
-#include "frontends/Delegates.h"
 #include "support/strfwd.h"
 
 namespace lyx {
@@ -42,7 +41,6 @@ namespace frontend {
  * in a single LyXView.
  */
 class LyXView
-       : public GuiBufferViewDelegate, public GuiBufferDelegate
 {
 public:
        ///
@@ -67,6 +65,11 @@ public:
        virtual Buffer const * buffer() const = 0;
        /// set a buffer to the current workarea.
        virtual void setBuffer(Buffer * b) = 0; ///< \c Buffer to set.
+       ///
+       virtual bool closeBuffer() = 0;
+       ///
+       virtual void newDocument(std::string const & filename,
+               bool fromTemplate) = 0;
 
        //@}
 
@@ -75,41 +78,12 @@ public:
 
        ///
        virtual FuncStatus getStatus(FuncRequest const & cmd) = 0;
-       /// dispatch to current BufferView
-       virtual void dispatch(FuncRequest const & cmd) = 0;
+       /// dispatch command.
+       /// \return true if the \c FuncRequest has been dispatched.
+       virtual bool dispatch(FuncRequest const & cmd) = 0;
 
        ///
        virtual void restartCursor() = 0;
-       
-       //
-       // GuiBufferDelegate
-       //
-       virtual void errors(std::string const &) = 0;
-
-       //
-       // This View's Dialogs
-       //
-       
-       /** \param name == "bibtex", "citation" etc; an identifier used to
-           launch a particular dialog.
-           \param data is a string representation of the Inset contents.
-           It is often little more than the output from Inset::write.
-           It is passed to, and parsed by, the frontend dialog.
-           Several of these dialogs do not need any data,
-           so it defaults to string().
-           \param inset ownership is _not_ passed to the frontend dialog.
-           It is stored internally and used by the kernel to ascertain
-           what to do with the FuncRequest dispatched from the frontend
-           dialog on 'Apply'; should it be used to create a new inset at
-           the current cursor position or modify an existing, 'open' inset?
-       */
-       virtual void showDialog(std::string const & name,
-               std::string const & data, Inset * inset = 0) = 0;
-
-       ///
-       virtual void disconnectDialog(std::string const & name) = 0;
-       ///
-       virtual Inset * getOpenInset(std::string const & name) const = 0;
 
 private:
        /// noncopyable