#include <vector>
-class LyXLex;
+namespace lyx {
+class LyXLex;
class InsetCommandParams {
public:
///
void write(std::ostream &) const;
/// Build the complete LaTeX command
- lyx::docstring const getCommand() const;
+ docstring const getCommand() const;
/// Return the command name
std::string const & getCmdName() const { return name_; }
+private:
/// FIXME remove
std::string const getOptions() const;
/// FIXME remove
std::string const getSecOptions() const;
+public:
/// FIXME remove
std::string const getContents() const;
/// Set the name to \p n. This must be a known name. All parameters
/// are cleared except those that exist also in the new command.
/// What matters here is the parameter name, not position.
void setCmdName(std::string const & n);
+private:
/// FIXME remove
void setOptions(std::string const &);
/// FIXME remove
void setSecOptions(std::string const &);
+public:
/// FIXME remove
void setContents(std::string const &);
/// get parameter \p name
- lyx::docstring const & operator[](std::string const & name) const;
+ docstring const & operator[](std::string const & name) const;
/// set parameter \p name
- lyx::docstring & operator[](std::string const & name);
+ docstring & operator[](std::string const & name);
///
bool preview() const { return preview_; }
///
/// The name of this command as it appears in .lyx and .tex files
std::string name_;
///
- typedef std::vector<lyx::docstring> ParamVector;
+ typedef std::vector<docstring> ParamVector;
/// The parameters (both optional and required ones). The order is
/// the same that is required for LaTeX output. The size of params_
/// is always info_->n.
///
bool operator!=(InsetCommandParams const &, InsetCommandParams const &);
+
+} // namespace lyx
+
#endif