Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 Neb�Aã@súdZdZdZdd lmZdd lmZmZdd lm Z dd l m Z m ZmZmZmZmZmZmZmZmZmZ m!Z"m#Z$e e d dƒZ%e e dd ƒZ&e e d d ƒZ'Gdd„dƒZ(Gdd„de(ƒZ)Gdd„de(ƒZ*Gdd„de(ƒZ+e,ƒZ-Gdd„dƒZ.dd„Z/dd„Z0dS)z3.3.0a›Classes for ParagraphStyle and similar things. A style is a collection of attributes, but with some extra features to allow 'inheritance' from a parent, and to ensure nobody makes changes after construction. ParagraphStyle shows all the attributes available for formatting paragraphs. getSampleStyleSheet() returns a stylesheet you can use for initial development, with a few basic heading and text styles. Ú PropertySetÚParagraphStyleÚ LineStyleÚ ListStyleÚ StyleSheet1ÚgetSampleStyleSheeté)Úblack)ÚTA_LEFTÚ TA_CENTER)Útt2ps) Úcanvas_basefontnameÚunderlineWidthÚunderlineOffsetÚ underlineGapÚ strikeWidthÚ strikeOffsetÚ strikeGapÚspaceShrinkageÚplatypus_link_underlineÚhyphenationLangÚhyphenationMinWordLengthÚuriWasteReduceÚembeddedHyphenationéc@sFeZdZiZddd„Zdd„Zdd„Zdd „Zdd d „Zdd d„Z dS)rNcKs~d|jkstdƒ‚d|jks$tdƒ‚|rL|j|jksLtd|jj|jjfƒ‚||_||_|jj|jƒ|jƒ|j f|ŽdS)zÎWhen initialized, it copies the class defaults; then takes a copy of the attributes of the parent if any. All the work is done in init - styles should cost little to use at runtime.Únamez1Class Defaults may not contain a 'name' attributeÚparentz3Class Defaults may not contain a 'parent' attributez4Parent style %s must have same class as new style %sN) ÚdefaultsÚAssertionErrorÚ __class__Ú__name__rrÚ__dict__ÚupdateÚrefreshÚ_setKwds)ÚselfrrÚkw©r&ú5/tmp/tmp4i9tl1d3/lib64/python/reportlab/lib/styles.pyÚ__init__5s$zPropertySet.__init__cKs$x|jƒD]\}}||j|<q WdS)N)Úitemsr )r$r%ÚkeyÚvaluer&r&r'r#KszPropertySet._setKwdscCsd|jj|jfS)Nz <%s '%s'>)rrr)r$r&r&r'Ú__repr__PszPropertySet.__repr__cCs6|jr2x*|jjjƒD]\}}|dkr||j|<qWdS)zƒre-fetches attributes from the parent on demand; use if you have been hacking the styles. This is used by __init__rrN)rr)rr r))r$r*r+r&r&r'r"SszPropertySet.refreshÚcCs~t|d|jƒt|d|jƒt|jjƒƒ}|jƒ|jdƒ|jdƒx.|D]&}|jj|dƒ}t|d||fƒqPWdS)Nzname =zparent =rrz%s = %s) ÚprintrrÚlistr ÚkeysÚsortÚremoveÚget)r$ÚindentZkeylistr*r+r&r&r'Ú listAttrs\s   zPropertySet.listAttrscKs@|j||ƒ}|jjƒ|_||_|dkr*|p,||_|jf|Ž|S)N)rr Úcopyrrr#)r$rrÚkwdsÚrr&r&r'Úclonegs    zPropertySet.clone)N)r-)N) rÚ __module__Ú __qualname__rr(r#r,r"r5r9r&r&r&r'r2s  c)@sbeZdZedddddeddeddedddddddddddedddeee e e e e ddeeedœ(ZdS)ré é rNrÚstart)(ÚfontNameÚfontSizeÚleadingÚ leftIndentÚ rightIndentÚfirstLineIndentÚ alignmentÚ spaceBeforeÚ spaceAfterÚbulletFontNameÚbulletFontSizeÚ bulletIndentZ textColorZ backColorZwordWrapZ borderWidthZ borderPaddingZ borderColorZ borderRadiusZ allowWidowsZ allowOrphansZ textTransformZendDotsZsplitLongWordsr Z bulletAnchorZjustifyLastLineZ justifyBreaksrrrrrrZ linkUnderlineZunderlineColorZ strikeColorrrr)rr:r;Ú _baseFontNamer rÚ_baseUnderlineWidthÚ_spaceShrinkageÚ_baseStrikeWidthÚ_baseUnderlineOffsetÚ_baseUnderlineGapÚ_baseStrikeOffsetÚ_baseStrikeGapÚ_platypus_link_underlineÚ_hyphenationLangÚ_embeddedHyphenationÚ_uriWasteReducerr&r&r&r'rosPc@seZdZdedœZdd„ZdS)rr)ÚwidthZcolorcCs|jdƒdS)zKYou can ask a LineStyle to set up the canvas for drawing the lines.rN)Z setLineWidth)r$Zcanvasr&r&r'Ú prepareCanvas§szLineStyle.prepareCanvasN)rr:r;rrrXr&r&r&r'r¢sc@s,eZdZeddddedddddd d d � Zd S) rérÚleftÚ1Ú Helveticar=ÚautoÚltrN) rBrCÚ bulletAlignÚ bulletTypeÚ bulletColorrHrIÚ bulletOffsetYÚ bulletDedentÚ bulletDirÚ bulletFormatr>)rr:r;Údictrrr&r&r&r'r­sc@sNeZdZdZdd„Zdd„Zefdd„Zdd „Zd d „Z dd d„Z dd„Z d S)raG This may or may not be used. The idea is to: 1. slightly simplify construction of stylesheets; 2. enforce rules to validate styles when added (e.g. we may choose to disallow having both 'heading1' and 'Heading1' - actual rules are open to discussion); 3. allow aliases and alternate style lookup mechanisms 4. Have a place to hang style-manipulation methods (save, load, maybe support a GUI editor) Access is via getitem, so they can be compatible with plain old dictionaries. cCsi|_i|_dS)N)ÚbyNameÚbyAlias)r$r&r&r'r(ÕszStyleSheet1.__init__cCsPy |j|Stk rJy |j|Stk rDtd|ƒ‚YnXYnXdS)Nz"Style '%s' not found in stylesheet)rhÚKeyErrorrg)r$r*r&r&r'Ú __getitem__Ùs  zStyleSheet1.__getitem__c Cs0y||Stk r*|tkr$|S‚YnXdS)N)riÚ_stylesheet1_undefined)r$r*Údefaultr&r&r'r3âs zStyleSheet1.getcCs||jkp||jkS)N)rhrg)r$r*r&r&r'Ú __contains__észStyleSheet1.__contains__cCs||kS)Nr&)r$r*r&r&r'Úhas_keyìszStyleSheet1.has_keyNcCs~|j}||jkrtd|ƒ‚||jkr2td|ƒ‚|rb||jkrLtd|ƒ‚||jkrbtd|ƒ‚||j|<|rz||j|<dS)Nz(Style '%s' already defined in stylesheetz1Style name '%s' is already an alias in stylesheetz1Alias name '%s' is already an alias in stylesheet)rrgrirh)r$ÚstyleÚaliasr*r&r&r'Úaddïs         zStyleSheet1.addcCszt|jjƒƒ}|jƒi}x"t|jjƒƒD]\}}|||<q*Wx6|D].\}}|j|dƒ}t||ƒ|jdƒtƒqDWdS)Nz )r/rgr)r1rhr3r.r5)r$ZstylesZaliirprorr&r&r'r/s    zStyleSheet1.list)N) rr:r;Ú__doc__r(rjrkr3rmrnrqr/r&r&r&r'r¿s  cCsJtddƒ}t|_d|_d|_|jƒtƒtd|ƒ}d|_|jƒ||fS)NÚNormalr=gÍÌÌÌÌÌ,@ÚLiteralÚCourier)rrKr?r@rAr5r.)ZpNormalZpPrer&r&r'Ú testStyles s  rvcCs tƒ}|jtdtddd�ƒ|jtd|ddd�ƒ|jtd|dtd �ƒ|jtd |dtd d dd �dd�|jtd|dtd d tdd�dd�|jtd|dtdd ddd�dd�|jtd|dtddddd�dd�|jtd|dtddddd�dd�|jtd|dtddddd�d d�|jtd!|dtd"d#dd$d�d%d�|jtd&|dd'd(d)�d*d�|jtd+|dd'd,d'dtd-�d.d�|jtd/|dd0dd1d'd,d2d3�ƒ|jtd4d5d d'd6d7t d8dd'd9d:d5d5d;�dd�|S)?zReturns a stylesheet objectrsr<r=)rr?r@rAZBodyTexté)rrrFZItalic)rrr?ZHeading1rYé)rrr?r@rArGZh1)rpZTitle)rrr?r@rArErGÚtitleZHeading2é)rrr?r@rArFrGZh2ZHeading3Zh3ZHeading4éZh4ZHeading5é gš™™™™™%@éZh5ZHeading6égÍÌÌÌÌÌ @éZh6ZBulletré)rrrDrFZbuZ Definitioné$)rrrDrBrJrFrHÚdfZCoderugš™™™™™!@r-)rrr?r@rArDrBrZ UnorderedListNrZr[r\r]r^)rrrBrCr_r`rarHrIrbrcrdrer>ZulZ OrderedListZol) rrqrrKÚ_baseFontNameIÚ_baseFontNameBr Ú_baseFontNameBIrr)Z stylesheetr&r&r'rsì    N)rrrrrr)1Ú __version__rrÚ__all__Zreportlab.lib.colorsrZreportlab.lib.enumsr r Zreportlab.lib.fontsr Zreportlab.rl_configr rKr rLrrOrrPrrNrrQrrRrrMrrSrrTrZ_hyphenationMinWordLengthrrVrrUr„rƒr…rrrrÚobjectrkrrvrr&r&r&r'Ús,   <   =3 M