]> git.lyx.org Git - lyx.git/commitdiff
fix bug 2188
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 11 Jan 2006 14:22:11 +0000 (14:22 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 11 Jan 2006 14:22:11 +0000 (14:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10723 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/insets/ChangeLog
src/insets/insettabular.C
src/insets/insettabular.h
src/insets/insettext.C
src/insets/insettext.h
src/tabular.C
src/tabular.h

index f9e76eaef73c4bb941c8e5af7707b7d4ae5e1d1e..052d0c1309c07abe0f79ef0969303f85b17008a7 100644 (file)
@@ -1,3 +1,7 @@
+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
index 092e271a4fbbb86fc5edb6c3db92ab774043c254..6190daeea7667f16e04b2b19200195334327e108 100644 (file)
@@ -1,3 +1,9 @@
+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
index 4d7b3085fe6b5ad303d303f2b39538607a103222..1b4af4926fe18d4f24b431020753f42effb8ae11 100644 (file)
@@ -1689,13 +1689,6 @@ void InsetTabular::openLayoutDialog(BufferView * bv) const
 }
 
 
-void InsetTabular::getLabelList(Buffer const & buffer,
-                               vector<string> & list) const
-{
-       tabular.getLabelList(buffer, list);
-}
-
-
 bool InsetTabular::copySelection(LCursor & cur)
 {
        if (!cur.selection())
index 1088145ab6041e4b05864e108336c01e66b15329..3664c12acebb0221ea739e6021a9eb9dc47152e0 100644 (file)
@@ -103,8 +103,6 @@ public:
        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(); }
        ///
index 2b11b8ed8a715d4afbaa166344aa1a6f69a4e5cd..e01bc6a287670cb27852271ac920409634d51d21 100644 (file)
@@ -323,20 +323,6 @@ bool InsetText::showInsetDialog(BufferView *) const
 }
 
 
-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();
index 11cd54be750a9da92150cb9863a35af9b1f200d4..ded29d1bc9d7da84e3a29f520e300a2d28a98358 100644 (file)
@@ -97,8 +97,6 @@ public:
        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;
index 10e8d938fc374924dfa8a4875a2fde4d344d5b23..212431cbb853936f54030a89bc002fff06bd89e2 100644 (file)
@@ -2607,15 +2607,6 @@ void LyXTabular::validate(LaTeXFeatures & features) const
 }
 
 
-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();
index 93358d4ab069a98cb6f5e6ff3f5da20d49a73ffc..fc54679fa0d0d04dc008cc195b97255d4733d22c 100644 (file)
@@ -397,8 +397,6 @@ public:
        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:
        ///