X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCommand.h;h=f51f8c939a05452be85e4971ab5df44b3094772e;hb=1bd422355430d4753e48eee298dafaf8c1ac458f;hp=c3b5005d2716580cf2474b41a09eb0fbbe2a2b53;hpb=62d36bf04d436c83ddace8aeaf4dbd493d674cdf;p=lyx.git diff --git a/src/insets/InsetCommand.h b/src/insets/InsetCommand.h index c3b5005d27..f51f8c939a 100644 --- a/src/insets/InsetCommand.h +++ b/src/insets/InsetCommand.h @@ -39,6 +39,8 @@ public: /// InsetCommand(InsetCommand const & rhs); /// + InsetCommand & operator=(InsetCommand const & rhs); + /// virtual ~InsetCommand(); /// InsetCommand * asInsetCommand() { return this; } @@ -66,7 +68,7 @@ public: /// void write(std::ostream & os) const { p_.write(os); } /// - void read(Lexer & lex, Buffer const * buf) { p_.read(lex, buf); } + void read(Lexer & lex) { p_.Read(lex, &buffer()); } /// void doDispatch(Cursor & cur, FuncRequest & cmd); /// @@ -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