]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.h
Circumvent odd stmary font metrics (part of #9990).
[lyx.git] / src / insets / InsetCommand.h
index 3ea57c98dc3ade79ca92ebfad310aaa20ce08a5e..1be72a8ec856db9c0e55c221dd2d9e1b6d1c1868 100644 (file)
@@ -39,6 +39,8 @@ public:
        ///
        InsetCommand(InsetCommand const & rhs);
        ///
+       InsetCommand & operator=(InsetCommand const & rhs);
+       ///
        virtual ~InsetCommand();
        ///
        InsetCommand * asInsetCommand() { return this; }
@@ -66,7 +68,7 @@ public:
        ///
        void write(std::ostream & os) const { p_.write(os); }
        ///
-       void read(Lexer & lex) { p_.read(lex); }
+       void read(Lexer & lex) { p_.Read(lex, &buffer()); }
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
@@ -78,7 +80,8 @@ public:
        ///
        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 +94,7 @@ protected:
        /// \name Methods relaying to the InsetCommandParams p_
        //@{
        ///
-       docstring contextMenuName() const;
+       std::string contextMenuName() const;
        ///
        bool showInsetDialog(BufferView * bv) const;
        ///