- void draw(Painter &, LyXFont const &, int baseline, float & x) const;
+ void write(std::ostream &) const;
+ /// Build the complete LaTeX command
+ string const getCommand() const;
+ ///
+ string const & getCmdName() const { return cmdname; }
+ ///
+ string const & getOptions() const { return options; }
+ ///
+ string const & getContents() const { return contents; }
+ ///
+ void setCmdName(string const & n) { cmdname = n; }
+ ///
+ void setOptions(string const & o) { options = o; }
+ ///
+ void setContents(string const & c) { contents = c; }
+ ///
+ string const getAsString() const;
+ ///
+ void setFromString(string const &);
+private:
+ ///
+ string cmdname;
+ ///
+ string contents;
+ ///
+ string options;
+};
+
+
+///
+class InsetCommand : public InsetButton, boost::noncopyable {
+public:
+ ///
+ explicit
+ InsetCommand(InsetCommandParams const &, bool same_id = false);
+ ///
+ virtual ~InsetCommand() { hideDialog(); }