-
- int latex(Buffer const &, odocstream &,
- OutputParams const &) const;
-
- int plaintext(Buffer const &, odocstream &,
- OutputParams const &) const;
-
- int docbook(Buffer const &, odocstream &,
- OutputParams const &) const;
-
- void read(Buffer const &, LyXLex & lex);
-
- void write(Buffer const & buf, std::ostream & os) const;
- /// We don't need \begin_inset and \end_inset
- bool directWrite() const { return true; }
-
- bool display() const { return true; }
- ///
- void validate(LaTeXFeatures & features) const;
-private:
- virtual std::auto_ptr<InsetBase> doClone() const
- {
- return std::auto_ptr<InsetBase>(new InsetLine);
- }
+ void latex(otexstream &, OutputParams const &) const;
+ int plaintext(odocstringstream & ods, OutputParams const & op,
+ size_t max_length = INT_MAX) const;
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ Inset * clone() const { return new InsetLine(*this); }
+ //@}
+
+ /// cached line height and offset.
+ /// These value are independent of the BufferView size and thus
+ /// can be shared between views.
+ //@{
+ mutable int height_;
+ mutable int offset_;
+ //@}