]> 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 b4525707f018f0b9128c1d3f6522a9dcc31c532b..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,43 +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;
-       ///
-       string const & type() const;
-       ///
-       LyXLength const & pageWidth() const;
-       ///
-       void pageWidth(LyXLength const &);
-       ///
-       void placement(string const & p);
-       ///
-       string const & placement() 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;
        ///
@@ -97,19 +85,18 @@ public:
        ///
        InsetWrapMailer(InsetWrap & inset);
        ///
-       virtual Inset & inset() const { return inset_; }
+       virtual InsetBase & inset() const { return inset_; }
        ///
        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 &);
        ///
-       static string const params2string(string const & name,
-                                         InsetWrapParams const &);
+       static string const params2string(InsetWrapParams const &);
 private:
        ///
-       string const name_;
+       static string const name_;
        ///
        InsetWrap & inset_;
 };