#ifndef BUFFER_H
#define BUFFER_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include "LString.h"
#include "undo.h"
#include "support/limited_stack.h"
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
/** LaTeX all paragraphs from par to endpar.
\param \a endpar if == 0 then to the end
*/
- void latexParagraphs(std::ostream & os, Paragraph * par,
- Paragraph * endpar, TexRow & texrow, bool moving_arg = false) const;
+ void latexParagraphs(std::ostream & os,
+ ParagraphList::iterator par,
+ ParagraphList::iterator endpar,
+ TexRow & texrow, bool moving_arg = false) const;
///
void simpleDocBookOnePar(std::ostream &,
Paragraph * par, int & desc_on,
*/
void validate(LaTeXFeatures &) const;
- ///
- std::vector<std::pair<string, string> > const getBibkeyList() const;
+ /// return all bibkeys from buffer and its childs
+ void fillWithBibKeys(std::vector<std::pair<string, string> > & keys) const;
///
std::vector<string> const getLabelList() const;
AuthorList & authors();
private:
+ typedef std::map<string, bool> DepClean;
+
+ /// need to regenerate .tex ?
+ DepClean dep_clean_;
+
/// the author list
AuthorList authorlist;
/// is this a unnamed file (New...)
bool unnamed;
- /// is regenerating #.tex# necessary
- DEPCLEAN * dep_clean;
-
/// buffer is r/o
bool read_only;