]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetpagebreak.h
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / insetpagebreak.h
index bbcda7852249c38bfcce86acb5cb97ee7a7c095e..4c469e161c9cda37c44d0da68e056be2c0623519 100644 (file)
 
 #include "inset.h"
 
+
+namespace lyx {
+
 class InsetPagebreak : public InsetOld {
 public:
 
        InsetPagebreak() {}
 
-       std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetPagebreak);
-       }
-
-       InsetOld::Code lyxCode() const { return InsetOld::LINE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::LINE_CODE; }
 
        void metrics(MetricsInfo &, Dimension &) const;
 
        void draw(PainterInfo & pi, int x, int y) const;
 
-       int latex(Buffer const &, std::ostream &,
+       int latex(Buffer const &, odocstream &,
                  OutputParams const &) const;
 
-       int plaintext(Buffer const &, std::ostream &,
+       int plaintext(Buffer const &, odocstream &,
                  OutputParams const &) const;
 
-       int linuxdoc(Buffer const &, std::ostream &,
-                    OutputParams const &) const;
-
-       int docbook(Buffer const &, std::ostream &,
+       int docbook(Buffer const &, odocstream &,
                    OutputParams const &) const;
 
        void read(Buffer const &, LyXLex & lex);
@@ -49,6 +45,14 @@ public:
        bool directWrite() const { return true; }
 
        bool display() const { return true; }
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const
+       {
+               return std::auto_ptr<InsetBase>(new InsetPagebreak);
+       }
 };
 
+
+} // namespace lyx
+
 #endif // INSET_NEWLINE_H