@v587d/capital-generation 2.29.0 → 2.30.1
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 +58 -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/dataset-tools.js +4 -2
- package/lib/data-collector/describe.d.ts +2 -0
- package/lib/data-collector/describe.js +2 -0
- package/lib/data-collector/store.d.ts +11 -0
- package/lib/data-collector/store.js +80 -1
- package/lib/data-collector/tools.d.ts +1 -1
- package/lib/data-collector/tools.js +10 -9
- 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 +517 -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,177 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.xml.constants import CHART_NS, DRAWING_NS
|
|
4
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
5
|
+
from openpyxl.descriptors import (
|
|
6
|
+
Typed,
|
|
7
|
+
Bool,
|
|
8
|
+
String,
|
|
9
|
+
Alias,
|
|
10
|
+
)
|
|
11
|
+
from openpyxl.descriptors.excel import ExtensionList as OfficeArtExtensionList
|
|
12
|
+
|
|
13
|
+
from .effect import (
|
|
14
|
+
EffectList,
|
|
15
|
+
EffectContainer,
|
|
16
|
+
)
|
|
17
|
+
from .fill import (
|
|
18
|
+
Blip,
|
|
19
|
+
GradientFillProperties,
|
|
20
|
+
BlipFillProperties,
|
|
21
|
+
)
|
|
22
|
+
from .picture import PictureFrame
|
|
23
|
+
from .properties import (
|
|
24
|
+
NonVisualDrawingProps,
|
|
25
|
+
NonVisualGroupShape,
|
|
26
|
+
GroupShapeProperties,
|
|
27
|
+
)
|
|
28
|
+
from .relation import ChartRelation
|
|
29
|
+
from .xdr import XDRTransform2D
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class GraphicFrameLocking(Serialisable):
|
|
33
|
+
|
|
34
|
+
noGrp = Bool(allow_none=True)
|
|
35
|
+
noDrilldown = Bool(allow_none=True)
|
|
36
|
+
noSelect = Bool(allow_none=True)
|
|
37
|
+
noChangeAspect = Bool(allow_none=True)
|
|
38
|
+
noMove = Bool(allow_none=True)
|
|
39
|
+
noResize = Bool(allow_none=True)
|
|
40
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
41
|
+
|
|
42
|
+
def __init__(self,
|
|
43
|
+
noGrp=None,
|
|
44
|
+
noDrilldown=None,
|
|
45
|
+
noSelect=None,
|
|
46
|
+
noChangeAspect=None,
|
|
47
|
+
noMove=None,
|
|
48
|
+
noResize=None,
|
|
49
|
+
extLst=None,
|
|
50
|
+
):
|
|
51
|
+
self.noGrp = noGrp
|
|
52
|
+
self.noDrilldown = noDrilldown
|
|
53
|
+
self.noSelect = noSelect
|
|
54
|
+
self.noChangeAspect = noChangeAspect
|
|
55
|
+
self.noMove = noMove
|
|
56
|
+
self.noResize = noResize
|
|
57
|
+
self.extLst = extLst
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class NonVisualGraphicFrameProperties(Serialisable):
|
|
61
|
+
|
|
62
|
+
tagname = "cNvGraphicFramePr"
|
|
63
|
+
|
|
64
|
+
graphicFrameLocks = Typed(expected_type=GraphicFrameLocking, allow_none=True)
|
|
65
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
66
|
+
|
|
67
|
+
def __init__(self,
|
|
68
|
+
graphicFrameLocks=None,
|
|
69
|
+
extLst=None,
|
|
70
|
+
):
|
|
71
|
+
self.graphicFrameLocks = graphicFrameLocks
|
|
72
|
+
self.extLst = extLst
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class NonVisualGraphicFrame(Serialisable):
|
|
76
|
+
|
|
77
|
+
tagname = "nvGraphicFramePr"
|
|
78
|
+
|
|
79
|
+
cNvPr = Typed(expected_type=NonVisualDrawingProps)
|
|
80
|
+
cNvGraphicFramePr = Typed(expected_type=NonVisualGraphicFrameProperties)
|
|
81
|
+
|
|
82
|
+
__elements__ = ('cNvPr', 'cNvGraphicFramePr')
|
|
83
|
+
|
|
84
|
+
def __init__(self,
|
|
85
|
+
cNvPr=None,
|
|
86
|
+
cNvGraphicFramePr=None,
|
|
87
|
+
):
|
|
88
|
+
if cNvPr is None:
|
|
89
|
+
cNvPr = NonVisualDrawingProps(id=0, name="Chart 0")
|
|
90
|
+
self.cNvPr = cNvPr
|
|
91
|
+
if cNvGraphicFramePr is None:
|
|
92
|
+
cNvGraphicFramePr = NonVisualGraphicFrameProperties()
|
|
93
|
+
self.cNvGraphicFramePr = cNvGraphicFramePr
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class GraphicData(Serialisable):
|
|
97
|
+
|
|
98
|
+
tagname = "graphicData"
|
|
99
|
+
namespace = DRAWING_NS
|
|
100
|
+
|
|
101
|
+
uri = String()
|
|
102
|
+
chart = Typed(expected_type=ChartRelation, allow_none=True)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def __init__(self,
|
|
106
|
+
uri=CHART_NS,
|
|
107
|
+
chart=None,
|
|
108
|
+
):
|
|
109
|
+
self.uri = uri
|
|
110
|
+
self.chart = chart
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
class GraphicObject(Serialisable):
|
|
114
|
+
|
|
115
|
+
tagname = "graphic"
|
|
116
|
+
namespace = DRAWING_NS
|
|
117
|
+
|
|
118
|
+
graphicData = Typed(expected_type=GraphicData)
|
|
119
|
+
|
|
120
|
+
def __init__(self,
|
|
121
|
+
graphicData=None,
|
|
122
|
+
):
|
|
123
|
+
if graphicData is None:
|
|
124
|
+
graphicData = GraphicData()
|
|
125
|
+
self.graphicData = graphicData
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class GraphicFrame(Serialisable):
|
|
129
|
+
|
|
130
|
+
tagname = "graphicFrame"
|
|
131
|
+
|
|
132
|
+
nvGraphicFramePr = Typed(expected_type=NonVisualGraphicFrame)
|
|
133
|
+
xfrm = Typed(expected_type=XDRTransform2D)
|
|
134
|
+
graphic = Typed(expected_type=GraphicObject)
|
|
135
|
+
macro = String(allow_none=True)
|
|
136
|
+
fPublished = Bool(allow_none=True)
|
|
137
|
+
|
|
138
|
+
__elements__ = ('nvGraphicFramePr', 'xfrm', 'graphic', 'macro', 'fPublished')
|
|
139
|
+
|
|
140
|
+
def __init__(self,
|
|
141
|
+
nvGraphicFramePr=None,
|
|
142
|
+
xfrm=None,
|
|
143
|
+
graphic=None,
|
|
144
|
+
macro=None,
|
|
145
|
+
fPublished=None,
|
|
146
|
+
):
|
|
147
|
+
if nvGraphicFramePr is None:
|
|
148
|
+
nvGraphicFramePr = NonVisualGraphicFrame()
|
|
149
|
+
self.nvGraphicFramePr = nvGraphicFramePr
|
|
150
|
+
if xfrm is None:
|
|
151
|
+
xfrm = XDRTransform2D()
|
|
152
|
+
self.xfrm = xfrm
|
|
153
|
+
if graphic is None:
|
|
154
|
+
graphic = GraphicObject()
|
|
155
|
+
self.graphic = graphic
|
|
156
|
+
self.macro = macro
|
|
157
|
+
self.fPublished = fPublished
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
class GroupShape(Serialisable):
|
|
161
|
+
|
|
162
|
+
nvGrpSpPr = Typed(expected_type=NonVisualGroupShape)
|
|
163
|
+
nonVisualProperties = Alias("nvGrpSpPr")
|
|
164
|
+
grpSpPr = Typed(expected_type=GroupShapeProperties)
|
|
165
|
+
visualProperties = Alias("grpSpPr")
|
|
166
|
+
pic = Typed(expected_type=PictureFrame, allow_none=True)
|
|
167
|
+
|
|
168
|
+
__elements__ = ["nvGrpSpPr", "grpSpPr", "pic"]
|
|
169
|
+
|
|
170
|
+
def __init__(self,
|
|
171
|
+
nvGrpSpPr=None,
|
|
172
|
+
grpSpPr=None,
|
|
173
|
+
pic=None,
|
|
174
|
+
):
|
|
175
|
+
self.nvGrpSpPr = nvGrpSpPr
|
|
176
|
+
self.grpSpPr = grpSpPr
|
|
177
|
+
self.pic = pic
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from io import BytesIO
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
from PIL import Image as PILImage
|
|
7
|
+
except ImportError:
|
|
8
|
+
PILImage = False
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _import_image(img):
|
|
12
|
+
if not PILImage:
|
|
13
|
+
raise ImportError('You must install Pillow to fetch image objects')
|
|
14
|
+
|
|
15
|
+
if not isinstance(img, PILImage.Image):
|
|
16
|
+
img = PILImage.open(img)
|
|
17
|
+
|
|
18
|
+
return img
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Image:
|
|
22
|
+
"""Image in a spreadsheet"""
|
|
23
|
+
|
|
24
|
+
_id = 1
|
|
25
|
+
_path = "/xl/media/image{0}.{1}"
|
|
26
|
+
anchor = "A1"
|
|
27
|
+
|
|
28
|
+
def __init__(self, img):
|
|
29
|
+
|
|
30
|
+
self.ref = img
|
|
31
|
+
mark_to_close = isinstance(img, str)
|
|
32
|
+
image = _import_image(img)
|
|
33
|
+
self.width, self.height = image.size
|
|
34
|
+
|
|
35
|
+
try:
|
|
36
|
+
self.format = image.format.lower()
|
|
37
|
+
except AttributeError:
|
|
38
|
+
self.format = "png"
|
|
39
|
+
if mark_to_close:
|
|
40
|
+
# PIL instances created for metadata should be closed.
|
|
41
|
+
image.close()
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _data(self):
|
|
45
|
+
"""
|
|
46
|
+
Return image data, convert to supported types if necessary
|
|
47
|
+
"""
|
|
48
|
+
img = _import_image(self.ref)
|
|
49
|
+
# don't convert these file formats
|
|
50
|
+
if self.format in ['gif', 'jpeg', 'png']:
|
|
51
|
+
img.fp.seek(0)
|
|
52
|
+
fp = img.fp
|
|
53
|
+
else:
|
|
54
|
+
fp = BytesIO()
|
|
55
|
+
img.save(fp, format="png")
|
|
56
|
+
fp.seek(0)
|
|
57
|
+
|
|
58
|
+
data = fp.read()
|
|
59
|
+
fp.close()
|
|
60
|
+
return data
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def path(self):
|
|
65
|
+
return self._path.format(self._id, self.format)
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
4
|
+
from openpyxl.descriptors import (
|
|
5
|
+
Typed,
|
|
6
|
+
Integer,
|
|
7
|
+
MinMax,
|
|
8
|
+
NoneSet,
|
|
9
|
+
Alias,
|
|
10
|
+
Sequence
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from openpyxl.descriptors.nested import (
|
|
14
|
+
NestedInteger,
|
|
15
|
+
NestedNoneSet,
|
|
16
|
+
EmptyTag,
|
|
17
|
+
)
|
|
18
|
+
from openpyxl.xml.constants import DRAWING_NS
|
|
19
|
+
|
|
20
|
+
from .colors import ColorChoiceDescriptor
|
|
21
|
+
from .fill import GradientFillProperties, PatternFillProperties
|
|
22
|
+
from openpyxl.descriptors.excel import ExtensionList as OfficeArtExtensionList
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
Line elements from drawing main schema
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class LineEndProperties(Serialisable):
|
|
30
|
+
|
|
31
|
+
tagname = "end"
|
|
32
|
+
namespace = DRAWING_NS
|
|
33
|
+
|
|
34
|
+
type = NoneSet(values=(['none', 'triangle', 'stealth', 'diamond', 'oval', 'arrow']))
|
|
35
|
+
w = NoneSet(values=(['sm', 'med', 'lg']))
|
|
36
|
+
len = NoneSet(values=(['sm', 'med', 'lg']))
|
|
37
|
+
|
|
38
|
+
def __init__(self,
|
|
39
|
+
type=None,
|
|
40
|
+
w=None,
|
|
41
|
+
len=None,
|
|
42
|
+
):
|
|
43
|
+
self.type = type
|
|
44
|
+
self.w = w
|
|
45
|
+
self.len = len
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class DashStop(Serialisable):
|
|
49
|
+
|
|
50
|
+
tagname = "ds"
|
|
51
|
+
namespace = DRAWING_NS
|
|
52
|
+
|
|
53
|
+
d = Integer()
|
|
54
|
+
length = Alias('d')
|
|
55
|
+
sp = Integer()
|
|
56
|
+
space = Alias('sp')
|
|
57
|
+
|
|
58
|
+
def __init__(self,
|
|
59
|
+
d=0,
|
|
60
|
+
sp=0,
|
|
61
|
+
):
|
|
62
|
+
self.d = d
|
|
63
|
+
self.sp = sp
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class DashStopList(Serialisable):
|
|
67
|
+
|
|
68
|
+
ds = Sequence(expected_type=DashStop, allow_none=True)
|
|
69
|
+
|
|
70
|
+
def __init__(self,
|
|
71
|
+
ds=None,
|
|
72
|
+
):
|
|
73
|
+
self.ds = ds
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class LineProperties(Serialisable):
|
|
77
|
+
|
|
78
|
+
tagname = "ln"
|
|
79
|
+
namespace = DRAWING_NS
|
|
80
|
+
|
|
81
|
+
w = MinMax(min=0, max=20116800, allow_none=True) # EMU
|
|
82
|
+
width = Alias('w')
|
|
83
|
+
cap = NoneSet(values=(['rnd', 'sq', 'flat']))
|
|
84
|
+
cmpd = NoneSet(values=(['sng', 'dbl', 'thickThin', 'thinThick', 'tri']))
|
|
85
|
+
algn = NoneSet(values=(['ctr', 'in']))
|
|
86
|
+
|
|
87
|
+
noFill = EmptyTag()
|
|
88
|
+
solidFill = ColorChoiceDescriptor()
|
|
89
|
+
gradFill = Typed(expected_type=GradientFillProperties, allow_none=True)
|
|
90
|
+
pattFill = Typed(expected_type=PatternFillProperties, allow_none=True)
|
|
91
|
+
|
|
92
|
+
prstDash = NestedNoneSet(values=(['solid', 'dot', 'dash', 'lgDash', 'dashDot',
|
|
93
|
+
'lgDashDot', 'lgDashDotDot', 'sysDash', 'sysDot', 'sysDashDot',
|
|
94
|
+
'sysDashDotDot']), namespace=namespace)
|
|
95
|
+
dashStyle = Alias('prstDash')
|
|
96
|
+
|
|
97
|
+
custDash = Typed(expected_type=DashStop, allow_none=True)
|
|
98
|
+
|
|
99
|
+
round = EmptyTag()
|
|
100
|
+
bevel = EmptyTag()
|
|
101
|
+
miter = NestedInteger(allow_none=True, attribute="lim")
|
|
102
|
+
|
|
103
|
+
headEnd = Typed(expected_type=LineEndProperties, allow_none=True)
|
|
104
|
+
tailEnd = Typed(expected_type=LineEndProperties, allow_none=True)
|
|
105
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
106
|
+
|
|
107
|
+
__elements__ = ('noFill', 'solidFill', 'gradFill', 'pattFill',
|
|
108
|
+
'prstDash', 'custDash', 'round', 'bevel', 'miter', 'headEnd', 'tailEnd')
|
|
109
|
+
|
|
110
|
+
def __init__(self,
|
|
111
|
+
w=None,
|
|
112
|
+
cap=None,
|
|
113
|
+
cmpd=None,
|
|
114
|
+
algn=None,
|
|
115
|
+
noFill=None,
|
|
116
|
+
solidFill=None,
|
|
117
|
+
gradFill=None,
|
|
118
|
+
pattFill=None,
|
|
119
|
+
prstDash=None,
|
|
120
|
+
custDash=None,
|
|
121
|
+
round=None,
|
|
122
|
+
bevel=None,
|
|
123
|
+
miter=None,
|
|
124
|
+
headEnd=None,
|
|
125
|
+
tailEnd=None,
|
|
126
|
+
extLst=None,
|
|
127
|
+
):
|
|
128
|
+
self.w = w
|
|
129
|
+
self.cap = cap
|
|
130
|
+
self.cmpd = cmpd
|
|
131
|
+
self.algn = algn
|
|
132
|
+
self.noFill = noFill
|
|
133
|
+
self.solidFill = solidFill
|
|
134
|
+
self.gradFill = gradFill
|
|
135
|
+
self.pattFill = pattFill
|
|
136
|
+
if prstDash is None:
|
|
137
|
+
prstDash = "solid"
|
|
138
|
+
self.prstDash = prstDash
|
|
139
|
+
self.custDash = custDash
|
|
140
|
+
self.round = round
|
|
141
|
+
self.bevel = bevel
|
|
142
|
+
self.miter = miter
|
|
143
|
+
self.headEnd = headEnd
|
|
144
|
+
self.tailEnd = tailEnd
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.xml.constants import DRAWING_NS
|
|
4
|
+
|
|
5
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
6
|
+
from openpyxl.descriptors import (
|
|
7
|
+
Typed,
|
|
8
|
+
Bool,
|
|
9
|
+
String,
|
|
10
|
+
Alias,
|
|
11
|
+
)
|
|
12
|
+
from openpyxl.descriptors.excel import ExtensionList as OfficeArtExtensionList
|
|
13
|
+
|
|
14
|
+
from openpyxl.chart.shapes import GraphicalProperties
|
|
15
|
+
|
|
16
|
+
from .fill import BlipFillProperties
|
|
17
|
+
from .properties import NonVisualDrawingProps
|
|
18
|
+
from .geometry import ShapeStyle
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class PictureLocking(Serialisable):
|
|
22
|
+
|
|
23
|
+
tagname = "picLocks"
|
|
24
|
+
namespace = DRAWING_NS
|
|
25
|
+
|
|
26
|
+
# Using attribute group AG_Locking
|
|
27
|
+
noCrop = Bool(allow_none=True)
|
|
28
|
+
noGrp = Bool(allow_none=True)
|
|
29
|
+
noSelect = Bool(allow_none=True)
|
|
30
|
+
noRot = Bool(allow_none=True)
|
|
31
|
+
noChangeAspect = Bool(allow_none=True)
|
|
32
|
+
noMove = Bool(allow_none=True)
|
|
33
|
+
noResize = Bool(allow_none=True)
|
|
34
|
+
noEditPoints = Bool(allow_none=True)
|
|
35
|
+
noAdjustHandles = Bool(allow_none=True)
|
|
36
|
+
noChangeArrowheads = Bool(allow_none=True)
|
|
37
|
+
noChangeShapeType = Bool(allow_none=True)
|
|
38
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
39
|
+
|
|
40
|
+
__elements__ = ()
|
|
41
|
+
|
|
42
|
+
def __init__(self,
|
|
43
|
+
noCrop=None,
|
|
44
|
+
noGrp=None,
|
|
45
|
+
noSelect=None,
|
|
46
|
+
noRot=None,
|
|
47
|
+
noChangeAspect=None,
|
|
48
|
+
noMove=None,
|
|
49
|
+
noResize=None,
|
|
50
|
+
noEditPoints=None,
|
|
51
|
+
noAdjustHandles=None,
|
|
52
|
+
noChangeArrowheads=None,
|
|
53
|
+
noChangeShapeType=None,
|
|
54
|
+
extLst=None,
|
|
55
|
+
):
|
|
56
|
+
self.noCrop = noCrop
|
|
57
|
+
self.noGrp = noGrp
|
|
58
|
+
self.noSelect = noSelect
|
|
59
|
+
self.noRot = noRot
|
|
60
|
+
self.noChangeAspect = noChangeAspect
|
|
61
|
+
self.noMove = noMove
|
|
62
|
+
self.noResize = noResize
|
|
63
|
+
self.noEditPoints = noEditPoints
|
|
64
|
+
self.noAdjustHandles = noAdjustHandles
|
|
65
|
+
self.noChangeArrowheads = noChangeArrowheads
|
|
66
|
+
self.noChangeShapeType = noChangeShapeType
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class NonVisualPictureProperties(Serialisable):
|
|
70
|
+
|
|
71
|
+
tagname = "cNvPicPr"
|
|
72
|
+
|
|
73
|
+
preferRelativeResize = Bool(allow_none=True)
|
|
74
|
+
picLocks = Typed(expected_type=PictureLocking, allow_none=True)
|
|
75
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
76
|
+
|
|
77
|
+
__elements__ = ("picLocks",)
|
|
78
|
+
|
|
79
|
+
def __init__(self,
|
|
80
|
+
preferRelativeResize=None,
|
|
81
|
+
picLocks=None,
|
|
82
|
+
extLst=None,
|
|
83
|
+
):
|
|
84
|
+
self.preferRelativeResize = preferRelativeResize
|
|
85
|
+
self.picLocks = picLocks
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class PictureNonVisual(Serialisable):
|
|
89
|
+
|
|
90
|
+
tagname = "nvPicPr"
|
|
91
|
+
|
|
92
|
+
cNvPr = Typed(expected_type=NonVisualDrawingProps, )
|
|
93
|
+
cNvPicPr = Typed(expected_type=NonVisualPictureProperties, )
|
|
94
|
+
|
|
95
|
+
__elements__ = ("cNvPr", "cNvPicPr")
|
|
96
|
+
|
|
97
|
+
def __init__(self,
|
|
98
|
+
cNvPr=None,
|
|
99
|
+
cNvPicPr=None,
|
|
100
|
+
):
|
|
101
|
+
if cNvPr is None:
|
|
102
|
+
cNvPr = NonVisualDrawingProps(id=0, name="Image 1", descr="Name of file")
|
|
103
|
+
self.cNvPr = cNvPr
|
|
104
|
+
if cNvPicPr is None:
|
|
105
|
+
cNvPicPr = NonVisualPictureProperties()
|
|
106
|
+
self.cNvPicPr = cNvPicPr
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class PictureFrame(Serialisable):
|
|
112
|
+
|
|
113
|
+
tagname = "pic"
|
|
114
|
+
|
|
115
|
+
macro = String(allow_none=True)
|
|
116
|
+
fPublished = Bool(allow_none=True)
|
|
117
|
+
nvPicPr = Typed(expected_type=PictureNonVisual, )
|
|
118
|
+
blipFill = Typed(expected_type=BlipFillProperties, )
|
|
119
|
+
spPr = Typed(expected_type=GraphicalProperties, )
|
|
120
|
+
graphicalProperties = Alias('spPr')
|
|
121
|
+
style = Typed(expected_type=ShapeStyle, allow_none=True)
|
|
122
|
+
|
|
123
|
+
__elements__ = ("nvPicPr", "blipFill", "spPr", "style")
|
|
124
|
+
|
|
125
|
+
def __init__(self,
|
|
126
|
+
macro=None,
|
|
127
|
+
fPublished=None,
|
|
128
|
+
nvPicPr=None,
|
|
129
|
+
blipFill=None,
|
|
130
|
+
spPr=None,
|
|
131
|
+
style=None,
|
|
132
|
+
):
|
|
133
|
+
self.macro = macro
|
|
134
|
+
self.fPublished = fPublished
|
|
135
|
+
if nvPicPr is None:
|
|
136
|
+
nvPicPr = PictureNonVisual()
|
|
137
|
+
self.nvPicPr = nvPicPr
|
|
138
|
+
if blipFill is None:
|
|
139
|
+
blipFill = BlipFillProperties()
|
|
140
|
+
self.blipFill = blipFill
|
|
141
|
+
if spPr is None:
|
|
142
|
+
spPr = GraphicalProperties()
|
|
143
|
+
self.spPr = spPr
|
|
144
|
+
self.style = style
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.xml.constants import DRAWING_NS
|
|
4
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
5
|
+
from openpyxl.descriptors import (
|
|
6
|
+
Typed,
|
|
7
|
+
Bool,
|
|
8
|
+
Integer,
|
|
9
|
+
Set,
|
|
10
|
+
String,
|
|
11
|
+
Alias,
|
|
12
|
+
NoneSet,
|
|
13
|
+
)
|
|
14
|
+
from openpyxl.descriptors.excel import ExtensionList as OfficeArtExtensionList
|
|
15
|
+
|
|
16
|
+
from .geometry import GroupTransform2D, Scene3D
|
|
17
|
+
from .text import Hyperlink
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GroupShapeProperties(Serialisable):
|
|
21
|
+
|
|
22
|
+
tagname = "grpSpPr"
|
|
23
|
+
|
|
24
|
+
bwMode = NoneSet(values=(['clr', 'auto', 'gray', 'ltGray', 'invGray',
|
|
25
|
+
'grayWhite', 'blackGray', 'blackWhite', 'black', 'white', 'hidden']))
|
|
26
|
+
xfrm = Typed(expected_type=GroupTransform2D, allow_none=True)
|
|
27
|
+
scene3d = Typed(expected_type=Scene3D, allow_none=True)
|
|
28
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
29
|
+
|
|
30
|
+
def __init__(self,
|
|
31
|
+
bwMode=None,
|
|
32
|
+
xfrm=None,
|
|
33
|
+
scene3d=None,
|
|
34
|
+
extLst=None,
|
|
35
|
+
):
|
|
36
|
+
self.bwMode = bwMode
|
|
37
|
+
self.xfrm = xfrm
|
|
38
|
+
self.scene3d = scene3d
|
|
39
|
+
self.extLst = extLst
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class GroupLocking(Serialisable):
|
|
43
|
+
|
|
44
|
+
tagname = "grpSpLocks"
|
|
45
|
+
namespace = DRAWING_NS
|
|
46
|
+
|
|
47
|
+
noGrp = Bool(allow_none=True)
|
|
48
|
+
noUngrp = Bool(allow_none=True)
|
|
49
|
+
noSelect = Bool(allow_none=True)
|
|
50
|
+
noRot = Bool(allow_none=True)
|
|
51
|
+
noChangeAspect = Bool(allow_none=True)
|
|
52
|
+
noMove = Bool(allow_none=True)
|
|
53
|
+
noResize = Bool(allow_none=True)
|
|
54
|
+
noChangeArrowheads = Bool(allow_none=True)
|
|
55
|
+
noEditPoints = Bool(allow_none=True)
|
|
56
|
+
noAdjustHandles = Bool(allow_none=True)
|
|
57
|
+
noChangeArrowheads = Bool(allow_none=True)
|
|
58
|
+
noChangeShapeType = Bool(allow_none=True)
|
|
59
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
60
|
+
|
|
61
|
+
__elements__ = ()
|
|
62
|
+
|
|
63
|
+
def __init__(self,
|
|
64
|
+
noGrp=None,
|
|
65
|
+
noUngrp=None,
|
|
66
|
+
noSelect=None,
|
|
67
|
+
noRot=None,
|
|
68
|
+
noChangeAspect=None,
|
|
69
|
+
noChangeArrowheads=None,
|
|
70
|
+
noMove=None,
|
|
71
|
+
noResize=None,
|
|
72
|
+
noEditPoints=None,
|
|
73
|
+
noAdjustHandles=None,
|
|
74
|
+
noChangeShapeType=None,
|
|
75
|
+
extLst=None,
|
|
76
|
+
):
|
|
77
|
+
self.noGrp = noGrp
|
|
78
|
+
self.noUngrp = noUngrp
|
|
79
|
+
self.noSelect = noSelect
|
|
80
|
+
self.noRot = noRot
|
|
81
|
+
self.noChangeAspect = noChangeAspect
|
|
82
|
+
self.noChangeArrowheads = noChangeArrowheads
|
|
83
|
+
self.noMove = noMove
|
|
84
|
+
self.noResize = noResize
|
|
85
|
+
self.noEditPoints = noEditPoints
|
|
86
|
+
self.noAdjustHandles = noAdjustHandles
|
|
87
|
+
self.noChangeShapeType = noChangeShapeType
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class NonVisualGroupDrawingShapeProps(Serialisable):
|
|
91
|
+
|
|
92
|
+
tagname = "cNvGrpSpPr"
|
|
93
|
+
|
|
94
|
+
grpSpLocks = Typed(expected_type=GroupLocking, allow_none=True)
|
|
95
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
96
|
+
|
|
97
|
+
__elements__ = ("grpSpLocks",)
|
|
98
|
+
|
|
99
|
+
def __init__(self,
|
|
100
|
+
grpSpLocks=None,
|
|
101
|
+
extLst=None,
|
|
102
|
+
):
|
|
103
|
+
self.grpSpLocks = grpSpLocks
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class NonVisualDrawingShapeProps(Serialisable):
|
|
107
|
+
|
|
108
|
+
tagname = "cNvSpPr"
|
|
109
|
+
|
|
110
|
+
spLocks = Typed(expected_type=GroupLocking, allow_none=True)
|
|
111
|
+
txBax = Bool(allow_none=True)
|
|
112
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
113
|
+
|
|
114
|
+
__elements__ = ("spLocks", "txBax")
|
|
115
|
+
|
|
116
|
+
def __init__(self,
|
|
117
|
+
spLocks=None,
|
|
118
|
+
txBox=None,
|
|
119
|
+
extLst=None,
|
|
120
|
+
):
|
|
121
|
+
self.spLocks = spLocks
|
|
122
|
+
self.txBox = txBox
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class NonVisualDrawingProps(Serialisable):
|
|
126
|
+
|
|
127
|
+
tagname = "cNvPr"
|
|
128
|
+
|
|
129
|
+
id = Integer()
|
|
130
|
+
name = String()
|
|
131
|
+
descr = String(allow_none=True)
|
|
132
|
+
hidden = Bool(allow_none=True)
|
|
133
|
+
title = String(allow_none=True)
|
|
134
|
+
hlinkClick = Typed(expected_type=Hyperlink, allow_none=True)
|
|
135
|
+
hlinkHover = Typed(expected_type=Hyperlink, allow_none=True)
|
|
136
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
137
|
+
|
|
138
|
+
__elements__ = ["hlinkClick", "hlinkHover"]
|
|
139
|
+
|
|
140
|
+
def __init__(self,
|
|
141
|
+
id=None,
|
|
142
|
+
name=None,
|
|
143
|
+
descr=None,
|
|
144
|
+
hidden=None,
|
|
145
|
+
title=None,
|
|
146
|
+
hlinkClick=None,
|
|
147
|
+
hlinkHover=None,
|
|
148
|
+
extLst=None,
|
|
149
|
+
):
|
|
150
|
+
self.id = id
|
|
151
|
+
self.name = name
|
|
152
|
+
self.descr = descr
|
|
153
|
+
self.hidden = hidden
|
|
154
|
+
self.title = title
|
|
155
|
+
self.hlinkClick = hlinkClick
|
|
156
|
+
self.hlinkHover = hlinkHover
|
|
157
|
+
self.extLst = extLst
|
|
158
|
+
|
|
159
|
+
class NonVisualGroupShape(Serialisable):
|
|
160
|
+
|
|
161
|
+
tagname = "nvGrpSpPr"
|
|
162
|
+
|
|
163
|
+
cNvPr = Typed(expected_type=NonVisualDrawingProps)
|
|
164
|
+
cNvGrpSpPr = Typed(expected_type=NonVisualGroupDrawingShapeProps)
|
|
165
|
+
|
|
166
|
+
__elements__ = ("cNvPr", "cNvGrpSpPr")
|
|
167
|
+
|
|
168
|
+
def __init__(self,
|
|
169
|
+
cNvPr=None,
|
|
170
|
+
cNvGrpSpPr=None,
|
|
171
|
+
):
|
|
172
|
+
self.cNvPr = cNvPr
|
|
173
|
+
self.cNvGrpSpPr = cNvGrpSpPr
|
|
174
|
+
|