X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloatList.cpp;h=87e6bd2d343b412b9b68cc0c24508248f972ea4a;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=9488d0a6f21d599428c89f6b6527ddad9d98e849;hpb=150cf11651ad92090a452bb9e6cb72d7eea886d5;p=lyx.git diff --git a/src/insets/InsetFloatList.cpp b/src/insets/InsetFloatList.cpp index 9488d0a6f2..87e6bd2d34 100644 --- a/src/insets/InsetFloatList.cpp +++ b/src/insets/InsetFloatList.cpp @@ -14,29 +14,27 @@ #include "Buffer.h" #include "BufferParams.h" -#include "debug.h" #include "DispatchResult.h" #include "Floating.h" #include "FloatList.h" #include "FuncRequest.h" -#include "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; - -using std::string; - InsetFloatList::InsetFloatList() : InsetCommand(InsetCommandParams(FLOAT_LIST_CODE), "toc") @@ -50,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}; @@ -60,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"; } @@ -78,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"; }