X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetRef.cpp;h=9a3209f894df83ef646da71ef7e0ddb2d8029fbe;hb=c3a8b3a566e9e90f9ade72acbc723232d721d0b1;hp=f22c2f67f18334bd52f60c62b5b0f0f113bfddde;hpb=9383f4c3c6f9cfab2d658701ba66e2b54cd68bea;p=lyx.git diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp index f22c2f67f1..9a3209f894 100644 --- a/src/insets/InsetRef.cpp +++ b/src/insets/InsetRef.cpp @@ -25,11 +25,10 @@ #include "support/lstrings.h" using namespace std; +using namespace lyx::support; namespace lyx { -using support::escape; - InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf) : InsetCommand(p, "ref"), isLatex(buf.isLatex()) @@ -41,7 +40,7 @@ InsetRef::InsetRef(InsetRef const & ir) {} -bool InsetRef::isCompatibleCommand(std::string const & s) { +bool InsetRef::isCompatibleCommand(string const & s) { //FIXME This is likely not the best way to handle this. //But this stuff is hardcoded elsewhere already. return s == "ref" @@ -53,7 +52,7 @@ bool InsetRef::isCompatibleCommand(std::string const & s) { } -CommandInfo const * InsetRef::findInfo(std::string const & /* cmdName */) +CommandInfo const * InsetRef::findInfo(string const & /* cmdName */) { static const char * const paramnames[] = {"name", "reference", ""}; static const bool isoptional[] = {true, false}; @@ -146,10 +145,9 @@ int InsetRef::docbook(Buffer const & buf, odocstream & os, } -int InsetRef::textString(Buffer const & buf, odocstream & os, - OutputParams const & op) const +void InsetRef::textString(Buffer const & buf, odocstream & os) const { - return plaintext(buf, os, op); + plaintext(buf, os, OutputParams(0)); }