*/
class InsetText : public UpdatableInset {
public:
- ///
- enum DrawFrame {
- ///
- NEVER = 0,
- ///
- LOCKED,
- ///
- ALWAYS
- };
///
explicit InsetText(BufferParams const &);
///
///
bool getAutoBreakRows() const { return autoBreakRows_; }
///
- void setDrawFrame(DrawFrame);
+ void setDrawFrame(bool);
///
LColor_color frameColor() const;
///
///
void edit(LCursor & cur, bool left);
///
- InsetBase * editXY(LCursor & cur, int x, int y);
+ InsetBase * editXY(LCursor & cur, int x, int y) const;
/// number of cells in this inset
size_t nargs() const { return 1; }
void updateLocal(LCursor &);
///
void init();
- // If the inset is empty set the language of the current font to the
- // language to the surronding text (if different).
- void sanitizeEmptyText(BufferView &);
///
void setCharFont(Buffer const &, int pos, LyXFont const & font);
///
///
bool autoBreakRows_;
///
- DrawFrame drawFrame_;
+ bool drawFrame_;
/** We store the LColor::color value as an int to get LColor.h out
* of the header file.
*/