]> git.lyx.org Git - features.git/blobdiff - src/Buffer.h
move updateLables to buffer
[features.git] / src / Buffer.h
index b80cee4c622a0a57ac1f140a8782fb841abf0e80..db5f9737e2af97b8b5dc188ae85fc9d44c8b6aa5 100644 (file)
@@ -185,14 +185,14 @@ public:
            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();
@@ -466,6 +466,10 @@ public:
        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,