X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbuffer.h;h=19c6680a7ebe6676935ed6c54d2aacec3d780151;hb=5d3718cad2a2ef6a4d6a495054ab0705ba27b6b5;hp=bae622f9e890559dd3ac1bd1e7906b3d7cfe9066;hpb=c54cbc95c07bbadac32e8aa00d6e9fb2dfccae4a;p=lyx.git diff --git a/src/buffer.h b/src/buffer.h index bae622f9e8..19c6680a7e 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -13,10 +13,6 @@ #ifndef BUFFER_H #define BUFFER_H -#ifdef __GNUG__ -#pragma interface -#endif - #include "LString.h" #include "undo.h" #include "support/limited_stack.h" @@ -26,6 +22,7 @@ #include "texrow.h" #include "ParagraphList.h" #include "paragraph.h" +#include "author.h" #include @@ -35,18 +32,9 @@ class TeXErrors; class LaTeXFeatures; class Language; class ParIterator; +class ParConstIterator; -/// -struct DEPCLEAN { - /// - bool clean; - /// - string master; - /// - DEPCLEAN * next; -}; - /** The buffer object. This is the buffer object. It contains all the informations about a document loaded into LyX. I am not sure if the class is complete or @@ -177,12 +165,6 @@ public: /// void makeDocBookFile(string const & filename, bool nice, bool only_body = false); - /// Open SGML/XML tag. - int sgmlOpenTag(std::ostream & os, Paragraph::depth_type depth, bool mixcont, - string const & latexname) const; - /// Closes SGML/XML tag. - int sgmlCloseTag(std::ostream & os, Paragraph::depth_type depth, bool mixcont, - string const & latexname) const; /// void sgmlError(Paragraph * par, int pos, string const & message) const; @@ -307,7 +289,19 @@ public: /// Used when typesetting to place errorboxes. TexRow texrow; + + /// the author list for the document + AuthorList & authors(); + private: + typedef std::map DepClean; + + /// need to regenerate .tex ? + DepClean dep_clean_; + + /// the author list + AuthorList authorlist; + /// is save needed mutable bool lyx_clean; @@ -317,9 +311,6 @@ private: /// is this a unnamed file (New...) bool unnamed; - /// is regenerating #.tex# necessary - DEPCLEAN * dep_clean; - /// buffer is r/o bool read_only; @@ -408,7 +399,11 @@ public: /// ParIterator par_iterator_begin(); /// + ParConstIterator par_iterator_begin() const; + /// ParIterator par_iterator_end(); + /// + ParConstIterator par_iterator_end() const; /// Inset * getInsetFromID(int id_arg) const;