]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLine.h
Fix segfault after deleting monitor
[lyx.git] / src / insets / InsetLine.h
index cc5ce9bc7f3c160c4b9f1be0922a3a4708c357a3..f518297445dd1b70d0145246c1a215fe1dc15b24 100644 (file)
@@ -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"; }
        //@}
@@ -40,15 +41,15 @@ private:
        /// Inset inherited methods.
        //@{
        InsetCode lyxCode() const { return LINE_CODE; }
-       Dimension const dimension(BufferView const &) const;
        int docbook(odocstream &, OutputParams const &) const;
        /// Does nothing at the moment.
        docstring xhtml(XHTMLStream &, OutputParams const &) const;
        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); }