]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.h
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / src / insets / InsetFloat.h
index 34c5a28020fffca9ae338416ed269c39987206b8..1313484f62bd8a4c37f5f30991b04459f011dd6c 100644 (file)
@@ -61,8 +61,6 @@ public:
        ///
        InsetCode lyxCode() const { return FLOAT_CODE; }
        ///
-       bool isMacroScope() const { return true; }
-       ///
        int latex(odocstream &, OutputParams const &) const;
        ///
        int plaintext(odocstream &, OutputParams const &) const;
@@ -83,18 +81,18 @@ public:
        ///
        void subfloat(bool s, BufferParams const &);
        ///
-       bool  showInsetDialog(BufferView *) const;
+       bool showInsetDialog(BufferView *) const;
        ///
        InsetFloatParams const & params() const { return params_; }
+private:
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        // Update the counters of this inset and of its contents
        void updateLabels(ParIterator const &);
-protected:
-       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
-private:
        ///
-       virtual Inset * clone() const;
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
+       ///
+       Inset * clone() const { return new InsetFloat(*this); }
        ///
        docstring getCaption(OutputParams const &) const;
        ///