X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNote.h;h=dd580da8a024b8895e1a8933bfddb3bab8df7e4a;hb=9b530e59c2b74828f3a68f3bb7ee3dee0365cdc0;hp=bf5ca70a3fe0d08c48bee999723d56185231f62b;hpb=92e71f01ee52074192910d959fe1ef438273d31d;p=lyx.git diff --git a/src/insets/InsetNote.h b/src/insets/InsetNote.h index bf5ca70a3f..dd580da8a0 100644 --- a/src/insets/InsetNote.h +++ b/src/insets/InsetNote.h @@ -47,7 +47,7 @@ class InsetNote : public InsetCollapsable { public: /// - InsetNote(Buffer const &, std::string const &); + InsetNote(Buffer *, std::string const &); /// ~InsetNote(); /// @@ -57,45 +57,46 @@ public: /// InsetNoteParams const & params() const { return params_; } private: - /// - docstring editMessage() const; /// InsetCode lyxCode() const { return NOTE_CODE; } /// - docstring name() const; + docstring layoutName() const; /// DisplayType display() const; + /** returns false if, when outputing LaTeX, font changes should + be closed before generating this inset. This is needed for + insets that may contain several paragraphs */ + bool inheritFont() const { return params_.type == InsetNoteParams::Note; } + /// Is the content of this inset part of the output document? + bool producesOutput() const + { return params_.type == InsetNoteParams::Greyedout; } + /// + bool allowSpellCheck() const; /// - bool noFontChange() const { return params_.type != InsetNoteParams::Note; } - /*! - * Is the content of this inset part of the output document? - * - * Note that Note insets are not considered part of the - * document, even in their 'greyed out' incarnation. - */ - bool producesOutput() const { return false; } + FontInfo getFont() const; /// void write(std::ostream &) const; /// void read(Lexer & lex); - /// - void setButtonLabel(); /// show the note dialog bool showInsetDialog(BufferView * bv) const; /// bool isMacroScope() const; /// - int latex(odocstream &, OutputParams const &) const; + void latex(otexstream &, OutputParams const &) const; /// - int plaintext(odocstream &, OutputParams const &) const; + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; /// int docbook(odocstream &, OutputParams const &) const; /// + docstring xhtml(XHTMLStream &, OutputParams const &) const; + /// void validate(LaTeXFeatures &) const; /// bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; /// - void addToToc(ParConstIterator const &) const; + void addToToc(DocIterator const & di, bool output_active) const; /// void doDispatch(Cursor & cur, FuncRequest & cmd); /// @@ -103,7 +104,7 @@ private: /// used by the constructors void init(); /// - docstring contextMenu(BufferView const & bv, int x, int y) const; + std::string contextMenuName() const; /// friend class InsetNoteParams; @@ -111,7 +112,6 @@ private: InsetNoteParams params_; }; - } // namespace lyx #endif // INSET_NOTE_H