#ifndef LYXVIEW_H
#define LYXVIEW_H
-#include "frontends/Delegates.h"
#include "support/strfwd.h"
namespace lyx {
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;
//@}
///
virtual FuncStatus getStatus(FuncRequest const & cmd) = 0;
/// dispatch command.
- /// \param propagate: indicate if the dispatch should be probagated to
- /// the main lyx::dispatch().
/// \return true if the \c FuncRequest has been dispatched.
virtual bool dispatch(FuncRequest const & cmd) = 0;