class InsetNote : public InsetCollapsable {
public:
///
- InsetNote(BufferParams const &, std::string const &);
+ InsetNote(Buffer const &, std::string const &);
///
~InsetNote();
///
- virtual docstring const editMessage() const;
+ InsetNoteParams const & params() const { return params_; }
+private:
+ ///
+ docstring editMessage() const;
///
InsetCode lyxCode() const { return NOTE_CODE; }
///
///
virtual DisplayType display() const;
///
- void write(Buffer const &, std::ostream &) const;
+ bool noFontChange() const { return params_.type != InsetNoteParams::Note; }
///
- void read(Buffer const & buf, Lexer & lex);
+ void write(std::ostream &) const;
+ ///
+ void read(Lexer & lex);
///
void setButtonLabel();
/// show the note dialog
bool showInsetDialog(BufferView * bv) const;
///
- int latex(Buffer const &, odocstream &, OutputParams const &) const;
+ bool isMacroScope() const;
///
- int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
+ int latex(odocstream &, OutputParams const &) const;
///
- int docbook(Buffer const &, odocstream &, OutputParams const &) const;
+ int plaintext(odocstream &, OutputParams const &) const;
///
- void validate(LaTeXFeatures &) const;
+ int docbook(odocstream &, OutputParams const &) const;
///
- InsetNoteParams const & params() const { return params_; }
+ void validate(LaTeXFeatures &) const;
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
// Update the counters of this inset and of its contents
- virtual void updateLabels(Buffer const &, ParIterator const &);
-protected:
- InsetNote(InsetNote const &);
+ void updateLabels(ParIterator const &);
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
-private:
- friend class InsetNoteParams;
-
- virtual Inset * clone() const;
-
+ void addToToc(ParConstIterator const &) const;
+ ///
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
+ ///
+ Inset * clone() const { return new InsetNote(*this); }
/// used by the constructors
void init();
+ ///
+ friend class InsetNoteParams;
+
///
InsetNoteParams params_;
};