spire-xls 15.7.1__py3-none-win_amd64.whl → 16.2.0__py3-none-win_amd64.whl
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.
- spire/xls/AddtionalFormatWrapper.py +18 -15
- spire/xls/CellRange.py +10 -8
- spire/xls/CellStyleFlag.py +7 -0
- spire/xls/CellStyleObject.py +19 -12
- spire/xls/ColorScale.py +3 -3
- spire/xls/CommentsRange.py +6 -17
- spire/xls/ConverterSetting.py +15 -0
- spire/xls/DocumentProperty.py +1 -1
- spire/xls/ExcelCommentObject.py +6 -1
- spire/xls/ExcelFont.py +21 -15
- spire/xls/ExcelGradient.py +2 -0
- spire/xls/ExcelInterior.py +0 -13
- spire/xls/ExportTableOptions.py +6 -0
- spire/xls/Font.py +103 -103
- spire/xls/FontWrapper.py +20 -18
- spire/xls/GradientStops.py +1 -1
- spire/xls/HPageBreak.py +1 -0
- spire/xls/HyperLink.py +1 -0
- spire/xls/MsoTextFrame.py +102 -0
- spire/xls/RangeRichTextString.py +2 -2
- spire/xls/ReferRangeArea.py +0 -8
- spire/xls/RichText.py +1 -1
- spire/xls/RichTextShape.py +2 -1
- spire/xls/RichTextString.py +1 -0
- spire/xls/ShapeGlow.py +1 -1
- spire/xls/TextSaveOptions.py +7 -0
- spire/xls/VPageBreak.py +1 -0
- spire/xls/Workbook.py +85 -86
- spire/xls/Worksheet.py +63 -12
- spire/xls/XlsAddInFunction.py +4 -4
- spire/xls/XlsArcShape.py +1 -1
- spire/xls/XlsBorder.py +1 -0
- spire/xls/XlsButtonShape.py +1 -1
- spire/xls/XlsComment.py +1 -1
- spire/xls/XlsDataValidationTable.py +3 -1
- spire/xls/XlsFont.py +20 -14
- spire/xls/XlsName.py +27 -15
- spire/xls/XlsOvalShape.py +1 -1
- spire/xls/XlsPageSetup.py +8 -2
- spire/xls/XlsRadioButtonShape.py +21 -51
- spire/xls/XlsRange.py +26 -10
- spire/xls/XlsRectangleShape.py +1 -1
- spire/xls/XlsShape.py +7 -5
- spire/xls/XlsShapeFill.py +3 -0
- spire/xls/XlsStyle.py +3 -3
- spire/xls/XlsValidation.py +7 -4
- spire/xls/XlsWorkbook.py +50 -29
- spire/xls/XlsWorksheet.py +136 -121
- spire/xls/XlsWorksheetBase.py +39 -20
- spire/xls/__init__.py +3 -1
- spire/xls/autofilter/AutoFitterOptions.py +7 -0
- spire/xls/autofilter/CustomFilter.py +9 -1
- spire/xls/autofilter/FilterColumn.py +2 -2
- spire/xls/autofilter/XlsAutoFiltersCollection.py +1 -0
- spire/xls/charts/Chart.py +1 -0
- spire/xls/charts/ChartArea.py +1 -0
- spire/xls/charts/ChartDataLabels.py +1 -0
- spire/xls/charts/ChartPlotArea.py +1 -0
- spire/xls/charts/ChartShadow.py +1 -1
- spire/xls/charts/ChartSheet.py +1 -0
- spire/xls/charts/ChartTextArea.py +20 -19
- spire/xls/charts/XlsChart.py +13 -13
- spire/xls/charts/XlsChartAxis.py +3 -0
- spire/xls/charts/XlsChartCategoryAxis.py +1 -1
- spire/xls/charts/XlsChartDataLabelArea.py +17 -12
- spire/xls/charts/XlsChartDataLabels.py +19 -0
- spire/xls/charts/XlsChartDataTable.py +17 -12
- spire/xls/charts/XlsChartDropBar.py +4 -1
- spire/xls/charts/XlsChartFrameFormat.py +7 -2
- spire/xls/charts/XlsChartGridLine.py +2 -2
- spire/xls/charts/XlsChartInterior.py +2 -0
- spire/xls/charts/XlsChartLegend.py +2 -1
- spire/xls/charts/XlsChartLegendArea.py +18 -12
- spire/xls/charts/XlsChartSerie.py +4 -1
- spire/xls/charts/XlsChartSerieDataFormat.py +12 -3
- spire/xls/charts/XlsChartShape.py +13 -13
- spire/xls/charts/XlsChartTitleArea.py +2 -0
- spire/xls/charts/XlsChartWallOrFloor.py +8 -2
- spire/xls/collection/ArcShapeCollection.py +1 -1
- spire/xls/collection/AutoFiltersCollection.py +1 -0
- spire/xls/collection/BordersCollectionArrayWrapper.py +2 -2
- spire/xls/collection/ButtonShapeCollection.py +4 -4
- spire/xls/collection/DataConnections.py +1 -1
- spire/xls/collection/ExternalLinkCollection.py +2 -1
- spire/xls/collection/GroupBoxCollection.py +4 -4
- spire/xls/collection/QueryTableCollection.py +1 -1
- spire/xls/collection/RangesCollection.py +4 -3
- spire/xls/collection/ShapeCollectionBase.py +6 -6
- spire/xls/collection/WorksheetsCollection.py +6 -6
- spire/xls/collection/XlsBordersCollection.py +2 -2
- spire/xls/collection/XlsChartFormatCollection.py +4 -4
- spire/xls/collection/XlsChartSeries.py +3 -3
- spire/xls/collection/XlsChartsCollection.py +10 -8
- spire/xls/collection/XlsDataValidationCollection.py +4 -2
- spire/xls/collection/XlsFontsCollection.py +2 -1
- spire/xls/collection/XlsRangesCollection.py +17 -10
- spire/xls/collection/XlsStylesCollection.py +2 -2
- spire/xls/collection/XlsWorkbookObjectsCollection.py +5 -4
- spire/xls/collection/pivot_table/PivotDataFields.py +1 -0
- spire/xls/collection/pivot_table/PivotTableFields.py +1 -1
- spire/xls/collection/pivot_table/XlsPivotCachesCollection.py +2 -0
- spire/xls/collection/pivot_table/XlsPivotTablesCollection.py +1 -0
- spire/xls/common/Boolean.py +2 -0
- spire/xls/common/Byte.py +2 -0
- spire/xls/common/Char.py +2 -0
- spire/xls/common/Color.py +2 -0
- spire/xls/common/Common.py +13 -0
- spire/xls/common/CultureInfo.py +2 -0
- spire/xls/common/DateTime.py +16 -0
- spire/xls/common/Double.py +2 -0
- spire/xls/common/EmfType.py +2 -0
- spire/xls/common/Encoding.py +2 -0
- spire/xls/common/FontStyle.py +2 -0
- spire/xls/common/GraphicsUnit.py +2 -0
- spire/xls/common/ICollection.py +3 -0
- spire/xls/common/IDictionary.py +2 -0
- spire/xls/common/IEnumerable.py +3 -0
- spire/xls/common/IEnumerator.py +2 -0
- spire/xls/common/IList.py +3 -0
- spire/xls/common/Int16.py +2 -0
- spire/xls/common/Int32.py +2 -0
- spire/xls/common/Int64.py +2 -0
- spire/xls/common/License.py +12 -0
- spire/xls/common/PixelFormat.py +2 -0
- spire/xls/common/Point.py +2 -0
- spire/xls/common/PointF.py +2 -0
- spire/xls/common/Rectangle.py +2 -0
- spire/xls/common/RectangleF.py +2 -0
- spire/xls/common/Regex.py +2 -0
- spire/xls/common/RegexOptions.py +2 -0
- spire/xls/common/Single.py +2 -0
- spire/xls/common/Size.py +2 -0
- spire/xls/common/SizeF.py +6 -4
- spire/xls/common/SpireObject.py +2 -0
- spire/xls/common/Stream.py +2 -0
- spire/xls/common/String.py +3 -1
- spire/xls/common/TimeSpan.py +2 -0
- spire/xls/common/UInt16.py +2 -0
- spire/xls/common/UInt32.py +2 -0
- spire/xls/common/UInt64.py +2 -0
- spire/xls/common/__init__.py +80 -9
- spire/xls/conditional_formatting/ConditionValue.py +0 -12
- spire/xls/conditional_formatting/ConditionalFormatWrapper.py +2 -2
- spire/xls/conditional_formatting/XlsConditionValue.py +4 -6
- spire/xls/conditional_formatting/XlsConditionalFormat.py +10 -2
- spire/xls/conditional_formatting/XlsConditionalFormats.py +10 -5
- spire/xls/interfaces/IChartErrorBars.py +2 -0
- spire/xls/interfaces/IChartTrendLine.py +1 -0
- spire/xls/interfaces/IListObject.py +2 -0
- spire/xls/interfaces/IOleObject.py +2 -0
- spire/xls/interfaces/IWorksheet.py +10 -10
- spire/xls/interfaces/ImportObjectOptions.py +7 -0
- spire/xls/interfaces/collections/IShapes.py +6 -6
- spire/xls/interfaces/pivot_table/IPivotTableOptions.py +12 -14
- spire/xls/lib/Spire.Xls.Base.dll +0 -0
- spire/xls/pivot_tables/PivotDataField.py +1 -1
- spire/xls/pivot_tables/PivotReportFilter.py +4 -4
- spire/xls/pivot_tables/PivotReportFilters.py +1 -1
- spire/xls/pivot_tables/PivotStyle.py +1 -0
- spire/xls/pivot_tables/PivotTableStyle.py +19 -12
- spire/xls/pivot_tables/XlsPivotCache.py +3 -1
- spire/xls/pivot_tables/XlsPivotField.py +2 -1
- spire/xls/pivot_tables/XlsPivotTable.py +4 -1
- spire/xls/sorting/SortColumn.py +1 -1
- spire/xls/sorting/SortColumns.py +1 -0
- spire/xls/sparkline/SparklineCollection.py +13 -1
- spire/xls/sparkline/SparklineGroupCollection.py +1 -1
- spire/xls/template_markers/MarkerDesigner.py +3 -2
- {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/METADATA +1 -1
- {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/RECORD +173 -172
- /spire/xls/lib/{_init_.py → __init__.py} +0 -0
- {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/WHEEL +0 -0
- {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/top_level.txt +0 -0
|
@@ -6,7 +6,7 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class PivotReportFilters (SpireObject) :
|
|
9
|
+
class PivotReportFilters (CollectionBase[PivotReportFilter],SpireObject) :
|
|
10
10
|
"""Collection of report filters in a PivotTable.
|
|
11
11
|
|
|
12
12
|
This class represents a collection of report filters (page filters) in a PivotTable
|
|
@@ -60,6 +60,7 @@ class PivotStyle (SpireObject) :
|
|
|
60
60
|
Returns:
|
|
61
61
|
XlsBordersCollection: The collection of border objects.
|
|
62
62
|
"""
|
|
63
|
+
from spire.xls.collection.XlsBordersCollection import XlsBordersCollection
|
|
63
64
|
GetDllLibXls().PivotStyle_get_Borders.argtypes=[c_void_p]
|
|
64
65
|
GetDllLibXls().PivotStyle_get_Borders.restype=c_void_p
|
|
65
66
|
intPtr = CallCFunction(GetDllLibXls().PivotStyle_get_Borders, self.Ptr)
|
|
@@ -12,6 +12,13 @@ class PivotTableStyle (SpireObject) :
|
|
|
12
12
|
This class provides functionality for managing the overall style of a PivotTable,
|
|
13
13
|
including whether it uses default styling and its name.
|
|
14
14
|
"""
|
|
15
|
+
@dispatch
|
|
16
|
+
def __init__(self,styleName:str):
|
|
17
|
+
GetDllLibXls().PivotTableStyle_CreateN.argtypes=[c_wchar_p]
|
|
18
|
+
GetDllLibXls().PivotTableStyle_CreateN.restype = c_void_p
|
|
19
|
+
intPtr = CallCFunction(GetDllLibXls().PivotTableStyle_CreateN,styleName)
|
|
20
|
+
|
|
21
|
+
super(PivotTableStyle, self).__init__(intPtr)
|
|
15
22
|
|
|
16
23
|
def SetConverter(self ,converter:'SpireObject'):
|
|
17
24
|
"""Sets the converter for the PivotTable style.
|
|
@@ -60,17 +67,17 @@ class PivotTableStyle (SpireObject) :
|
|
|
60
67
|
return ret
|
|
61
68
|
|
|
62
69
|
|
|
63
|
-
#
|
|
64
|
-
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
#
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
#
|
|
74
|
-
|
|
70
|
+
# @property
|
|
71
|
+
|
|
72
|
+
# def Styles(self)->'IDictionary':
|
|
73
|
+
# """
|
|
74
|
+
|
|
75
|
+
# """
|
|
76
|
+
# GetDllLibXls().PivotTableStyle_get_Styles.argtypes=[c_void_p]
|
|
77
|
+
# GetDllLibXls().PivotTableStyle_get_Styles.restype=c_void_p
|
|
78
|
+
# intPtr = CallCFunction(GetDllLibXls().PivotTableStyle_get_Styles, self.Ptr)
|
|
79
|
+
# ret = None if intPtr==None else IDictionary(intPtr)
|
|
80
|
+
# return ret
|
|
81
|
+
|
|
75
82
|
|
|
76
83
|
|
|
@@ -46,6 +46,7 @@ class XlsPivotCache ( XlsObject, IPivotCache) :
|
|
|
46
46
|
Returns:
|
|
47
47
|
IXLSRange: The source range object.
|
|
48
48
|
"""
|
|
49
|
+
from spire.xls.XlsRange import XlsRange
|
|
49
50
|
GetDllLibXls().XlsPivotCache_get_SourceRange.argtypes=[c_void_p]
|
|
50
51
|
GetDllLibXls().XlsPivotCache_get_SourceRange.restype=c_void_p
|
|
51
52
|
intPtr = CallCFunction(GetDllLibXls().XlsPivotCache_get_SourceRange, self.Ptr)
|
|
@@ -61,6 +62,7 @@ class XlsPivotCache ( XlsObject, IPivotCache) :
|
|
|
61
62
|
Returns:
|
|
62
63
|
XlsPivotCachesCollection: The parent collection object.
|
|
63
64
|
"""
|
|
65
|
+
from spire.xls.collection.pivot_table.XlsPivotCachesCollection import XlsPivotCachesCollection
|
|
64
66
|
GetDllLibXls().XlsPivotCache_get_Parent.argtypes=[c_void_p]
|
|
65
67
|
GetDllLibXls().XlsPivotCache_get_Parent.restype=c_void_p
|
|
66
68
|
intPtr = CallCFunction(GetDllLibXls().XlsPivotCache_get_Parent, self.Ptr)
|
|
@@ -483,7 +485,7 @@ class XlsPivotCache ( XlsObject, IPivotCache) :
|
|
|
483
485
|
GetDllLibXls().XlsPivotCache_Clone.argtypes=[c_void_p ,c_void_p]
|
|
484
486
|
GetDllLibXls().XlsPivotCache_Clone.restype=c_void_p
|
|
485
487
|
intPtr = CallCFunction(GetDllLibXls().XlsPivotCache_Clone, self.Ptr, intPtrparent)
|
|
486
|
-
ret = None if intPtr==None else
|
|
488
|
+
ret = None if intPtr==None else XlsPivotCache(intPtr)
|
|
487
489
|
return ret
|
|
488
490
|
|
|
489
491
|
|
|
@@ -144,6 +144,7 @@ class XlsPivotField ( SpireObject, IPivotField, ICloneParent) :
|
|
|
144
144
|
Returns:
|
|
145
145
|
PivotTableFields: The parent collection object.
|
|
146
146
|
"""
|
|
147
|
+
from spire.xls.collection.pivot_table.PivotTableFields import PivotTableFields
|
|
147
148
|
GetDllLibXls().XlsPivotField_get_Parent.argtypes=[c_void_p]
|
|
148
149
|
GetDllLibXls().XlsPivotField_get_Parent.restype=c_void_p
|
|
149
150
|
intPtr = CallCFunction(GetDllLibXls().XlsPivotField_get_Parent, self.Ptr)
|
|
@@ -969,7 +970,7 @@ class XlsPivotField ( SpireObject, IPivotField, ICloneParent) :
|
|
|
969
970
|
GetDllLibXls().XlsPivotField_Clone.argtypes=[c_void_p ,c_void_p]
|
|
970
971
|
GetDllLibXls().XlsPivotField_Clone.restype=c_void_p
|
|
971
972
|
intPtr = CallCFunction(GetDllLibXls().XlsPivotField_Clone, self.Ptr, intPtrparent)
|
|
972
|
-
ret = None if intPtr==None else
|
|
973
|
+
ret = None if intPtr==None else XlsPivotField(intPtr)
|
|
973
974
|
return ret
|
|
974
975
|
|
|
975
976
|
|
|
@@ -167,7 +167,7 @@ class XlsPivotTable ( XlsObject, IPivotTable) :
|
|
|
167
167
|
GetDllLibXls().XlsPivotTable_Clone.argtypes=[c_void_p ,c_void_p]
|
|
168
168
|
GetDllLibXls().XlsPivotTable_Clone.restype=c_void_p
|
|
169
169
|
intPtr = CallCFunction(GetDllLibXls().XlsPivotTable_Clone, self.Ptr, intPtrparent)
|
|
170
|
-
ret = None if intPtr==None else
|
|
170
|
+
ret = None if intPtr==None else XlsPivotTable(intPtr)
|
|
171
171
|
return ret
|
|
172
172
|
|
|
173
173
|
|
|
@@ -694,6 +694,7 @@ class XlsPivotTable ( XlsObject, IPivotTable) :
|
|
|
694
694
|
Returns:
|
|
695
695
|
XlsPivotTablesCollection: The parent collection object.
|
|
696
696
|
"""
|
|
697
|
+
from spire.xls.collection.pivot_table.XlsPivotTablesCollection import XlsPivotTablesCollection
|
|
697
698
|
GetDllLibXls().XlsPivotTable_get_Parent.argtypes=[c_void_p]
|
|
698
699
|
GetDllLibXls().XlsPivotTable_get_Parent.restype=c_void_p
|
|
699
700
|
intPtr = CallCFunction(GetDllLibXls().XlsPivotTable_get_Parent, self.Ptr)
|
|
@@ -1011,6 +1012,7 @@ class XlsPivotTable ( XlsObject, IPivotTable) :
|
|
|
1011
1012
|
Returns:
|
|
1012
1013
|
XlsWorkbook: The workbook object.
|
|
1013
1014
|
"""
|
|
1015
|
+
from spire.xls.XlsWorkbook import XlsWorkbook
|
|
1014
1016
|
GetDllLibXls().XlsPivotTable_get_Workbook.argtypes=[c_void_p]
|
|
1015
1017
|
GetDllLibXls().XlsPivotTable_get_Workbook.restype=c_void_p
|
|
1016
1018
|
intPtr = CallCFunction(GetDllLibXls().XlsPivotTable_get_Workbook, self.Ptr)
|
|
@@ -1026,6 +1028,7 @@ class XlsPivotTable ( XlsObject, IPivotTable) :
|
|
|
1026
1028
|
Returns:
|
|
1027
1029
|
XlsWorksheet: The worksheet object.
|
|
1028
1030
|
"""
|
|
1031
|
+
from spire.xls.XlsWorksheet import XlsWorksheet
|
|
1029
1032
|
GetDllLibXls().XlsPivotTable_get_Worksheet.argtypes=[c_void_p]
|
|
1030
1033
|
GetDllLibXls().XlsPivotTable_get_Worksheet.restype=c_void_p
|
|
1031
1034
|
intPtr = CallCFunction(GetDllLibXls().XlsPivotTable_get_Worksheet, self.Ptr)
|
spire/xls/sorting/SortColumn.py
CHANGED
|
@@ -72,7 +72,7 @@ class SortColumn ( SpireObject, ISortColumn) :
|
|
|
72
72
|
GetDllLibXls().SortColumn_get_CustomSortOrder.argtypes=[c_void_p]
|
|
73
73
|
GetDllLibXls().SortColumn_get_CustomSortOrder.restype=IntPtrArray
|
|
74
74
|
intPtrArray = CallCFunction(GetDllLibXls().SortColumn_get_CustomSortOrder, self.Ptr)
|
|
75
|
-
ret =
|
|
75
|
+
ret = GetStrVectorFromArray(intPtrArray, c_wchar_p)
|
|
76
76
|
return ret
|
|
77
77
|
|
|
78
78
|
@CustomSortOrder.setter
|
spire/xls/sorting/SortColumns.py
CHANGED
|
@@ -157,6 +157,7 @@ class SortColumns ( ISortColumns) :
|
|
|
157
157
|
GetDllLibXls().SortColumns_GetEnumerator.restype=c_void_p
|
|
158
158
|
intPtr = CallCFunction(GetDllLibXls().SortColumns_GetEnumerator, self.Ptr)
|
|
159
159
|
ret = None if intPtr==None else IEnumerator(intPtr)
|
|
160
|
+
ret._gtype = SortColumn
|
|
160
161
|
return ret
|
|
161
162
|
|
|
162
163
|
|
|
@@ -6,11 +6,23 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class SparklineCollection (
|
|
9
|
+
class SparklineCollection ( IList[Sparkline], ISparklines) :
|
|
10
10
|
"""
|
|
11
11
|
Represents the SparklineCollection.
|
|
12
12
|
|
|
13
13
|
"""
|
|
14
|
+
|
|
15
|
+
def get_Item(self ,index:int)->'Sparkline':
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
GetDllLibXls().SparklineCollection_get_Item.argtypes=[c_void_p ,c_int]
|
|
21
|
+
GetDllLibXls().SparklineCollection_get_Item.restype=c_void_p
|
|
22
|
+
intPtr = CallCFunction(GetDllLibXls().SparklineCollection_get_Item, self.Ptr, index)
|
|
23
|
+
ret = None if intPtr==None else Sparkline(intPtr)
|
|
24
|
+
return ret
|
|
25
|
+
|
|
14
26
|
@dispatch
|
|
15
27
|
|
|
16
28
|
def Add(self)->Sparkline:
|
|
@@ -115,7 +115,7 @@ class MarkerDesigner (SpireObject) :
|
|
|
115
115
|
CallCFunction(GetDllLibXls().MarkerDesigner_RemoveParameter, self.Ptr, paraName)
|
|
116
116
|
|
|
117
117
|
|
|
118
|
-
def Contains(self ,paramName:str):
|
|
118
|
+
def Contains(self ,paramName:str)->bool:
|
|
119
119
|
"""
|
|
120
120
|
Checks parameter is exist.
|
|
121
121
|
|
|
@@ -125,7 +125,8 @@ class MarkerDesigner (SpireObject) :
|
|
|
125
125
|
"""
|
|
126
126
|
|
|
127
127
|
GetDllLibXls().MarkerDesigner_Contains.argtypes=[c_void_p ,c_void_p]
|
|
128
|
-
|
|
128
|
+
GetDllLibXls().MarkerDesigner_get_Prefix.restype=c_bool
|
|
129
|
+
return CallCFunction(GetDllLibXls().MarkerDesigner_Contains, self.Ptr, paramName)
|
|
129
130
|
|
|
130
131
|
def Apply(self):
|
|
131
132
|
"""
|