#include <vector>
#include <string>
+#include "pariterator.h"
+
class Buffer;
class LyXView;
class Paragraph;
namespace toc {
///
-struct TocItem {
+class TocItem {
+public:
TocItem(int par_id, int d, std::string const & s)
: id_(par_id), depth(d), str(s) {}
///
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)
{
}
+/// 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