]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetindex.C
index e9c0e6ac23ca08297bbc4235c20089f041db8908..c175cf1ffd14cb5e05d7aafff22049ef7542ac57 100644 (file)
@@ -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 << "<indexterm><primary>" << sgml::escapeString(getContents())
+       os << "<indexterm><primary>"
+           << sgml::escapeString(getParam("name"))
           << "</primary></indexterm>";
        return 0;
 }
@@ -84,3 +86,6 @@ InsetBase::Code InsetPrintIndex::lyxCode() const
 {
        return InsetBase::INDEX_PRINT_CODE;
 }
+
+
+} // namespace lyx