@v587d/capital-generation 2.29.0 → 2.30.0
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.
- package/CHANGELOG.md +38 -0
- package/README.md +3 -3
- package/THIRD_PARTY_NOTICES.md +16 -0
- package/automation/package.json +1 -1
- package/chart-ui/package.json +1 -1
- package/config/package.json +1 -1
- package/lib/collector-runtime.js +56 -1
- package/lib/data-collector/catalog-taxonomy.d.ts +1 -1
- package/lib/data-collector/catalog-taxonomy.js +33 -0
- package/lib/data-collector/tools.js +7 -7
- package/lib/python-runtime/errors.d.ts +1 -1
- package/lib/python-runtime/errors.js +2 -0
- package/lib/python-runtime/manager.d.ts +28 -1
- package/lib/python-runtime/manager.js +141 -5
- package/lib/python-runtime/probe.d.ts +24 -0
- package/lib/python-runtime/probe.js +66 -50
- package/lib/sources/csindex-http.d.ts +4 -0
- package/lib/sources/csindex-http.js +233 -0
- package/lib/sources/eastmoney-http.js +1504 -1
- package/lib/sources/fuyao-rest.js +168 -8
- package/lib/sources/official-http.d.ts +4 -0
- package/lib/sources/official-http.js +477 -0
- package/lib/sources/python-remote.d.ts +25 -0
- package/lib/sources/python-remote.js +461 -0
- package/lib/sources/sina-http.d.ts +2 -0
- package/lib/sources/sina-http.js +484 -0
- package/lib/sources/tencent-http.js +23 -8
- package/lib/sources/ths-http.d.ts +2 -0
- package/lib/sources/ths-http.js +514 -0
- package/lib/time/tools.js +19 -0
- package/lib/web-retriever/local-fetch.d.ts +1 -1
- package/lib/web-retriever/local-fetch.js +1 -1
- package/lib/web-retriever/sources.d.ts +7 -0
- package/lib/web-retriever/sources.js +46 -21
- package/lib/web-retriever/throttle.d.ts +8 -0
- package/lib/web-retriever/throttle.js +13 -0
- package/lib/web-retriever/tools.js +1 -1
- package/lib/web-retriever/wind-client.d.ts +1 -1
- package/lib/web-retriever/wind-client.js +1 -1
- package/package.json +1 -1
- package/preset/capital-generation/agent.patch.yml +7 -5
- package/preset/capital-generation/skills/capital-data-protocol/SKILL.md +16 -16
- package/python/scripts/baostock_stock_basic.py +129 -0
- package/python/scripts/baostock_valuation_history.py +141 -0
- package/python/scripts/pbc_social_financing.py +291 -0
- package/python/vendor/baostock/LICENSE +19 -0
- package/python/vendor/baostock/__init__.py +42 -0
- package/python/vendor/baostock/common/__init__.py +0 -0
- package/python/vendor/baostock/common/contants.py +189 -0
- package/python/vendor/baostock/common/context.py +4 -0
- package/python/vendor/baostock/corpreport/__init__.py +0 -0
- package/python/vendor/baostock/corpreport/corp_performance.py +202 -0
- package/python/vendor/baostock/data/__init__.py +0 -0
- package/python/vendor/baostock/data/messageheader.py +17 -0
- package/python/vendor/baostock/data/msg.py +21 -0
- package/python/vendor/baostock/data/resultset.py +200 -0
- package/python/vendor/baostock/demo/__init__.py +0 -0
- package/python/vendor/baostock/demo/demo_A_stock_5mk-data.py +34 -0
- package/python/vendor/baostock/demo/demo_A_stock_k_data.py +36 -0
- package/python/vendor/baostock/demo/demo_AllStock.py +27 -0
- package/python/vendor/baostock/demo/demo_Balance_data.py +22 -0
- package/python/vendor/baostock/demo/demo_CashFlow_data.py +22 -0
- package/python/vendor/baostock/demo/demo_Dividend_data.py +35 -0
- package/python/vendor/baostock/demo/demo_Dupont_data.py +25 -0
- package/python/vendor/baostock/demo/demo_Forecast_report.py +24 -0
- package/python/vendor/baostock/demo/demo_Growth_data.py +22 -0
- package/python/vendor/baostock/demo/demo_Index_k_data.py +39 -0
- package/python/vendor/baostock/demo/demo_Operation_data.py +22 -0
- package/python/vendor/baostock/demo/demo_PerformanceExpress_report.py +25 -0
- package/python/vendor/baostock/demo/demo_Profit_data.py +22 -0
- package/python/vendor/baostock/demo/demo_TradeDates.py +27 -0
- package/python/vendor/baostock/demo/demo_adjust_factor_data.py +23 -0
- package/python/vendor/baostock/demo/demo_assignDayData.py +23 -0
- package/python/vendor/baostock/demo/demo_daily_adjust_factor_data.py +28 -0
- package/python/vendor/baostock/demo/demo_daily_k_4_AStock.py +28 -0
- package/python/vendor/baostock/demo/demo_daily_k_4_ETF.py +28 -0
- package/python/vendor/baostock/demo/demo_depositRate_data.py +26 -0
- package/python/vendor/baostock/demo/demo_hs300_stocks.py +26 -0
- package/python/vendor/baostock/demo/demo_loanRate_data.py +26 -0
- package/python/vendor/baostock/demo/demo_moneySupplyDataMonth_data.py +26 -0
- package/python/vendor/baostock/demo/demo_moneySupplyDataYear_data.py +26 -0
- package/python/vendor/baostock/demo/demo_requiredReserveRatio_data.py +26 -0
- package/python/vendor/baostock/demo/demo_set_API_key.py +37 -0
- package/python/vendor/baostock/demo/demo_stockBasic_data.py +27 -0
- package/python/vendor/baostock/demo/demo_stock_Valuation_indicator_data.py +34 -0
- package/python/vendor/baostock/demo/demo_stock_industry.py +26 -0
- package/python/vendor/baostock/demo/demo_sz50stocks.py +26 -0
- package/python/vendor/baostock/demo/demo_zz500_stock.py +26 -0
- package/python/vendor/baostock/evaluation/__init__.py +0 -0
- package/python/vendor/baostock/evaluation/season_index.py +758 -0
- package/python/vendor/baostock/login/__init__.py +0 -0
- package/python/vendor/baostock/login/loginout.py +230 -0
- package/python/vendor/baostock/macroscopic/__init__.py +0 -0
- package/python/vendor/baostock/macroscopic/economic_data.py +723 -0
- package/python/vendor/baostock/metadata/__init__.py +0 -0
- package/python/vendor/baostock/metadata/stock_metadata.py +207 -0
- package/python/vendor/baostock/security/__init__.py +0 -0
- package/python/vendor/baostock/security/history.py +265 -0
- package/python/vendor/baostock/security/sectorinfo.py +1024 -0
- package/python/vendor/baostock/util/__init__.py +0 -0
- package/python/vendor/baostock/util/socketutil.py +97 -0
- package/python/vendor/baostock/util/stringutil.py +83 -0
- package/python/vendor/et_xmlfile/LICENSE +23 -0
- package/python/vendor/et_xmlfile/LICENSE.python +298 -0
- package/python/vendor/et_xmlfile/__init__.py +8 -0
- package/python/vendor/et_xmlfile/incremental_tree.py +917 -0
- package/python/vendor/et_xmlfile/xmlfile.py +158 -0
- package/python/vendor/openpyxl/LICENSE +23 -0
- package/python/vendor/openpyxl/__init__.py +19 -0
- package/python/vendor/openpyxl/_constants.py +13 -0
- package/python/vendor/openpyxl/cell/__init__.py +4 -0
- package/python/vendor/openpyxl/cell/_writer.py +136 -0
- package/python/vendor/openpyxl/cell/cell.py +332 -0
- package/python/vendor/openpyxl/cell/read_only.py +136 -0
- package/python/vendor/openpyxl/cell/rich_text.py +202 -0
- package/python/vendor/openpyxl/cell/text.py +184 -0
- package/python/vendor/openpyxl/chart/_3d.py +105 -0
- package/python/vendor/openpyxl/chart/__init__.py +19 -0
- package/python/vendor/openpyxl/chart/_chart.py +199 -0
- package/python/vendor/openpyxl/chart/area_chart.py +106 -0
- package/python/vendor/openpyxl/chart/axis.py +401 -0
- package/python/vendor/openpyxl/chart/bar_chart.py +144 -0
- package/python/vendor/openpyxl/chart/bubble_chart.py +67 -0
- package/python/vendor/openpyxl/chart/chartspace.py +195 -0
- package/python/vendor/openpyxl/chart/data_source.py +246 -0
- package/python/vendor/openpyxl/chart/descriptors.py +43 -0
- package/python/vendor/openpyxl/chart/error_bar.py +62 -0
- package/python/vendor/openpyxl/chart/label.py +127 -0
- package/python/vendor/openpyxl/chart/layout.py +74 -0
- package/python/vendor/openpyxl/chart/legend.py +75 -0
- package/python/vendor/openpyxl/chart/line_chart.py +129 -0
- package/python/vendor/openpyxl/chart/marker.py +90 -0
- package/python/vendor/openpyxl/chart/picture.py +35 -0
- package/python/vendor/openpyxl/chart/pie_chart.py +177 -0
- package/python/vendor/openpyxl/chart/pivot.py +65 -0
- package/python/vendor/openpyxl/chart/plotarea.py +162 -0
- package/python/vendor/openpyxl/chart/print_settings.py +57 -0
- package/python/vendor/openpyxl/chart/radar_chart.py +55 -0
- package/python/vendor/openpyxl/chart/reader.py +32 -0
- package/python/vendor/openpyxl/chart/reference.py +124 -0
- package/python/vendor/openpyxl/chart/scatter_chart.py +53 -0
- package/python/vendor/openpyxl/chart/series.py +197 -0
- package/python/vendor/openpyxl/chart/series_factory.py +41 -0
- package/python/vendor/openpyxl/chart/shapes.py +89 -0
- package/python/vendor/openpyxl/chart/stock_chart.py +54 -0
- package/python/vendor/openpyxl/chart/surface_chart.py +119 -0
- package/python/vendor/openpyxl/chart/text.py +78 -0
- package/python/vendor/openpyxl/chart/title.py +76 -0
- package/python/vendor/openpyxl/chart/trendline.py +98 -0
- package/python/vendor/openpyxl/chart/updown_bars.py +31 -0
- package/python/vendor/openpyxl/chartsheet/__init__.py +3 -0
- package/python/vendor/openpyxl/chartsheet/chartsheet.py +107 -0
- package/python/vendor/openpyxl/chartsheet/custom.py +61 -0
- package/python/vendor/openpyxl/chartsheet/properties.py +28 -0
- package/python/vendor/openpyxl/chartsheet/protection.py +41 -0
- package/python/vendor/openpyxl/chartsheet/publish.py +58 -0
- package/python/vendor/openpyxl/chartsheet/relation.py +97 -0
- package/python/vendor/openpyxl/chartsheet/views.py +51 -0
- package/python/vendor/openpyxl/comments/__init__.py +4 -0
- package/python/vendor/openpyxl/comments/author.py +21 -0
- package/python/vendor/openpyxl/comments/comment_sheet.py +211 -0
- package/python/vendor/openpyxl/comments/comments.py +62 -0
- package/python/vendor/openpyxl/comments/shape_writer.py +112 -0
- package/python/vendor/openpyxl/compat/__init__.py +54 -0
- package/python/vendor/openpyxl/compat/abc.py +8 -0
- package/python/vendor/openpyxl/compat/numbers.py +43 -0
- package/python/vendor/openpyxl/compat/product.py +17 -0
- package/python/vendor/openpyxl/compat/singleton.py +40 -0
- package/python/vendor/openpyxl/compat/strings.py +25 -0
- package/python/vendor/openpyxl/descriptors/__init__.py +58 -0
- package/python/vendor/openpyxl/descriptors/base.py +272 -0
- package/python/vendor/openpyxl/descriptors/container.py +41 -0
- package/python/vendor/openpyxl/descriptors/excel.py +112 -0
- package/python/vendor/openpyxl/descriptors/namespace.py +12 -0
- package/python/vendor/openpyxl/descriptors/nested.py +129 -0
- package/python/vendor/openpyxl/descriptors/sequence.py +136 -0
- package/python/vendor/openpyxl/descriptors/serialisable.py +240 -0
- package/python/vendor/openpyxl/descriptors/slots.py +18 -0
- package/python/vendor/openpyxl/drawing/__init__.py +4 -0
- package/python/vendor/openpyxl/drawing/colors.py +435 -0
- package/python/vendor/openpyxl/drawing/connector.py +144 -0
- package/python/vendor/openpyxl/drawing/drawing.py +92 -0
- package/python/vendor/openpyxl/drawing/effect.py +407 -0
- package/python/vendor/openpyxl/drawing/fill.py +425 -0
- package/python/vendor/openpyxl/drawing/geometry.py +584 -0
- package/python/vendor/openpyxl/drawing/graphic.py +177 -0
- package/python/vendor/openpyxl/drawing/image.py +65 -0
- package/python/vendor/openpyxl/drawing/line.py +144 -0
- package/python/vendor/openpyxl/drawing/picture.py +144 -0
- package/python/vendor/openpyxl/drawing/properties.py +174 -0
- package/python/vendor/openpyxl/drawing/relation.py +17 -0
- package/python/vendor/openpyxl/drawing/spreadsheet_drawing.py +382 -0
- package/python/vendor/openpyxl/drawing/text.py +717 -0
- package/python/vendor/openpyxl/drawing/xdr.py +33 -0
- package/python/vendor/openpyxl/formatting/__init__.py +3 -0
- package/python/vendor/openpyxl/formatting/formatting.py +114 -0
- package/python/vendor/openpyxl/formatting/rule.py +291 -0
- package/python/vendor/openpyxl/formula/__init__.py +3 -0
- package/python/vendor/openpyxl/formula/tokenizer.py +446 -0
- package/python/vendor/openpyxl/formula/translate.py +166 -0
- package/python/vendor/openpyxl/packaging/__init__.py +3 -0
- package/python/vendor/openpyxl/packaging/core.py +115 -0
- package/python/vendor/openpyxl/packaging/custom.py +289 -0
- package/python/vendor/openpyxl/packaging/extended.py +137 -0
- package/python/vendor/openpyxl/packaging/interface.py +56 -0
- package/python/vendor/openpyxl/packaging/manifest.py +194 -0
- package/python/vendor/openpyxl/packaging/relationship.py +158 -0
- package/python/vendor/openpyxl/packaging/workbook.py +185 -0
- package/python/vendor/openpyxl/pivot/__init__.py +1 -0
- package/python/vendor/openpyxl/pivot/cache.py +965 -0
- package/python/vendor/openpyxl/pivot/fields.py +326 -0
- package/python/vendor/openpyxl/pivot/record.py +111 -0
- package/python/vendor/openpyxl/pivot/table.py +1261 -0
- package/python/vendor/openpyxl/reader/__init__.py +1 -0
- package/python/vendor/openpyxl/reader/drawings.py +71 -0
- package/python/vendor/openpyxl/reader/excel.py +349 -0
- package/python/vendor/openpyxl/reader/strings.py +44 -0
- package/python/vendor/openpyxl/reader/workbook.py +133 -0
- package/python/vendor/openpyxl/styles/__init__.py +11 -0
- package/python/vendor/openpyxl/styles/alignment.py +62 -0
- package/python/vendor/openpyxl/styles/borders.py +103 -0
- package/python/vendor/openpyxl/styles/builtins.py +1397 -0
- package/python/vendor/openpyxl/styles/cell_style.py +206 -0
- package/python/vendor/openpyxl/styles/colors.py +172 -0
- package/python/vendor/openpyxl/styles/differential.py +95 -0
- package/python/vendor/openpyxl/styles/fills.py +224 -0
- package/python/vendor/openpyxl/styles/fonts.py +113 -0
- package/python/vendor/openpyxl/styles/named_styles.py +282 -0
- package/python/vendor/openpyxl/styles/numbers.py +200 -0
- package/python/vendor/openpyxl/styles/protection.py +17 -0
- package/python/vendor/openpyxl/styles/proxy.py +62 -0
- package/python/vendor/openpyxl/styles/styleable.py +151 -0
- package/python/vendor/openpyxl/styles/stylesheet.py +274 -0
- package/python/vendor/openpyxl/styles/table.py +94 -0
- package/python/vendor/openpyxl/utils/__init__.py +17 -0
- package/python/vendor/openpyxl/utils/bound_dictionary.py +26 -0
- package/python/vendor/openpyxl/utils/cell.py +240 -0
- package/python/vendor/openpyxl/utils/dataframe.py +87 -0
- package/python/vendor/openpyxl/utils/datetime.py +140 -0
- package/python/vendor/openpyxl/utils/escape.py +43 -0
- package/python/vendor/openpyxl/utils/exceptions.py +34 -0
- package/python/vendor/openpyxl/utils/formulas.py +24 -0
- package/python/vendor/openpyxl/utils/indexed_list.py +49 -0
- package/python/vendor/openpyxl/utils/inference.py +60 -0
- package/python/vendor/openpyxl/utils/protection.py +22 -0
- package/python/vendor/openpyxl/utils/units.py +108 -0
- package/python/vendor/openpyxl/workbook/__init__.py +4 -0
- package/python/vendor/openpyxl/workbook/_writer.py +197 -0
- package/python/vendor/openpyxl/workbook/child.py +166 -0
- package/python/vendor/openpyxl/workbook/defined_name.py +189 -0
- package/python/vendor/openpyxl/workbook/external_link/__init__.py +3 -0
- package/python/vendor/openpyxl/workbook/external_link/external.py +190 -0
- package/python/vendor/openpyxl/workbook/external_reference.py +18 -0
- package/python/vendor/openpyxl/workbook/function_group.py +36 -0
- package/python/vendor/openpyxl/workbook/properties.py +151 -0
- package/python/vendor/openpyxl/workbook/protection.py +163 -0
- package/python/vendor/openpyxl/workbook/smart_tags.py +56 -0
- package/python/vendor/openpyxl/workbook/views.py +155 -0
- package/python/vendor/openpyxl/workbook/web.py +98 -0
- package/python/vendor/openpyxl/workbook/workbook.py +438 -0
- package/python/vendor/openpyxl/worksheet/__init__.py +1 -0
- package/python/vendor/openpyxl/worksheet/_read_only.py +190 -0
- package/python/vendor/openpyxl/worksheet/_reader.py +472 -0
- package/python/vendor/openpyxl/worksheet/_write_only.py +160 -0
- package/python/vendor/openpyxl/worksheet/_writer.py +390 -0
- package/python/vendor/openpyxl/worksheet/cell_range.py +512 -0
- package/python/vendor/openpyxl/worksheet/cell_watch.py +34 -0
- package/python/vendor/openpyxl/worksheet/controls.py +107 -0
- package/python/vendor/openpyxl/worksheet/copier.py +70 -0
- package/python/vendor/openpyxl/worksheet/custom.py +35 -0
- package/python/vendor/openpyxl/worksheet/datavalidation.py +202 -0
- package/python/vendor/openpyxl/worksheet/dimensions.py +306 -0
- package/python/vendor/openpyxl/worksheet/drawing.py +14 -0
- package/python/vendor/openpyxl/worksheet/errors.py +93 -0
- package/python/vendor/openpyxl/worksheet/filters.py +486 -0
- package/python/vendor/openpyxl/worksheet/formula.py +51 -0
- package/python/vendor/openpyxl/worksheet/header_footer.py +270 -0
- package/python/vendor/openpyxl/worksheet/hyperlink.py +46 -0
- package/python/vendor/openpyxl/worksheet/merge.py +141 -0
- package/python/vendor/openpyxl/worksheet/ole.py +133 -0
- package/python/vendor/openpyxl/worksheet/page.py +174 -0
- package/python/vendor/openpyxl/worksheet/pagebreak.py +94 -0
- package/python/vendor/openpyxl/worksheet/picture.py +8 -0
- package/python/vendor/openpyxl/worksheet/print_settings.py +184 -0
- package/python/vendor/openpyxl/worksheet/properties.py +97 -0
- package/python/vendor/openpyxl/worksheet/protection.py +120 -0
- package/python/vendor/openpyxl/worksheet/related.py +17 -0
- package/python/vendor/openpyxl/worksheet/scenario.py +105 -0
- package/python/vendor/openpyxl/worksheet/smart_tag.py +78 -0
- package/python/vendor/openpyxl/worksheet/table.py +385 -0
- package/python/vendor/openpyxl/worksheet/views.py +155 -0
- package/python/vendor/openpyxl/worksheet/worksheet.py +907 -0
- package/python/vendor/openpyxl/writer/__init__.py +1 -0
- package/python/vendor/openpyxl/writer/excel.py +295 -0
- package/python/vendor/openpyxl/writer/theme.py +291 -0
- package/python/vendor/openpyxl/xml/__init__.py +42 -0
- package/python/vendor/openpyxl/xml/constants.py +129 -0
- package/python/vendor/openpyxl/xml/functions.py +87 -0
- package/watchlist/package.json +1 -1
|
@@ -0,0 +1,717 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
5
|
+
from openpyxl.descriptors import (
|
|
6
|
+
Alias,
|
|
7
|
+
Typed,
|
|
8
|
+
Set,
|
|
9
|
+
NoneSet,
|
|
10
|
+
Sequence,
|
|
11
|
+
String,
|
|
12
|
+
Bool,
|
|
13
|
+
MinMax,
|
|
14
|
+
Integer
|
|
15
|
+
)
|
|
16
|
+
from openpyxl.descriptors.excel import (
|
|
17
|
+
HexBinary,
|
|
18
|
+
Coordinate,
|
|
19
|
+
Relation,
|
|
20
|
+
)
|
|
21
|
+
from openpyxl.descriptors.nested import (
|
|
22
|
+
NestedInteger,
|
|
23
|
+
NestedText,
|
|
24
|
+
NestedValue,
|
|
25
|
+
EmptyTag
|
|
26
|
+
)
|
|
27
|
+
from openpyxl.xml.constants import DRAWING_NS
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
from .colors import ColorChoiceDescriptor
|
|
31
|
+
from .effect import (
|
|
32
|
+
EffectList,
|
|
33
|
+
EffectContainer,
|
|
34
|
+
)
|
|
35
|
+
from .fill import(
|
|
36
|
+
GradientFillProperties,
|
|
37
|
+
BlipFillProperties,
|
|
38
|
+
PatternFillProperties,
|
|
39
|
+
Blip
|
|
40
|
+
)
|
|
41
|
+
from .geometry import (
|
|
42
|
+
LineProperties,
|
|
43
|
+
Color,
|
|
44
|
+
Scene3D
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
from openpyxl.descriptors.excel import ExtensionList as OfficeArtExtensionList
|
|
48
|
+
from openpyxl.descriptors.nested import NestedBool
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class EmbeddedWAVAudioFile(Serialisable):
|
|
52
|
+
|
|
53
|
+
name = String(allow_none=True)
|
|
54
|
+
|
|
55
|
+
def __init__(self,
|
|
56
|
+
name=None,
|
|
57
|
+
):
|
|
58
|
+
self.name = name
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class Hyperlink(Serialisable):
|
|
62
|
+
|
|
63
|
+
tagname = "hlinkClick"
|
|
64
|
+
namespace = DRAWING_NS
|
|
65
|
+
|
|
66
|
+
invalidUrl = String(allow_none=True)
|
|
67
|
+
action = String(allow_none=True)
|
|
68
|
+
tgtFrame = String(allow_none=True)
|
|
69
|
+
tooltip = String(allow_none=True)
|
|
70
|
+
history = Bool(allow_none=True)
|
|
71
|
+
highlightClick = Bool(allow_none=True)
|
|
72
|
+
endSnd = Bool(allow_none=True)
|
|
73
|
+
snd = Typed(expected_type=EmbeddedWAVAudioFile, allow_none=True)
|
|
74
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
75
|
+
id = Relation(allow_none=True)
|
|
76
|
+
|
|
77
|
+
__elements__ = ('snd',)
|
|
78
|
+
|
|
79
|
+
def __init__(self,
|
|
80
|
+
invalidUrl=None,
|
|
81
|
+
action=None,
|
|
82
|
+
tgtFrame=None,
|
|
83
|
+
tooltip=None,
|
|
84
|
+
history=None,
|
|
85
|
+
highlightClick=None,
|
|
86
|
+
endSnd=None,
|
|
87
|
+
snd=None,
|
|
88
|
+
extLst=None,
|
|
89
|
+
id=None,
|
|
90
|
+
):
|
|
91
|
+
self.invalidUrl = invalidUrl
|
|
92
|
+
self.action = action
|
|
93
|
+
self.tgtFrame = tgtFrame
|
|
94
|
+
self.tooltip = tooltip
|
|
95
|
+
self.history = history
|
|
96
|
+
self.highlightClick = highlightClick
|
|
97
|
+
self.endSnd = endSnd
|
|
98
|
+
self.snd = snd
|
|
99
|
+
self.id = id
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class Font(Serialisable):
|
|
103
|
+
|
|
104
|
+
tagname = "latin"
|
|
105
|
+
namespace = DRAWING_NS
|
|
106
|
+
|
|
107
|
+
typeface = String()
|
|
108
|
+
panose = HexBinary(allow_none=True)
|
|
109
|
+
pitchFamily = MinMax(min=0, max=52, allow_none=True)
|
|
110
|
+
charset = Integer(allow_none=True)
|
|
111
|
+
|
|
112
|
+
def __init__(self,
|
|
113
|
+
typeface=None,
|
|
114
|
+
panose=None,
|
|
115
|
+
pitchFamily=None,
|
|
116
|
+
charset=None,
|
|
117
|
+
):
|
|
118
|
+
self.typeface = typeface
|
|
119
|
+
self.panose = panose
|
|
120
|
+
self.pitchFamily = pitchFamily
|
|
121
|
+
self.charset = charset
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class CharacterProperties(Serialisable):
|
|
125
|
+
|
|
126
|
+
tagname = "defRPr"
|
|
127
|
+
namespace = DRAWING_NS
|
|
128
|
+
|
|
129
|
+
kumimoji = Bool(allow_none=True)
|
|
130
|
+
lang = String(allow_none=True)
|
|
131
|
+
altLang = String(allow_none=True)
|
|
132
|
+
sz = MinMax(allow_none=True, min=100, max=400000) # 100ths of a point
|
|
133
|
+
b = Bool(allow_none=True)
|
|
134
|
+
i = Bool(allow_none=True)
|
|
135
|
+
u = NoneSet(values=(['words', 'sng', 'dbl', 'heavy', 'dotted',
|
|
136
|
+
'dottedHeavy', 'dash', 'dashHeavy', 'dashLong', 'dashLongHeavy',
|
|
137
|
+
'dotDash', 'dotDashHeavy', 'dotDotDash', 'dotDotDashHeavy', 'wavy',
|
|
138
|
+
'wavyHeavy', 'wavyDbl']))
|
|
139
|
+
strike = NoneSet(values=(['noStrike', 'sngStrike', 'dblStrike']))
|
|
140
|
+
kern = Integer(allow_none=True)
|
|
141
|
+
cap = NoneSet(values=(['small', 'all']))
|
|
142
|
+
spc = Integer(allow_none=True)
|
|
143
|
+
normalizeH = Bool(allow_none=True)
|
|
144
|
+
baseline = Integer(allow_none=True)
|
|
145
|
+
noProof = Bool(allow_none=True)
|
|
146
|
+
dirty = Bool(allow_none=True)
|
|
147
|
+
err = Bool(allow_none=True)
|
|
148
|
+
smtClean = Bool(allow_none=True)
|
|
149
|
+
smtId = Integer(allow_none=True)
|
|
150
|
+
bmk = String(allow_none=True)
|
|
151
|
+
ln = Typed(expected_type=LineProperties, allow_none=True)
|
|
152
|
+
highlight = Typed(expected_type=Color, allow_none=True)
|
|
153
|
+
latin = Typed(expected_type=Font, allow_none=True)
|
|
154
|
+
ea = Typed(expected_type=Font, allow_none=True)
|
|
155
|
+
cs = Typed(expected_type=Font, allow_none=True)
|
|
156
|
+
sym = Typed(expected_type=Font, allow_none=True)
|
|
157
|
+
hlinkClick = Typed(expected_type=Hyperlink, allow_none=True)
|
|
158
|
+
hlinkMouseOver = Typed(expected_type=Hyperlink, allow_none=True)
|
|
159
|
+
rtl = NestedBool(allow_none=True)
|
|
160
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
161
|
+
# uses element group EG_FillProperties
|
|
162
|
+
noFill = EmptyTag(namespace=DRAWING_NS)
|
|
163
|
+
solidFill = ColorChoiceDescriptor()
|
|
164
|
+
gradFill = Typed(expected_type=GradientFillProperties, allow_none=True)
|
|
165
|
+
blipFill = Typed(expected_type=BlipFillProperties, allow_none=True)
|
|
166
|
+
pattFill = Typed(expected_type=PatternFillProperties, allow_none=True)
|
|
167
|
+
grpFill = EmptyTag(namespace=DRAWING_NS)
|
|
168
|
+
# uses element group EG_EffectProperties
|
|
169
|
+
effectLst = Typed(expected_type=EffectList, allow_none=True)
|
|
170
|
+
effectDag = Typed(expected_type=EffectContainer, allow_none=True)
|
|
171
|
+
# uses element group EG_TextUnderlineLine
|
|
172
|
+
uLnTx = EmptyTag()
|
|
173
|
+
uLn = Typed(expected_type=LineProperties, allow_none=True)
|
|
174
|
+
# uses element group EG_TextUnderlineFill
|
|
175
|
+
uFillTx = EmptyTag()
|
|
176
|
+
uFill = EmptyTag()
|
|
177
|
+
|
|
178
|
+
__elements__ = ('ln', 'noFill', 'solidFill', 'gradFill', 'blipFill',
|
|
179
|
+
'pattFill', 'grpFill', 'effectLst', 'effectDag', 'highlight','uLnTx',
|
|
180
|
+
'uLn', 'uFillTx', 'uFill', 'latin', 'ea', 'cs', 'sym', 'hlinkClick',
|
|
181
|
+
'hlinkMouseOver', 'rtl', )
|
|
182
|
+
|
|
183
|
+
def __init__(self,
|
|
184
|
+
kumimoji=None,
|
|
185
|
+
lang=None,
|
|
186
|
+
altLang=None,
|
|
187
|
+
sz=None,
|
|
188
|
+
b=None,
|
|
189
|
+
i=None,
|
|
190
|
+
u=None,
|
|
191
|
+
strike=None,
|
|
192
|
+
kern=None,
|
|
193
|
+
cap=None,
|
|
194
|
+
spc=None,
|
|
195
|
+
normalizeH=None,
|
|
196
|
+
baseline=None,
|
|
197
|
+
noProof=None,
|
|
198
|
+
dirty=None,
|
|
199
|
+
err=None,
|
|
200
|
+
smtClean=None,
|
|
201
|
+
smtId=None,
|
|
202
|
+
bmk=None,
|
|
203
|
+
ln=None,
|
|
204
|
+
highlight=None,
|
|
205
|
+
latin=None,
|
|
206
|
+
ea=None,
|
|
207
|
+
cs=None,
|
|
208
|
+
sym=None,
|
|
209
|
+
hlinkClick=None,
|
|
210
|
+
hlinkMouseOver=None,
|
|
211
|
+
rtl=None,
|
|
212
|
+
extLst=None,
|
|
213
|
+
noFill=None,
|
|
214
|
+
solidFill=None,
|
|
215
|
+
gradFill=None,
|
|
216
|
+
blipFill=None,
|
|
217
|
+
pattFill=None,
|
|
218
|
+
grpFill=None,
|
|
219
|
+
effectLst=None,
|
|
220
|
+
effectDag=None,
|
|
221
|
+
uLnTx=None,
|
|
222
|
+
uLn=None,
|
|
223
|
+
uFillTx=None,
|
|
224
|
+
uFill=None,
|
|
225
|
+
):
|
|
226
|
+
self.kumimoji = kumimoji
|
|
227
|
+
self.lang = lang
|
|
228
|
+
self.altLang = altLang
|
|
229
|
+
self.sz = sz
|
|
230
|
+
self.b = b
|
|
231
|
+
self.i = i
|
|
232
|
+
self.u = u
|
|
233
|
+
self.strike = strike
|
|
234
|
+
self.kern = kern
|
|
235
|
+
self.cap = cap
|
|
236
|
+
self.spc = spc
|
|
237
|
+
self.normalizeH = normalizeH
|
|
238
|
+
self.baseline = baseline
|
|
239
|
+
self.noProof = noProof
|
|
240
|
+
self.dirty = dirty
|
|
241
|
+
self.err = err
|
|
242
|
+
self.smtClean = smtClean
|
|
243
|
+
self.smtId = smtId
|
|
244
|
+
self.bmk = bmk
|
|
245
|
+
self.ln = ln
|
|
246
|
+
self.highlight = highlight
|
|
247
|
+
self.latin = latin
|
|
248
|
+
self.ea = ea
|
|
249
|
+
self.cs = cs
|
|
250
|
+
self.sym = sym
|
|
251
|
+
self.hlinkClick = hlinkClick
|
|
252
|
+
self.hlinkMouseOver = hlinkMouseOver
|
|
253
|
+
self.rtl = rtl
|
|
254
|
+
self.noFill = noFill
|
|
255
|
+
self.solidFill = solidFill
|
|
256
|
+
self.gradFill = gradFill
|
|
257
|
+
self.blipFill = blipFill
|
|
258
|
+
self.pattFill = pattFill
|
|
259
|
+
self.grpFill = grpFill
|
|
260
|
+
self.effectLst = effectLst
|
|
261
|
+
self.effectDag = effectDag
|
|
262
|
+
self.uLnTx = uLnTx
|
|
263
|
+
self.uLn = uLn
|
|
264
|
+
self.uFillTx = uFillTx
|
|
265
|
+
self.uFill = uFill
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
class TabStop(Serialisable):
|
|
269
|
+
|
|
270
|
+
pos = Typed(expected_type=Coordinate, allow_none=True)
|
|
271
|
+
algn = Typed(expected_type=Set(values=(['l', 'ctr', 'r', 'dec'])))
|
|
272
|
+
|
|
273
|
+
def __init__(self,
|
|
274
|
+
pos=None,
|
|
275
|
+
algn=None,
|
|
276
|
+
):
|
|
277
|
+
self.pos = pos
|
|
278
|
+
self.algn = algn
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
class TabStopList(Serialisable):
|
|
282
|
+
|
|
283
|
+
tab = Typed(expected_type=TabStop, allow_none=True)
|
|
284
|
+
|
|
285
|
+
def __init__(self,
|
|
286
|
+
tab=None,
|
|
287
|
+
):
|
|
288
|
+
self.tab = tab
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
class Spacing(Serialisable):
|
|
292
|
+
|
|
293
|
+
spcPct = NestedInteger(allow_none=True)
|
|
294
|
+
spcPts = NestedInteger(allow_none=True)
|
|
295
|
+
|
|
296
|
+
__elements__ = ('spcPct', 'spcPts')
|
|
297
|
+
|
|
298
|
+
def __init__(self,
|
|
299
|
+
spcPct=None,
|
|
300
|
+
spcPts=None,
|
|
301
|
+
):
|
|
302
|
+
self.spcPct = spcPct
|
|
303
|
+
self.spcPts = spcPts
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
class AutonumberBullet(Serialisable):
|
|
307
|
+
|
|
308
|
+
type = Set(values=(['alphaLcParenBoth', 'alphaUcParenBoth',
|
|
309
|
+
'alphaLcParenR', 'alphaUcParenR', 'alphaLcPeriod', 'alphaUcPeriod',
|
|
310
|
+
'arabicParenBoth', 'arabicParenR', 'arabicPeriod', 'arabicPlain',
|
|
311
|
+
'romanLcParenBoth', 'romanUcParenBoth', 'romanLcParenR', 'romanUcParenR',
|
|
312
|
+
'romanLcPeriod', 'romanUcPeriod', 'circleNumDbPlain',
|
|
313
|
+
'circleNumWdBlackPlain', 'circleNumWdWhitePlain', 'arabicDbPeriod',
|
|
314
|
+
'arabicDbPlain', 'ea1ChsPeriod', 'ea1ChsPlain', 'ea1ChtPeriod',
|
|
315
|
+
'ea1ChtPlain', 'ea1JpnChsDbPeriod', 'ea1JpnKorPlain', 'ea1JpnKorPeriod',
|
|
316
|
+
'arabic1Minus', 'arabic2Minus', 'hebrew2Minus', 'thaiAlphaPeriod',
|
|
317
|
+
'thaiAlphaParenR', 'thaiAlphaParenBoth', 'thaiNumPeriod',
|
|
318
|
+
'thaiNumParenR', 'thaiNumParenBoth', 'hindiAlphaPeriod',
|
|
319
|
+
'hindiNumPeriod', 'hindiNumParenR', 'hindiAlpha1Period']))
|
|
320
|
+
startAt = Integer()
|
|
321
|
+
|
|
322
|
+
def __init__(self,
|
|
323
|
+
type=None,
|
|
324
|
+
startAt=None,
|
|
325
|
+
):
|
|
326
|
+
self.type = type
|
|
327
|
+
self.startAt = startAt
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
class ParagraphProperties(Serialisable):
|
|
331
|
+
|
|
332
|
+
tagname = "pPr"
|
|
333
|
+
namespace = DRAWING_NS
|
|
334
|
+
|
|
335
|
+
marL = Integer(allow_none=True)
|
|
336
|
+
marR = Integer(allow_none=True)
|
|
337
|
+
lvl = Integer(allow_none=True)
|
|
338
|
+
indent = Integer(allow_none=True)
|
|
339
|
+
algn = NoneSet(values=(['l', 'ctr', 'r', 'just', 'justLow', 'dist', 'thaiDist']))
|
|
340
|
+
defTabSz = Integer(allow_none=True)
|
|
341
|
+
rtl = Bool(allow_none=True)
|
|
342
|
+
eaLnBrk = Bool(allow_none=True)
|
|
343
|
+
fontAlgn = NoneSet(values=(['auto', 't', 'ctr', 'base', 'b']))
|
|
344
|
+
latinLnBrk = Bool(allow_none=True)
|
|
345
|
+
hangingPunct = Bool(allow_none=True)
|
|
346
|
+
|
|
347
|
+
# uses element group EG_TextBulletColor
|
|
348
|
+
# uses element group EG_TextBulletSize
|
|
349
|
+
# uses element group EG_TextBulletTypeface
|
|
350
|
+
# uses element group EG_TextBullet
|
|
351
|
+
lnSpc = Typed(expected_type=Spacing, allow_none=True)
|
|
352
|
+
spcBef = Typed(expected_type=Spacing, allow_none=True)
|
|
353
|
+
spcAft = Typed(expected_type=Spacing, allow_none=True)
|
|
354
|
+
tabLst = Typed(expected_type=TabStopList, allow_none=True)
|
|
355
|
+
defRPr = Typed(expected_type=CharacterProperties, allow_none=True)
|
|
356
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
357
|
+
buClrTx = EmptyTag()
|
|
358
|
+
buClr = Typed(expected_type=Color, allow_none=True)
|
|
359
|
+
buSzTx = EmptyTag()
|
|
360
|
+
buSzPct = NestedInteger(allow_none=True)
|
|
361
|
+
buSzPts = NestedInteger(allow_none=True)
|
|
362
|
+
buFontTx = EmptyTag()
|
|
363
|
+
buFont = Typed(expected_type=Font, allow_none=True)
|
|
364
|
+
buNone = EmptyTag()
|
|
365
|
+
buAutoNum = EmptyTag()
|
|
366
|
+
buChar = NestedValue(expected_type=str, attribute="char", allow_none=True)
|
|
367
|
+
buBlip = NestedValue(expected_type=Blip, attribute="blip", allow_none=True)
|
|
368
|
+
|
|
369
|
+
__elements__ = ('lnSpc', 'spcBef', 'spcAft', 'tabLst', 'defRPr',
|
|
370
|
+
'buClrTx', 'buClr', 'buSzTx', 'buSzPct', 'buSzPts', 'buFontTx', 'buFont',
|
|
371
|
+
'buNone', 'buAutoNum', 'buChar', 'buBlip')
|
|
372
|
+
|
|
373
|
+
def __init__(self,
|
|
374
|
+
marL=None,
|
|
375
|
+
marR=None,
|
|
376
|
+
lvl=None,
|
|
377
|
+
indent=None,
|
|
378
|
+
algn=None,
|
|
379
|
+
defTabSz=None,
|
|
380
|
+
rtl=None,
|
|
381
|
+
eaLnBrk=None,
|
|
382
|
+
fontAlgn=None,
|
|
383
|
+
latinLnBrk=None,
|
|
384
|
+
hangingPunct=None,
|
|
385
|
+
lnSpc=None,
|
|
386
|
+
spcBef=None,
|
|
387
|
+
spcAft=None,
|
|
388
|
+
tabLst=None,
|
|
389
|
+
defRPr=None,
|
|
390
|
+
extLst=None,
|
|
391
|
+
buClrTx=None,
|
|
392
|
+
buClr=None,
|
|
393
|
+
buSzTx=None,
|
|
394
|
+
buSzPct=None,
|
|
395
|
+
buSzPts=None,
|
|
396
|
+
buFontTx=None,
|
|
397
|
+
buFont=None,
|
|
398
|
+
buNone=None,
|
|
399
|
+
buAutoNum=None,
|
|
400
|
+
buChar=None,
|
|
401
|
+
buBlip=None,
|
|
402
|
+
):
|
|
403
|
+
self.marL = marL
|
|
404
|
+
self.marR = marR
|
|
405
|
+
self.lvl = lvl
|
|
406
|
+
self.indent = indent
|
|
407
|
+
self.algn = algn
|
|
408
|
+
self.defTabSz = defTabSz
|
|
409
|
+
self.rtl = rtl
|
|
410
|
+
self.eaLnBrk = eaLnBrk
|
|
411
|
+
self.fontAlgn = fontAlgn
|
|
412
|
+
self.latinLnBrk = latinLnBrk
|
|
413
|
+
self.hangingPunct = hangingPunct
|
|
414
|
+
self.lnSpc = lnSpc
|
|
415
|
+
self.spcBef = spcBef
|
|
416
|
+
self.spcAft = spcAft
|
|
417
|
+
self.tabLst = tabLst
|
|
418
|
+
self.defRPr = defRPr
|
|
419
|
+
self.buClrTx = buClrTx
|
|
420
|
+
self.buClr = buClr
|
|
421
|
+
self.buSzTx = buSzTx
|
|
422
|
+
self.buSzPct = buSzPct
|
|
423
|
+
self.buSzPts = buSzPts
|
|
424
|
+
self.buFontTx = buFontTx
|
|
425
|
+
self.buFont = buFont
|
|
426
|
+
self.buNone = buNone
|
|
427
|
+
self.buAutoNum = buAutoNum
|
|
428
|
+
self.buChar = buChar
|
|
429
|
+
self.buBlip = buBlip
|
|
430
|
+
self.defRPr = defRPr
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
class ListStyle(Serialisable):
|
|
434
|
+
|
|
435
|
+
tagname = "lstStyle"
|
|
436
|
+
namespace = DRAWING_NS
|
|
437
|
+
|
|
438
|
+
defPPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
439
|
+
lvl1pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
440
|
+
lvl2pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
441
|
+
lvl3pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
442
|
+
lvl4pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
443
|
+
lvl5pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
444
|
+
lvl6pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
445
|
+
lvl7pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
446
|
+
lvl8pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
447
|
+
lvl9pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
448
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
449
|
+
|
|
450
|
+
__elements__ = ("defPPr", "lvl1pPr", "lvl2pPr", "lvl3pPr", "lvl4pPr",
|
|
451
|
+
"lvl5pPr", "lvl6pPr", "lvl7pPr", "lvl8pPr", "lvl9pPr")
|
|
452
|
+
|
|
453
|
+
def __init__(self,
|
|
454
|
+
defPPr=None,
|
|
455
|
+
lvl1pPr=None,
|
|
456
|
+
lvl2pPr=None,
|
|
457
|
+
lvl3pPr=None,
|
|
458
|
+
lvl4pPr=None,
|
|
459
|
+
lvl5pPr=None,
|
|
460
|
+
lvl6pPr=None,
|
|
461
|
+
lvl7pPr=None,
|
|
462
|
+
lvl8pPr=None,
|
|
463
|
+
lvl9pPr=None,
|
|
464
|
+
extLst=None,
|
|
465
|
+
):
|
|
466
|
+
self.defPPr = defPPr
|
|
467
|
+
self.lvl1pPr = lvl1pPr
|
|
468
|
+
self.lvl2pPr = lvl2pPr
|
|
469
|
+
self.lvl3pPr = lvl3pPr
|
|
470
|
+
self.lvl4pPr = lvl4pPr
|
|
471
|
+
self.lvl5pPr = lvl5pPr
|
|
472
|
+
self.lvl6pPr = lvl6pPr
|
|
473
|
+
self.lvl7pPr = lvl7pPr
|
|
474
|
+
self.lvl8pPr = lvl8pPr
|
|
475
|
+
self.lvl9pPr = lvl9pPr
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
class RegularTextRun(Serialisable):
|
|
479
|
+
|
|
480
|
+
tagname = "r"
|
|
481
|
+
namespace = DRAWING_NS
|
|
482
|
+
|
|
483
|
+
rPr = Typed(expected_type=CharacterProperties, allow_none=True)
|
|
484
|
+
properties = Alias("rPr")
|
|
485
|
+
t = NestedText(expected_type=str)
|
|
486
|
+
value = Alias("t")
|
|
487
|
+
|
|
488
|
+
__elements__ = ('rPr', 't')
|
|
489
|
+
|
|
490
|
+
def __init__(self,
|
|
491
|
+
rPr=None,
|
|
492
|
+
t="",
|
|
493
|
+
):
|
|
494
|
+
self.rPr = rPr
|
|
495
|
+
self.t = t
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
class LineBreak(Serialisable):
|
|
499
|
+
|
|
500
|
+
tagname = "br"
|
|
501
|
+
namespace = DRAWING_NS
|
|
502
|
+
|
|
503
|
+
rPr = Typed(expected_type=CharacterProperties, allow_none=True)
|
|
504
|
+
|
|
505
|
+
__elements__ = ('rPr',)
|
|
506
|
+
|
|
507
|
+
def __init__(self,
|
|
508
|
+
rPr=None,
|
|
509
|
+
):
|
|
510
|
+
self.rPr = rPr
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
class TextField(Serialisable):
|
|
514
|
+
|
|
515
|
+
id = String()
|
|
516
|
+
type = String(allow_none=True)
|
|
517
|
+
rPr = Typed(expected_type=CharacterProperties, allow_none=True)
|
|
518
|
+
pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
519
|
+
t = String(allow_none=True)
|
|
520
|
+
|
|
521
|
+
__elements__ = ('rPr', 'pPr')
|
|
522
|
+
|
|
523
|
+
def __init__(self,
|
|
524
|
+
id=None,
|
|
525
|
+
type=None,
|
|
526
|
+
rPr=None,
|
|
527
|
+
pPr=None,
|
|
528
|
+
t=None,
|
|
529
|
+
):
|
|
530
|
+
self.id = id
|
|
531
|
+
self.type = type
|
|
532
|
+
self.rPr = rPr
|
|
533
|
+
self.pPr = pPr
|
|
534
|
+
self.t = t
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
class Paragraph(Serialisable):
|
|
538
|
+
|
|
539
|
+
tagname = "p"
|
|
540
|
+
namespace = DRAWING_NS
|
|
541
|
+
|
|
542
|
+
# uses element group EG_TextRun
|
|
543
|
+
pPr = Typed(expected_type=ParagraphProperties, allow_none=True)
|
|
544
|
+
properties = Alias("pPr")
|
|
545
|
+
endParaRPr = Typed(expected_type=CharacterProperties, allow_none=True)
|
|
546
|
+
r = Sequence(expected_type=RegularTextRun)
|
|
547
|
+
text = Alias('r')
|
|
548
|
+
br = Typed(expected_type=LineBreak, allow_none=True)
|
|
549
|
+
fld = Typed(expected_type=TextField, allow_none=True)
|
|
550
|
+
|
|
551
|
+
__elements__ = ('pPr', 'r', 'br', 'fld', 'endParaRPr')
|
|
552
|
+
|
|
553
|
+
def __init__(self,
|
|
554
|
+
pPr=None,
|
|
555
|
+
endParaRPr=None,
|
|
556
|
+
r=None,
|
|
557
|
+
br=None,
|
|
558
|
+
fld=None,
|
|
559
|
+
):
|
|
560
|
+
self.pPr = pPr
|
|
561
|
+
self.endParaRPr = endParaRPr
|
|
562
|
+
if r is None:
|
|
563
|
+
r = [RegularTextRun()]
|
|
564
|
+
self.r = r
|
|
565
|
+
self.br = br
|
|
566
|
+
self.fld = fld
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
class GeomGuide(Serialisable):
|
|
570
|
+
|
|
571
|
+
name = String(())
|
|
572
|
+
fmla = String(())
|
|
573
|
+
|
|
574
|
+
def __init__(self,
|
|
575
|
+
name=None,
|
|
576
|
+
fmla=None,
|
|
577
|
+
):
|
|
578
|
+
self.name = name
|
|
579
|
+
self.fmla = fmla
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
class GeomGuideList(Serialisable):
|
|
583
|
+
|
|
584
|
+
gd = Sequence(expected_type=GeomGuide, allow_none=True)
|
|
585
|
+
|
|
586
|
+
def __init__(self,
|
|
587
|
+
gd=None,
|
|
588
|
+
):
|
|
589
|
+
self.gd = gd
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
class PresetTextShape(Serialisable):
|
|
593
|
+
|
|
594
|
+
prst = Typed(expected_type=Set(values=(
|
|
595
|
+
['textNoShape', 'textPlain','textStop', 'textTriangle', 'textTriangleInverted', 'textChevron',
|
|
596
|
+
'textChevronInverted', 'textRingInside', 'textRingOutside', 'textArchUp',
|
|
597
|
+
'textArchDown', 'textCircle', 'textButton', 'textArchUpPour',
|
|
598
|
+
'textArchDownPour', 'textCirclePour', 'textButtonPour', 'textCurveUp',
|
|
599
|
+
'textCurveDown', 'textCanUp', 'textCanDown', 'textWave1', 'textWave2',
|
|
600
|
+
'textDoubleWave1', 'textWave4', 'textInflate', 'textDeflate',
|
|
601
|
+
'textInflateBottom', 'textDeflateBottom', 'textInflateTop',
|
|
602
|
+
'textDeflateTop', 'textDeflateInflate', 'textDeflateInflateDeflate',
|
|
603
|
+
'textFadeRight', 'textFadeLeft', 'textFadeUp', 'textFadeDown',
|
|
604
|
+
'textSlantUp', 'textSlantDown', 'textCascadeUp', 'textCascadeDown'
|
|
605
|
+
]
|
|
606
|
+
)))
|
|
607
|
+
avLst = Typed(expected_type=GeomGuideList, allow_none=True)
|
|
608
|
+
|
|
609
|
+
def __init__(self,
|
|
610
|
+
prst=None,
|
|
611
|
+
avLst=None,
|
|
612
|
+
):
|
|
613
|
+
self.prst = prst
|
|
614
|
+
self.avLst = avLst
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
class TextNormalAutofit(Serialisable):
|
|
618
|
+
|
|
619
|
+
fontScale = Integer()
|
|
620
|
+
lnSpcReduction = Integer()
|
|
621
|
+
|
|
622
|
+
def __init__(self,
|
|
623
|
+
fontScale=None,
|
|
624
|
+
lnSpcReduction=None,
|
|
625
|
+
):
|
|
626
|
+
self.fontScale = fontScale
|
|
627
|
+
self.lnSpcReduction = lnSpcReduction
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
class RichTextProperties(Serialisable):
|
|
631
|
+
|
|
632
|
+
tagname = "bodyPr"
|
|
633
|
+
namespace = DRAWING_NS
|
|
634
|
+
|
|
635
|
+
rot = Integer(allow_none=True)
|
|
636
|
+
spcFirstLastPara = Bool(allow_none=True)
|
|
637
|
+
vertOverflow = NoneSet(values=(['overflow', 'ellipsis', 'clip']))
|
|
638
|
+
horzOverflow = NoneSet(values=(['overflow', 'clip']))
|
|
639
|
+
vert = NoneSet(values=(['horz', 'vert', 'vert270', 'wordArtVert',
|
|
640
|
+
'eaVert', 'mongolianVert', 'wordArtVertRtl']))
|
|
641
|
+
wrap = NoneSet(values=(['none', 'square']))
|
|
642
|
+
lIns = Integer(allow_none=True)
|
|
643
|
+
tIns = Integer(allow_none=True)
|
|
644
|
+
rIns = Integer(allow_none=True)
|
|
645
|
+
bIns = Integer(allow_none=True)
|
|
646
|
+
numCol = Integer(allow_none=True)
|
|
647
|
+
spcCol = Integer(allow_none=True)
|
|
648
|
+
rtlCol = Bool(allow_none=True)
|
|
649
|
+
fromWordArt = Bool(allow_none=True)
|
|
650
|
+
anchor = NoneSet(values=(['t', 'ctr', 'b', 'just', 'dist']))
|
|
651
|
+
anchorCtr = Bool(allow_none=True)
|
|
652
|
+
forceAA = Bool(allow_none=True)
|
|
653
|
+
upright = Bool(allow_none=True)
|
|
654
|
+
compatLnSpc = Bool(allow_none=True)
|
|
655
|
+
prstTxWarp = Typed(expected_type=PresetTextShape, allow_none=True)
|
|
656
|
+
scene3d = Typed(expected_type=Scene3D, allow_none=True)
|
|
657
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
658
|
+
noAutofit = EmptyTag()
|
|
659
|
+
normAutofit = EmptyTag()
|
|
660
|
+
spAutoFit = EmptyTag()
|
|
661
|
+
flatTx = NestedInteger(attribute="z", allow_none=True)
|
|
662
|
+
|
|
663
|
+
__elements__ = ('prstTxWarp', 'scene3d', 'noAutofit', 'normAutofit', 'spAutoFit')
|
|
664
|
+
|
|
665
|
+
def __init__(self,
|
|
666
|
+
rot=None,
|
|
667
|
+
spcFirstLastPara=None,
|
|
668
|
+
vertOverflow=None,
|
|
669
|
+
horzOverflow=None,
|
|
670
|
+
vert=None,
|
|
671
|
+
wrap=None,
|
|
672
|
+
lIns=None,
|
|
673
|
+
tIns=None,
|
|
674
|
+
rIns=None,
|
|
675
|
+
bIns=None,
|
|
676
|
+
numCol=None,
|
|
677
|
+
spcCol=None,
|
|
678
|
+
rtlCol=None,
|
|
679
|
+
fromWordArt=None,
|
|
680
|
+
anchor=None,
|
|
681
|
+
anchorCtr=None,
|
|
682
|
+
forceAA=None,
|
|
683
|
+
upright=None,
|
|
684
|
+
compatLnSpc=None,
|
|
685
|
+
prstTxWarp=None,
|
|
686
|
+
scene3d=None,
|
|
687
|
+
extLst=None,
|
|
688
|
+
noAutofit=None,
|
|
689
|
+
normAutofit=None,
|
|
690
|
+
spAutoFit=None,
|
|
691
|
+
flatTx=None,
|
|
692
|
+
):
|
|
693
|
+
self.rot = rot
|
|
694
|
+
self.spcFirstLastPara = spcFirstLastPara
|
|
695
|
+
self.vertOverflow = vertOverflow
|
|
696
|
+
self.horzOverflow = horzOverflow
|
|
697
|
+
self.vert = vert
|
|
698
|
+
self.wrap = wrap
|
|
699
|
+
self.lIns = lIns
|
|
700
|
+
self.tIns = tIns
|
|
701
|
+
self.rIns = rIns
|
|
702
|
+
self.bIns = bIns
|
|
703
|
+
self.numCol = numCol
|
|
704
|
+
self.spcCol = spcCol
|
|
705
|
+
self.rtlCol = rtlCol
|
|
706
|
+
self.fromWordArt = fromWordArt
|
|
707
|
+
self.anchor = anchor
|
|
708
|
+
self.anchorCtr = anchorCtr
|
|
709
|
+
self.forceAA = forceAA
|
|
710
|
+
self.upright = upright
|
|
711
|
+
self.compatLnSpc = compatLnSpc
|
|
712
|
+
self.prstTxWarp = prstTxWarp
|
|
713
|
+
self.scene3d = scene3d
|
|
714
|
+
self.noAutofit = noAutofit
|
|
715
|
+
self.normAutofit = normAutofit
|
|
716
|
+
self.spAutoFit = spAutoFit
|
|
717
|
+
self.flatTx = flatTx
|