#include "inset.h"
#include "insetcommandparams.h"
-#include "renderers.h"
+#include "render_button.h"
#include "mailinset.h"
// Created by Alejandro 970222
virtual int docbook(Buffer const &, std::ostream &, bool) const;
///
InsetOld::Code lyxCode() const { return InsetOld::NO_CODE; }
-
///
- InsetCommandParams const & params() const { return p_; }
+ virtual bool display() const { return true; }
+
///
- virtual dispatch_result localDispatch(FuncRequest const & cmd);
+ InsetCommandParams const & params() const { return p_; }
///
std::string const & getContents() const { return p_.getContents(); }
///
///
std::string const & getOptions() const { return p_.getOptions(); }
///
- ButtonRenderer & button() const { return button_; }
+ RenderButton & button() const { return button_; }
protected:
+ ///
+ virtual
+ dispatch_result
+ priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
///
std::string const getCommand() const { return p_.getCommand(); }
///
void setOptions(std::string const & o) { p_.setOptions(o); }
///
void setParams(InsetCommandParams const &);
- ///
- virtual BufferView * view() const;
/// This should provide the text for the button
virtual std::string const getScreenLabel(Buffer const &) const = 0;
///
InsetCommandParams p_;
mutable bool set_label_;
- mutable ButtonRenderer button_;
+ mutable RenderButton button_;
};