XlsxWriter 3.2.5__tar.gz → 3.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/Changes +27 -0
- {xlsxwriter-3.2.5/xlsxwriter.egg-info → xlsxwriter-3.2.7}/PKG-INFO +1 -1
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/setup.py +1 -1
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/__init__.py +1 -1
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/app.py +22 -20
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart.py +370 -423
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart_area.py +5 -3
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart_bar.py +7 -6
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart_column.py +7 -5
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart_doughnut.py +5 -5
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart_line.py +7 -5
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart_pie.py +12 -12
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart_radar.py +6 -4
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart_scatter.py +12 -11
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chart_stock.py +4 -4
- xlsxwriter-3.2.7/xlsxwriter/chart_title.py +110 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/chartsheet.py +13 -7
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/color.py +2 -2
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/comments.py +20 -18
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/contenttypes.py +25 -25
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/core.py +14 -14
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/custom.py +10 -10
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/drawing.py +75 -73
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/feature_property_bag.py +9 -9
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/format.py +105 -62
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/image.py +7 -7
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/metadata.py +15 -15
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/packager.py +38 -38
- xlsxwriter-3.2.7/xlsxwriter/py.typed +1 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/relationships.py +9 -9
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/rich_value.py +5 -5
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/rich_value_rel.py +4 -4
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/rich_value_structure.py +5 -5
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/rich_value_types.py +5 -5
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/shape.py +14 -13
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/sharedstrings.py +7 -7
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/styles.py +32 -32
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/table.py +10 -10
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/theme.py +4 -4
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/url.py +9 -9
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/vml.py +42 -42
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/workbook.py +85 -51
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/worksheet.py +409 -228
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/xmlwriter.py +18 -18
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7/xlsxwriter.egg-info}/PKG-INFO +1 -1
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter.egg-info/SOURCES.txt +2 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/LICENSE.txt +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/MANIFEST.in +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/README.rst +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/array_formula.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/autofilter.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/autofilter_data.txt +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/autofit.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/autofit_manually.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/background.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/cell_indentation.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_area.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_bar.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_clustered.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_column.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_combined.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_data_labels.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_data_table.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_data_tools.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_date_axis.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_doughnut.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_gauge.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_gradient.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_line.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_pareto.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_pattern.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_pie.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_radar.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_scatter.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_secondary_axis.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_stock.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chart_styles.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/chartsheet.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/check_close.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/checkbox.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/colors.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/comments1.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/comments2.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/conditional_format.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/context_manager.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/data_validate.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/datetimes.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/defined_name.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/demo.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/diagonal_border.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/django_simple.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/doc_properties.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/dynamic_arrays.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/embedded_images.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/headers_footers.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/hello_world.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/hide_row_col.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/hide_sheet.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/http_server.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/hyperlink.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/ignore_errors.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/images.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/images_bytesio.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/inheritance1.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/inheritance2.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/lambda.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/macros.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/merge1.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/merge_rich_string.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/outline.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/outline_collapsed.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_autofilter.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_chart.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_chart_columns.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_chart_line.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_column_formats.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_conditional_format.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_datetime.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_header_format.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_multiple.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_percentage.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_positioning.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_simple.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/pandas_table.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/panes.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_chart.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_checkbox.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_conditional_format.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_format_custom.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_format_default.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_multiple.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_positioning.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_simple.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_sparklines.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/polars_xlsxwriter.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/rich_strings.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/right_to_left.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/sensitivity_label.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/sparklines1.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/sparklines2.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/tab_colors.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/tables.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/text_indent.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/textbox.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/tutorial1.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/tutorial2.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/tutorial3.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/unicode.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/unicode_polish_utf8.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/unicode_polish_utf8.txt +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/unicode_shift_jis.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/unicode_shift_jis.txt +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/user_types1.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/user_types2.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/user_types3.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/vbaProject.bin +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/vba_extract.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/watermark.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/examples/worksheet_protection.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/setup.cfg +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/exceptions.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter/utility.py +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter.egg-info/dependency_links.txt +0 -0
- {xlsxwriter-3.2.5 → xlsxwriter-3.2.7}/xlsxwriter.egg-info/top_level.txt +0 -0
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
Release 3.2.7 - September 13 2025
|
|
3
|
+
---------------------------------
|
|
4
|
+
|
|
5
|
+
* Fix typing issue in ``Workbook()`` constructor.
|
|
6
|
+
|
|
7
|
+
:issue:`1152`.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Release 3.2.6 - September 12 2025
|
|
11
|
+
---------------------------------
|
|
12
|
+
|
|
13
|
+
* Add the option to position custom data labels in the same way that the data
|
|
14
|
+
labels can be positioned for the entire series.
|
|
15
|
+
|
|
16
|
+
:feature:`1147`.
|
|
17
|
+
|
|
18
|
+
* Add border, fill, gradient and pattern formatting options for
|
|
19
|
+
chart titles and also chart axis titles.
|
|
20
|
+
|
|
21
|
+
:feature:`957`.
|
|
22
|
+
|
|
23
|
+
* Add additional type annotations. This is an ongoing refactoring.
|
|
24
|
+
|
|
25
|
+
:feature:`1123`.
|
|
26
|
+
|
|
27
|
+
|
|
1
28
|
Release 3.2.5 - June 17 2025
|
|
2
29
|
----------------------------
|
|
3
30
|
|
|
@@ -25,7 +25,7 @@ class App(xmlwriter.XMLwriter):
|
|
|
25
25
|
#
|
|
26
26
|
###########################################################################
|
|
27
27
|
|
|
28
|
-
def __init__(self):
|
|
28
|
+
def __init__(self) -> None:
|
|
29
29
|
"""
|
|
30
30
|
Constructor.
|
|
31
31
|
|
|
@@ -38,11 +38,11 @@ class App(xmlwriter.XMLwriter):
|
|
|
38
38
|
self.properties = {}
|
|
39
39
|
self.doc_security = 0
|
|
40
40
|
|
|
41
|
-
def _add_part_name(self, part_name: str):
|
|
41
|
+
def _add_part_name(self, part_name: str) -> None:
|
|
42
42
|
# Add the name of a workbook Part such as 'Sheet1' or 'Print_Titles'.
|
|
43
43
|
self.part_names.append(part_name)
|
|
44
44
|
|
|
45
|
-
def _add_heading_pair(self, heading_pair: Tuple[str, int]):
|
|
45
|
+
def _add_heading_pair(self, heading_pair: Tuple[str, int]) -> None:
|
|
46
46
|
# Add the name of a workbook Heading Pair such as 'Worksheets',
|
|
47
47
|
# 'Charts' or 'Named Ranges'.
|
|
48
48
|
|
|
@@ -53,7 +53,7 @@ class App(xmlwriter.XMLwriter):
|
|
|
53
53
|
self.heading_pairs.append(("lpstr", heading_pair[0]))
|
|
54
54
|
self.heading_pairs.append(("i4", heading_pair[1]))
|
|
55
55
|
|
|
56
|
-
def _set_properties(self, properties: Dict[str, str]):
|
|
56
|
+
def _set_properties(self, properties: Dict[str, str]) -> None:
|
|
57
57
|
# Set the document properties.
|
|
58
58
|
self.properties = properties
|
|
59
59
|
|
|
@@ -63,7 +63,7 @@ class App(xmlwriter.XMLwriter):
|
|
|
63
63
|
#
|
|
64
64
|
###########################################################################
|
|
65
65
|
|
|
66
|
-
def _assemble_xml_file(self):
|
|
66
|
+
def _assemble_xml_file(self) -> None:
|
|
67
67
|
# Assemble and write the XML file.
|
|
68
68
|
|
|
69
69
|
# Write the XML declaration.
|
|
@@ -94,7 +94,7 @@ class App(xmlwriter.XMLwriter):
|
|
|
94
94
|
#
|
|
95
95
|
###########################################################################
|
|
96
96
|
|
|
97
|
-
def _write_properties(self):
|
|
97
|
+
def _write_properties(self) -> None:
|
|
98
98
|
# Write the <Properties> element.
|
|
99
99
|
schema = "http://schemas.openxmlformats.org/officeDocument/2006/"
|
|
100
100
|
xmlns = schema + "extended-properties"
|
|
@@ -107,25 +107,25 @@ class App(xmlwriter.XMLwriter):
|
|
|
107
107
|
|
|
108
108
|
self._xml_start_tag("Properties", attributes)
|
|
109
109
|
|
|
110
|
-
def _write_application(self):
|
|
110
|
+
def _write_application(self) -> None:
|
|
111
111
|
# Write the <Application> element.
|
|
112
112
|
self._xml_data_element("Application", "Microsoft Excel")
|
|
113
113
|
|
|
114
|
-
def _write_doc_security(self):
|
|
114
|
+
def _write_doc_security(self) -> None:
|
|
115
115
|
# Write the <DocSecurity> element.
|
|
116
116
|
self._xml_data_element("DocSecurity", self.doc_security)
|
|
117
117
|
|
|
118
|
-
def _write_scale_crop(self):
|
|
118
|
+
def _write_scale_crop(self) -> None:
|
|
119
119
|
# Write the <ScaleCrop> element.
|
|
120
120
|
self._xml_data_element("ScaleCrop", "false")
|
|
121
121
|
|
|
122
|
-
def _write_heading_pairs(self):
|
|
122
|
+
def _write_heading_pairs(self) -> None:
|
|
123
123
|
# Write the <HeadingPairs> element.
|
|
124
124
|
self._xml_start_tag("HeadingPairs")
|
|
125
125
|
self._write_vt_vector("variant", self.heading_pairs)
|
|
126
126
|
self._xml_end_tag("HeadingPairs")
|
|
127
127
|
|
|
128
|
-
def _write_titles_of_parts(self):
|
|
128
|
+
def _write_titles_of_parts(self) -> None:
|
|
129
129
|
# Write the <TitlesOfParts> element.
|
|
130
130
|
parts_data = []
|
|
131
131
|
|
|
@@ -138,7 +138,9 @@ class App(xmlwriter.XMLwriter):
|
|
|
138
138
|
|
|
139
139
|
self._xml_end_tag("TitlesOfParts")
|
|
140
140
|
|
|
141
|
-
def _write_vt_vector(
|
|
141
|
+
def _write_vt_vector(
|
|
142
|
+
self, base_type: str, vector_data: List[Tuple[str, int]]
|
|
143
|
+
) -> None:
|
|
142
144
|
# Write the <vt:vector> element.
|
|
143
145
|
attributes = [
|
|
144
146
|
("size", len(vector_data)),
|
|
@@ -158,31 +160,31 @@ class App(xmlwriter.XMLwriter):
|
|
|
158
160
|
|
|
159
161
|
self._xml_end_tag("vt:vector")
|
|
160
162
|
|
|
161
|
-
def _write_vt_data(self, vt_data: Tuple[str, int]):
|
|
163
|
+
def _write_vt_data(self, vt_data: Tuple[str, int]) -> None:
|
|
162
164
|
# Write the <vt:*> elements such as <vt:lpstr> and <vt:if>.
|
|
163
165
|
self._xml_data_element(f"vt:{vt_data[0]}", vt_data[1])
|
|
164
166
|
|
|
165
|
-
def _write_company(self):
|
|
167
|
+
def _write_company(self) -> None:
|
|
166
168
|
company = self.properties.get("company", "")
|
|
167
169
|
|
|
168
170
|
self._xml_data_element("Company", company)
|
|
169
171
|
|
|
170
|
-
def _write_manager(self):
|
|
172
|
+
def _write_manager(self) -> None:
|
|
171
173
|
# Write the <Manager> element.
|
|
172
174
|
if "manager" not in self.properties:
|
|
173
175
|
return
|
|
174
176
|
|
|
175
177
|
self._xml_data_element("Manager", self.properties["manager"])
|
|
176
178
|
|
|
177
|
-
def _write_links_up_to_date(self):
|
|
179
|
+
def _write_links_up_to_date(self) -> None:
|
|
178
180
|
# Write the <LinksUpToDate> element.
|
|
179
181
|
self._xml_data_element("LinksUpToDate", "false")
|
|
180
182
|
|
|
181
|
-
def _write_shared_doc(self):
|
|
183
|
+
def _write_shared_doc(self) -> None:
|
|
182
184
|
# Write the <SharedDoc> element.
|
|
183
185
|
self._xml_data_element("SharedDoc", "false")
|
|
184
186
|
|
|
185
|
-
def _write_hyperlink_base(self):
|
|
187
|
+
def _write_hyperlink_base(self) -> None:
|
|
186
188
|
# Write the <HyperlinkBase> element.
|
|
187
189
|
hyperlink_base = self.properties.get("hyperlink_base")
|
|
188
190
|
|
|
@@ -191,10 +193,10 @@ class App(xmlwriter.XMLwriter):
|
|
|
191
193
|
|
|
192
194
|
self._xml_data_element("HyperlinkBase", hyperlink_base)
|
|
193
195
|
|
|
194
|
-
def _write_hyperlinks_changed(self):
|
|
196
|
+
def _write_hyperlinks_changed(self) -> None:
|
|
195
197
|
# Write the <HyperlinksChanged> element.
|
|
196
198
|
self._xml_data_element("HyperlinksChanged", "false")
|
|
197
199
|
|
|
198
|
-
def _write_app_version(self):
|
|
200
|
+
def _write_app_version(self) -> None:
|
|
199
201
|
# Write the <AppVersion> element.
|
|
200
202
|
self._xml_data_element("AppVersion", "12.0000")
|