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
void drawSelection(PainterInfo & pi, int x, int y) const;
/// are we inside the area covered by the inset?
- virtual bool covers(BufferView & bv, int x, int y) const;
+ virtual bool covers(BufferView const & bv, int x, int y) const;
///
virtual docstring const editMessage() const;
///
///
void setFrameColor(LColor_color);
///
- void setViewCache(BufferView const * bv) const;
- ///
bool showInsetDialog(BufferView *) const;
///
LyXText * getText(int i) const {
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(BufferParams const & bparams);
+ /// reject the changes within the inset
+ void rejectChanges(BufferParams const & bparams);
/// append text onto the existing text
void appendParagraphs(Buffer * bp, ParagraphList &);
///
bool allowSpellCheck() const { return true; }
/// should paragraph indendation be ommitted in any case?
- bool neverIndent() const;
+ bool neverIndent(Buffer const &) const;
///
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; }
protected:
///
///
mutable pit_type old_pit;
///
- static int border_;
- ///
- mutable bool wide_inset_;
+ bool wide_inset_;
public:
///
mutable LyXText text_;
///
mutable LyXFont font_;
+ ///
+ static int border_;
};
} // namespace lyx