]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetWrap.h
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / src / insets / InsetWrap.h
index 789774241d89c17dfa8da11edf1b87709ebf3c7b..4bdafb65555f6b95d3eae9c6f660408fcabf2988 100644 (file)
@@ -45,9 +45,12 @@ public:
 class InsetWrap : public InsetCollapsable {
 public:
        ///
-       InsetWrap(BufferParams const &, std::string const &);
+       InsetWrap(Buffer const &, std::string const &);
        ///
        ~InsetWrap();
+       ///
+       InsetWrapParams const & params() const { return params_; }
+private:
        ///
        void write(std::ostream & os) const;
        ///
@@ -57,8 +60,6 @@ public:
        ///
        InsetCode lyxCode() const { return WRAP_CODE; }
        ///
-       bool isMacroScope() const { return true; }
-       ///
        int latex(odocstream &, OutputParams const &) const;
        ///
        int plaintext(odocstream &, OutputParams const &) const;
@@ -71,18 +72,15 @@ public:
        ///
        bool showInsetDialog(BufferView *) const;
        ///
-       InsetWrapParams 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 &);
-protected:
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
        docstring name() const { return name_; }
-private:
-       Inset * clone() const;
+       ///
+       Inset * clone() const { return new InsetWrap(*this); }
 
        ///
        InsetWrapParams params_;