TOC context menu (part 4)

* TocBackend: Give public access to the docIterator of the TocItem. In this way, the TocWidget can find the Inset which is related to the TocItem.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29164 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-04-09 18:42:59 +00:00
parent 2cd997962c
commit ed42a06abb
2 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,12 @@ docstring const TocItem::asString() const
}
DocIterator const & TocItem::dit() const
{
return dit_;
}
FuncRequest TocItem::action() const
{
string const arg = convert<string>(dit_.paragraph().id())

View File

@ -54,6 +54,8 @@ public:
docstring const & str() const;
///
docstring const asString() const;
///
DocIterator const & dit() const;
/// the action corresponding to the goTo above
FuncRequest action() const;