X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetindex.C;h=c175cf1ffd14cb5e05d7aafff22049ef7542ac57;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=e9c0e6ac23ca08297bbc4235c20089f041db8908;hpb=34b7650cbbe6a9ed2de812e75771451b8c8fe983;p=lyx.git diff --git a/src/insets/insetindex.C b/src/insets/insetindex.C index e9c0e6ac23..c175cf1ffd 100644 --- a/src/insets/insetindex.C +++ b/src/insets/insetindex.C @@ -20,7 +20,8 @@ #include "support/std_ostream.h" -using lyx::docstring; + +namespace lyx { using std::string; using std::ostream; @@ -42,10 +43,11 @@ docstring const InsetIndex::getScreenLabel(Buffer const &) const } -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; } @@ -84,3 +86,6 @@ InsetBase::Code InsetPrintIndex::lyxCode() const { return InsetBase::INDEX_PRINT_CODE; } + + +} // namespace lyx