%PDF- %PDF-
Direktori : /lib/python3/dist-packages/reportlab/lib/__pycache__/ |
Current File : //lib/python3/dist-packages/reportlab/lib/__pycache__/styles.cpython-312.pyc |
� �eOC � �\ � d Z dZdZddlmZ ddlmZmZmZm Z ddl mZ ddlm ZmZmZmZmZmZmZmZmZmZ m!Z"m#Z$m%Z& eedd� Z' eedd� Z( eedd� Z) G d � d � Z* G d� de*� Z+ e,eeeee � � fd�Z- G d� de*� Z. G d� de*� Z/ e0� Z1 G d� d� Z2d� Z3d� Z4y)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� str2alignment� LineStyle� ListStyle�StyleSheet1�getSampleStyleSheet� )�black)�TA_LEFT� TA_CENTER�TA_RIGHT� TA_JUSTIFY)�tt2ps) �canvas_basefontname�underlineWidth�underlineOffset�underlineGap�strikeWidth�strikeOffset� strikeGap�spaceShrinkage�platypus_link_underline�hyphenationLang�hyphenationMinWordLength�uriWasteReduce�embeddedHyphenation� c �: � e Zd Zi Zdd�Zd� Zd� Zd� Zd d�Zdd�Z y) r Nc � � d| j vsJ d� �d| j vsJ d� �|rN|j | j k( s5J d|j j �d| j j ��� �|| _ || _ | j j | j � | j � | j di |�� y) 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' attributez Parent style z# must have same class as new style N� ) �defaults� __class__�__name__r r! �__dict__�update�refresh�_setKwds)�selfr r! �kws �6/usr/lib/python3/dist-packages/reportlab/lib/styles.py�__init__zPropertySet.__init__6 s� � � �T�]�]�*�_�,_�_�*��t�}�}�,�c�.c�c�,���#�#�t�~�~�5� d�qw� rB� rB� rK� rK� LP� LZ� LZ� Lc� Lc� 8d� d�5� �� ����� � ���T�]�]�+� ������ � ���� c �R � |j � D ] \ }}|| j |<