///
explicit InsetText(InsetText const &);
///
- InsetBase * clone() const;
+ virtual std::auto_ptr<InsetBase> clone() const;
///
InsetText & operator=(InsetText const & it);
/// empty inset to empty par, or just mark as erased
///
void metrics(MetricsInfo &, Dimension &) const;
///
- int textWidth(BufferView *, bool fordraw = false) const;
+ int textWidth() const;
///
void draw(PainterInfo & pi, int x, int y) const;
///
- void update(BufferView *, bool = false);
- ///
- void setUpdateStatus(BufferView *, int what) const;
+ void setUpdateStatus(int what) const;
///
string const editMessage() const;
///
bool unlockInsetInInset(BufferView *,
UpdatableInset *, bool lr = false);
///
- bool updateInsetInInset(BufferView *, Inset *);
+ bool updateInsetInInset(BufferView *, InsetOld *);
///
RESULT localDispatch(FuncRequest const &);
///
///
int ascii(Buffer const *, std::ostream &, int linelen) const;
///
- int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+ int linuxdoc(Buffer const *, std::ostream &) const ;
///
int docbook(Buffer const *, std::ostream &, bool mixcont) const ;
///
void validate(LaTeXFeatures & features) const;
///
- Inset::Code lyxCode() const { return Inset::TEXT_CODE; }
+ InsetOld::Code lyxCode() const { return InsetOld::TEXT_CODE; }
/// FIXME, document
void getCursorPos(BufferView *, int & x, int & y) const;
/// Get the absolute document x,y of the cursor
///
void fitInsetCursor(BufferView *) const;
///
- bool insertInset(BufferView *, Inset *);
+ bool insertInset(BufferView *, InsetOld *);
///
- bool insetAllowed(Inset::Code) const;
+ bool insetAllowed(InsetOld::Code) const;
///
UpdatableInset * getLockingInset() const;
///
- UpdatableInset * getFirstLockingInsetOfType(Inset::Code);
+ UpdatableInset * getFirstLockingInsetOfType(InsetOld::Code);
///
void setFont(BufferView *, LyXFont const &,
bool toggleall = false,
bool selectall = false);
///
- int getMaxWidth(BufferView *, UpdatableInset const *) const;
- ///
void init(InsetText const * ins);
///
void writeParagraphData(Buffer const *, std::ostream &) const;
UpdatableInset::scroll(bv, offset);
}
///
- void selectAll(BufferView * bv);
- ///
void clearSelection(BufferView * bv);
///
- Inset * getInsetFromID(int id) const;
+ InsetOld * getInsetFromID(int id) const;
///
ParagraphList * getParagraphs(int) const;
///
///
void removeNewlines();
///
- int cx(BufferView *) const;
+ int cx() const;
///
- int cix(BufferView *) const;
+ int cix() const;
///
- int cy(BufferView *) const;
+ int cy() const;
///
- int ciy(BufferView *) const;
+ int ciy() const;
///
lyx::pos_type cpos() const;
///
///
void clearInset(BufferView *, int start_x, int baseline) const;
///
- void saveLyXTextState(LyXText *) const;
+ void saveLyXTextState() const;
///
- void restoreLyXTextState(LyXText *) const;
+ void restoreLyXTextState() const;
///
void collapseParagraphs(BufferView *);
///
mutable bool locked;
///
- mutable Dimension dim_;
- ///
mutable int top_y;
///
ParagraphList::iterator inset_par;
///
mutable int inset_y;
///
- mutable int old_max_width;
- ///
bool no_selection;
///
UpdatableInset * the_locking_inset;
mutable int frame_y;
mutable int frame_w;
mutable int frame_h;
- ///
- bool in_update; /* as update is not reentrant! */
mutable bool in_insetAllowed;
///
// these are used to check for mouse movement in Motion selection code
void reinitLyXText() const;
///
mutable LyXText text_;
+ ///
+ mutable int textwidth_;
};
#endif