]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcollapsable.h
Make it compile when USE_BOOST_FORMAT is unset
[lyx.git] / src / insets / insetcollapsable.h
index e7f496e5f8bd83e4af0dce736c9edc1ad8133e39..763804af9e48a0ba94b1aa7ec6f78d6fab86e828 100644 (file)
@@ -1,15 +1,16 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file insetcollapsable.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Alejandro Aguilar Sierra
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
  *
- *           Copyright 2000-2001 The LyX Team.
- *
- *======================================================
+ * Full author contact details are available in file CREDITS
  */
 
-
 #ifndef INSETCOLLAPSABLE_H
 #define INSETCOLLAPSABLE_H
 
@@ -60,7 +61,7 @@ public:
        ///
        void update(BufferView *, LyXFont const &, bool =false);
        ///
-       void edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, mouse_button::state);
        ///
        void edit(BufferView *, bool front = true);
        ///
@@ -89,16 +90,7 @@ public:
        ///
        int insetInInsetY() const;
        ///
-       bool insetButtonRelease(BufferView *, int, int, int);
-       ///
-       void insetButtonPress(BufferView *, int, int, int);
-       ///
-       void insetMotionNotify(BufferView *, int, int, int);
-       ///
-       void insetKeyPress(XKeyEvent *);
-       ///
-       UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
-                                            string const &);
+       RESULT localDispatch(FuncRequest const &);
        ///
        int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
@@ -107,7 +99,7 @@ public:
        ///
        int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int docbook(Buffer const *, std::ostream &) const;
+       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///
@@ -178,11 +170,14 @@ public:
        void close(BufferView *) const;
        ///
        bool allowSpellcheck() { return inset.allowSpellcheck(); }
-       string const selectNextWordToSpellcheck(BufferView *, float &) const;
-
+       ///
+       WordLangTuple const
+       selectNextWordToSpellcheck(BufferView *, float &) const;
+       ///
        void selectSelectedWord(BufferView * bv) {
                inset.selectSelectedWord(bv);
        }
+       ///
        void toggleSelection(BufferView * bv, bool kill_selection) {
                inset.toggleSelection(bv, kill_selection);
        }
@@ -192,6 +187,9 @@ public:
        bool searchBackward(BufferView * bv, string const & str,
                            bool = true, bool = false);
 
+       ///
+       void addPreview(grfx::PreviewLoader &) const;
+
 protected:
        ///
        int ascent_collapsed() const;
@@ -226,6 +224,13 @@ protected:
        mutable UpdateCodes need_update;
 
 private:
+       ///
+       void lfunMousePress(FuncRequest const &);
+       ///
+       bool lfunMouseRelease(FuncRequest const &);
+       ///
+       void lfunMouseMotion(FuncRequest const &);
+
        ///
        mutable string label;
 #if 0