- void Write(ostream &);
- /// Parse the command.
- void scanCommand(string const & cmd);
- /// Will not be used when lyxf3
- void Read(LyXLex & lex);
+ 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(); }
+ ///
+ void write(Buffer const *, std::ostream & os) const
+ { p_.write(os); }
+ ///
+ virtual void read(Buffer const *, LyXLex & lex)
+ { p_.read(lex); }
+ /// Can remove one InsetBibKey is modified
+ void scanCommand(string const & c) { p_.scanCommand(c); };