diff options
Diffstat (limited to 'mammoth/docx/complex_fields.py')
| -rw-r--r-- | mammoth/docx/complex_fields.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mammoth/docx/complex_fields.py b/mammoth/docx/complex_fields.py index 75bc05a..4112cba 100644 --- a/mammoth/docx/complex_fields.py +++ b/mammoth/docx/complex_fields.py @@ -2,6 +2,15 @@ class unknown(object): pass +class Begin: + def __init__(self, *, fld_char): + self.fld_char = fld_char + + +def begin(*, fld_char): + return Begin(fld_char=fld_char) + + class Hyperlink(object): def __init__(self, kwargs): self.kwargs = kwargs @@ -9,3 +18,12 @@ class Hyperlink(object): def hyperlink(kwargs): return Hyperlink(kwargs=kwargs) + + +class Checkbox: + def __init__(self, *, checked): + self.checked = checked + + +def checkbox(*, checked): + return Checkbox(checked=checked) |
