X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetOptArg.h;h=0f12d369b56e2de3721de169801592c15313fe89;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=d12eb75a9c026c5ec05778074fb8c1693c228ad8;hpb=c8d00ed1272cd489041bed2115081008b6a26489;p=lyx.git diff --git a/src/insets/InsetOptArg.h b/src/insets/InsetOptArg.h index d12eb75a9c..0f12d369b5 100644 --- a/src/insets/InsetOptArg.h +++ b/src/insets/InsetOptArg.h @@ -28,21 +28,21 @@ public: InsetOptArg(BufferParams const &); /// code of the inset - InsetBase::Code lyxCode() const { return InsetBase::OPTARG_CODE; } + InsetCode lyxCode() const { return OPTARG_CODE; } + /// + docstring name() const { return from_ascii("OptArg"); } /// return an message upon editing virtual docstring const editMessage() const; - /// - virtual bool wide() const { return false; } /// Standard LaTeX output -- short-circuited int latex(Buffer const &, odocstream &, - OutputParams const &) const; + OutputParams const &) const; /// Standard plain text output -- short-circuited int plaintext(Buffer const &, odocstream &, - OutputParams const &) const; + OutputParams const &) const; /// Standard DocBook output -- short-circuited int docbook(Buffer const &, odocstream &, - OutputParams const &) const; + OutputParams const &) const; /// Outputting the optional parameter of a LaTeX command int latexOptional(Buffer const &, odocstream &, @@ -55,7 +55,7 @@ public: protected: InsetOptArg(InsetOptArg const &); private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; };