Exemple #1
0
 def __init__(self, fbase=None, fkey=None, lineh=None, unfloat=False,
              untable=False, page_break_on_body=False, specializer=None,
              transform_css_rules=()):
     self.fbase = fbase
     self.transform_css_rules = transform_css_rules
     if self.transform_css_rules:
         from calibre.ebooks.css_transform_rules import compile_rules
         self.transform_css_rules = compile_rules(self.transform_css_rules)
     self.fkey = fkey
     self.lineh = lineh
     self.unfloat = unfloat
     self.untable = untable
     self.specializer = specializer
     self.page_break_on_body = page_break_on_body
Exemple #2
0
 def compile_rules(self, rules):
     return compile_rules(rules)
Exemple #3
0
 def __init__(self, rules, parent=None):
     self.rules = compile_rules(rules)
     Dialog.__init__(self,
                     self.DIALOG_TITLE,
                     self.PREFS_NAME,
                     parent=parent)
 def __init__(self, rules, parent=None):
     self.rules = compile_rules(rules)
     Dialog.__init__(self, self.DIALOG_TITLE, self.PREFS_NAME, parent=parent)