]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.h
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetCommand.h
index a1525146a9615cbd21a5ee514edaa2ea2f9f7bff..bb4fcafeb02acd86bc9e2394a29019a160edf941 100644 (file)
@@ -38,7 +38,9 @@ public:
        ///
        ~InsetCommand();
        ///
-       bool metrics(MetricsInfo &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
+       ///
+       Dimension const dimension(BufferView const &) const { return button_.dimension(); }
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -68,6 +70,8 @@ protected:
                p_.setContents(c);
        }
 public:
+       /// tell that the button label should be recomputed.
+       void refresh() { updateButtonLabel_ = true; }
        ///
        void setParam(std::string const & name, docstring const & value)
        {
@@ -79,6 +83,8 @@ public:
        {
                return p_[name];
        }
+       ///
+       void edit(Cursor & cur, bool left);
        /// FIXME remove
        virtual void replaceContents(std::string const & from, std::string const & to);
        ///