class TeXErrors;
class LaTeXFeatures;
class auto_mem_buffer;
+class Language;
///
struct DEPCLEAN {
LyXParagraph * endpar, TexRow & texrow) const;
///
- int runLiterate();
-
- ///
- int buildProgram();
+ void SimpleDocBookOnePar(std::ostream &, string & extra,
+ LyXParagraph * par, int & desc_on,
+ int depth) const ;
///
int runChktex();
bool nice, bool only_body = false);
/// returns the main language for the buffer (document)
- string const GetLanguage() const {
+ Language const * GetLanguage() const {
return params.language;
}
///
bool isLyxClean() const { return lyx_clean; }
- ///
- bool isNwClean() const { return nw_clean; }
-
///
bool isBakClean() const { return bak_clean; }
bak_clean = true;
}
- ///
- void markNwClean() { nw_clean = true; }
-
///
void markBakClean() { bak_clean = true; }
///
void markDepClean(string const & name);
- ///
- void markNwDirty() { nw_clean = false; }
-
///
void setUnnamed(bool flag=true) { unnamed = flag; }
lyx_clean = false;
updateTitles();
}
- nw_clean = false;
bak_clean = false;
DEPCLEAN * tmp = dep_clean;
while (tmp) {
string const getLatexName(bool no_path = true) const;
/// Change name of buffer. Updates "read-only" flag.
- void fileName(string const & newfile);
+ void setFileName(string const & newfile);
/// Name of the document's parent
void setParentName(string const &);
///
void SimpleLinuxDocOnePar(std::ostream & os, LyXParagraph * par,
int desc_on, int depth);
- ///
- void SimpleDocBookOnePar(std::ostream &, string & extra,
- LyXParagraph * par, int & desc_on,
- int depth);
/// LinuxDoc.
void push_tag(std::ostream & os, string const & tag,
/// is autosave needed
mutable bool bak_clean;
- /// do we need to run weave/tangle
- bool nw_clean;
-
/// is this a unnamed file (New...)
bool unnamed;
///
class inset_iterator {
public:
+ typedef std::input_iterator_tag iterator_category;
+ typedef Inset value_type;
+ typedef ptrdiff_t difference_type;
+ typedef Inset * pointer;
+ typedef Inset & reference;
+
+
///
inset_iterator() : par(0) /*, it(0)*/ {}
//
inset_iterator(LyXParagraph * paragraph,
LyXParagraph::size_type pos);
///
- inset_iterator & operator++() {
+ inset_iterator & operator++() { // prefix ++
if (par) {
++it;
if (it == par->inset_iterator_end()) {
return *this;
}
///
- Inset * operator*() {return *it; }
+ inset_iterator operator++(int) { // postfix ++
+ inset_iterator tmp(par, it.getPos());
+ if (par) {
+ ++it;
+ if (it == par->inset_iterator_end()) {
+ par = par->next;
+ SetParagraph();
+ }
+ }
+ return tmp;
+ }
+ ///
+ Inset * operator*() { return *it; }
+
///
LyXParagraph * getPar() { return par; }
///
- LyXParagraph::size_type getPos() {return it.getPos(); }
+ LyXParagraph::size_type getPos() const { return it.getPos(); }
///
friend
bool operator==(inset_iterator const & iter1,