]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinclude.h
Make it compile when USE_BOOST_FORMAT is unset
[lyx.git] / src / insets / insetinclude.h
index 1f527ffa395f1006dc3a5126cc6774ab6c07f125..3a1ce111f5fea74f4c633569cd22de28b0ef496a 100644 (file)
@@ -1,12 +1,13 @@
 // -*- C++ -*-
-/* This file is part of*
- * ======================================================
+/**
+ * \file insetinclude.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
  *
- *         Copyright 1997 LyX Team (this file was created this year)
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef INSET_INCLUDE_H
 #define INSET_INCLUDE_H
@@ -25,32 +26,26 @@ struct LaTeXFeatures;
 
 // Created by AAS 970521
 
-/**  Used to include files
- */
+/// for including tex/lyx files
 class InsetInclude: public InsetButton, boost::noncopyable {
 public:
        /// the type of inclusion
        enum Flags {
-               ///
-               INCLUDE = 0,
-               ///
-               VERB = 1,
-               ///
-               INPUT = 2,
-               ///
-               VERBAST = 3
+               INCLUDE = 0, //<
+               VERB = 1, //<
+               INPUT = 2, //<
+               VERBAST = 3 //<
        };
 
        struct Params {
-               Params(InsetCommandParams const & cp = InsetCommandParams(),
-                      Flags f = INCLUDE,
-                      bool nl = false,
+               Params(InsetCommandParams const & cp = InsetCommandParams("input"),
+                      Flags f = INPUT,
                       string const & name = string())
-                       : cparams(cp), flag(f), noload(nl),
+                       : cparams(cp), flag(f),
                          masterFilename_(name) {}
                InsetCommandParams cparams;
                Flags flag;
-               bool noload;
                string masterFilename_;
 
                ///
@@ -63,7 +58,7 @@ public:
        InsetInclude(Params const &);
        ///
        InsetInclude(InsetCommandParams const &, Buffer const &);
-       ///
+
        ~InsetInclude();
 
        /// Override these InsetButton methods if Previewing
@@ -121,9 +116,6 @@ public:
        /// return the filename stub of the included file
        string const getRelFileBaseName() const;
 
-       /// return true if the included file is not loaded
-       bool isIncludeOnly() const;
-
        /// return true if the file is or got loaded.
        bool loadIfNeeded() const;
 
@@ -160,10 +152,4 @@ inline bool InsetInclude::isVerbatim() const
        return params_.flag == VERB || params_.flag == VERBAST;
 }
 
-
-inline bool InsetInclude::isIncludeOnly() const
-{
-       return params_.flag == INCLUDE && params_.noload;
-}
-
-#endif
+#endif // INSETINCLUDE_H