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
/// \name GuiBufferDelegate.
//@{
void resetAutosaveTimers();
+ // shows an error list
+ // if from_master is true, show master's error list
void errors(std::string const &, bool from_master = false);
void structureChanged();
void updateTocItem(std::string const &, DocIterator const &);
///
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
/// Statusbar widget that shows version control status
QLabel * version_control_;
+ /// The rate from which the actual zoom value is calculated
+ /// from the default zoom pref
+ double zoom_ratio_ = 1.0;
/// Minimum zoom percentage
static int const zoom_min_ = 10;