]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / insets / InsetFloat.cpp
index 05c60bbc371986c3538160b423ffd61f922d6f3c..b6a67b067500fe916e6b3d8386d9394d14b61659 100644 (file)
@@ -195,7 +195,7 @@ bool InsetFloat::getStatus(Cursor & cur, FuncRequest const & cmd,
 }
 
 
-void InsetFloat::updateLabels(ParIterator const & it)
+void InsetFloat::updateLabels(ParIterator const & it, bool out)
 {
        Counters & cnts =
                buffer().masterBuffer()->params().documentClass().counters();
@@ -213,7 +213,7 @@ void InsetFloat::updateLabels(ParIterator const & it)
        cnts.current_float(params().type);
        cnts.isSubfloat(subflt);
 
-       InsetCollapsable::updateLabels(it);
+       InsetCollapsable::updateLabels(it, out);
 
        //reset afterwards
        cnts.current_float(saveflt);
@@ -287,7 +287,7 @@ docstring InsetFloat::xhtml(XHTMLStream & xs, OutputParams const & rp) const
        FloatList const & floats = buffer().params().documentClass().floats();
        Floating const & ftype = floats.getType(params_.type);
        string const & htmltype = ftype.htmlTag();
-       string const attr = "class='float " + ftype.htmlClass() + "'";
+       string const & attr = ftype.htmlAttrib();
 
        odocstringstream ods;
        XHTMLStream newxs(ods);