]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.h
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / src / insets / InsetNote.h
index d234966071db6b5225373581843cceefeb847bc2..a9ca313b8767968eb843363dd6df5db38d3b2c5f 100644 (file)
@@ -42,11 +42,14 @@ public:
 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; }
        ///
@@ -54,42 +57,40 @@ public:
        ///
        virtual DisplayType display() const;
        ///
-       void write(Buffer const &, std::ostream &) const;
+       bool noFontChange() const { return params_.type != InsetNoteParams::Note; }
+       ///
+       void write(std::ostream &) const;
        ///
-       void read(Buffer const & buf, Lexer & lex);
+       void read(Lexer & lex);
        ///
        void setButtonLabel();
        /// show the note dialog
        bool showInsetDialog(BufferView * bv) const;
        ///
-       bool isMacroScope(Buffer const & buf) const;
+       bool isMacroScope() const;
        ///
-       int latex(Buffer const &, odocstream &, OutputParams const &) const;
+       int latex(odocstream &, OutputParams const &) const;
        ///
-       int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
+       int plaintext(odocstream &, OutputParams const &) const;
        ///
-       int docbook(Buffer const &, odocstream &, OutputParams const &) const;
+       int docbook(odocstream &, OutputParams const &) const;
        ///
        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
-       virtual void updateLabels(Buffer const &, ParIterator const &);
+       void updateLabels(ParIterator const &);
        ///
-       void addToToc(Buffer const &, ParConstIterator const &) const;
-protected:
-       InsetNote(InsetNote const &);
+       void addToToc(ParConstIterator const &) const;
        ///
-       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
-private:
-       friend class InsetNoteParams;
-
-       virtual Inset * clone() 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_;
 };