+2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * buffer.C (readInset): enable reading of new InsetNotes as well as old
+ InsetInfos.
+
+ * FontLoader.C: remove FORMS_H_LOCATION cruft.
+
2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
* sp_form.[Ch]: remove.
#pragma implementation "FontLoader.h"
#endif
-#include FORMS_H_LOCATION
#include "FontLoader.h"
#include "FontInfo.h"
#include "gettext.h"
inset = new InsetFormula;
} else if (tmptok == "Figure") {
inset = new InsetFig(100, 100, *this);
- } else if (tmptok == "Info") {
+ } else if (tmptok == "Info" // backwards compatibility
+ || tmptok == "Note") {
inset = new InsetNote;
} else if (tmptok == "Include") {
InsetCommandParams p( "Include" );
+2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses
+ the default InsetCollapsable methods. I.e., it can insert anything.
+ (write) output the name of the inset, not some silly hack for
+ compatability with the old InsetInfo.
+
2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
* insetinfo.[Ch]: removed.
{
LyXFont font(LyXFont::ALL_SANE);
font.decSize();
- font.decSize();
font.setColor(LColor::note);
setLabelFont(font);
setAutoCollapse(true);
void InsetNote::write(Buffer const *buf, ostream & os) const
{
- //os << getInsetName() << "\n";
- os << "Info\n";
+ os << getInsetName() << "\n";
InsetCollapsable::write(buf, os);
}
-
///
virtual Inset::Code lyxCode() const { return Inset::IGNORE_CODE; }
///
- virtual bool insertInset(BufferView *, Inset *) { return false; }
- ///
- virtual bool insetAllowed(Inset::Code) const { return false; }
- ///
virtual void write(Buffer const *, std::ostream &) const;
///
virtual int latex(Buffer const *, std::ostream &, bool, bool) const