]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
hopefully fix tex2lyx linking.
[lyx.git] / src / buffer.h
index a58eb3f79e0dc76b123c44085ae7dffebb6428a4..280fc05c8d23b3eb5c279cd1e7115bb9c00f1fd0 100644 (file)
@@ -54,6 +54,7 @@ class ParConstIterator;
 class ParIterator;
 class TeXErrors;
 class TexRow;
+class TocBackend;
 class Undo;
 class StableDocIterator;
 
@@ -119,7 +120,7 @@ public:
        bool hasParWithID(int id) const;
 
        /// This signal is emitted when the buffer is changed.
-       boost::signal<void()> changed;
+       boost::signal<void(bool)> 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.
@@ -146,7 +147,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,
@@ -169,6 +170,8 @@ public:
        Language const * getLanguage() const;
        /// get l10n translated to the buffers language
        docstring const B_(std::string const & l10n) const;
+       /// translate \p label to the buffer language if possible
+       docstring const translateLabel(docstring const & label) const;
 
        ///
        int runChktex();
@@ -355,6 +358,11 @@ public:
        ErrorList & errorList(std::string const & type);
        //@}
 
+       //@{
+       TocBackend & tocBackend();
+       TocBackend const & tocBackend() const;
+       //@}
+
 private:
        /** Inserts a file into a document
            \return \c false if method fails.