X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloatList.cpp;h=87e6bd2d343b412b9b68cc0c24508248f972ea4a;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=cec2f9737280a7420050123dfaadbbb20e5c9c89;hpb=9383f4c3c6f9cfab2d658701ba66e2b54cd68bea;p=lyx.git diff --git a/src/insets/InsetFloatList.cpp b/src/insets/InsetFloatList.cpp index cec2f97372..87e6bd2d34 100644 --- a/src/insets/InsetFloatList.cpp +++ b/src/insets/InsetFloatList.cpp @@ -14,28 +14,27 @@ #include "Buffer.h" #include "BufferParams.h" -#include "support/debug.h" #include "DispatchResult.h" #include "Floating.h" #include "FloatList.h" #include "FuncRequest.h" -#include "support/gettext.h" #include "LaTeXFeatures.h" #include "Lexer.h" #include "MetricsInfo.h" #include "TocBackend.h" #include "TextClass.h" +#include "support/debug.h" +#include "support/gettext.h" #include "support/lstrings.h" #include using namespace std; +using namespace lyx::support; namespace lyx { -using support::bformat; - InsetFloatList::InsetFloatList() : InsetCommand(InsetCommandParams(FLOAT_LIST_CODE), "toc") @@ -49,7 +48,7 @@ InsetFloatList::InsetFloatList(string const & type) } -CommandInfo const * InsetFloatList::findInfo(std::string const & /* cmdName */) +CommandInfo const * InsetFloatList::findInfo(string const & /* cmdName */) { static const char * const paramnames[] = {"type", ""}; static const bool isoptional[] = {false}; @@ -59,9 +58,9 @@ CommandInfo const * InsetFloatList::findInfo(std::string const & /* cmdName */) //HACK -bool InsetFloatList::isCompatibleCommand(std::string const & s) +bool InsetFloatList::isCompatibleCommand(string const & s) { - std::string str = s.substr(0, 6); + string str = s.substr(0, 6); return str == "listof"; } @@ -77,7 +76,7 @@ docstring const InsetFloatList::getScreenLabel(Buffer const & buf) const } -void InsetFloatList::write(Buffer const &, std::ostream & os) const +void InsetFloatList::write(Buffer const &, ostream & os) const { os << "FloatList " << to_ascii(getParam("type")) << "\n"; }