// -*- 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
///
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);
///
///
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;
///
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;
///
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);
}
bool searchBackward(BufferView * bv, string const & str,
bool = true, bool = false);
+ ///
+ void addPreview(grfx::PreviewLoader &) const;
+
protected:
///
int ascent_collapsed() const;
mutable UpdateCodes need_update;
private:
+ ///
+ void lfunMousePress(FuncRequest const &);
+ ///
+ bool lfunMouseRelease(FuncRequest const &);
+ ///
+ void lfunMouseMotion(FuncRequest const &);
+
///
mutable string label;
#if 0