%PDF- %PDF-
| Direktori : /lib/python3/dist-packages/reportlab/platypus/__pycache__/ |
| Current File : //lib/python3/dist-packages/reportlab/platypus/__pycache__/flowables.cpython-312.pyc |
�
C��eJw � � � d Z dZddlZddlmZmZ ddlmZmZ ddlm Z ddl
mZmZm
Z
ddlmZ dd lmZmZmZ dd
lmZ ddlmZ ddlmZ dd
lmZmZmZmZ dj? � Z G d� d� Z! G d� d� Z" G d� de"� Z#d� Z$d�d�Z%dZ&d� Z'd� Z( G d� de"� Z) G d� de"� Z* G d� de"� Z+ G d � d!e+� Z, G d"� d#e+� Z- G d$� d%e-� Z. G d&� d'e.� Z/ G d(� d)e.� Z0 G d*� d+e,� Z1d�d,�Z2d-� Z3 G d.� d/� Z4 G d0� d1e4e"� Z5 G d2� d3e5� Z6 G d4� d5e"� Z7d6� Z8 G d7� d8e"� Z9 G d9� d:e"� Z: G d;� d<e+� Z; G d=� d>e"� Z< G d?� d@e"� Z= G dA� dB� Z>dC� Z? G dD� dEe4� Z@ G dF� dGe@e"� ZAdH� ZBdI� ZC G dJ� dKe@e"� ZD G dL� dM� ZE G dN� dOe@eEe"� ZF G dP� dQe+� ZG G dR� dSe+� ZH G dT� dUe+� ZI G dV� dWeEe+� ZJ G dX� dYe,� ZK G dZ� d[e� ZL G d\� d]eK� ZM G d^� d_e+� ZNdd`lOmPZP eQdadbdcdddedfdgdhdidj�k�
ZRd�dl�ZS G dm� dn� ZTdo� ZU G dp� dqe"� ZV G dr� dseV� ZWddtlmXZX G du� dv� ZY G dw� dx� ZZ G dy� dze@e"� Z[ G d{� d|e"� Z\ G d}� d~e+� Z] G d� d�e]� Z^ G d�� d�e]� Z_ G d�� d�e_� Z` G d�� d�e_� Za G d�� d�ea� Zb G d�� d�e+� Zc G d�� d�e+� Zdy)�z3.3.0a�
A flowable is a "floating element" in a document whose exact position is determined by the
other elements that precede it, such as a paragraph, a diagram interspersed between paragraphs,
a section header, etcetera. Examples of non-flowables include page numbering annotations,
headers, footers, fixed diagrams or logos, among others.
Flowables are defined here as objects which know how to determine their size and which
can draw themselves onto a page with respect to a relative "origin" position determined
at a higher level. The object's draw() method should assume that (0,0) corresponds to the
bottom left corner of the enclosing rectangle that will contain the object. The attributes
vAlign and hAlign may be used by 'packers' as hints as to how the object should be placed.
Some Flowables also know how to "split themselves". For example a
long paragraph might split itself between one page and the next.
Packers should set the canv attribute during wrap, split & draw operations to allow
the flowable to work out sizes etc in the proper context.
The "text" of a document usually consists mainly of a sequence of flowables which
flow into a document from top to bottom (with column and page breaks controlled by
higher level components).
� N)�deepcopy�copy)�gray� lightgrey)�fp_str)�TA_LEFT� TA_CENTER�TA_RIGHT)�
_baseFontName)�strTypes�rl_safe_exec�annotateException)�ABag)�pdfutils)�stringWidth)�_FUZZ�overlapAttachedSpace�ignoreContainerActions�listWrapOnFakeWidtha AnchorFlowable BalancedColumns BulletDrawer CallerMacro CondPageBreak DDIndenter DocAssert
DocAssign DocExec DocIf DocPara DocWhile FailOnDraw FailOnWrap Flowable FrameBG FrameSplitter
HRFlowable Image ImageAndFlowables KeepInFrame KeepTogether LIIndenter ListFlowable ListItem
Macro NullDraw PTOContainer PageBreak PageBreakIfNotEmpty ParagraphAndImage Preformatted
SetPageTopFlowables SetTopFlowables SlowPageBreak Spacer TopPadder TraceInfo UseUpSpace XBox
splitLine splitLinesc � � e Zd ZdZd� Zy)� TraceInfoz0Holder for info about where an object originatedc �J � d| _ d| _ d| _ d| _ d| _ y )Nz (unknown)���)�srcFile�startLineNo�startLinePos� endLineNo�
endLinePos��selfs �>/usr/lib/python3/dist-packages/reportlab/platypus/flowables.py�__init__zTraceInfo.__init__0 s'