]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloatList.cpp
Update Toc when navigation menu is trigged.
[lyx.git] / src / insets / InsetFloatList.cpp
index da5d0f6358c2b2256b45e72547de205e402f6f58..ec8cf428c25fcf359b76077e89c3fac7b8fc635c 100644 (file)
@@ -51,7 +51,7 @@ InsetFloatList::InsetFloatList(string const & type)
 
 docstring const InsetFloatList::getScreenLabel(Buffer const & buf) const
 {
-       FloatList const & floats = buf.params().getLyXTextClass().floats();
+       FloatList const & floats = buf.params().getTextClass().floats();
        FloatList::const_iterator it = floats[to_ascii(getParam("type"))];
        if (it != floats.end())
                return buf.B_(it->second.listName());
@@ -60,9 +60,9 @@ docstring const InsetFloatList::getScreenLabel(Buffer const & buf) const
 }
 
 
-InsetBase::Code InsetFloatList::lyxCode() const
+Inset::Code InsetFloatList::lyxCode() const
 {
-       return InsetBase::FLOAT_LIST_CODE;
+       return Inset::FLOAT_LIST_CODE;
 }
 
 
@@ -74,13 +74,13 @@ void InsetFloatList::write(Buffer const &, ostream & os) const
 
 void InsetFloatList::read(Buffer const & buf, Lexer & lex)
 {
-       FloatList const & floats = buf.params().getLyXTextClass().floats();
+       FloatList const & floats = buf.params().getTextClass().floats();
        string token;
 
        if (lex.eatLine()) {
                setParam("type", lex.getDocString());
                LYXERR(Debug::INSETS) << "FloatList::float_type: "
-                                     << to_ascii(getParam("type")) << endl;
+                                     << to_ascii(getParam("type")) << endl;
                if (!floats.typeExist(to_ascii(getParam("type"))))
                        lex.printError("InsetFloatList: Unknown float type: `$$Token'");
        } else
@@ -99,9 +99,9 @@ void InsetFloatList::read(Buffer const & buf, Lexer & lex)
 
 
 int InsetFloatList::latex(Buffer const & buf, odocstream & os,
-                          OutputParams const &) const
+                         OutputParams const &) const
 {
-       FloatList const & floats = buf.params().getLyXTextClass().floats();
+       FloatList const & floats = buf.params().getTextClass().floats();
        FloatList::const_iterator cit = floats[to_ascii(getParam("type"))];
 
        if (cit != floats.end()) {
@@ -129,7 +129,7 @@ int InsetFloatList::latex(Buffer const & buf, odocstream & os,
 
 
 int InsetFloatList::plaintext(Buffer const & buffer, odocstream & os,
-                              OutputParams const &) const
+                             OutputParams const &) const
 {
        os << getScreenLabel(buffer) << "\n\n";