+2005-11-25 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
+
+ * paragraph.C (asString): use new inset->textString method (fix bug 2089)
+
2005-11-24 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* CutAndPaste.C (numberOfSelections): new helper function.
+2005-11-25 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
+
+ * insetbase.h:
+ * insetcharstyle.[Ch]:
+ * insetcite.[Ch]:
+ * insetlatexaccent.[Ch]:
+ * insetquotes.[Ch]:
+ * insetref.[Ch]:
+ * insetspace.[Ch]:
+ * insetspecialchar.[Ch]:
+ * inseturl.[Ch]: new method textString (fix bug 2089)
+
2005-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetbibtex.C (latex): copy .bib files to the master buffer temp dir
/// docbook output
virtual int docbook(Buffer const &, std::ostream & os,
OutputParams const &) const;
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream &,
+ OutputParams const &) const { return 0; };
/** This enum indicates by which means the inset can be modified:
- NOT_EDITABLE: the inset's content can not be modified at all
}
+int InsetCharStyle::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
+
+
void InsetCharStyle::validate(LaTeXFeatures & features) const
{
// Force inclusion of preamble snippet in layout file
///
int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const;
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
///
void validate(LaTeXFeatures &) const;
}
+int InsetCitation::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
+
+
// Have to overwrite the default InsetCommand method in order to check that
// the \cite command is valid. Eg, the user has natbib enabled, inputs some
// citations and then changes his mind, turning natbib support off. The output
///
int docbook(Buffer const &, std::ostream &,
OutputParams const &) const;
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
///
void validate(LaTeXFeatures &) const;
}
+int InsetLatexAccent::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
+
+
bool InsetLatexAccent::directWrite() const
{
return true;
///
int docbook(Buffer const &, std::ostream &,
OutputParams const &) const;
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
///
bool directWrite() const;
///
}
+int InsetQuotes::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
+
+
void InsetQuotes::validate(LaTeXFeatures & features) const
{
bool const use_babel = features.useBabel();
///
int docbook(Buffer const &, std::ostream &,
OutputParams const &) const;
+
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
+
///
void validate(LaTeXFeatures &) const;
///
}
+int InsetRef::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
+
+
void InsetRef::validate(LaTeXFeatures & features) const
{
if (getCmdName() == "vref" || getCmdName() == "vpageref")
///
int docbook(Buffer const &, std::ostream &,
OutputParams const &) const;
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
///
void validate(LaTeXFeatures & features) const;
protected:
}
+int InsetSpace::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
+
+
auto_ptr<InsetBase> InsetSpace::doClone() const
{
return auto_ptr<InsetBase>(new InsetSpace(kind_));
///
int docbook(Buffer const &, std::ostream &,
OutputParams const &) const;
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
///
InsetBase::Code lyxCode() const { return InsetBase::SPACE_CODE; }
/// We don't need \begin_inset and \end_inset
}
+int InsetSpecialChar::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
+
+
auto_ptr<InsetBase> InsetSpecialChar::doClone() const
{
return auto_ptr<InsetBase>(new InsetSpecialChar(kind_));
///
int docbook(Buffer const &, std::ostream &,
OutputParams const &) const;
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
///
InsetBase::Code lyxCode() const { return InsetBase::SPECIALCHAR_CODE; }
/// We don't need \begin_inset and \end_inset
}
+int InsetUrl::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
+
+
void InsetUrl::validate(LaTeXFeatures & features) const
{
features.require("url");
///
int docbook(Buffer const &, std::ostream &,
OutputParams const &) const;
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
private:
virtual std::auto_ptr<InsetBase> doClone() const {
return std::auto_ptr<InsetBase>(new InsetUrl(params()));
+2005-11-25 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
+
+ * math_hullinset.[Ch]: new method textString (fix bug 2089)
+
2005-11-15 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* command_inset.[Ch] (editXY): implement, since MathNestInset::editXY
ms << ETag(name.c_str());
return ms.line() + res;
}
+
+
+int MathHullInset::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
///
int docbook(Buffer const &, std::ostream &,
OutputParams const &) const;
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
/// get notification when the cursor leaves this inset
void notifyCursorLeaves(LCursor & cur);
if (IsPrintable(c))
os << c;
else if (c == META_INSET)
- getInset(i)->plaintext(buffer, os, runparams);
+ getInset(i)->textString(buffer, os, runparams);
}
return os.str();