]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.h
Fix SIGSEGV when introducing a new shortcut (#9869)
[lyx.git] / src / Encoding.h
index f1513c8f625ff85ec95c4de6d30b0cd47a40b27b..aac632e6dad7d812cf805dc47886f00cde87aac1 100644 (file)
@@ -52,6 +52,8 @@ enum CharInfoFlags {
        CharInfoMathNoTermination = 32,
        ///
        CharInfoForceSelected = 64,
+       ///
+       CharInfoDeprecated = 128
 };
 
 
@@ -86,6 +88,8 @@ public:
        bool force() const { return flags_ & CharInfoForce ? true : false; }
        /// Force the LaTeX command for some encodings?
        bool forceselected() const { return flags_ & CharInfoForceSelected ? true : false; }
+       /// Disable LaTeX command => char_type conversion for this deprecated symbol?
+       bool deprecated() const { return flags_ & CharInfoDeprecated ? true : false; }
        /// TIPA shortcut
        std::string const tipashortcut() const { return tipashortcut_; }
        /// \c textcommand needs no termination (such as {} or space).