X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcommandparams.h;h=ac10b0e97ecf76e805ab769403948745d2f27465;hb=62be565337f08855dbbbeea9d90db2ce497d4c10;hp=90bb0eb56ae4a64564225948a960c60c6dc6755c;hpb=f849bc4a629e15389f629fd4f187790bb68db464;p=lyx.git diff --git a/src/insets/insetcommandparams.h b/src/insets/insetcommandparams.h index 90bb0eb56a..ac10b0e97e 100644 --- a/src/insets/insetcommandparams.h +++ b/src/insets/insetcommandparams.h @@ -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 @@ -33,10 +31,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 &); @@ -57,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; @@ -67,7 +62,17 @@ private: string contents; /// string options; + /// + bool preview_; }; +/// +bool operator==(InsetCommandParams const &, + InsetCommandParams const &); + +/// +bool operator!=(InsetCommandParams const &, + InsetCommandParams const &); + #endif