]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetpagebreak.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetpagebreak.h
index 3f4c78e469eef6e240c2035a0a8c459a4653e04b..57bb3b35f20d1dafce3f9d72307bc7c0c5c46b18 100644 (file)
@@ -14,6 +14,7 @@
 
 
 #include "inset.h"
+#include "gettext.h"
 
 
 namespace lyx {
@@ -24,7 +25,7 @@ public:
 
        InsetBase::Code lyxCode() const { return InsetBase::LINE_CODE; }
 
-       void metrics(MetricsInfo &, Dimension &) const;
+       bool metrics(MetricsInfo &, Dimension &) const;
 
        void draw(PainterInfo & pi, int x, int y) const;
 
@@ -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"; }
 
@@ -90,4 +91,4 @@ private:
 
 } // namespace lyx
 
-#endif // INSET_NEWLINE_H
+#endif // INSET_PAGEBREAK_H