]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.h
nomenclWidest(): take (proper) formatting into account.
[lyx.git] / src / insets / InsetCommand.h
index ae6fc3ec05da3f75675f88df881ab9831da62808..f51f8c939a05452be85e4971ab5df44b3094772e 100644 (file)
@@ -39,6 +39,8 @@ public:
        ///
        InsetCommand(InsetCommand const & rhs);
        ///
+       InsetCommand & operator=(InsetCommand const & rhs);
+       ///
        virtual ~InsetCommand();
        ///
        InsetCommand * asInsetCommand() { return this; }
@@ -76,6 +78,8 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
+       virtual void drawBackground(PainterInfo &, int, int) const {}
+       ///
        void latex(otexstream &, OutputParams const &) const;
        ///
        int plaintext(odocstringstream & ods, OutputParams const & op,
@@ -83,9 +87,11 @@ public:
        ///
        int docbook(odocstream &, OutputParams const & runparams) const;
        ///
+       void validate(LaTeXFeatures & features) const;
+       ///
        bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
        ///
-       bool clickable(int, int) const { return hasSettings(); }
+       bool clickable(BufferView const &, int, int) const { return hasSettings(); }
        //@}
 
 protected:
@@ -95,9 +101,6 @@ protected:
        std::string contextMenuName() const;
        ///
        bool showInsetDialog(BufferView * bv) const;
-       ///
-       Dimension const dimension(BufferView const &) const 
-               { return button_.dimension(); }
        //@}
 
 protected:
@@ -105,7 +108,7 @@ protected:
        //@{
        /// Build the complete LaTeX command
        /// \see InsetCommandParams::getCommand
-       docstring const getCommand(OutputParams const & rp) const 
+       docstring const getCommand(OutputParams const & rp) const
                { return p_.getCommand(rp); }
        /// Return the command name
        /// \see InsetCommandParams::getCmdName