X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNote.h;h=d6cc0a6510ec623e4903732b00ade77a1eaa1b64;hb=ed7d3a33abad4e1b5141b2ec626b542d1603782c;hp=15b416a1f8270b124a3a3e37cc6b4ae659b47e24;hpb=f9b81e51e943bcaac885d74edbce41a9d74ad3dd;p=lyx.git diff --git a/src/insets/InsetNote.h b/src/insets/InsetNote.h index 15b416a1f8..d6cc0a6510 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,40 +57,44 @@ 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; } + 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; - // Update the counters of this inset and of its contents - void updateLabels(ParIterator const &); - /// - void addToToc(ParConstIterator const &) const; /// void doDispatch(Cursor & cur, FuncRequest & cmd); /// @@ -98,7 +102,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; @@ -106,7 +110,6 @@ private: InsetNoteParams params_; }; - } // namespace lyx #endif // INSET_NOTE_H