
    r)h                         S SK Jr  S SKrSSKJrJrJr   " S S\5      r " S S\5      r " S	 S
\5      r	 " S S\5      r
 " S S\5      r " S S\5      rg)    )ABCN   )	PDFStringbuild_obj_dictcreate_dictionary_stringc                   2    \ rS rSrSS jrSS jrS	S jrSrg)
Action   Nc                     Xl         g)zb
Args:
    next (PDFObject | str): optional reference to another Action to trigger after this one
Nnext)selfnext_actions     GC:\Users\13-19\Desktop\Lekcja\testEnv\Lib\site-packages\fpdf/actions.py__init__Action.__init__   s	    
  	    c                     [         eN)NotImplementedError)r   _security_handler_obj_ids      r   	serializeAction.serialize   s    !!r   c                 x    Uc  0 nU R                   (       a  U R                   US'   [        XU5      n[        USS9$ )NNext )
field_join)r   r   r   )r   
key_valuesr   r   obj_dicts        r   
_serializeAction._serialize   s;    J99!%Jv!*I'SAAr   r   r   NN)NNN)__name__
__module____qualname____firstlineno__r   r   r!   __static_attributes__ r   r   r	   r	      s     "Br   r	   c                   <   ^  \ rS rSrSU 4S jjrSU 4S jjrSrU =r$ )	URIAction   c                 8   > [         TU ]  [        5        Xl        g r   )superr   r   uri)r   r/   r   	__class__s      r   r   URIAction.__init__   s    r   c                 L   > [         TU ]  S[        U R                  SS9S.UUS9$ )Nz/URITencrypt)su_r_ir   r   )r.   r!   r   r/   r   r   r   r0   s      r   r   URIAction.serialize    s3    w!9TXXt#DE/ " 
 	
r   )r/   r   r#   r$   r%   r&   r'   r   r   r(   __classcell__r0   s   @r   r+   r+      s    
 
r   r+   c                   <   ^  \ rS rSrSU 4S jjrSU 4S jjrSrU =r$ )NamedAction(   c                 p   > [         TU ]  [        5        US;  a  [        R                  " S5        Xl        g )N)NextPagePrevPage	FirstPageLastPagezNon-standard named action added)r.   r   r   warningswarnaction_name)r   rG   r   r0   s      r   r   NamedAction.__init__)   s,    OOMM;<&r   c                 B   > [         TU ]  SSU R                   3S.UUS9$ )Nz/Named/)r5   nr7   )r.   r!   rG   r8   s      r   r   NamedAction.serialize/   s6    w!1T%5%5$6!78/ " 
 	
r   )rG   r   r#   r:   r<   s   @r   r>   r>   (   s    '
 
r   r>   c                   @   ^  \ rS rSrSrSU 4S jjrSU 4S jjrSrU =r$ )
GoToAction7   TAs of 2022, this does not seem honored by neither Adobe Acrobat nor Sumatra readers.c                 0   > [         TU ]  U5        Xl        g r   )r.   r   dest)r   rR   r   r0   s      r   r   GoToAction.__init__:       %	r   c                 <   > [         TU ]  SU R                  S.UUS9$ )Nz/GoTo)r5   dr7   )r.   r!   rR   r8   s      r   r   GoToAction.serialize>   s,    w!		*/ " 
 	
r   )rR   r   r#   	r$   r%   r&   r'   __doc__r   r   r(   r;   r<   s   @r   rN   rN   7       Z
 
r   rN   c                   <   ^  \ rS rSrSU 4S jjrSU 4S jjrSrU =r$ )GoToRemoteActionF   c                 <   > [         TU ]  U5        Xl        X l        g r   )r.   r   filerR   )r   r_   rR   r   r0   s       r   r   GoToRemoteAction.__init__G   s    %		r   c                 b   > [         TU ]  S[        U R                  SS9U R                  S.UUS9$ )Nz/GoToRTr3   )r5   frV   r7   )r.   r!   r   r_   rR   r8   s      r   r   GoToRemoteAction.serializeL   s9    w!499d!C$))T/ " 
 	
r   )rR   r_   r   r#   r:   r<   s   @r   r\   r\   F   s    

 
r   r\   c                   @   ^  \ rS rSrSrSU 4S jjrSU 4S jjrSrU =r$ )LaunchActionT   rP   c                 0   > [         TU ]  U5        Xl        g r   )r.   r   r_   )r   r_   r   r0   s      r   r   LaunchAction.__init__W   rT   r   c                 L   > [         TU ]  S[        U R                  SS9S.UUS9$ )Nz/LaunchTr3   )r5   rb   r7   )r.   r!   r   r_   r8   s      r   r   LaunchAction.serialize[   s3    w!)DIIt"DE/ " 
 	
r   )r_   r   r#   rX   r<   s   @r   re   re   T   rZ   r   re   )abcr   rE   syntaxr   r   r   r	   r+   r>   rN   r\   re   r)   r   r   <module>rm      s[      G GBS B(

 


& 

 

v 

6 
r   