]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
don't rm emergency saves ever
[lyx.git] / src / buffer.h
index b5de352222d3a5b8cc2f8fc23201d7c23605e07c..c6a2cb8901e50c1fffdd4e708735c2d690200b12 100644 (file)
@@ -122,7 +122,9 @@ public:
        void insertStringAsLines(ParagraphList::iterator &, lyx::pos_type &,
                                 LyXFont const &, string const &);
        ///
-       Paragraph * getParFromID(int id) const;
+       ParagraphList::iterator getParFromID(int id) const;
+       /// do we have a paragraph with this id?
+       bool hasParWithID(int id) const;
 
 public:
        /** Save file.
@@ -156,10 +158,11 @@ public:
        ///
        void simpleDocBookOnePar(std::ostream &,
                                 ParagraphList::iterator par, int & desc_on,
-                                Paragraph::depth_type depth) const ;
+                                Paragraph::depth_type depth) const;
        ///
-       void simpleLinuxDocOnePar(std::ostream & os, Paragraph * par,
-                                 Paragraph::depth_type depth);
+       void simpleLinuxDocOnePar(std::ostream & os,
+              ParagraphList::iterator par,
+                                Paragraph::depth_type depth) const;
        ///
        void makeLinuxDocFile(string const & filename,
                              bool nice, bool only_body = false);
@@ -262,6 +265,10 @@ public:
 
        ///
        void changeLanguage(Language const * from, Language const * to);
+
+       ///
+       void updateDocLang(Language const * nlang);
+
        ///
        bool isMultiLingual();
 
@@ -361,7 +368,7 @@ public:
                pointer operator->();
 
                ///
-               Paragraph * getPar();
+               ParagraphList::iterator getPar() const;
                ///
                lyx::pos_type getPos() const;
                ///