]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetindex.C
index fa27b2440b5076d7bf40a13efa82e3e22aaf35c7..04b954e99f21bd05c3602acd3e8e339cef8ae680 100644 (file)
@@ -16,6 +16,7 @@
 #include "gettext.h"
 #include "LaTeXFeatures.h"
 #include "metricsinfo.h"
+#include "sgml.h"
 
 #include "support/std_ostream.h"
 
@@ -42,15 +43,15 @@ string const InsetIndex::getScreenLabel(Buffer const &) const
 int InsetIndex::docbook(Buffer const &, ostream & os,
                        OutputParams const &) const
 {
-       os << "<indexterm><primary>" << getContents()
+       os << "<indexterm><primary>" << sgml::escapeString(getContents())
           << "</primary></indexterm>";
        return 0;
 }
 
 
-InsetOld::Code InsetIndex::lyxCode() const
+InsetBase::Code InsetIndex::lyxCode() const
 {
-       return InsetOld::INDEX_CODE;
+       return InsetBase::INDEX_CODE;
 }
 
 
@@ -77,7 +78,7 @@ void InsetPrintIndex::validate(LaTeXFeatures & features) const
 }
 
 
-InsetOld::Code InsetPrintIndex::lyxCode() const
+InsetBase::Code InsetPrintIndex::lyxCode() const
 {
-       return InsetOld::INDEX_PRINT_CODE;
+       return InsetBase::INDEX_PRINT_CODE;
 }