]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.h
Correctly load documents moved elsewhere after save.
[lyx.git] / src / insets / InsetCommand.h
index 2d1d678a222878b0a1e731b44df70d1daea13ee5..c3b5005d2716580cf2474b41a09eb0fbbe2a2b53 100644 (file)
@@ -66,7 +66,7 @@ public:
        ///
        void write(std::ostream & os) const { p_.write(os); }
        ///
-       void read(Lexer & lex) { p_.read(lex); }
+       void read(Lexer & lex, Buffer const * buf) { p_.read(lex, buf); }
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
@@ -76,9 +76,10 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       int latex(odocstream &, OutputParams const &) const;
+       void latex(otexstream &, OutputParams const &) const;
        ///
-       int plaintext(odocstream &, OutputParams const &) const;
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
        ///
        int docbook(odocstream &, OutputParams const & runparams) const;
        ///
@@ -91,7 +92,7 @@ protected:
        /// \name Methods relaying to the InsetCommandParams p_
        //@{
        ///
-       docstring contextMenu(BufferView const & bv, int x, int y) const;
+       std::string contextMenuName() const;
        ///
        bool showInsetDialog(BufferView * bv) const;
        ///