X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetindex.C;h=c175cf1ffd14cb5e05d7aafff22049ef7542ac57;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=04b954e99f21bd05c3602acd3e8e339cef8ae680;hpb=686f1e276f013e2dc56e3025798c7131bef173f5;p=lyx.git diff --git a/src/insets/insetindex.C b/src/insets/insetindex.C index 04b954e99f..c175cf1ffd 100644 --- a/src/insets/insetindex.C +++ b/src/insets/insetindex.C @@ -20,6 +20,9 @@ #include "support/std_ostream.h" + +namespace lyx { + using std::string; using std::ostream; @@ -34,16 +37,17 @@ InsetIndex::InsetIndex(InsetCommandParams const & p) // {} -string const InsetIndex::getScreenLabel(Buffer const &) const +docstring const InsetIndex::getScreenLabel(Buffer const &) const { return _("Idx"); } -int InsetIndex::docbook(Buffer const &, ostream & os, +int InsetIndex::docbook(Buffer const &, odocstream & os, OutputParams const &) const { - os << "" << sgml::escapeString(getContents()) + os << "" + << sgml::escapeString(getParam("name")) << ""; return 0; } @@ -66,7 +70,7 @@ InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p) // {} -string const InsetPrintIndex::getScreenLabel(Buffer const &) const +docstring const InsetPrintIndex::getScreenLabel(Buffer const &) const { return _("Index"); } @@ -82,3 +86,6 @@ InsetBase::Code InsetPrintIndex::lyxCode() const { return InsetBase::INDEX_PRINT_CODE; } + + +} // namespace lyx