class ParIterator;
class TeXErrors;
class TexRow;
+class TocBackend;
class Undo;
class StableDocIterator;
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.
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,
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();
///
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.
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.