]> git.lyx.org Git - lyx.git/blobdiff - src/toc.h
Fix bug 2485 and crash on middle mouse paste on math
[lyx.git] / src / toc.h
index 75cdcbaadd8290feb52bf68589e90f9ff0db0bf4..e44366664ce22c511ba06018a7216dbae1af934b 100644 (file)
--- a/src/toc.h
+++ b/src/toc.h
@@ -20,6 +20,8 @@
 #include <vector>
 #include <string>
 
+#include "pariterator.h"
+
 class Buffer;
 class LyXView;
 class Paragraph;
@@ -65,8 +67,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 &);
+/** 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)
@@ -83,6 +86,18 @@ bool operator!=(TocItem const & a, TocItem const & b)
 }
 
 
+/// the type of outline operation
+enum OutlineOp {
+       UP, // Move this header with text down
+       DOWN,   // Move this header with text up
+       IN, // Make this header deeper
+       OUT // Make this header shallower
+};
+
+
+void outline(OutlineOp, Buffer *, pit_type &);
+
+
 } // namespace toc
 } // namespace lyx