]> git.lyx.org Git - lyx.git/blobdiff - src/toc.h
Fix bug 886 and others not reported related with the document paper size.
[lyx.git] / src / toc.h
index a267a87dbeaeb8a6d634a3832de8ad4150c40bd9..75cdcbaadd8290feb52bf68589e90f9ff0db0bf4 100644 (file)
--- a/src/toc.h
+++ b/src/toc.h
@@ -29,7 +29,8 @@ namespace lyx {
 namespace toc {
 
 ///
-struct TocItem {
+class TocItem {
+public:
        TocItem(int par_id, int d, std::string const & s)
                : id_(par_id), depth(d), str(s) {}
        ///
@@ -64,6 +65,9 @@ void asciiTocList(std::string const &, Buffer const &, std::ostream &);
     by ControlToc::getContents() */
 std::string const getType(std::string const & cmdName);
 
+/// Returns the guiname from a given CmdName
+std::string const getGuiName(std::string const & cmdName, Buffer const &);
+
 inline
 bool operator==(TocItem const & a, TocItem const & b)
 {