X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbuffer.h;h=280fc05c8d23b3eb5c279cd1e7115bb9c00f1fd0;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=90a36be7ef097f2d1620cba82f420cee5777497b;hpb=98a81507adba31e4bd5e1f0b3da44eea91d8545b;p=lyx.git diff --git a/src/buffer.h b/src/buffer.h index 90a36be7ef..280fc05c8d 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -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 changed; + boost::signal changed; /// This signal is emitted when some parsing error shows up. boost::signal 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(); @@ -343,9 +346,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. @@ -354,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.