mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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)
|
void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||||
{
|
{
|
||||||
LYXERR(Debug::DEBUG, "# InsetTabular::doDispatch: cmd: " << cmd
|
LYXERR(Debug::DEBUG, "# InsetTabular::doDispatch: cmd: " << cmd
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user