X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.h;h=f745aa04b8563cc2fb43eff35324156c2f5966dd;hb=1a74f3d1035cfbdb5e21947448e5af2b9ec152f0;hp=1b16e1abff7f3103cd49dda44973a0d2b75145f7;hpb=70f035b18938b2fb91930d4cf2c390b013296db9;p=lyx.git diff --git a/src/Buffer.h b/src/Buffer.h index 1b16e1abff..f745aa04b8 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -130,6 +130,9 @@ public: /// Destructor ~Buffer(); + /// + Buffer * clone() const; + /** High-level interface to buffer functionality. This function parses a command string and executes it. */ @@ -178,7 +181,7 @@ public: /// Write file. Returns \c false if unsuccesful. bool writeFile(support::FileName const &) const; - /// Loads LyX file \c filename into buffer, * and \return success + /// Loads LyX file \c filename into buffer, * and return success bool loadLyXFile(support::FileName const & s); /// Fill in the ErrorList with the TeXErrors @@ -525,10 +528,16 @@ public: // FIXME This really shouldn't be needed, but at the moment it's not // clear how to do it just for the individual pieces we need. void setBuffersForInsets() const; - /// - void updateLabels(UpdateScope = UpdateMaster) const; - /// - void updateLabels(ParIterator & parit) const; + /// Updates screen labels and some other information associated with + /// insets and paragraphs. Actually, it's more like a general "recurse + /// through the Buffer" routine, that visits all the insets and paragraphs. + void updateLabels() const { updateLabels(UpdateMaster, false); } + /// \param scope: whether to start with the master document or just + /// do this one. + /// \param output: whether we are preparing for output. + void updateLabels(UpdateScope scope, bool output) const; + /// + void updateLabels(ParIterator & parit, bool output) const; /// Spellcheck starting from \p from. /// \p from initial position, will then points to the next misspelled @@ -572,7 +581,7 @@ private: class Impl; /// The pointer never changes although *pimpl_'s contents may. Impl * const d; - + /// frontend::GuiBufferDelegate * gui_; /// This function is called when the buffer structure is changed.