]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFoot.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetFoot.cpp
index f184e4bc7902832c055a749f38dee810c6f7b915..f311c1d61cfc227e57e46da070ed3975875ca322 100644 (file)
@@ -36,11 +36,11 @@ InsetFoot::InsetFoot(Buffer * buf)
 {}
 
 
-void InsetFoot::updateLabels(ParIterator const & it, bool out)
+void InsetFoot::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        BufferParams const & bp = buffer().masterBuffer()->params();
        Counters & cnts = bp.documentClass().counters();
-       if (out) {
+       if (utype == OutputUpdate) {
                // the footnote counter is local to this inset
                cnts.saveLastCounter();
        }
@@ -48,13 +48,13 @@ void InsetFoot::updateLabels(ParIterator const & it, bool out)
        InsetLayout const & il = getLayout();
        docstring const & count = il.counter();
        if (!outer.layout().intitle && cnts.hasCounter(count)) {
-               cnts.step(count, out);
+               cnts.step(count, utype);
                custom_label_= translateIfPossible(il.labelstring()) 
                        + ' ' + cnts.theCounter(count, outer.getParLanguage(bp)->code());
                setLabel(custom_label_);        
        }
-       InsetCollapsable::updateLabels(it, out);
-       if (out)
+       InsetCollapsable::updateBuffer(it, utype);
+       if (utype == OutputUpdate)
                cnts.restoreLastCounter();      
 }