]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.h
Change string
[lyx.git] / src / insets / InsetNote.h
index 050ee435b9c2177cfdc7d3d5becd0efb36ba2d7b..a9ca313b8767968eb843363dd6df5db38d3b2c5f 100644 (file)
@@ -45,6 +45,9 @@ public:
        InsetNote(Buffer const &, std::string const &);
        ///
        ~InsetNote();
+       ///
+       InsetNoteParams const & params() const { return params_; }
+private:
        ///
        docstring editMessage() const;
        ///
@@ -54,6 +57,8 @@ public:
        ///
        virtual DisplayType display() const;
        ///
+       bool noFontChange() const { return params_.type != InsetNoteParams::Note; }
+       ///
        void write(std::ostream &) const;
        ///
        void read(Lexer & lex);
@@ -72,23 +77,20 @@ public:
        ///
        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_;
 };