]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
revert recent change to development/FORMAT (don't change history)
[lyx.git] / src / buffer.h
index 60bcd28a42980168fff39326417e0105aedf00be..ac12660313763193947206e57f13c3a24b9ece82 100644 (file)
@@ -149,19 +149,19 @@ public:
                           bool output_preamble = true,
                           bool output_body = true);
        ///
-       void makeLaTeXFile(std::ostream & os,
+       void writeLaTeXSource(std::ostream & os,
                           std::string const & original_path,
                           OutputParams const &,
                           bool output_preamble = true,
                           bool output_body = true);
        ///
-       void makeLinuxDocFile(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);
+       ///
+       void writeDocBookSource(std::ostream & os, std::string const & filename,
+                            OutputParams const & runparams_in,
+                            bool only_body = false);
        /// returns the main language for the buffer (document)
        Language const * getLanguage() const;
        /// get l10n translated to the buffers language
@@ -232,13 +232,8 @@ public:
 
        /// 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;
 
@@ -345,23 +340,15 @@ public:
        StableDocIterator getAnchor() const { return anchor_; }
        ///
        void changeRefsIfUnique(std::string const & from, std::string const & to);
-       /// get source code (latex/docbook/linuxdoc) for some paragraphs
-       void getSourceCode(std::ostream & os, lyx::pit_type par_begin, lyx::pit_type par_end);
-
-       /// 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;
+       /// 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);
+
+       /// errorLists_ accessors.
+       //@{
+       ErrorList const & errorList(std::string const & type) const;
+       ErrorList & errorList(std::string const & type);
+       //@}
 
 private:
        /** Inserts a file into a document
@@ -385,12 +372,8 @@ private:
        /// 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