]> git.lyx.org Git - lyx.git/blobdiff - src/toc.h
Partial fix bug 2092: branches not propagated to child documents
[lyx.git] / src / toc.h
index bb3e8692856368c9d1c473a8918d7dd10dd549ca..f0f2f80262b22f7a81a227f8687ee8fc3991408d 100644 (file)
--- a/src/toc.h
+++ b/src/toc.h
@@ -8,6 +8,8 @@
  * \author Angus Leeming
  *
  * Full author contact details are available in file CREDITS.
+ *
+ * Nice functions and objects to handle TOCs
  */
 
 #ifndef TOC_H
@@ -23,13 +25,12 @@ class LyXView;
 class Paragraph;
 class FuncRequest;
 
-/** Nice functions and objects to handle TOCs
- */
 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,10 @@ 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 @c type
+    The localization of the names will be done in the frontends */
+std::string const getGuiName(std::string const & type, Buffer const &);
+
 inline
 bool operator==(TocItem const & a, TocItem const & b)
 {