explicit InsetText(BufferParams const &);
///
InsetText();
+ ///
+ virtual ~InsetText() {}
+
/// empty inset to empty par
void clear();
///
///
void write(Buffer const & buf, std::ostream & os) const;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ bool metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo & pi, int x, int y) const;
/// draw inset selection
return (i == 0) ? const_cast<LyXText*>(&text_) : 0;
}
///
- bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ virtual bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus &) const;
/// set the change for the entire inset
void setChange(Change const & change);
/// accept the changes within the inset
- void acceptChanges();
+ void acceptChanges(BufferParams const & bparams);
/// reject the changes within the inset
- void rejectChanges();
+ void rejectChanges(BufferParams const & bparams);
/// append text onto the existing text
void appendParagraphs(Buffer * bp, ParagraphList &);
///
InsetText(InsetText const &);
///
- bool Wide() const { return wide_inset_; }
+ virtual bool wide() const { return wide_inset_; }
///
void setWide(bool wide_inset) { wide_inset_ = wide_inset; }
///
mutable pit_type old_pit;
///
- static int border_;
- ///
bool wide_inset_;
public:
///
mutable LyXText text_;
///
mutable LyXFont font_;
+ ///
+ static int border_;
};
} // namespace lyx