mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* 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:
parent
347d4a7d3e
commit
bc5fd28ddf
@ -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)
|
||||
{
|
||||
LYXERR(Debug::DEBUG, "# InsetTabular::doDispatch: cmd: " << cmd
|
||||
|
@ -835,8 +835,10 @@ public:
|
||||
Inset * editXY(Cursor & cur, int x, int y);
|
||||
/// can we go further down on mouse click?
|
||||
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 addToToc(DocIterator const &);
|
||||
|
||||
///
|
||||
bool completionSupported(Cursor const &) const;
|
||||
|
Loading…
Reference in New Issue
Block a user