]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommandparams.h
Final touch 'inset display()'; fix 'is a bit silly' bug
[lyx.git] / src / insets / insetcommandparams.h
index b6c3b75dedf04973b897765b06ce1b0485c2afdd..a29dc5fa959b372e3471c93e746077078f1f1ee0 100644 (file)
@@ -1,68 +1,67 @@
 // -*- C++ -*-
-/* This file is part of*
- * ======================================================
+/**
+ * \file insetcommandparams.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Angus Leeming
  *
- *           Copyright 2002-2001 The LyX Team.
- *
- * ====================================================== */
+ * 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;
+       std::string const getCommand() const;
        ///
-       string const & getCmdName() const { return cmdname; }
+       std::string const & getCmdName() const { return cmdname; }
        ///
-       string const & getOptions() const { return options; }
+       std::string const & getOptions() const { return options; }
        ///
-       string const & getContents() const { return contents; }
+       std::string const & getContents() const { return contents; }
        ///
-       void setCmdName(string const & n) { cmdname = n; }
+       void setCmdName(std::string const & n) { cmdname = n; }
        ///
-       void setOptions(string const & o) { options = o; }
+       void setOptions(std::string const & o) { options = o; }
        ///
-       void setContents(string const & c) { contents = c; }
+       void setContents(std::string const & c) { contents = c; }
        ///
-       string const getAsString() const;
+       bool preview() const { return preview_; }
        ///
-       void setFromString(string const &);
+       void preview(bool p) { preview_ = p; }
+
 private:
        ///
-       string cmdname;
+       std::string cmdname;
+       ///
+       std::string contents;
        ///
-       string contents;
+       std::string options;
        ///
-       string options;
+       bool preview_;
 };