//
enum { TEXT_TO_INSET_OFFSET = 4 };
- /// Signal for inset destruction.
- /** This signal is emitted at the inset destruction for insets that
- * support this.
- */
- virtual boost::signal<void()> * destroyedSignal() { return 0; }
-
protected:
Inset();
explicit InsetText(BufferParams const &);
///
InsetText();
- ///
- virtual ~InsetText() { destroyed(); }
/// empty inset to empty par
void clear();
virtual bool wide() const { return wide_inset_; }
///
void setWide(bool wide_inset) { wide_inset_ = wide_inset; }
- ///
- boost::signal<void()> * destroyedSignal() { return &destroyed; }
protected:
///
mutable pit_type old_pit;
///
bool wide_inset_;
- /// This signal is emitted when the inset is destroyed.
- boost::signal<void()> destroyed;
public:
///
/// nestinsets have a fixed size to start with
explicit InsetMathNest(idx_type ncells);
///
- virtual ~InsetMathNest() { destroyed(); }
+ virtual ~InsetMathNest() {}
/// the size is usually some sort of convex hull of the cells
/// hides inset::metrics() intentionally!
///
int latex(Buffer const &, odocstream & os,
OutputParams const & runparams) const;
-
- /// This signal is emitted when the inset is destroyed.
- boost::signal<void()> * destroyedSignal() { return &destroyed; }
-
///
bool setMouseHover(bool mouse_hover);
///
bool lock_;
///
bool mouse_hover_;
-
-private:
- /// This signal is emitted when the inset is destroyed.
- boost::signal<void()> destroyed;
};