BufferView const * documentBufferView() const;
void newDocument(std::string const & filename,
- bool fromTemplate);
+ std::string templatefile = std::string(),
+ bool fromTemplate = false);
/// display a message in the view
/// could be called from any thread
///
void resetWindowTitle();
+ ///
+ void checkCancelBackground();
///
void on_currentWorkAreaChanged(GuiWorkArea *);
///
///
void toggleFullScreen();
///
- void insertLyXFile(docstring const & fname);
+ void insertLyXFile(docstring const & fname, bool ignorelang = false);
///
/// Open Export As ... dialog. \p iformat is the format the
/// filter is initially set to.
bool exportBufferAs(Buffer & b, docstring const & iformat);
///
- enum RenameKind { LV_WRITE_AS, LV_VC_RENAME, LV_VC_COPY };
+ enum RenameKind {
+ LV_WRITE_AS,
+ LV_WRITE_AS_TEMPLATE,
+ LV_VC_RENAME,
+ LV_VC_COPY,
+ };
+ /// Get a path for LFUN_BUFFER_WRITE_AS_TEMPLATE
+ std::string const getTemplatesPath(Buffer & buf);
/// Save a buffer as a new file.
/**
Write a buffer to a new file name and rename the buffer