]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPagebreak.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetPagebreak.h
index 8a8896d334153eb4e07a92a6a4b78e11cd0d9ae7..d361039d2d463a7488e0c7c9e085bb82d63f22f2 100644 (file)
@@ -30,13 +30,13 @@ public:
        void draw(PainterInfo & pi, int x, int y) const;
 
        int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+                 OutputParams const &) const;
 
        int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+                     OutputParams const &) const;
 
        int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+                   OutputParams const &) const;
 
        void read(Buffer const &, Lexer & lex);
 
@@ -44,16 +44,16 @@ public:
        /// We don't need \begin_inset and \end_inset
        bool directWrite() const { return true; }
 
-       bool display() const { return true; }
+       DisplayType display() const { return AlignCenter; }
 
        virtual docstring insetLabel() const { return _("Page Break"); }
 
        virtual std::string getCmdName() const { return "\\newpage"; }
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const
+       virtual Inset * clone() const
        {
-               return std::auto_ptr<Inset>(new InsetPagebreak);
+               return new InsetPagebreak;
        }
 };
 
@@ -63,13 +63,13 @@ public:
        InsetClearPage() {}
 
        docstring insetLabel() const { return _("Clear Page"); }
-       
+
        std::string getCmdName() const { return "\\clearpage"; }
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const
+       virtual Inset * clone() const
        {
-               return std::auto_ptr<Inset>(new InsetClearPage);
+               return new InsetClearPage;
        }
 };
 
@@ -79,13 +79,13 @@ public:
        InsetClearDoublePage() {}
 
        docstring insetLabel() const { return _("Clear Double Page"); }
-       
+
        std::string getCmdName() const { return "\\cleardoublepage"; }
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const
+       virtual Inset * clone() const
        {
-               return std::auto_ptr<Inset>(new InsetClearDoublePage);
+               return new InsetClearDoublePage;
        }
 };