}
+Inset::DisplayType InsetNote::display() const
+{
+ switch (params_.type) {
+ case InsetNoteParams::Framed:
+ case InsetNoteParams::Shaded:
+ return AlignLeft;
+ default:
+ return Inline;
+ }
+}
+
+
void InsetNote::write(Buffer const & buf, ostream & os) const
{
params_.write(os);
features.require("color");
features.require("framed");
}
- if (params_.type == InsetNoteParams::Framed)
+ if (params_.type == InsetNoteParams::Framed) {
+ features.require("color");
features.require("framed");
+ }
InsetText::validate(features);
}
Inset::Code lyxCode() const { return Inset::NOTE_CODE; }
///
docstring name() const { return from_ascii("Note"); }
+ /// framed and shaded notes are displayed
+ virtual DisplayType display() const;
///
void write(Buffer const &, std::ostream &) const;
///