diff -r e900929889dd -r 7837ab17f079 Preferences/PreferencesLexer.py --- a/Preferences/PreferencesLexer.py Sat Mar 16 14:11:43 2019 +0100 +++ b/Preferences/PreferencesLexer.py Sat Mar 16 18:38:01 2019 +0100 @@ -467,6 +467,17 @@ return ok + def isBaseStyle(self, style): + """ + Public method to test, if a given style may have sub-styles. + + @param style base style number + @type int + @return flag indicating that the style may have sub-styles + @rtype bool + """ + return self.__lex.hasSubstyles() and self.__lex.isBaseStyle(style) + def addSubstyle(self, style): """ Public method to add an empty sub-style to a given style. @@ -477,3 +488,16 @@ @rtype int """ return self.__lex.addSubstyle(style) + + def delSubstyle(self, style, substyle): + """ + Public method to delete a given sub-style definition. + + @param style base style number + @type int + @param substyle sub-style number + @type int + @return flag indicating successful deletion + @rtype bool + """ + return self.__lex.delSubstyle(style, substyle)