X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetpagebreak.h;h=57bb3b35f20d1dafce3f9d72307bc7c0c5c46b18;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=3f4c78e469eef6e240c2035a0a8c459a4653e04b;hpb=7b031e5d866f7193c6fedb19c16321f25c89067b;p=lyx.git diff --git a/src/insets/insetpagebreak.h b/src/insets/insetpagebreak.h index 3f4c78e469..57bb3b35f2 100644 --- a/src/insets/insetpagebreak.h +++ b/src/insets/insetpagebreak.h @@ -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