]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetpagebreak.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetpagebreak.h
index 7d5ec6139c920948a5b0715469364740b472b8f3..758e6f229223e4030fddb44e1b70b17980118c2e 100644 (file)
@@ -14,6 +14,7 @@
 
 
 #include "inset.h"
+#include "gettext.h"
 
 
 namespace lyx {
@@ -22,20 +23,20 @@ class InsetPagebreak : public InsetOld {
 public:
        InsetPagebreak() {}
 
-       InsetBase::Code lyxCode() const { return InsetBase::LINE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::PAGEBREAK_CODE; }
 
-       void metrics(MetricsInfo &, Dimension &) const;
+       bool metrics(MetricsInfo &, Dimension &) const;
 
        void draw(PainterInfo & pi, int x, int y) const;
 
-       virtual int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+       int latex(Buffer const &, odocstream &,
+                 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 &, LyXLex & lex);
 
@@ -45,7 +46,7 @@ public:
 
        bool display() const { return true; }
 
-       virtual std::string insetLabel() const { return "Page Break"; }
+       virtual docstring insetLabel() const { return _("Page Break"); }
 
        virtual std::string getCmdName() const { return "\\newpage"; }
 
@@ -61,7 +62,7 @@ class InsetClearPage : public InsetPagebreak {
 public:
        InsetClearPage() {}
 
-       std::string insetLabel() const { return "Clear Page"; }
+       docstring insetLabel() const { return _("Clear Page"); }
        
        std::string getCmdName() const { return "\\clearpage"; }
 
@@ -77,7 +78,7 @@ class InsetClearDoublePage : public InsetPagebreak {
 public:
        InsetClearDoublePage() {}
 
-       std::string insetLabel() const { return "Clear Double Page"; }
+       docstring insetLabel() const { return _("Clear Double Page"); }
        
        std::string getCmdName() const { return "\\cleardoublepage"; }