]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetoptarg.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetoptarg.h
index 60828016c25003a78e327fc15f0a5521c77da1f3..5521a56f4feda2643420961a28d265b4fe120b86 100644 (file)
@@ -24,24 +24,37 @@ class InsetOptArg : public InsetCollapsable {
 public:
        InsetOptArg(BufferParams const &);
 
-       InsetOptArg(InsetOptArg const &);
-       /// make a duplicate of this inset
-       virtual std::auto_ptr<InsetBase> clone() const;
-       /// this inset is editable
-       EDITABLE editable() const { return IS_EDITABLE; }
        /// code of the inset
-       InsetOld::Code lyxCode() const { return InsetOld::OPTARG_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::OPTARG_CODE; }
        /// return an message upon editing
        std::string const editMessage() const;
 
        /// Standard LaTeX output -- short-circuited
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
+       /// Standard DocBook output -- short-circuited
+       int docbook(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
+       /// Standard LinuxDoc output -- short-circuited
+       int linuxdoc(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
+
+       /// Standard plain text output -- short-circuited
+       int plaintext(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
+
        /// Outputting the optional parameter of a LaTeX command
        int latexOptional(Buffer const &, std::ostream &,
                          OutputParams const &) const;
        /// Write out tothe .lyx file
        void write(Buffer const & buf, std::ostream & os) const;
+
+       /// should paragraph indendation be ommitted in any case?
+       virtual bool neverIndent() const { return true; }
+protected:
+       InsetOptArg(InsetOptArg const &);
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif // INSETOPTARG_H