]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetCommand.h
index 204ae93a087ca76b60dd9a563d33d30f81dc5025..7173417ec5dc1e8059511394cb55aa879e01b2ec 100644 (file)
@@ -58,8 +58,7 @@ public:
        InsetCommandParams const & params() const { return p_; }
        /// FIXME Remove
        docstring const getFirstNonOptParam() const { return p_.getFirstNonOptParam(); }
-public:
-       /// tell that the button label should be recomputed.
+       /// Whether the button label should be recomputed.
        void refresh() { updateButtonLabel_ = true; }
        ///
        void setParam(std::string const & name, docstring const & value)
@@ -73,11 +72,21 @@ public:
                return p_[name];
        }
        ///
-       void edit(Cursor & cur, bool left);
+       void edit(Cursor & cur, bool front, 
+               EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
        ///
        RenderButton & button() const { return button_; }
        ///
        bool setMouseHover(bool mouse_hover);
+       /// Return parameter information for command cmdName.
+       /// Not implemented here. Must be implemented in derived class.
+       static CommandInfo const * findInfo(std::string const & cmdName);
+       /// Return default command for this inset.
+       /// Not implemented here. Must be implemented in derived class.
+       static std::string defaultCommand();
+       /// Whether this is a command this inset can represent.
+       /// Not implemented here. Must be implemented in derived class.
+       static bool isCompatibleCommand(std::string const & cmd);
 
 protected:
        ///