HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/docx/oxml/__pycache__/shared.cpython-310.pyc
o

$we/�@s�dZddlmZddlmZddlmZddlmZddl	m
Z
mZmZddl
mZmZmZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZdS)z6Objects shared by modules in the docx.oxml subpackage.�)�annotations)�cast)�qn)�OxmlElement)�ST_DecimalNumber�ST_OnOff�	ST_String)�BaseOxmlElement�OptionalAttribute�RequiredAttributec@s&eZdZdZede�Zedd��ZdS)�CT_DecimalNumberz�Used for ``<w:numId>``, ``<w:ilvl>``, ``<w:abstractNumId>`` and several others,
    containing a text representation of a decimal number (e.g. 42) in its ``val``
    attribute.�w:valcCst|td�t|�id�S)zqReturn a new ``CT_DecimalNumber`` element having tagname `nsptagname` and
        ``val`` attribute set to `val`.r
)�attrs)rr�str)�cls�
nsptagname�val�r�I/home/arjun/projects/env/lib/python3.10/site-packages/docx/oxml/shared.py�newszCT_DecimalNumber.newN)	�__name__�
__module__�__qualname__�__doc__rrr�classmethodrrrrrr
s

rc@s(eZdZUdZededd�Zded<dS)�CT_OnOffz�Used for `w:b`, `w:i` elements and others.

    Contains a bool-ish string in its `val` attribute, xsd:boolean plus "on" and
    "off". Defaults to `True`, so `<w:b>` for example means "bold is turned on".
    r
T)�default�boolrN)rrrrr
rr�__annotations__rrrrrs

�rc@s2eZdZUdZede�Zded<ed	dd��Z	dS)
�	CT_Stringz�Used for `w:pStyle` and `w:tblStyle` elements and others.

    In those cases, it containing a style name in its `val` attribute.
    r
rrrcCsttt|��}||_|S)zhReturn a new ``CT_String`` element with tagname `nsptagname` and ``val``
        attribute set to `val`.)rrrr)rrr�elmrrrr1sz
CT_String.newN)rrrr)
rrrrrrrrrrrrrrr's
�rN)r�
__future__r�typingr�docx.oxml.nsr�docx.oxml.parserr�docx.oxml.simpletypesrrr�docx.oxml.xmlchemyr	r
rrrrrrrr�<module>s