X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCommandParams.cpp;h=90fe6cca8ad813cd38ac067f29b1e13ee25610ff;hb=06254d11dfdf670fab3548dc2a2674e7a261262c;hp=d9d388ee028faa30cfe3fcaa698cf86ba94b7c5a;hpb=150cf11651ad92090a452bb9e6cb72d7eea886d5;p=lyx.git diff --git a/src/insets/InsetCommandParams.cpp b/src/insets/InsetCommandParams.cpp index d9d388ee02..90fe6cca8a 100644 --- a/src/insets/InsetCommandParams.cpp +++ b/src/insets/InsetCommandParams.cpp @@ -27,8 +27,8 @@ #include "InsetRef.h" #include "InsetTOC.h" -#include "debug.h" -#include "gettext.h" +#include "support/debug.h" +#include "support/gettext.h" #include "Lexer.h" #include "support/ExceptionMessage.h" @@ -37,14 +37,11 @@ #include -using std::string; - +using namespace std; +using namespace lyx::support; namespace lyx { -using support::findToken; -using support::ExceptionMessage; -using support::WarningException; InsetCommandParams::InsetCommandParams(InsetCode code) : insetCode_(code), preview_(false) @@ -67,7 +64,7 @@ InsetCommandParams::InsetCommandParams(InsetCode code, CommandInfo const * InsetCommandParams::findInfo( - InsetCode code, std::string const & cmdName) + InsetCode code, string const & cmdName) { switch (code) { case BIBITEM_CODE: @@ -103,7 +100,7 @@ CommandInfo const * InsetCommandParams::findInfo( } -std::string InsetCommandParams::getDefaultCmd(InsetCode code) { +string InsetCommandParams::getDefaultCmd(InsetCode code) { switch (code) { case BIBITEM_CODE: return InsetBibitem::defaultCommand(); @@ -139,7 +136,7 @@ std::string InsetCommandParams::getDefaultCmd(InsetCode code) { bool InsetCommandParams::isCompatibleCommand( - InsetCode code, std::string const & s) + InsetCode code, string const & s) { switch (code) { case BIBITEM_CODE: @@ -199,7 +196,7 @@ void InsetCommandParams::setCmdName(string const & name) params[j] = params_[i]; } info_ = info; - std::swap(params, params_); + swap(params, params_); } @@ -272,7 +269,7 @@ void InsetCommandParams::read(Lexer & lex) } -void InsetCommandParams::write(std::ostream & os) const +void InsetCommandParams::write(ostream & os) const { os << "CommandInset " << insetType() << '\n'; os << "LatexCommand " << cmdName_ << '\n';