]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommandparams.h
add warning make controllers compile and remove some alomost unused functions, commen...
[lyx.git] / src / insets / insetcommandparams.h
index b6c3b75dedf04973b897765b06ce1b0485c2afdd..ac10b0e97ecf76e805ab769403948745d2f27465 100644 (file)
@@ -1,19 +1,17 @@
 // -*- 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>
 
@@ -53,9 +51,10 @@ public:
        ///
        void setContents(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;
@@ -63,6 +62,8 @@ private:
        string contents;
        ///
        string options;
+       ///
+       bool preview_;
 };