Preferences/PreferencesLexer.py

branch
sub_styles
changeset 6864
7837ab17f079
parent 6861
20899dc18e59
child 6866
b792455b35cd
--- 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)

eric ide

mercurial