]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
ws changes only
[lyx.git] / src / insets / insetminipage.h
index dafcc0b1a677423afce2e8700994c52fc52b51f6..e484b3bf441a05f24354fc4cce7c89f741d6dca2 100644 (file)
@@ -7,7 +7,7 @@
  * \author Jürgen Vigna
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSETMINIPAGE_H
@@ -62,24 +62,22 @@ public:
        ///
        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);
        ///
-       InsetBase * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
-       Inset::Code lyxCode() const { return Inset::MINIPAGE_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::MINIPAGE_CODE; }
        ///
-       int latex(Buffer const *, std::ostream &,
+       int latex(Buffer const &, std::ostream &,
                  LatexRunParams const &) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
-       bool insetAllowed(Inset::Code) const;
-       ///
-       bool needFullRow() const { return false; }
+       bool insetAllowed(InsetOld::Code) const;
        /** returns true if, when outputing LaTeX, font changes should
            be closed before generating this inset. This is needed for
            insets that may contain several paragraphs */
@@ -108,16 +106,16 @@ public:
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string() const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static void string2params(string const &, InsetMinipage::Params &);
+       static void string2params(std::string const &, InsetMinipage::Params &);
        ///
-       static string const params2string(InsetMinipage::Params const &);
+       static std::string const params2string(InsetMinipage::Params const &);
 private:
        ///
-       static string const name_;
+       static std::string const name_;
        ///
        InsetMinipage & inset_;
 };