2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2002-2001 The LyX Team.
9 * ====================================================== */
11 #ifndef INSETCOMMANDPARAMS_H
12 #define INSETCOMMANDPARAMS_H
26 class InsetCommandParams {
32 InsetCommandParams(string const & n,
33 string const & c = string(),
34 string const & o = string());
38 void scanCommand(string const &);
40 void write(std::ostream &) const;
41 /// Build the complete LaTeX command
42 string const getCommand() const;
44 string const & getCmdName() const { return cmdname; }
46 string const & getOptions() const { return options; }
48 string const & getContents() const { return contents; }
50 void setCmdName(string const & n) { cmdname = n; }
52 void setOptions(string const & o) { options = o; }
54 void setContents(string const & c) { contents = c; }
56 string const getAsString() const;
58 void setFromString(string const &);
60 bool preview() const { return preview_; }
62 void preview(bool p) { preview_ = p; }
77 bool operator==(InsetCommandParams const &,
78 InsetCommandParams const &);
81 bool operator!=(InsetCommandParams const &,
82 InsetCommandParams const &);