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