* InsetTabular.{cpp, h}:

- implement addToToc (bug 6372).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33240 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-01-28 08:33:14 +00:00
parent 347d4a7d3e
commit bc5fd28ddf
2 changed files with 13 additions and 1 deletions

View File

@ -3418,6 +3418,16 @@ void InsetTabular::updateLabels(ParIterator const & it, UpdateType utype)
} }
void InsetTabular::addToToc(DocIterator const & cpit)
{
DocIterator dit = cpit;
dit.forwardPos();
size_t const end = dit.nargs();
for ( ; dit.idx() < end; dit.top().forwardIdx())
cell(dit.idx())->addToToc(cpit);
}
void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd) void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
{ {
LYXERR(Debug::DEBUG, "# InsetTabular::doDispatch: cmd: " << cmd LYXERR(Debug::DEBUG, "# InsetTabular::doDispatch: cmd: " << cmd

View File

@ -835,8 +835,10 @@ public:
Inset * editXY(Cursor & cur, int x, int y); Inset * editXY(Cursor & cur, int x, int y);
/// can we go further down on mouse click? /// can we go further down on mouse click?
bool descendable(BufferView const &) const { return true; } bool descendable(BufferView const &) const { return true; }
// Update the counters of this inset and of its contents /// Update the counters of this inset and of its contents
void updateLabels(ParIterator const &, UpdateType); void updateLabels(ParIterator const &, UpdateType);
///
void addToToc(DocIterator const &);
/// ///
bool completionSupported(Cursor const &) const; bool completionSupported(Cursor const &) const;