// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
+/**
+ * \file insetert.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * Copyright 1998 The LyX Team.
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
*
- *======================================================
+ * Full author contact details are available in file CREDITS
*/
-// The pristine updatable inset: Text
-
#ifndef INSETERT_H
#define INSETERT_H
#endif
#include "insetcollapsable.h"
-#include <sigc++/signal_system.h>
+
+#include <boost/signals/signal0.hpp>
/** A collapsable text inset for LaTeX insertions.
-
+
To write full ert (including styles and other insets) in a given
space.
Note that collapsed_ encompasses both the inline and collapsed button
- versions of this inset.
+ versions of this inset.
*/
class Language;
bool insetAllowed(Inset::Code) const { return false; }
///
void setFont(BufferView *, LyXFont const &,
- bool toggleall = false, bool selectall = false);
+ bool toggleall = false, bool selectall = false);
///
- void edit(BufferView *, int, int, unsigned int);
+ void edit(BufferView *, int, int, mouse_button::state);
///
void edit(BufferView * bv, bool front = true);
///
EDITABLE editable() const;
///
- SigC::Signal0<void> hideDialog;
- ///
- void insetButtonPress(BufferView *, int x, int y, int button);
- ///
- bool insetButtonRelease(BufferView * bv, int x, int y, int button);
- ///
- void insetMotionNotify(BufferView *, int x, int y, int state);
+ boost::signal0<void> hideDialog;
///
int latex(Buffer const *, std::ostream &, bool fragile,
bool free_spc) const;
///
int ascii(Buffer const *,
- std::ostream &, int linelen = 0) const;
+ std::ostream &, int linelen = 0) 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 &) const {}
///
- UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
- string const &);
+ RESULT localDispatch(FuncRequest const &);
///
bool checkInsertChar(LyXFont &);
///
void close(BufferView *) const;
///
bool allowSpellcheck() { return false; }
- string const selectNextWordToSpellcheck(BufferView *, float &) const;
+
+ WordLangTuple const
+ selectNextWordToSpellcheck(BufferView *, float &) const;
///
int ascent(BufferView *, LyXFont const &) const;
///
bool forceDefaultParagraphs(Inset const *) const {
return true;
}
+ ///
+ int getMaxWidth(BufferView *, UpdatableInset const *) const;
+ ///
+ void update(BufferView *, LyXFont const &, bool =false);
private:
+ ///
+ void lfunMousePress(FuncRequest const &);
+ ///
+ // the bool return is used to see if we opened a dialog so that we can
+ // check this from an outer inset and open the dialog of the outer inset
+ // if that one has one!
+ ///
+ bool lfunMouseRelease(FuncRequest const &);
+ ///
+ void lfunMouseMotion(FuncRequest const &);
///
void init();
///