X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetLine.h;h=8285045ec56ac77a8bece1a9053e10f6e3bc46dc;hb=860accd01fb8115ec7c6ad80b054f1046e19c62f;hp=cc5ce9bc7f3c160c4b9f1be0922a3a4708c357a3;hpb=3b512d591511c5cbb2f76bbbc53a825ddf0cad67;p=lyx.git diff --git a/src/insets/InsetLine.h b/src/insets/InsetLine.h index cc5ce9bc7f..8285045ec5 100644 --- a/src/insets/InsetLine.h +++ b/src/insets/InsetLine.h @@ -4,6 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * + * \author Abdelrazak Younes * \author André Pönitz * \author Uwe Stöhr * @@ -30,7 +31,7 @@ public: //@{ docstring screenLabel() const; static ParamInfo const & findInfo(std::string const &); - static std::string defaultCommand() { return "rule"; }; + static std::string defaultCommand() { return "rule"; } static bool isCompatibleCommand(std::string const & s) { return s == "rule"; } //@} @@ -47,8 +48,9 @@ private: bool hasSettings() const { return true; } void metrics(MetricsInfo &, Dimension &) const; void draw(PainterInfo & pi, int x, int y) const; - int latex(odocstream &, OutputParams const &) const; - int plaintext(odocstream &, OutputParams const &) const; + 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); }