]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
* Painter.h:
[lyx.git] / src / buffer.h
index b29d61e083d862e0812b2db69754c353c29e9c32..e8921925882cf3818dd9d997305e10d6fea58a49 100644 (file)
@@ -118,6 +118,8 @@ public:
        /// do we have a paragraph with this id?
        bool hasParWithID(int id) const;
 
+       /// This signal is emitted when the buffer is changed.
+       boost::signal<void()> changed;
        /// This signal is emitted when some parsing error shows up.
        boost::signal<void(std::string)> errors;
        /// This signal is emitted when some message shows up.
@@ -144,7 +146,7 @@ public:
        bool writeFile(std::string const &) const;
 
        /// Just a wrapper for the method below, first creating the ofstream.
-       void makeLaTeXFile(std::string const & filename,
+       bool makeLaTeXFile(std::string const & filename,
                           std::string const & original_path,
                           OutputParams const &,
                           bool output_preamble = true,
@@ -341,9 +343,10 @@ public:
        ///
        StableDocIterator getAnchor() const { return anchor_; }
        ///
-       void changeRefsIfUnique(std::string const & from, std::string const & to, InsetBase::Code code);
-       /// get source code (latex/docbook) for some paragraphs, or all paragraphs
-       /// including preamble
+       void changeRefsIfUnique(docstring const & from, docstring const & to,
+               InsetBase::Code code);
+/// get source code (latex/docbook) for some paragraphs, or all paragraphs
+/// including preamble
        void getSourceCode(odocstream & os, pit_type par_begin, pit_type par_end, bool full_source);
 
        /// errorLists_ accessors.