Example #1
0
 def __init__(self, styleContext):
     ZModelWithNoneValueAttributes.__init__(self)
     # styleContext: instance of IZXHTMLEditControlStyleContext
     self.fontName = None
     self.fontSize = None
     self.setFontInfo(styleContext.getFontInfo())
     self.cssColor = styleContext.getColor()
     self.cssBgColor = styleContext.getBackgroundColor()
Example #2
0
 def __init__(self, styleContext):
     ZModelWithNoneValueAttributes.__init__(self)
     # styleContext: instance of IZXHTMLEditControlStyleContext
     self.fontName = None
     self.fontSize = None
     self.setFontInfo( styleContext.getFontInfo() )
     self.cssColor = styleContext.getColor()
     self.cssBgColor = styleContext.getBackgroundColor()
Example #3
0
 def __init__(self, imageAttrMap):
     ZModelWithNoneValueAttributes.__init__(self)
     self.editMode = False
     if imageAttrMap is not None:
         self.editMode = True
         for (n,v) in imageAttrMap.iteritems():
             self.setAttribute(n,v)
     if not self.getAttribute(u"src"): #$NON-NLS-1$ 
         url = getUrlFromClipboard()
         if url:
             self.setAttribute(u"src", url) #$NON-NLS-1$