* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
*
* Full author contact details are available in file CREDITS.
*/
*
* I am not sure if the class is complete or
* minimal, probably not.
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
*/
class Buffer {
public:
};
- /// Method to check if a file is externally modified, used by
+ /// Method to check if a file is externally modified, used by
/// isExternallyModified()
/**
* timestamp is fast but inaccurate. For example, the granularity
* of timestamp on a FAT filesystem is 2 second. Also, various operations
* may touch the timestamp of a file even when its content is unchanged.
*
- * checksum is accurate but slow, which can be a problem when it is
+ * checksum is accurate but slow, which can be a problem when it is
* frequently used, or used for a large file on a slow (network) file
* system.
*
checksum_method, ///< Use file checksum
timestamp_method, ///< Use timestamp, and checksum if timestamp has changed
};
-
+
/** Constructor
\param file
\param b optional \c false by default
/// 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
encoding associated to \p os. Therefore you must not call this
method with a string stream if the output is supposed to go to a
file. \code
- odocfstream ofs;
+ ofdocstream ofs;
ofs.open("test.tex");
writeLaTeXSource(ofs, ...);
ofs.close();
\endcode is NOT equivalent to \code
odocstringstream oss;
writeLaTeXSource(oss, ...);
- odocfstream ofs;
+ ofdocstream ofs;
ofs.open("test.tex");
ofs << oss.str();
ofs.close();
/// Used when typesetting to place errorboxes.
TexRow const & texrow() const;
+ TexRow & texrow();
///
ParIterator par_iterator_begin();
void setInsetLabel(docstring const & label, InsetLabel const * il);
InsetLabel const * insetLabel(docstring const & label) const;
+ // FIXME: buf should should be const because updateLabels() modifies
+ // the contents of the paragraphs.
+ void updateLabels(bool childonly = false) const;
+
private:
/// search for macro in local (buffer) table or in children
MacroData const * getBufferMacro(docstring const & name,
void updateMacros(DocIterator & it,
DocIterator & scope) const;
- ///
+ ///
bool readFileHelper(support::FileName const & s);
///
std::vector<std::string> backends() const;