enum Type {
Note,
Comment,
- Greyedout,
- Framed,
- Shaded
+ Greyedout
};
/// \c type defaults to Note
InsetNoteParams();
///
virtual docstring const editMessage() const;
///
- InsetBase::Code lyxCode() const { return InsetBase::NOTE_CODE; }
+ InsetCode lyxCode() const { return NOTE_CODE; }
+ ///
+ docstring name() const;
+ ///
+ virtual DisplayType display() const;
///
void write(Buffer const &, std::ostream &) const;
///
/// show the note dialog
bool showInsetDialog(BufferView * bv) const;
///
+ bool isMacroScope(Buffer const & buf) const;
+ ///
int latex(Buffer const &, odocstream &, OutputParams const &) const;
///
int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
///
InsetNoteParams const & params() const { return params_; }
///
- bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) 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 &);
+ ///
+ void addToToc(Buffer const &, ParConstIterator const &) const;
protected:
InsetNote(InsetNote const &);
///
- virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+ virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
private:
friend class InsetNoteParams;
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual Inset * clone() const;
/// used by the constructors
void init();
///
InsetNoteMailer(InsetNote & inset);
///
- virtual InsetBase & inset() const { return inset_; }
+ virtual Inset & inset() const { return inset_; }
///
virtual std::string const & name() const { return name_; }
///