]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.h
Make it compile when USE_BOOST_FORMAT is unset
[lyx.git] / src / insets / insetindex.h
index 5182e5684c564cd81cb2598ed1143e56d52cf133..4303466789f78b4d636ef127373c9f95e68d66ab 100644 (file)
@@ -1,13 +1,13 @@
 // -*- C++ -*-
-/* This file is part of*
- * ====================================================== 
+/**
+ * \file insetindex.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
- *      
- *         Copyright 1995 Matthias Ettrich
- *          Copyright 1996-2001 the LyX Team.
- * 
- * ====================================================== */
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef INSET_INDEX_H
 #define INSET_INDEX_H
@@ -20,7 +20,7 @@
 
 struct LaTeXFeatures;
 
-/** Used to insert index labels  
+/** Used to insert index labels
   */
 class InsetIndex : public InsetCommand {
 public:
@@ -31,13 +31,17 @@ public:
                return new InsetIndex(params(), same_id);
        }
        ///
-       string const getScreenLabel() const;
+       string const getScreenLabel(Buffer const *) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       void edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, mouse_button::state);
        ///
        void edit(BufferView * bv, bool front = true);
+       ///
+       Inset::Code lyxCode() const;
+       ///
+       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
 };
 
 
@@ -52,17 +56,19 @@ public:
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
-       void edit(BufferView *, int, int, unsigned int) {}
+       void edit(BufferView *, int, int, mouse_button::state) {}
        ///
-       void edit(BufferView * bv, bool front = true) {}
+       void edit(BufferView *, bool = true) {}
        ///
-       EDITABLE editable() const{ return NOT_EDITABLE; }
+       EDITABLE editable() const { return NOT_EDITABLE; }
        ///
        bool display() const { return true; }
        ///
        Inset::Code lyxCode() const;
        ///
-       string const getScreenLabel() const;
+       string const getScreenLabel(Buffer const *) const;
+       ///
+       virtual bool needFullRow() const { return true; }
 };
 
 #endif