]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpecialChar.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetSpecialChar.h
index bd93bce1c3c41e0def76aa41d55c64e1f44e88fa..8103cb21a058aa546bb80cc973789446e33f69fd 100644 (file)
@@ -38,6 +38,10 @@ public:
                END_OF_SENTENCE,
                /// Menu separator
                MENU_SEPARATOR,
+               /// breakable slash
+               SLASH,
+               /// protected dash
+               NOBREAKDASH,
        };
 
        ///
@@ -48,7 +52,7 @@ public:
        ///
        Kind kind() const;
        ///
-       bool metrics(MetricsInfo &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -65,10 +69,9 @@ public:
        int docbook(Buffer const &, odocstream &,
                    OutputParams const &) const;
        /// the string that is passed to the TOC
-       virtual int textString(Buffer const &, odocstream &,
-               OutputParams const &) const;
+       void textString(Buffer const &, odocstream &) const;
        ///
-       Inset::Code lyxCode() const { return Inset::SPECIALCHAR_CODE; }
+       InsetCode lyxCode() const { return SPECIALCHAR_CODE; }
        /// We don't need \begin_inset and \end_inset
        bool directWrite() const { return true; }
        ///