+2001-11-22 Allan Rae <rae@lyx.org>
+
+ * insetcollapsable.h:
+ * inset.h: Changes to checkInsertChar() behaviour.
+ Now return value indicates whether chars can be inserted.
+
2001-11-11 Michael A. Koziarski <michael@koziarski.org>
* various: updated to use the new LaTeXFeatures
inline
bool Inset::checkInsertChar(LyXFont &)
{
- return true;
+ return false;
}
// Updatable Insets. These insets can be locked and receive
///
UpdatableInset(UpdatableInset const & in, bool same_id = false);
+ /// check if the font of the char we want inserting is correct
+ /// and modify it if it is not.
+ virtual bool checkInsertChar(LyXFont &);
///
virtual EDITABLE editable() const;
mutable bool block_drawing_;
};
+inline
+bool UpdatableInset::checkInsertChar(LyXFont &)
+{
+ return true;
+}
+
/**
* returns true if pointer argument is valid
* and points to an editable inset
bool const & cs = true, bool const & mw = false);
bool searchBackward(BufferView * bv, string const & str,
bool const & cs = true, bool const & mw = false);
- /// check if the font of the char we want inserting is correct
- /// and modify it if it is not.
- virtual bool checkInsertChar(LyXFont &) { return false; }
protected:
///