]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.cpp
InsetListings: change the interface of diaplay function and allow AlignLeft. Applied...
[lyx.git] / src / insets / InsetCollapsable.cpp
index 02b7a5d06c76fae96021548f3cd10088e0db51b6..1c7ec55961c0103f498b8f8fdde3c74f3527aaa3 100644 (file)
@@ -448,17 +448,17 @@ void InsetCollapsable::setStatus(Cursor & cur, CollapseStatus status)
 }
 
 
-void InsetCollapsable::setLabelFont(LyXFont & font)
+void InsetCollapsable::setLabelFont(Font & font)
 {
        labelfont_ = font;
 }
 
 docstring InsetCollapsable::floatName(string const & type, BufferParams const & bp) const
 {
-       FloatList const & floats = bp.getLyXTextClass().floats();
+       FloatList const & floats = bp.getTextClass().floats();
        FloatList::const_iterator it = floats[type];
        // FIXME UNICODE
-       return (it == floats.end()) ? from_ascii(type) : _(it->second.name());
+       return (it == floats.end()) ? from_ascii(type) : bp.B_(it->second.name());
 }