]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetOptArg.h
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / src / insets / InsetOptArg.h
index 38e92d9f3d5e2e1f4609ad54350afae95bcf23ef..6bdf40093df912f8dd30afde40fbefde489cb994 100644 (file)
@@ -23,10 +23,16 @@ namespace lyx {
  * InsetOptArg. Used to insert a short version of sectioning header etc.
  * automatically, or other optional LaTeX arguments
  */
-class InsetOptArg : public InsetCollapsable {
+class InsetOptArg : public InsetCollapsable
+{
 public:
-       InsetOptArg(BufferParams const &);
+       ///
+       InsetOptArg(Buffer const &);
 
+       /// Outputting the optional parameter of a LaTeX command
+       int latexOptional(odocstream &, OutputParams const &) const;
+
+private:
        /// code of the inset
        InsetCode lyxCode() const { return OPTARG_CODE; }
        ///
@@ -41,17 +47,13 @@ public:
        /// Standard DocBook output -- short-circuited
        int docbook(odocstream &, OutputParams const &) const;
 
-       /// Outputting the optional parameter of a LaTeX command
-       int latexOptional(odocstream &, OutputParams const &) const;
        /// Write out to the .lyx file
        void write(std::ostream & os) const;
 
        /// should paragraph indendation be ommitted in any case?
        bool neverIndent() const { return true; }
-protected:
-       InsetOptArg(InsetOptArg const &);
-private:
-       Inset * clone() const;
+       ///
+       Inset * clone() const { return new InsetOptArg(*this); }
 };