]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
don't rm emergency saves ever
[lyx.git] / src / buffer.h
index bc352c1d238e45c0900e10d5a4969476dbfaba19..c6a2cb8901e50c1fffdd4e708735c2d690200b12 100644 (file)
@@ -123,6 +123,8 @@ public:
                                 LyXFont const &, string 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);
@@ -365,7 +368,7 @@ public:
                pointer operator->();
 
                ///
-               Paragraph * getPar();
+               ParagraphList::iterator getPar() const;
                ///
                lyx::pos_type getPos() const;
                ///