
    xZi                     ,    S SK JrJrJr   " S S5      rg)    )AnyDictOptionalc                       \ rS rSrSrSS jrS\4S jrS\4S jrS\4S jr	S\
\\4   4S	 jrS\4S
 jrS\4S jrSrg)
ChartTitle   z
A class to represent an Excel chart title.

This class encapsulates all title related properties and methods for the
chart title and axis titles.
returnNc                     SU l         SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l	        SU l
        g)z#
Initialize a ChartTitle instance.
NF)fontnameformuladata_idlayoutoverlayhiddenlinefillpatterngradientselfs    p/var/www/eduai.edurigo.com/question_generate/ques_gen_env/lib/python3.13/site-packages/xlsxwriter/chart_title.py__init__ChartTitle.__init__   sQ     /3	#'	&*&*04'+!.2	.2	1526    c                 J    U R                   SL=(       a    U R                   S:g  $ )zR
Check if the title has a text name set.

Returns:
    True if name has been set.
N )r   r   s    r   has_nameChartTitle.has_name%   s      yy$8b8r   c                     U R                   SL$ )zS
Check if the title has a formula set.

Returns:
    True if formula has been set.
N)r   r   s    r   has_formulaChartTitle.has_formula.   s     ||4''r   c                 0   U R                   SL=(       a    U R                   R                  SS5      nU R                  SL=(       a    U R                  R                  SS5      nU R                  nU R                  nU=(       d    U=(       d    U=(       d    U$ )z
Check if the title has any formatting properties set.

Returns:
    True if the title has line, fill, pattern, or gradient formatting.
NdefinedF)r   getr   r   r   )r   has_linehas_fillhas_patternhas_gradients        r   has_formattingChartTitle.has_formatting7   so     99D(LTYY]]9e-L99D(LTYY]]9e-Lll}}B8B{BlBr   c                 `    U R                   U R                  U R                  U R                  S.$ )z
Get a dictionary containing the formatting properties.

Returns:
    A dictionary with line, fill, pattern, and gradient properties.
r   r   r   r   r-   r   s    r   get_formattingChartTitle.get_formattingE   s*     IIII||	
 	
r   c                     U R                   $ )zQ
Check if the title is explicitly hidden.

Returns:
    True if title is hidden.
)r   r   s    r   	is_hiddenChartTitle.is_hiddenS   s     {{r   c                 D   SU R                   < SU R                  < SU R                  < SU R                  < SU R                  < SU R
                  < SU R                  < SU R                  < S	U R                  < S
U R                  < SU R                  5       < S3$ )z3
Return a string representation of the ChartTitle.
zChartTitle(
    name = z,
    formula = z,
    hidden = z,
    font = z,
    line = z,
    fill = z,
    pattern = z,
    gradient = z,
    layout = z,
    overlay = z,
    has_formatting = z,
)
)r   r   r   r   r   r   r   r   r   r   r*   r   s    r   __repr__ChartTitle.__repr__\   s    
)) '!\\, - KK? +)) ')) ')) '!\\, -"mm. / KK? +!\\, -$$($7$7$9#< =	
r   )r   r   r   r   r   r   r   r   r   r   r   )r	   N)__name__
__module____qualname____firstlineno____doc__r   boolr   r!   r*   r   strr   r.   r1   r4   __static_attributes__ r   r   r   r      s^    7 9$ 9(T (C C
S#X 
4 
# 
r   r   N)typingr   r   r   r   r>   r   r   <module>r@      s    ' &a
 a
r   