///
string const getIncludeonlyList(char delim = ',');
///
- std::vector<std::pair<string,string> > const getBibkeyList();
+ std::vector<std::pair<string, string> > const getBibkeyList();
///
struct TocItem {
+ TocItem(LyXParagraph * p, int d, string const & s)
+ : par(p), depth(d), str(s) {}
///
LyXParagraph * par;
///
///
string str;
};
- /// The different content list types.
- enum TocType {
- TOC_TOC = 0, ///< Table of Contents
- TOC_LOF, ///< List of Figures
- TOC_LOT, ///< List of Tables
- TOC_LOA ///< List of Algorithms
- };
///
- std::vector<std::vector<TocItem> > const getTocList() const;
+ typedef std::vector<TocItem> SingleList;
+ ///
+ typedef std::map<string, SingleList> Lists;
+ ///
+ Lists const getLists() const;
///
std::vector<string> const getLabelList();
void DocBookHandleFootnote(std::ostream & os,
LyXParagraph * & par, int depth);
#endif
- ///
+ /// Open SGML/XML tag.
void sgmlOpenTag(std::ostream & os, int depth,
string const & latexname) const;
- ///
+ /// Closes SGML/XML tag.
void sgmlCloseTag(std::ostream & os, int depth,
string const & latexname) const;
///
void LinuxDocError(LyXParagraph * par, int pos,
string const & message);
///
- void SimpleLinuxDocOnePar(std::ostream & os, LyXParagraph * par,
- int desc_on, int depth);
-
- /// LinuxDoc.
- void push_tag(std::ostream & os, string const & tag,
- int & pos, char stack[5][3]);
-
- /// LinuxDoc.
- void pop_tag(std::ostream & os, string const & tag,
- int & pos, char stack[5][3]);
+ void SimpleLinuxDocOnePar(std::ostream & os, LyXParagraph * par, int depth);
/// is save needed
mutable bool lyx_clean;
if (par) {
++it;
if (it == par->inset_iterator_end()) {
- par = par->next;
+#ifndef NEW_INSETS
+ par = par->next_;
+#else
+ par = par->next();
+#endif
SetParagraph();
}
}
if (par) {
++it;
if (it == par->inset_iterator_end()) {
- par = par->next;
+#ifndef NEW_INSETS
+ par = par->next_;
+#else
+ par = par->next();
+#endif
SetParagraph();
}
}