*
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef INSETCOMMANDPARAMS_H
#define INSETCOMMANDPARAMS_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include <config.h>
-
-#include "LString.h"
-
+#include <string>
#include <iosfwd>
+
class LyXLex;
+
class InsetCommandParams {
public:
///
InsetCommandParams();
///
explicit
- InsetCommandParams(string const & n,
- string const & c = string(),
- string const & o = string());
+ InsetCommandParams(std::string const & n,
+ std::string const & c = std::string(),
+ std::string const & o = std::string());
///
void read(LyXLex &);
/// Parse the command
- void scanCommand(string const &);
+ void scanCommand(std::string 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; }
+ std::string const getCommand() const;
///
- string const & getContents() const { return contents; }
+ std::string const & getCmdName() const { return cmdname; }
///
- void setCmdName(string const & n) { cmdname = n; }
+ std::string const & getOptions() const { return options; }
///
- void setOptions(string const & o) { options = o; }
+ std::string const & getContents() const { return contents; }
///
- void setContents(string const & c) { contents = c; }
+ void setCmdName(std::string const & n) { cmdname = n; }
///
- string const getAsString() const;
+ void setOptions(std::string const & o) { options = o; }
///
- void setFromString(string const &);
+ void setContents(std::string const & c) { contents = c; }
///
bool preview() const { return preview_; }
///
private:
///
- string cmdname;
+ std::string cmdname;
///
- string contents;
+ std::string contents;
///
- string options;
+ std::string options;
///
bool preview_;
};