*/
class InsetText : public UpdatableInset {
public:
- ///
- enum DrawFrame {
- ///
- NEVER = 0,
- ///
- LOCKED,
- ///
- ALWAYS
- };
///
explicit InsetText(BufferParams const &);
///
+ explicit InsetText();
+ ///
InsetText(InsetText const &);
///
virtual std::auto_ptr<InsetBase> clone() const;
OutputParams const &) const;
///
int linuxdoc(Buffer const &, std::ostream &,
- OutputParams const &) const ;
+ OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &,
- OutputParams const &) const ;
+ OutputParams const &) const;
///
void validate(LaTeXFeatures & features) const;
///
InsetOld::Code lyxCode() const { return InsetOld::TEXT_CODE; }
/// FIXME, document
- void getCursorPos(CursorSlice const & cur, int & x, int & y) const;
+ void getCursorPos(LCursor const & cur, int & x, int & y) const;
///
void setFont(BufferView *, LyXFont const &,
bool toggleall = false,
///
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; }
///
- ParagraphList & paragraphs() const;
+ ParagraphList & paragraphs();
+ ///
+ ParagraphList const & paragraphs() const;
///
bool insetAllowed(Code) const { return true; }
-
+ ///
+ bool allowSpellCheck() const { return true; }
+
protected:
///
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
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.
*/