bool output_preamble = true,
bool output_body = true);
///
- void makeLinuxDocFile(std::string const & filename,
- OutputParams const & runparams_in,
- bool only_body = false);
- ///
- void writeLinuxDocSource(std::ostream & os, std::string const & filename,
- OutputParams const & runparams_in,
- bool only_body = false);
- ///
void makeDocBookFile(std::string const & filename,
OutputParams const & runparams_in,
bool only_body = false);
/// returns \c true if the buffer contains a LaTeX document
bool isLatex() const;
- /// returns \c true if the buffer contains a LinuxDoc document
- bool isLinuxDoc() const;
/// returns \c true if the buffer contains a DocBook document
bool isDocBook() const;
- /** returns \c true if the buffer contains either a LinuxDoc
- or DocBook document */
- bool isSGML() const;
/// returns \c true if the buffer contains a Wed document
bool isLiterate() const;
StableDocIterator getAnchor() const { return anchor_; }
///
void changeRefsIfUnique(std::string const & from, std::string const & to);
- /// get source code (latex/docbook/linuxdoc) for some paragraphs, or all paragraphs
+ /// get source code (latex/docbook) for some paragraphs, or all paragraphs
/// including preamble
void getSourceCode(std::ostream & os, lyx::pit_type par_begin, lyx::pit_type par_end, bool full_source);
- /// errorList_ accessor.
- ErrorList const & getErrorList() const;
- /// replace the internal errorList_
- /** FIXME: This method is const for now because the ErrorList GUI
- * showing mechanism is used by other classes in order to show their
- * own processing errors (ex: Converter.C).
- */
- void setErrorList(ErrorList const &) const;
- /// add an error to the errorList_
- /** FIXME: This method is const for now because the ErrorList GUI
- * showing mechanism is used by other classes in order to show their
- * own processing errors (ex: Converter.C).
- */
- void addError(ErrorItem const &) const;
+ /// errorLists_ accessors.
+ //@{
+ ErrorList const & errorList(std::string const & type) const;
+ ErrorList & errorList(std::string const & type);
+ //@}
private:
/** Inserts a file into a document
/// documents), needed for appropriate update of natbib labels.
std::vector<std::string> bibfilesCache_;
- /// An error list (replaces the error insets)
- /** FIXME: This member is mutable for now because the ErrorList GUI
- * showing mechanism is used by other classes in order to show their
- * own processing errors (ex: Converter.C).
- */
- mutable ErrorList errorList_;
+ /// Container for all sort of Buffer dependant errors.
+ std::map<std::string, ErrorList> errorLists_;
};
#endif