
    }f^                     b   d dl m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          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          ZdS )    )ABCc                       e Zd ZddZdS )
TransitionNc                     t           N)NotImplementedErrorself_security_handler_obj_ids      I/var/www/rtfcompare/venv/lib/python3.11/site-packages/fpdf/transitions.py	serializezTransition.serialize   s    !!    NN__name__
__module____qualname__r    r   r   r   r      s(        " " " " " "r   r   c                       e Zd Zd ZddZdS )SplitTransitionc                 ~    |dvrt          d| d          || _        |dvrt          d| d          || _        d S )NHVUnsupported dimension '&', must be H(horizontal) or V(ertical)IOUnsupported direction ' ', must be I(nward) or O(utward)
ValueError	dimension	directionr
   r%   r&   s      r   __init__zSplitTransition.__init__
   sn    J&&[)[[[   #J&&U)UUU   #r   Nc                 (    d| j          d| j         dS )Nz<</Type /Trans /S /Split /DM /z /M />>r%   r&   r	   s      r   r   zSplitTransition.serialize   s    WWWT^WWWWr   r   r   r   r   r(   r   r   r   r   r   r   	   s=        
# 
# 
#X X X X X Xr   r   c                       e Zd Zd ZddZdS )BlindsTransitionc                 B    |dvrt          d| d          || _        d S )Nr   r   r   )r$   r%   )r
   r%   s     r   r(   zBlindsTransition.__init__   s:    J&&[)[[[   #r   Nc                     d| j          dS )Nz<</Type /Trans /S /Blinds /DM /r*   )r%   r	   s      r   r   zBlindsTransition.serialize"   s    CCCCCr   r   r,   r   r   r   r.   r.      s=        # # #D D D D D Dr   r.   c                       e Zd Zd ZddZdS )BoxTransitionc                 B    |dvrt          d| d          || _        d S )Nr   r!   r"   r$   r&   r
   r&   s     r   r(   zBoxTransition.__init__'   s:    J&&U)UUU   #r   Nc                     d| j          dS )Nz<</Type /Trans /S /Blinds /M /r*   r&   r	   s      r   r   zBoxTransition.serialize.       BBBBBr   r   r,   r   r   r   r2   r2   &   s=        # # #C C C C C Cr   r2   c                       e Zd Zd ZddZdS )WipeTransitionc                 B    |dvrt          d| d          || _        d S )N)r   Z        r!   z', must 0, 90, 180 or 270r4   r5   s     r   r(   zWipeTransition.__init__3   s;    ---N)NNN   #r   Nc                     d| j          dS )Nz<</Type /Trans /S /Wipe /Di /r*   r7   r	   s      r   r   zWipeTransition.serialize:       At~AAAAr   r   r,   r   r   r   r:   r:   2   s=        # # #B B B B B Br   r:   c                       e Zd ZddZdS )DissolveTransitionNc                     dS )Nz<</Type /Trans /S /Dissolve>>r   r	   s      r   r   zDissolveTransition.serialize?   s    ..r   r   r   r   r   r   rB   rB   >   s(        / / / / / /r   rB   c                       e Zd Zd ZddZdS )GlitterTransitionc                 B    |dvrt          d| d          || _        d S )N)r   r>   i;  r!   z', must 0, 270 or 315r4   r5   s     r   r(   zGlitterTransition.__init__D   s2    M))WyWWWXXX"r   Nc                     d| j          dS )Nz <</Type /Trans /S /Glitter /Di /r*   r7   r	   s      r   r   zGlitterTransition.serializeI       D$.DDDDr   r   r,   r   r   r   rE   rE   C   =        # # #
E E E E E Er   rE   c                       e Zd ZddZddZdS )FlyTransitionNc                 ~    |dvrt          d| d          || _        |dvrt          d| d          || _        d S )Nr   r   r   )r   r>   Nr!   z', must 0, 270 or Noner#   r'   s      r   r(   zFlyTransition.__init__N   sn    J&&[)[[[   #N**K)KKK   #r   c                 (    d| j          d| j         dS )Nz<</Type /Trans /S /Glitter /M /z /Di /r*   r+   r	   s      r   r   zFlyTransition.serializeZ   s!    VdnVVDNVVV	
r   r   r   r,   r   r   r   rK   rK   M   s<        
# 
# 
# 
#
 
 
 
 
 
r   rK   c                       e Zd Zd ZddZdS )PushTransitionc                 B    |dvrt          d| d          || _        d S N)r   r>   r!   z', must 0 or 270r4   r5   s     r   r(   zPushTransition.__init__a   2    H$$RyRRRSSS"r   Nc                     d| j          dS )Nz<</Type /Trans /S /Push /Di /r*   r7   r	   s      r   r   zPushTransition.serializef   r@   r   r   r,   r   r   r   rO   rO   `   s=        # # #
B B B B B Br   rO   c                       e Zd Zd ZddZdS )CoverTransitionc                 B    |dvrt          d| d          || _        d S rQ   r4   r5   s     r   r(   zCoverTransition.__init__k   rR   r   Nc                     d| j          dS )Nz<</Type /Trans /S /Cover /Di /r*   r7   r	   s      r   r   zCoverTransition.serializep   r8   r   r   r,   r   r   r   rU   rU   j   s=        # # #
C C C C C Cr   rU   c                       e Zd Zd ZddZdS )UncoverTransitionc                 B    |dvrt          d| d          || _        d S rQ   r4   r5   s     r   r(   zUncoverTransition.__init__u   rR   r   Nc                     d| j          dS )Nz <</Type /Trans /S /Uncover /Di /r*   r7   r	   s      r   r   zUncoverTransition.serializez   rH   r   r   r,   r   r   r   rY   rY   t   rI   r   rY   c                       e Zd ZddZdS )FadeTransitionNc                     dS )Nz<</Type /Fade /S /Dissolve>>r   r	   s      r   r   zFadeTransition.serialize   s    --r   r   r   r   r   r   r]   r]   ~   s(        . . . . . .r   r]   N)abcr   r   r   r.   r2   r:   rB   rE   rK   rO   rU   rY   r]   r   r   r   <module>r`      sY        " " " " " " " "
X X X X Xj X X X"	D 	D 	D 	D 	Dz 	D 	D 	D	C 	C 	C 	C 	CJ 	C 	C 	C	B 	B 	B 	B 	BZ 	B 	B 	B/ / / / / / / /
E E E E E
 E E E
 
 
 
 
J 
 
 
&B B B B BZ B B BC C C C Cj C C CE E E E E
 E E E. . . . .Z . . . . .r   