]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
Applied Angus patch to compile on DEC C++ and to avoid name clashes
[lyx.git] / src / buffer.h
index 4e1eeee2ea97a0f0251331d984b06a2ea8b72303..2d58f3376979853a041509d421a35fad6d1bbf6b 100644 (file)
@@ -265,6 +265,8 @@ public:
        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;
                ///
@@ -273,7 +275,11 @@ public:
                string str;
        };
        ///
-       std::map<string, 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();
 
@@ -332,26 +338,17 @@ private:
        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;