]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetwrap.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetwrap.h
index f53691d2fea399c56655d63123960053b49e73b7..4e78a2d634ec368ad643a2b068af0231a25781de 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file insetwrap.h
  * This file is part of LyX, the document processor.
@@ -5,7 +6,7 @@
  *
  * \author Dekel Tsur
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef InsetWrap_H
@@ -22,7 +23,7 @@ struct InsetWrapParams {
        void write(std::ostream &) const;
        ///
        void read(LyXLex &);
-    
+
        ///
        string type;
        ///
@@ -39,33 +40,30 @@ public:
        ///
        InsetWrap(BufferParams const &, string const &);
        ///
-       InsetWrap(InsetWrap const &, bool same_id = false);
-       ///
        ~InsetWrap();
        ///
-       virtual dispatch_result localDispatch(FuncRequest const & cmd); 
+       virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       void write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const & buf, std::ostream & os) const;
        ///
-       void read(Buffer const * buf, LyXLex & lex);
+       void read(Buffer const & buf, LyXLex & lex);
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       Inset * clone(Buffer const &, bool same_id = false) const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       Inset::Code lyxCode() const { return Inset::WRAP_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::WRAP_CODE; }
        ///
-       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int latex(Buffer const &, std::ostream &,
+                 LatexRunParams const &) const;
        ///
-       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
+       int docbook(Buffer const &, std::ostream &, bool mixcont) const;
        ///
        string const editMessage() const;
        ///
-       bool insetAllowed(Inset::Code) const;
-       ///
-       int getMaxWidth(BufferView *, UpdatableInset const *) const;
+       bool insetAllowed(InsetOld::Code) const;
        ///
-       void addToToc(toc::TocList &, Buffer const *) const;
+       void addToToc(lyx::toc::TocList &, Buffer const &) const;
        ///
        bool  showInsetDialog(BufferView *) const;
        ///
@@ -91,7 +89,7 @@ public:
        ///
        virtual string const & name() const { return name_; }
        ///
-       virtual string const inset2string() const;
+       virtual string const inset2string(Buffer const &) const;
        ///
        static void string2params(string const &, InsetWrapParams &);
        ///