+2006-01-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * tabular.C (getLabelList): remove (not used anymore).
+
2006-01-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* outputparams.[Ch]: add new flag inComment
+2006-01-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * insettext.C (getLabelList):
+ * insettabular.C (getLabelList): remove, since the ParIterator
+ already does the job of looking inside insets (bug 2188)
+
2006-01-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* ExternalSupport.[Ch] (updateExternal): add external_in_comment flag
}
-void InsetTabular::getLabelList(Buffer const & buffer,
- vector<string> & list) const
-{
- tabular.getLabelList(buffer, list);
-}
-
-
bool InsetTabular::copySelection(LCursor & cur)
{
if (!cur.selection())
void openLayoutDialog(BufferView *) const;
///
bool showInsetDialog(BufferView *) const;
- /// Appends \c list with all labels found within this inset.
- void getLabelList(Buffer const &, std::vector<std::string> & list) const;
/// number of cells
size_t nargs() const { return tabular.getNumberOfCells(); }
///
}
-void InsetText::getLabelList(Buffer const & buffer,
- std::vector<string> & list) const
-{
- ParagraphList::const_iterator pit = paragraphs().begin();
- ParagraphList::const_iterator pend = paragraphs().end();
- for (; pit != pend; ++pit) {
- InsetList::const_iterator beg = pit->insetlist.begin();
- InsetList::const_iterator end = pit->insetlist.end();
- for (; beg != end; ++beg)
- beg->inset->getLabelList(buffer, list);
- }
-}
-
-
void InsetText::markNew(bool track_changes)
{
ParagraphList::iterator pit = paragraphs().begin();
void setViewCache(BufferView const * bv) const;
///
bool showInsetDialog(BufferView *) const;
- /// Appends \c list with all labels found within this inset.
- void getLabelList(Buffer const &, std::vector<std::string> & list) const;
///
LyXText * getText(int i) const {
return (i == 0) ? const_cast<LyXText*>(&text_) : 0;
}
-void LyXTabular::getLabelList(Buffer const & buffer,
- std::vector<string> & list) const
-{
- for (row_type i = 0; i < rows_; ++i)
- for (col_type j = 0; j < columns_; ++j)
- getCellInset(i, j)->getLabelList(buffer, list);
-}
-
-
LyXTabular::BoxType LyXTabular::useParbox(idx_type cell) const
{
ParagraphList const & parlist = getCellInset(cell)->paragraphs();
col_type columns() const { return columns_;}
///
void validate(LaTeXFeatures &) const;
- /// Appends \c list with all labels found within this inset.
- void getLabelList(Buffer const &, std::vector<std::string> & list) const;
///
//private:
///