InsetText(BufferParams const &);
///
explicit
- InsetText(InsetText const &, bool same_id = false);
+ InsetText(InsetText const &);
///
~InsetText();
///
- Inset * clone(Buffer const &, bool same_id = false) const;
+ Inset * clone() const;
///
InsetText & operator=(InsetText const & it);
/// empty inset to empty par, or just mark as erased
///
void write(Buffer const *, std::ostream &) const;
///
- void dimension(BufferView *, LyXFont const &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const;
///
int textWidth(BufferView *, bool fordraw = false) const;
///
- void draw(BufferView *, LyXFont const &, int , float &) const;
+ void draw(PainterInfo & pi, int x, int y) const;
///
void update(BufferView *, bool = false);
///
///
int getMaxWidth(BufferView *, UpdatableInset const *) const;
///
- void init(InsetText const * ins = 0, bool same_id = false);
+ void init(InsetText const * ins);
///
void writeParagraphData(Buffer const *, std::ostream &) const;
///
- void setParagraphData(ParagraphList const &, bool same_id = false);
+ void setParagraphData(ParagraphList const &);
///
void setText(string const &, LyXFont const &);
///
mutable boost::shared_ptr<LyXText> cached_text;
///
struct save_state {
- Paragraph * lpar;
- Paragraph * selstartpar;
- Paragraph * selendpar;
+ ParagraphList::iterator lpar;
+ ParagraphList::iterator selstartpar;
+ ParagraphList::iterator selendpar;
lyx::pos_type pos;
lyx::pos_type selstartpos;
lyx::pos_type selendpos;