]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
the spellcheck cleanup
[lyx.git] / src / buffer.h
index 2128f4db75da34b8768efdc87d092300d7657d4a..5b3de3e38be7328c5422b862acf85e88047468fe 100644 (file)
@@ -40,6 +40,7 @@ class LatexRunParams;
 class Language;
 class Messages;
 class ParIterator;
+class PosIterator;
 class ParConstIterator;
 class TeXErrors;
 class TexRow;
@@ -134,12 +135,9 @@ public:
        bool writeFile(std::string const &) const;
 
        ///
-       void writeFileAscii(std::string const &, int);
+       void writeFileAscii(std::string const &, LatexRunParams const &);
        ///
-       void writeFileAscii(std::ostream &, int);
-       ///
-       std::string const asciiParagraph(Paragraph const &, unsigned int linelen,
-                                   bool noparbreak = false) const;
+       void writeFileAscii(std::ostream &, LatexRunParams const &);
        /// Just a wrapper for the method below, first creating the ofstream.
        void makeLaTeXFile(std::string const & filename,
                           std::string const & original_path,
@@ -153,20 +151,13 @@ public:
                           bool output_preamble = true,
                           bool output_body = true);
        ///
-       void simpleDocBookOnePar(std::ostream &,
-                                ParagraphList::iterator par,
-                                int & desc_on,
-                                lyx::depth_type depth) const;
-       ///
-       void simpleLinuxDocOnePar(std::ostream & os,
-                                 ParagraphList::iterator par,
-                                 lyx::depth_type depth) const;
-       ///
        void makeLinuxDocFile(std::string const & filename,
-                             bool nice, bool only_body = false);
+                             LatexRunParams const & runparams_in,
+                             bool only_body = false);
        ///
        void makeDocBookFile(std::string const & filename,
-                            bool nice, bool only_body = false);
+                            LatexRunParams 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
@@ -355,6 +346,10 @@ public:
        /// return the const end of all *top-level* insets in the buffer
        inset_iterator inset_const_iterator_end() const;
 
+       ///
+       PosIterator pos_iterator_begin();
+       ///
+       PosIterator pos_iterator_end();
        ///
        ParIterator par_iterator_begin();
        ///
@@ -364,14 +359,13 @@ public:
        ///
        ParConstIterator par_iterator_end() const;
 
-       ///
-       InsetOld * getInsetFromID(int id_arg) const;
-
        /** \returns true only when the file is fully loaded.
         *  Used to prevent the premature generation of previews
         *  and by the citation inset.
         */
        bool fully_loaded() const;
+       /// Set by buffer_funcs' newFile.
+       void fully_loaded(bool);
 
 private:
        /** Inserts a file into a document