X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftoc.h;h=19e3469ce44d725d18e9bf1c70927fe59074cd2a;hb=2417d9d911dbca181c48f45d1aad26d31c9aa815;hp=cf8d029cce9f24307f24ddcd17715dd0ce7237c9;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/toc.h b/src/toc.h index cf8d029cce..19e3469ce4 100644 --- a/src/toc.h +++ b/src/toc.h @@ -15,45 +15,11 @@ #ifndef TOC_H #define TOC_H -#include "TocBackend.h" - -class LCursor; +class Cursor; namespace lyx { namespace toc { -typedef TocBackend::Item TocItem; -typedef TocBackend::Toc::const_iterator TocIterator; -typedef TocBackend::Toc Toc; -typedef TocBackend::TocList TocList; - -/// -void updateToc(Buffer const &); - -/// -TocList const & getTocList(Buffer const &); - -/// -Toc const & getToc(Buffer const & buf, std::string const & type); - -/// -std::vector const & getTypes(Buffer const &); - -/// Return the first TocItem before the cursor -TocIterator const getCurrentTocItem(Buffer const &, LCursor const &, - std::string const & type); - -/// -void asciiTocList(std::string const &, Buffer const &, odocstream &); - -/** Given the cmdName of the TOC param, returns the type used - 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 &); - /// the type of outline operation enum OutlineOp { Up, // Move this header with text down @@ -63,7 +29,7 @@ enum OutlineOp { }; -void outline(OutlineOp, LCursor &); +void outline(OutlineOp, Cursor &); } // namespace toc