3 * \file insetcommandparams.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
12 #ifndef INSETCOMMANDPARAMS_H
13 #define INSETCOMMANDPARAMS_H
22 class InsetCommandParams {
27 explicit InsetCommandParams(std::string const & n,
28 std::string const & c = std::string(),
29 std::string const & o = std::string());
33 void scanCommand(std::string const &);
35 void write(std::ostream &) const;
36 /// Build the complete LaTeX command
37 std::string const getCommand() const;
39 std::string const & getCmdName() const { return cmdname; }
41 std::string const & getOptions() const { return options; }
43 std::string const & getContents() const { return contents; }
45 void setCmdName(std::string const & n) { cmdname = n; }
47 void setOptions(std::string const & o) { options = o; }
49 void setContents(std::string const & c) { contents = c; }
51 bool preview() const { return preview_; }
53 void preview(bool p) { preview_ = p; }
68 bool operator==(InsetCommandParams const &, InsetCommandParams const &);
71 bool operator!=(InsetCommandParams const &, InsetCommandParams const &);