]> git.lyx.org Git - features.git/commitdiff
s/updateLabels/updateBuffer/g, per a suggestion of Abdel's.
authorRichard Heck <rgheck@comcast.net>
Wed, 3 Mar 2010 22:13:45 +0000 (22:13 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 3 Mar 2010 22:13:45 +0000 (22:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33613 a592a061-630c-0410-9148-cb99ea01b6c8

51 files changed:
src/Buffer.cpp
src/Buffer.h
src/BufferView.cpp
src/Counters.h
src/Cursor.cpp
src/CutAndPaste.cpp
src/Text.cpp
src/Text2.cpp
src/Text3.cpp
src/TextMetrics.cpp
src/Undo.cpp
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiView.cpp
src/insets/Inset.cpp
src/insets/Inset.h
src/insets/InsetBibitem.cpp
src/insets/InsetBibitem.h
src/insets/InsetCaption.cpp
src/insets/InsetCaption.h
src/insets/InsetCitation.cpp
src/insets/InsetCitation.h
src/insets/InsetFloat.cpp
src/insets/InsetFloat.h
src/insets/InsetFoot.cpp
src/insets/InsetFoot.h
src/insets/InsetInclude.cpp
src/insets/InsetInclude.h
src/insets/InsetLabel.cpp
src/insets/InsetLabel.h
src/insets/InsetListings.cpp
src/insets/InsetListings.h
src/insets/InsetRef.cpp
src/insets/InsetRef.h
src/insets/InsetTabular.cpp
src/insets/InsetTabular.h
src/insets/InsetText.cpp
src/insets/InsetText.h
src/insets/InsetWrap.cpp
src/insets/InsetWrap.h
src/lyxfind.cpp
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathGrid.h
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h
src/mathed/InsetMathNest.cpp
src/mathed/InsetMathNest.h
src/mathed/InsetMathRef.cpp
src/mathed/InsetMathRef.h
src/mathed/MathData.cpp
src/mathed/MathData.h
src/support/Messages.h

index 412db9bb5ff64a699ff8168ddefb31a87b90ca79..efae24f5ef7491ae284504034b9632286a09855a 100644 (file)
@@ -1550,7 +1550,7 @@ void Buffer::writeLyXHTMLSource(odocstream & os,
 {
        LaTeXFeatures features(*this, params(), runparams);
        validate(features);
-       updateLabels(UpdateMaster, OutputUpdate);
+       updateBuffer(UpdateMaster, OutputUpdate);
        checkBibInfoCache();
        d->bibinfo_.makeCitationLabels(*this);
        updateMacros();
@@ -3564,7 +3564,7 @@ void Buffer::setBuffersForInsets() const
 }
 
 
-void Buffer::updateLabels(UpdateScope scope, UpdateType utype) const
+void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const
 {
        // Use the master text class also for child documents
        Buffer const * const master = masterBuffer();
@@ -3582,7 +3582,7 @@ void Buffer::updateLabels(UpdateScope scope, UpdateType utype) const
                // If this is a child document start with the master
                if (master != this) {
                        bufToUpdate.insert(this);
-                       master->updateLabels(UpdateMaster, utype);
+                       master->updateBuffer(UpdateMaster, utype);
                        // Do this here in case the master has no gui associated with it. Then, 
                        // the TocModel is not updated and TocModel::toc_ is invalid (bug 5699).
                        if (!master->d->gui_)
@@ -3610,7 +3610,7 @@ void Buffer::updateLabels(UpdateScope scope, UpdateType utype) const
 
        // do the real work
        ParIterator parit = cbuf.par_iterator_begin();
-       updateLabels(parit, utype);
+       updateBuffer(parit, utype);
 
        if (master != this)
                // TocBackend update will be done later.
@@ -3821,7 +3821,7 @@ void Buffer::Impl::setLabel(ParIterator & it, UpdateType utype) const
 }
 
 
-void Buffer::updateLabels(ParIterator & parit, UpdateType utype) const
+void Buffer::updateBuffer(ParIterator & parit, UpdateType utype) const
 {
        LASSERT(parit.pit() == 0, /**/);
 
@@ -3854,7 +3854,7 @@ void Buffer::updateLabels(ParIterator & parit, UpdateType utype) const
                InsetList::const_iterator end = parit->insetList().end();
                for (; iit != end; ++iit) {
                        parit.pos() = iit->pos;
-                       iit->inset->updateLabels(parit, utype);
+                       iit->inset->updateBuffer(parit, utype);
                }
        }
 }
@@ -3905,7 +3905,7 @@ bool Buffer::reload()
 
        bool const success = loadLyXFile(d->filename);
        if (success) {
-               updateLabels();
+               updateBuffer();
                changed(true);
                markClean();
                message(bformat(_("Document %1$s reloaded."), disp_fn));
index d50e67bdc7582784a811dd4c849092dffe18560d..4e372c296db673da061099e3c6cf27b9612069b2 100644 (file)
@@ -358,7 +358,7 @@ public:
        /// Updates the cached bibliography information.
        /// Note that you MUST call this method to update the cache. It will
        /// not happen otherwise. (Currently, it is called at the start of
-       /// updateLabels() and from GuiCitation.)
+       /// updateBuffer() and from GuiCitation.)
        void checkBibInfoCache() const;
        /// \return the bibliography information for this buffer's master,
        /// or just for it, if it isn't a child.
@@ -545,13 +545,13 @@ public:
        /// Updates screen labels and some other information associated with
        /// insets and paragraphs. Actually, it's more like a general "recurse
        /// through the Buffer" routine, that visits all the insets and paragraphs.
-       void updateLabels() const { updateLabels(UpdateMaster, InternalUpdate); }
+       void updateBuffer() const { updateBuffer(UpdateMaster, InternalUpdate); }
        /// \param scope: whether to start with the master document or just
        /// do this one.
        /// \param output: whether we are preparing for output.
-       void updateLabels(UpdateScope scope, UpdateType utype) const;
+       void updateBuffer(UpdateScope scope, UpdateType utype) const;
        /// 
-       void updateLabels(ParIterator & parit, UpdateType utype) const;
+       void updateBuffer(ParIterator & parit, UpdateType utype) const;
 
        /// Spellcheck starting from \p from.
        /// \p from initial position, will then points to the next misspelled
index 9bf731c52905cb22d42f47d14194ecfd56b02379..1e0f4b249dac13f86c04cf4d2f22f7a49dae9df8 100644 (file)
@@ -912,7 +912,7 @@ void BufferView::updateLayout(DocumentClass const * const oldlayout)
        setCursor(backcur.asDocIterator(&buffer_));
 
        buffer_.errors("Class Switch");
-       buffer_.updateLabels();
+       buffer_.updateBuffer();
 }
 
 /** Return the change status at cursor position, taking in account the
@@ -2227,7 +2227,7 @@ bool BufferView::checkDepm(Cursor & cur, Cursor & old)
 
        d->cursor_ = cur;
 
-       buffer_.updateLabels();
+       buffer_.updateBuffer();
        buffer_.changed(true);
        return true;
 }
index d992bbb3c646f64b003eca3928d7d2372642d388..509733f4662f8c3f6fa087ffffcaddbcc3e132e0 100644 (file)
@@ -167,10 +167,10 @@ public:
        /// We're trying to track \refstepcounter in LaTeX, more or less.
        /// Note that this may be empty.
        docstring currentCounter() const;
-       /// Called during update labels as we go through various paragraphs,
+       /// Called during updateBuffer() as we go through various paragraphs,
        /// to track the layouts as we go through.
        void setActiveLayout(Layout const & lay);
-       /// Also for updateLabels().
+       /// Also for updateBuffer().
        /// Call this when entering things like footnotes, where there is now
        /// no "last layout" and we want to restore the "last layout" on exit.
        void clearLastLayout() { layout_stack_.push_back(0); }
index 00963af21d2385883dc0568144c8a327062cb9a9..bcfbcf7e2ec37247236ff73119199a7624b84359 100644 (file)
@@ -1350,7 +1350,7 @@ void Cursor::insert(MathData const & ar)
                cap::eraseSelection(*this);
        cell().insert(pos(), ar);
        pos() += ar.size();
-       // FIXME audit setBuffer/updateLabels calls
+       // FIXME audit setBuffer/updateBuffer calls
        inset().setBuffer(bv_->buffer());
 }
 
index 3ea74e7da1734b96a0866d2c242124ec3b77bf7b..f70096b442c7fb48df84915efdd5cb603ea3451f 100644 (file)
@@ -258,7 +258,7 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
                                                        static_cast<InsetMathHull &>(*itt);
                                                // this is necessary to prevent an uninitialized
                                                // buffer when the RefInset is in a MathBox.
-                                               // FIXME audit setBuffer/updateLabels calls
+                                               // FIXME audit setBuffer/updateBuffer calls
                                                mi.setBuffer(const_cast<Buffer &>(buffer));
                                                if (mi.asRefInset()->getTarget() == oldname)
                                                        mi.asRefInset()->changeTarget(newname);
@@ -287,7 +287,7 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
                                                static_cast<InsetMathHull &>(*itt);
                                        // this is necessary to prevent an uninitialized
                                        // buffer when the RefInset is in a MathBox.
-                                       // FIXME audit setBuffer/updateLabels calls
+                                       // FIXME audit setBuffer/updateBuffer calls
                                        mi.setBuffer(const_cast<Buffer &>(buffer));
                                        if (mi.asRefInset()->getTarget() == oldname)
                                                mi.asRefInset()->changeTarget(newname);
@@ -382,7 +382,7 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
        pit = last_paste;
        pos = pars[last_paste].size();
 
-       // FIXME Should we do it here, or should we let updateLabels() do it?
+       // FIXME Should we do it here, or should we let updateBuffer() do it?
        // Set paragraph buffers. It's important to do this right away
        // before something calls Inset::buffer() and causes a crash.
        for (pit_type p = startpit; p <= pit; ++p)
@@ -775,7 +775,7 @@ void cutSelection(Cursor & cur, bool doclear, bool realcut)
 
                // need a valid cursor. (Lgb)
                cur.clearSelection();
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
 
                // tell tabular that a recent copy happened
                dirtyTabularStack(false);
@@ -953,7 +953,7 @@ void pasteParagraphList(Cursor & cur, ParagraphList const & parlist,
 
                boost::tie(ppp, endpit) =
                        pasteSelectionHelper(cur, parlist, docclass, errorList);
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                cur.clearSelection();
                text->setCursor(cur, ppp.first, ppp.second);
        }
index 1b57b7bbde9b2c40807705cc492f4071d8525759..20accf5562f9efb81d2b5322c568347a48eea4c2 100644 (file)
@@ -717,7 +717,7 @@ void Text::breakParagraph(Cursor & cur, bool inverse_logic)
                        break; // the character couldn't be deleted physically due to change tracking
        }
 
-       cur.buffer()->updateLabels();
+       cur.buffer()->updateBuffer();
 
        // A singlePar update is not enough in this case.
        cur.updateFlags(Update::Force);
@@ -1294,7 +1294,7 @@ void Text::acceptOrRejectChanges(Cursor & cur, ChangeOp op)
        cur.clearSelection();
        setCursorIntern(cur, begPit, begPos);
        cur.updateFlags(Update::Force);
-       cur.buffer()->updateLabels();
+       cur.buffer()->updateBuffer();
 }
 
 
@@ -1445,7 +1445,7 @@ bool Text::handleBibitems(Cursor & cur)
                cur.recordUndo(ATOMIC_UNDO, prevcur.pit());
                mergeParagraph(bufparams, cur.text()->paragraphs(),
                                                        prevcur.pit());
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                setCursorIntern(cur, prevcur.pit(), prevcur.pos());
                cur.updateFlags(Update::Force);
                return true;
@@ -1473,7 +1473,7 @@ bool Text::erase(Cursor & cur)
                        cur.top().forwardPos();
 
                if (was_inset)
-                       cur.buffer()->updateLabels();
+                       cur.buffer()->updateBuffer();
                else
                        cur.checkBufferStructure();
                needsUpdate = true;
@@ -1549,7 +1549,7 @@ bool Text::backspacePos0(Cursor & cur)
        }
 
        if (needsUpdate) {
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                setCursorIntern(cur, prevcur.pit(), prevcur.pos());
        }
 
@@ -1589,7 +1589,7 @@ bool Text::backspace(Cursor & cur)
                bool const was_inset = cur.paragraph().isInset(cur.pos());
                cur.paragraph().eraseChar(cur.pos(), cur.buffer()->params().trackChanges);
                if (was_inset)
-                       cur.buffer()->updateLabels();
+                       cur.buffer()->updateBuffer();
                else
                        cur.checkBufferStructure();
        }
@@ -1647,7 +1647,7 @@ bool Text::dissolveInset(Cursor & cur)
        } else
                // this is the least that needs to be done (bug 6003)
                // in the above case, pasteParagraphList handles this
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
 
        // Ensure the current language is set correctly (bug 6292)
        cur.text()->setCursor(cur, cur.pit(), cur.pos());
index f2f89415c9939761217a5e91f91ca4ae5472ae23..e290ee0266cfec271b63451591c23efc4e91145f 100644 (file)
@@ -231,7 +231,7 @@ void Text::setLayout(Cursor & cur, docstring const & layout)
        pit_type undopit = undoSpan(end - 1);
        recUndo(cur, start, undopit - 1);
        setLayout(start, end, layout);
-       cur.buffer()->updateLabels();
+       cur.buffer()->updateBuffer();
 }
 
 
@@ -290,7 +290,7 @@ void Text::changeDepth(Cursor & cur, DEPTH_CHANGE type)
        }
        // this handles the counter labels, and also fixes up
        // depth values for follow-on (child) paragraphs
-       cur.buffer()->updateLabels();
+       cur.buffer()->updateBuffer();
 }
 
 
index 79dcff2279922c1440ab52ffeb610a67bac90c22..f810eceac5b8f27ffbd65626838398e51ca96f57 100644 (file)
@@ -485,7 +485,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                recUndo(cur, pit, pit + 1);
                cur.finishUndo();
                pars_.swap(pit, pit + 1);
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                needsUpdate = true;
                ++cur.pit();
                break;
@@ -496,7 +496,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                recUndo(cur, pit - 1, pit);
                cur.finishUndo();
                pars_.swap(pit, pit - 1);
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                --cur.pit();
                needsUpdate = true;
                break;
@@ -522,7 +522,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                par.params().startOfAppendix(start);
 
                // we can set the refreshing parameters now
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                break;
        }
 
@@ -1577,7 +1577,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                cur.posForward();
                // Some insets are numbered, others are shown in the outline pane so
                // let's update the labels and the toc backend.
-               bv->buffer().updateLabels();
+               bv->buffer().updateBuffer();
                break;
 
        case LFUN_TABULAR_INSERT:
@@ -1631,7 +1631,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                // date metrics.
                FuncRequest cmd_caption(LFUN_CAPTION_INSERT);
                doInsertInset(cur, cur.text(), cmd_caption, true, false);
-               bv->buffer().updateLabels();
+               bv->buffer().updateBuffer();
                cur.updateFlags(Update::Force);
                // FIXME: When leaving the Float (or Wrap) inset we should
                // delete any empty paragraph left above or below the
@@ -2072,26 +2072,26 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
        case LFUN_OUTLINE_UP:
                outline(OutlineUp, cur);
                setCursor(cur, cur.pit(), 0);
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                needsUpdate = true;
                break;
 
        case LFUN_OUTLINE_DOWN:
                outline(OutlineDown, cur);
                setCursor(cur, cur.pit(), 0);
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                needsUpdate = true;
                break;
 
        case LFUN_OUTLINE_IN:
                outline(OutlineIn, cur);
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                needsUpdate = true;
                break;
 
        case LFUN_OUTLINE_OUT:
                outline(OutlineOut, cur);
-               cur.buffer()->updateLabels();
+               cur.buffer()->updateBuffer();
                needsUpdate = true;
                break;
 
index 37cf7a799158f9f4dcf3151201e57f555af54f4a..b713cd5f7ea16c31c2e8616c81e996f4a9e79eb8 100644 (file)
@@ -135,7 +135,7 @@ TextMetrics::TextMetrics(BufferView * bv, Text * text)
        dim_.asc = 10;
        dim_.des = 10;
 
-       //text_->updateLabels(bv->buffer());
+       //text_->updateBuffer(bv->buffer());
 }
 
 
@@ -414,7 +414,7 @@ bool TextMetrics::redoParagraph(pit_type const pit)
                LYXERR(Debug::INFO, "MacroContext not initialised!"
                        << " Going through the buffer again and hope"
                        << " the context is better then.");
-               bv_->buffer().updateLabels();
+               bv_->buffer().updateBuffer();
                parPos = text_->macrocontextPosition();
                LASSERT(!parPos.empty(), /**/);
                parPos.pit() = pit;
index a24bdead03e3861df2d6d18ab52e0b738be626ed..fa07291ac6dce4cb7426e4290d86ed5827877901 100644 (file)
@@ -428,7 +428,7 @@ bool Undo::Private::textUndoOrRedo(DocIterator & cur, bool isUndoOperation)
 
        // Adapt the new material to current buffer.
        buffer_.setBuffersForInsets(); // FIXME This shouldn't be here.
-       buffer_.updateLabels();
+       buffer_.updateBuffer();
        return true;
 }
 
index 7c90f449b64dee408cb4784c49ffe9e9955c5161..5a21ee7f7f0b41d8732e46ea3e7fe706fd834d10 100644 (file)
@@ -1321,7 +1321,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
 #ifndef DEVEL_VERSION
                        buf->setReadonly(true);
 #endif
-                       buf->updateLabels();
+                       buf->updateBuffer();
                        buf->errors("Parse");
                }
                break;
index e82130e49cca93431bd9ac0c4382282b325ebd46..a59284d2565a08dc8cb169613ee37e46dfa83d59 100644 (file)
@@ -1176,7 +1176,7 @@ void GuiView::setBuffer(Buffer * newBuffer)
 
        GuiWorkArea * wa = workArea(*newBuffer);
        if (wa == 0) {
-               newBuffer->masterBuffer()->updateLabels();
+               newBuffer->masterBuffer()->updateBuffer();
                wa = addWorkArea(*newBuffer);
        } else {
                //Disconnect the old buffer...there's no new one.
@@ -1738,7 +1738,7 @@ void GuiView::openDocument(string const & fname)
        docstring str2;
        Buffer * buf = loadDocument(fullname);
        if (buf) {
-               buf->updateLabels();
+               buf->updateBuffer();
                setBuffer(buf);
                buf->errors("Parse");
                str2 = bformat(_("Document %1$s opened."), disp_fn);
@@ -1787,7 +1787,7 @@ static bool import(GuiView * lv, FileName const & filename,
                Buffer * buf = lv->loadDocument(lyxfile);
                if (!buf)
                        return false;
-               buf->updateLabels();
+               buf->updateBuffer();
                lv->setBuffer(buf);
                buf->errors("Parse");
        } else {
@@ -2650,7 +2650,7 @@ void GuiView::openChildDocument(string const & fname)
        // This makes insertion of citations and references in the child work,
        // when the target is in the parent or another child document.
        child->setParent(&buffer);
-       child->masterBuffer()->updateLabels();
+       child->masterBuffer()->updateBuffer();
        setBuffer(child);
        if (parsed)
                child->errors("Parse");
@@ -2698,7 +2698,7 @@ bool GuiView::goToFileRow(string const & argument)
                        buf = theBufferList().getBuffer(s);
                else if (s.exists()) {
                        buf = loadDocument(s);
-                       buf->updateLabels();
+                       buf->updateBuffer();
                        buf->errors("Parse");
                } else {
                        message(bformat(
index c8c5d1d43b7deeb14e257521c2bc196de70e24ed..a1ff2392da563d24a3e55b0d1519ed9e931e722c 100644 (file)
@@ -229,7 +229,7 @@ bool Inset::forceLTR() const
 void Inset::initView()
 {
        if (isLabeled())
-               buffer().updateLabels();
+               buffer().updateBuffer();
 }
 
 
index 942faebcf120d660cfa7aac81d4eb252aecfb168..01907cb330ec9ab2eb51eab064eb0104cef28458 100644 (file)
@@ -115,7 +115,7 @@ public:
        /**
          * This is typically used after this inset is created interactively.
          * Intented purpose is to sanitize internal state with regard to current
-         * Buffer. The default implementation calls buffer().updateLabels() if
+         * Buffer. The default implementation calls buffer().updateBuffer() if
          * the inset is labeled.
          *
          * \sa isLabeled()
@@ -478,7 +478,7 @@ public:
        /// Update the counters of this inset and of its contents.
        /// The boolean indicates whether we are preparing for output, e.g.,
        /// of XHTML.
-       virtual void updateLabels(ParIterator const &, UpdateType) {}
+       virtual void updateBuffer(ParIterator const &, UpdateType) {}
 
        /// Updates the inset's dialog
        virtual Buffer const * updateFrontend() const;
index 67df65175a9ca616b290976c147d779481e16f1a..3191bebd1ccedbae23bf4068b3e6f379d20fa889 100644 (file)
@@ -95,7 +95,7 @@ void InsetBibitem::updateCommand(docstring const & new_key, bool)
        }
        setParam("key", key);
 
-       buffer().updateLabels();
+       buffer().updateBuffer();
 }
 
 
@@ -273,7 +273,7 @@ void InsetBibitem::fillWithBibKeys(BiblioInfo & keys, InsetIterator const & it)
 
 
 // Update the counters of this inset and of its contents
-void InsetBibitem::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetBibitem::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        BufferParams const & bp = buffer().masterBuffer()->params();
        Counters & counters = bp.documentClass().counters();
index 8891f8b795a4740e9b2fc9d836941d1816779f8f..4c298c32d9e94f2d39f748d8f00b5ae56041dc38 100644 (file)
@@ -65,7 +65,7 @@ private:
        ///
        virtual void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const;
        /// Update the counter of this inset
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        void updateCommand(docstring const & new_key, bool dummy = false);
        ///
@@ -74,7 +74,7 @@ private:
        Inset * clone() const { return new InsetBibitem(*this); }
 
        friend docstring bibitemWidest(Buffer const & buffer, OutputParams const &);
-       /// The label that is set by updateLabels
+       /// The label that is set by updateBuffer
        docstring autolabel_;
        ///
        static int key_counter;
index b9ed6029dd6010528d28a32e92f0596db3b9f2ce..9046d054e5ee688b8a5b93fccff5d060afab2f03 100644 (file)
@@ -307,7 +307,7 @@ docstring InsetCaption::getCaptionAsHTML(XHTMLStream & xs,
 }
 
 
-void InsetCaption::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetCaption::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        Buffer const & master = *buffer().masterBuffer();
        DocumentClass const & tclass = master.params().documentClass();
@@ -346,7 +346,7 @@ void InsetCaption::updateLabels(ParIterator const & it, UpdateType utype)
        }
 
        // Do the real work now.
-       InsetText::updateLabels(it, utype);
+       InsetText::updateBuffer(it, utype);
        if (utype == OutputUpdate)
                cnts.restoreLastCounter();
 }
index e24808e8533113d3b66734dde1abfdb80a4d81fe..be5a73aeba056e67961a52b9d54226ad31bdb806 100644 (file)
@@ -64,7 +64,7 @@ private:
        ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
        // Update the counters of this inset and of its contents
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        int latex(odocstream & os, OutputParams const &) const;
        ///
index 5f6f9189e90c45d0b11c936e14e1a72f29d2458c..3a8ae931b84c7c0572240c76cee59d90a8bc81dc 100644 (file)
@@ -456,7 +456,7 @@ docstring InsetCitation::screenLabel() const
 }
 
 
-void InsetCitation::updateLabels(ParIterator const &, UpdateType)
+void InsetCitation::updateBuffer(ParIterator const &, UpdateType)
 {
        CiteEngine const engine = buffer().params().citeEngine();
        if (cache.params == params() && cache.engine == engine)
index 64996e7403839ac2d907f50cc1d7291e59f954f0..036d25fbbdb918b0565f8ac7a63320ad1f69dd08 100644 (file)
@@ -56,7 +56,7 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
        ///
-       void updateLabels(ParIterator const & it, UpdateType);
+       void updateBuffer(ParIterator const & it, UpdateType);
        ///
        void addToToc(DocIterator const &);
 
index 41d0766eed0de2bf13571540f968ea3556231ce5..dfbd208c9f36cd0c3f2a54321a34e04db60859fc 100644 (file)
@@ -152,7 +152,7 @@ void InsetFloat::doDispatch(Cursor & cur, FuncRequest & cmd)
                setNewLabel();
                if (params_.type != params.type) {
                        params_.type = params.type;
-                       buffer().updateLabels();
+                       buffer().updateBuffer();
                }
                break;
        }
@@ -192,7 +192,7 @@ bool InsetFloat::getStatus(Cursor & cur, FuncRequest const & cmd,
 }
 
 
-void InsetFloat::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetFloat::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        Counters & cnts =
                buffer().masterBuffer()->params().documentClass().counters();
@@ -214,7 +214,7 @@ void InsetFloat::updateLabels(ParIterator const & it, UpdateType utype)
        cnts.current_float(params().type);
        cnts.isSubfloat(subflt);
 
-       InsetCollapsable::updateLabels(it, utype);
+       InsetCollapsable::updateBuffer(it, utype);
 
        //reset afterwards
        cnts.current_float(saveflt);
index a0c55a072b3db1acfde204bbe3f48d22910405b7..cc1e066588e5474828c9596e81351efc0d7f3371 100644 (file)
@@ -97,7 +97,7 @@ private:
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        // Update the counters of this inset and of its contents
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
index 48a70817cb5d3195cc5a333772737714be1245a5..f311c1d61cfc227e57e46da070ed3975875ca322 100644 (file)
@@ -36,7 +36,7 @@ InsetFoot::InsetFoot(Buffer * buf)
 {}
 
 
-void InsetFoot::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetFoot::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        BufferParams const & bp = buffer().masterBuffer()->params();
        Counters & cnts = bp.documentClass().counters();
@@ -53,7 +53,7 @@ void InsetFoot::updateLabels(ParIterator const & it, UpdateType utype)
                        + ' ' + cnts.theCounter(count, outer.getParLanguage(bp)->code());
                setLabel(custom_label_);        
        }
-       InsetCollapsable::updateLabels(it, utype);
+       InsetCollapsable::updateBuffer(it, utype);
        if (utype == OutputUpdate)
                cnts.restoreLastCounter();      
 }
index 28aee678b9d20c91494de222ebf40692f2183896..c6661e707f292c8d5cadfa1b171e1a52fe5738ec 100644 (file)
@@ -38,7 +38,7 @@ private:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        /// Update the counters of this inset and of its contents
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        void addToToc(DocIterator const &);
        ///
index 5f98c7f44a358f5108a9a56fdca0ba175c506981..ccd0dda6ac97c6b0251e92c265609d6011c319e9 100644 (file)
@@ -1047,18 +1047,18 @@ void InsetInclude::updateCommand()
        setParams(p);   
 }
 
-void InsetInclude::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetInclude::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        Buffer const * const childbuffer = getChildBuffer();
        if (childbuffer) {
-               childbuffer->updateLabels(Buffer::UpdateChildOnly, utype);
+               childbuffer->updateBuffer(Buffer::UpdateChildOnly, utype);
                return;
        }
        if (!isListings(params()))
                return;
 
        if (label_)
-               label_->updateLabels(it, utype);
+               label_->updateBuffer(it, utype);
 
        InsetListingsParams const par(to_utf8(params()["lstparams"]));
        if (par.getParamValue("caption").empty()) {
index 428a2dd7ccd89a362f61dc8237f1ddd2d4720c20..f8c4065c97136c55af03d2fa9860c5224a8bd373 100644 (file)
@@ -94,7 +94,7 @@ public:
        ///
        void updateCommand();
        ///
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        static ParamInfo const & findInfo(std::string const &);
        ///
index e35c3a76b0a2a0baaba39f7926f7381bed4f138f..7edd1aaca832936bdb61baf4706ff93455bae29b 100644 (file)
@@ -99,8 +99,8 @@ void InsetLabel::updateCommand(docstring const & new_label, bool updaterefs)
        buffer().undo().endUndoGroup();
 
        // We need an update of the Buffer reference cache. This is achieved by
-       // updateLabels().
-       buffer().updateLabels();
+       // updateBuffer().
+       buffer().updateBuffer();
 }
 
 
@@ -120,7 +120,7 @@ docstring InsetLabel::screenLabel() const
 }
 
 
-void InsetLabel::updateLabels(ParIterator const & par, UpdateType utype)
+void InsetLabel::updateBuffer(ParIterator const & par, UpdateType utype)
 {
        docstring const & label = getParam("name");
        if (buffer().insetLabel(label)) {
index 3f083af55d8052af438a07bb9c4da6f974a6a3c3..37b9cdb27c2d9bf2c9389daf748fe582d5b54ab9 100644 (file)
@@ -53,7 +53,7 @@ public:
        static bool isCompatibleCommand(std::string const & s) 
                { return s == "label"; }
        ///
-       void updateLabels(ParIterator const & it, UpdateType);
+       void updateBuffer(ParIterator const & it, UpdateType);
        ///
        void addToToc(DocIterator const &);
        ///
index 39919a25d98c448dc2059466267409e3d5c124da..859fe92e20de146a1a87477d55f9c6979175acd4 100644 (file)
@@ -72,7 +72,7 @@ Inset::DisplayType InsetListings::display() const
 }
 
 
-void InsetListings::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetListings::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        Counters & cnts = buffer().masterBuffer()->params().documentClass().counters();
        string const saveflt = cnts.current_float();
@@ -80,7 +80,7 @@ void InsetListings::updateLabels(ParIterator const & it, UpdateType utype)
        // Tell to captions what the current float is
        cnts.current_float("listing");
 
-       InsetCollapsable::updateLabels(it, utype);
+       InsetCollapsable::updateBuffer(it, utype);
 
        //reset afterwards
        cnts.current_float(saveflt);
index d11612282d2be731aa75b306bf8431115f905001..8561de5cf731becdd1c5eafd136c72b2f28b8616 100644 (file)
@@ -48,7 +48,7 @@ private:
        ///
        docstring name() const { return from_ascii("Listings"); }
        // Update the counters of this inset and of its contents
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        void write(std::ostream & os) const;
        ///
index d6a594eec79da2abb9489ecc841d9b3099086676..1c00f745f092ca9854d3681f30342f3ae6345835 100644 (file)
@@ -155,7 +155,7 @@ void InsetRef::tocString(odocstream & os) const
 }
 
 
-void InsetRef::updateLabels(ParIterator const & it, UpdateType)
+void InsetRef::updateBuffer(ParIterator const & it, UpdateType)
 {
        docstring const & ref = getParam("reference");
        // register this inset into the buffer reference cache.
index 908d1aa1e5c9724dfab987264115b125c9b3a89a..1b9e9f469c4821c0df6f58d244ab95b256b86cf2 100644 (file)
@@ -70,7 +70,7 @@ public:
        ///
        static bool isCompatibleCommand(std::string const & s);
        ///
-       void updateLabels(ParIterator const & it, UpdateType);
+       void updateBuffer(ParIterator const & it, UpdateType);
        ///
        void addToToc(DocIterator const &);
 protected:
index 8a05f057096f95e7a09584b4d7e24bb1be01b15d..2b6e6c51c12eb5394fd386b730cb97b25f7fc835 100644 (file)
@@ -3494,7 +3494,7 @@ void InsetTabular::edit(Cursor & cur, bool front, EntryDirection)
 }
 
 
-void InsetTabular::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetTabular::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        // In a longtable, tell captions what the current float is
        Counters & cnts = buffer().masterBuffer()->params().documentClass().counters();
@@ -3506,7 +3506,7 @@ void InsetTabular::updateLabels(ParIterator const & it, UpdateType utype)
        it2.forwardPos();
        size_t const end = it2.nargs();
        for ( ; it2.idx() < end; it2.top().forwardIdx())
-               buffer().updateLabels(it2, utype);
+               buffer().updateBuffer(it2, utype);
 
        //reset afterwards
        if (tabular.is_long_tabular)
index 545deb080f343fbad10ca132b85289bc270c14eb..7c525e569a6f10755e696de7d8abd5e0a1afc5bd 100644 (file)
@@ -841,7 +841,7 @@ public:
        /// 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
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        void addToToc(DocIterator const &);
 
index a74f4bc30af9e78b52cdec3fcf0861de91e99883..e5b3e1308bec44d83b34b9808769d2f9fff148fa 100644 (file)
@@ -631,7 +631,7 @@ ParagraphList & InsetText::paragraphs()
 }
 
 
-void InsetText::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetText::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        ParIterator it2 = it;
        it2.forwardPos();
@@ -645,7 +645,7 @@ void InsetText::updateLabels(ParIterator const & it, UpdateType utype)
                        cnt.clearLastLayout();
                        // FIXME cnt.saveLastCounter()?
                }
-               buffer().updateLabels(it2, utype);
+               buffer().updateBuffer(it2, utype);
                if (save_layouts) {
                        // LYXERR0("Exiting " << name());
                        cnt.restoreLastLayout();
@@ -657,7 +657,7 @@ void InsetText::updateLabels(ParIterator const & it, UpdateType utype)
                //      tclass.counters().clearLastLayout()
                // since we are saving and restoring the existing counters, etc.
                Counters const savecnt = tclass.counters();
-               buffer().updateLabels(it2, utype);
+               buffer().updateBuffer(it2, utype);
                tclass.counters() = savecnt;
        }
 }
index d81d6ef1420a88cb6bac5546d1545bafd1a1a5a8..a4c83f0b913873c146bfb47766d85fb8aa1e2e36 100644 (file)
@@ -162,7 +162,7 @@ public:
                { return getLayout().allowParagraphCustomization(); }
 
        /// Update the counters of this inset and of its contents
-       virtual void updateLabels(ParIterator const &, UpdateType);
+       virtual void updateBuffer(ParIterator const &, UpdateType);
        /// the string that is passed to the TOC
        void tocString(odocstream &) const;
        ///
index 03d5ed528f22910b9e6d43b6693b7616ee4906cd..97fed142ec0a017fbbab2fae57d688f82544029e 100644 (file)
@@ -114,7 +114,7 @@ bool InsetWrap::getStatus(Cursor & cur, FuncRequest const & cmd,
 }
 
 
-void InsetWrap::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetWrap::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        setLabel(_("wrap: ") + floatName(params_.type));
        Counters & cnts =
@@ -128,7 +128,7 @@ void InsetWrap::updateLabels(ParIterator const & it, UpdateType utype)
        // Tell to captions what the current float is
        cnts.current_float(params().type);
 
-       InsetCollapsable::updateLabels(it, utype);
+       InsetCollapsable::updateBuffer(it, utype);
 
        // reset afterwards
        cnts.current_float(saveflt);
index 5c601c894ade189953a107cea51576112a266ab2..b1539fc971fe5c294dd97acbf272ee3f939d4c38 100644 (file)
@@ -79,7 +79,7 @@ private:
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        /// Update the counters of this inset and of its contents
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
index 8ec3f57cfa7de12e029ce7d5bbd8dd107478e32b..4f3151dd2bda0e0c8bc066df3e08a7f82d006073 100644 (file)
@@ -194,7 +194,7 @@ int replaceAll(BufferView * bv,
                ++num;
        }
 
-       buf.updateLabels();
+       buf.updateBuffer();
        bv->putSelectionAt(doc_iterator_begin(&buf), 0, false);
        if (num)
                buf.markDirty();
index 2753dc8e40bb561cf6af8659be66164b6998592d..a21c2f61e04dbf0224865bb94e5ba94b05a136da 100644 (file)
@@ -635,11 +635,11 @@ void InsetMathGrid::drawT(TextPainter & /*pain*/, int /*x*/, int /*y*/) const
 }
 
 
-void InsetMathGrid::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetMathGrid::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        // pass down
        for (idx_type idx = 0; idx < nargs(); ++idx)
-               cell(idx).updateLabels(it, utype);
+               cell(idx).updateBuffer(it, utype);
 }
 
 
@@ -1336,10 +1336,10 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd)
                                        cell(i).append(grid.cell(grid.index(r, c)));
                }
                cur.clearSelection(); // bug 393
-               // FIXME audit setBuffer/updateLabels calls
+               // FIXME audit setBuffer/updateBuffer calls
                cur.inset().setBuffer(*buffer_);
-               // FIXME audit setBuffer/updateLabels calls
-               cur.buffer()->updateLabels();
+               // FIXME audit setBuffer/updateBuffer calls
+               cur.buffer()->updateBuffer();
                cur.finishUndo();
                break;
        }
index 40408bd8796bb38456b39a80aea66eed8910084c..17e9650124e28380a146050abd804bba4e48c6ea 100644 (file)
@@ -113,7 +113,7 @@ public:
        ///
        void drawT(TextPainter & pi, int x, int y) const;
        ///
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        /// extract number of columns from alignment string
        static col_type guessColumns(docstring const & halign);
        /// accepts some LaTeX column codes: p,m,!,@,M,<,>
index c9f16f407ac1ff2a6d38e3392660cf4c3d0f3d42..62a28ec4c99005711f938a808d22c37a6517018d 100644 (file)
@@ -214,7 +214,7 @@ void InsetMathHull::setBuffer(Buffer & buffer)
 }
 
 
-void InsetMathHull::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetMathHull::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        if (!buffer_) {
                //FIXME: buffer_ should be set at creation for this inset! Problem is
@@ -224,10 +224,10 @@ void InsetMathHull::updateLabels(ParIterator const & it, UpdateType utype)
        }
        for (size_t i = 0; i != label_.size(); ++i) {
                if (label_[i])
-                       label_[i]->updateLabels(it, utype);
+                       label_[i]->updateBuffer(it, utype);
        }
        // pass down
-       InsetMathGrid::updateLabels(it, utype);
+       InsetMathGrid::updateBuffer(it, utype);
 }
 
 
@@ -553,9 +553,9 @@ void InsetMathHull::label(row_type row, docstring const & label)
                        delete label_[row];
                        label_[row] = dummy_pointer;
                        // We need an update of the Buffer reference cache.
-                       // This is achieved by updateLabels().
+                       // This is achieved by updateBuffer().
                        if (buffer_)
-                               buffer().updateLabels();
+                               buffer().updateBuffer();
                } else {
                        if (buffer_)
                                label_[row]->updateCommand(label);
@@ -584,8 +584,8 @@ void InsetMathHull::numbered(row_type row, bool num)
                        return;
                }
                // We need an update of the Buffer reference cache.
-               // This is achieved by updateLabels().
-               buffer().updateLabels();
+               // This is achieved by updateBuffer().
+               buffer().updateBuffer();
        }
 }
 
index 0a52e3a256ed2125e63b5c1f50eb75dae95978df..34b0fab04ac96c9b950998ef36f30a6101755bc8 100644 (file)
@@ -38,7 +38,7 @@ public:
        ///
        void setBuffer(Buffer &);
        ///
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        void addToToc(DocIterator const &);
        ///
index d7ec9bd68c6a6ccfd609345dbd62d21c3a0cea59..ccfcd8708893a54be4f2f5a42e03419a29d7a8f0 100644 (file)
@@ -173,10 +173,10 @@ void InsetMathNest::metrics(MetricsInfo const & mi) const
 }
 
 
-void InsetMathNest::updateLabels(ParIterator const & it, UpdateType utype)
+void InsetMathNest::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        for (idx_type i = 0, n = nargs(); i != n; ++i)
-               cell(i).updateLabels(it, utype);
+               cell(i).updateBuffer(it, utype);
 }
 
 
@@ -564,8 +564,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                }
                cur.niceInsert(topaste, parseflg, false);
                cur.clearSelection(); // bug 393
-               // FIXME audit setBuffer/updateLabels calls
-               cur.buffer()->updateLabels();
+               // FIXME audit setBuffer/updateBuffer calls
+               cur.buffer()->updateBuffer();
                cur.finishUndo();
                break;
        }
@@ -577,8 +577,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                // Prevent stale position >= size crash
                // Probably not necessary anymore, see eraseSelection (gb 2005-10-09)
                cur.normalize();
-               // FIXME audit setBuffer/updateLabels calls
-               cur.buffer()->updateLabels();
+               // FIXME audit setBuffer/updateBuffer calls
+               cur.buffer()->updateBuffer();
                break;
 
        case LFUN_COPY:
@@ -988,8 +988,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                cur.posBackward();
                cur.pushBackward(*cur.nextInset());
                cur.niceInsert(save_selection);
-               // FIXME audit setBuffer/updateLabels calls
-               cur.buffer()->updateLabels();
+               // FIXME audit setBuffer/updateBuffer calls
+               cur.buffer()->updateBuffer();
 #else
                if (currentMode() == Inset::TEXT_MODE) {
                        cur.recordUndoSelection();
@@ -1203,8 +1203,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                if (createInsetMath_fromDialogStr(cmd.argument(), ar)) {
                        cur.recordUndoSelection();
                        cur.insert(ar);
-                       // FIXME audit setBuffer/updateLabels calls
-                       cur.buffer()->updateLabels();
+                       // FIXME audit setBuffer/updateBuffer calls
+                       cur.buffer()->updateBuffer();
                } else
                        cur.undispatched();
                break;
index ac95fbb35381ac7094c8ca1a5bd9a7b57e26e411..49b90eb8b6e185d2009643f677d3191d8bee6220 100644 (file)
@@ -44,7 +44,7 @@ public:
        void drawDecoration(PainterInfo & pi, int x, int y) const
        { drawMarkers(pi, x, y); }
        ///
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        /// identifies NestInsets
        InsetMathNest * asNestInset() { return this; }
        /// identifies NestInsets
index 61d05b2eac23fd8a3d10b88dee988c6e9c44587a..859845faaa2cccc4d4266c5278a2255096b9ba90 100644 (file)
@@ -176,10 +176,10 @@ int InsetMathRef::docbook(odocstream & os, OutputParams const & runparams) const
 }
 
 
-void InsetMathRef::updateLabels(ParIterator const & it, UpdateType /*utype*/)
+void InsetMathRef::updateBuffer(ParIterator const & it, UpdateType /*utype*/)
 {
        if (!buffer_) {
-               LYXERR0("InsetMathRef::updateLabels: no buffer_!");
+               LYXERR0("InsetMathRef::updateBuffer: no buffer_!");
                return;
        }
        // register this inset into the buffer reference cache.
@@ -214,7 +214,7 @@ void InsetMathRef::changeTarget(docstring const & target)
        if (createInsetMath_fromDialogStr(
            from_utf8(InsetCommand::params2string("ref", icp)), ar)) {
                *this = *ar[0].nucleus()->asRefInset();
-               // FIXME audit setBuffer/updateLabels calls
+               // FIXME audit setBuffer/updateBuffer calls
                setBuffer(buf);
        }
 }
index 8fa5a499a8ba68468eee7fa5a353b9d8e0018bb9..0ee76ac5b76a587c0db6b346fefc2c96102f01ee 100644 (file)
@@ -27,7 +27,7 @@ public:
        ///
        explicit InsetMathRef(Buffer * buf, docstring const & data);
        ///
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        //void write(WriteStream & os) const;
        ///
index d9eabcb31022499e355776975e171571e905608d..fe80eeef5ae5625729a4a2da71d0c0bd7ec3fa69 100644 (file)
@@ -377,12 +377,12 @@ void MathData::drawT(TextPainter & pain, int x, int y) const
 }
 
 
-void MathData::updateLabels(ParIterator const & it, UpdateType utype)
+void MathData::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        // pass down
        for (size_t i = 0, n = size(); i != n; ++i) {
                MathAtom & at = operator[](i);
-               at.nucleus()->updateLabels(it, utype);
+               at.nucleus()->updateBuffer(it, utype);
        }
 }
 
index 9fa63a86f3fec78fa0dc10280b84aa46aa12c0be..72dca0d157e32c02308bb9700a86b4298862eaeb 100644 (file)
@@ -168,7 +168,7 @@ public:
        /// stay visually at the same position (cur==0 is allowed)
        void updateMacros(Cursor * cur, MacroContext const & mc);
        ///
-       void updateLabels(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType);
 
 protected:
        /// cached values for super/subscript placement
index be94ec83c1609b222acdbebff06dc4bacd5afa4e..b7d8a52dc7494091313a5ebb729373605ce83297 100644 (file)
@@ -43,7 +43,7 @@ private:
        ///
        typedef std::map<std::string, docstring> TranslationCache;
        /// Internal cache for gettext translated strings.
-       /// This is needed for performance reason within \c updateLabels()
+       /// This is needed for performance reason within \c updateBuffer()
        /// under Windows.
        mutable TranslationCache cache_;
 };