Beispiel #1
0
    def _renderImpl(self, **kwargs):
        a = self.attrs

        self._minify = a.getAsBool(
            TagAttributesEnum.MINIFY + TagAttributesEnum.MINIMIZE + TagAttributesEnum.SHRINK,
            self._minify)

        self._content = a.content
        self._processor.addCSSStyles(self._content)

        MarkupBlockTag._renderImpl(self, **kwargs)
Beispiel #2
0
 def getAttributeList(cls):
     t = TagAttributesEnum
     return (
         MarkupBlockTag.getAttributeList()
         + t.COLOR
         + t.ALIGNMENT
         + t.PADDING
         + t.COLOR
         + t.REACH
         + t.SCALE
         + t.BORDER
     )
Beispiel #3
0
 def getAttributeList(cls):
     t = TagAttributesEnum
     return MarkupBlockTag.getAttributeList() + t.COLOR
Beispiel #4
0
 def getAttributeList(cls):
     t = TagAttributesEnum
     return MarkupBlockTag.getAttributeList() + t.MAX_WIDE + t.COLOR + t.SIZE + t.ALIGNMENT + \
            t.SCALE + t.GUTTER
Beispiel #5
0
 def getAttributeList(cls):
     t = TagAttributesEnum
     return MarkupBlockTag.getAttributeList() + t.TYPE + t.MINIFY + t.MINIMIZE + t.SHRINK
Beispiel #6
0
 def __init__(self, *args, **kwargs):
     MarkupBlockTag.__init__(self, *args, **kwargs)
     self._content   = None
     self._cachePath = None
     self._minify    = True
Beispiel #7
0
 def getAttributeList(cls):
     t = TagAttributesEnum
     return MarkupBlockTag.getAttributeList() + t.NAME+ t.COLOR + ColorTag._COLOR_PROPS
Beispiel #8
0
 def __init__(self, *args, **kwargs):
     MarkupBlockTag.__init__(self, *args, **kwargs)
     self._lineSpacing = None
Beispiel #9
0
 def getAttributeList(cls):
     t = TagAttributesEnum
     return MarkupBlockTag.getAttributeList() + t.COLOR + t.TYPE + t.START + t.INDEX + t.SPACING + \
            t.LINE_SPACING + t.SCALE
Beispiel #10
0
 def getAttributeList(cls):
     TAE = TagAttributesEnum
     return MarkupBlockTag.getAttributeList() + TAE.LEVEL + TAE.TEXT_SECTION + TAE.SECTION \
         + TAE.PATH + TAE.TEXT_PATH + TAE.COLOR
Beispiel #11
0
 def getAttributeList(cls):
     t = TagAttributesEnum
     return MarkupBlockTag.getAttributeList() + t.TO + t.WINDOW_TARGET + t.COLOR + t.URL + \
            t.AJAX + t.SCALE
Beispiel #12
0
 def getAttributeList(cls):
     t = TagAttributesEnum
     return MarkupBlockTag.getAttributeList() + t.NAME + t.COLOR + t.SIZE + t.FONT + t.SPACING + \
            t.LINE_SPACING + t.LETTER_SPACING + t.WORD_SPACING + t.BOLD + t.ITALIC + \
            t.ALIGNMENT + t.SCALE + t.TEXT + t.TEXT_PATH + t.TEXT_SECTION + t.SECTION \
            + t.PATH
Beispiel #13
0
 def _renderImpl(self, **kwargs):
     a = self.attrs
     a.content = markdown.markdown(a.content)
     MarkupBlockTag._renderImpl(self, **kwargs)
Beispiel #14
0
 def getAttributeList(cls):
     t = TagAttributesEnum
     return MarkupBlockTag.getAttributeList() + t.TITLE + t.STRIP + t.TAB_SIZE + t.COLOR