]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommandparams.h
Make it compile when USE_BOOST_FORMAT is unset
[lyx.git] / src / insets / insetcommandparams.h
index 90bb0eb56ae4a64564225948a960c60c6dc6755c..565236ec047c861c73fe59d6f3ea31bddaf6973b 100644 (file)
@@ -1,12 +1,13 @@
 // -*- 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
@@ -33,10 +34,6 @@ public:
                            string const & c = string(),
                            string const & o = string());
        ///
-       bool operator==(InsetCommandParams const &) const;
-       ///
-       bool operator!=(InsetCommandParams const &) const;
-       ///
        void read(LyXLex &);
        /// Parse the command
        void scanCommand(string const &);
@@ -60,6 +57,11 @@ public:
        string const getAsString() const;
        ///
        void setFromString(string const &);
+       ///
+       bool preview() const { return preview_; }
+       ///
+       void preview(bool p) { preview_ = p; }
+
 private:
        ///
        string cmdname;
@@ -67,7 +69,17 @@ private:
        string contents;
        ///
        string options;
+       ///
+       bool preview_;
 };
 
 
+///
+bool operator==(InsetCommandParams const &,
+               InsetCommandParams const &);
+
+///
+bool operator!=(InsetCommandParams const &,
+               InsetCommandParams const &);
+
 #endif