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.
Files changed (173) hide show
  1. spire/xls/AddtionalFormatWrapper.py +18 -15
  2. spire/xls/CellRange.py +10 -8
  3. spire/xls/CellStyleFlag.py +7 -0
  4. spire/xls/CellStyleObject.py +19 -12
  5. spire/xls/ColorScale.py +3 -3
  6. spire/xls/CommentsRange.py +6 -17
  7. spire/xls/ConverterSetting.py +15 -0
  8. spire/xls/DocumentProperty.py +1 -1
  9. spire/xls/ExcelCommentObject.py +6 -1
  10. spire/xls/ExcelFont.py +21 -15
  11. spire/xls/ExcelGradient.py +2 -0
  12. spire/xls/ExcelInterior.py +0 -13
  13. spire/xls/ExportTableOptions.py +6 -0
  14. spire/xls/Font.py +103 -103
  15. spire/xls/FontWrapper.py +20 -18
  16. spire/xls/GradientStops.py +1 -1
  17. spire/xls/HPageBreak.py +1 -0
  18. spire/xls/HyperLink.py +1 -0
  19. spire/xls/MsoTextFrame.py +102 -0
  20. spire/xls/RangeRichTextString.py +2 -2
  21. spire/xls/ReferRangeArea.py +0 -8
  22. spire/xls/RichText.py +1 -1
  23. spire/xls/RichTextShape.py +2 -1
  24. spire/xls/RichTextString.py +1 -0
  25. spire/xls/ShapeGlow.py +1 -1
  26. spire/xls/TextSaveOptions.py +7 -0
  27. spire/xls/VPageBreak.py +1 -0
  28. spire/xls/Workbook.py +85 -86
  29. spire/xls/Worksheet.py +63 -12
  30. spire/xls/XlsAddInFunction.py +4 -4
  31. spire/xls/XlsArcShape.py +1 -1
  32. spire/xls/XlsBorder.py +1 -0
  33. spire/xls/XlsButtonShape.py +1 -1
  34. spire/xls/XlsComment.py +1 -1
  35. spire/xls/XlsDataValidationTable.py +3 -1
  36. spire/xls/XlsFont.py +20 -14
  37. spire/xls/XlsName.py +27 -15
  38. spire/xls/XlsOvalShape.py +1 -1
  39. spire/xls/XlsPageSetup.py +8 -2
  40. spire/xls/XlsRadioButtonShape.py +21 -51
  41. spire/xls/XlsRange.py +26 -10
  42. spire/xls/XlsRectangleShape.py +1 -1
  43. spire/xls/XlsShape.py +7 -5
  44. spire/xls/XlsShapeFill.py +3 -0
  45. spire/xls/XlsStyle.py +3 -3
  46. spire/xls/XlsValidation.py +7 -4
  47. spire/xls/XlsWorkbook.py +50 -29
  48. spire/xls/XlsWorksheet.py +136 -121
  49. spire/xls/XlsWorksheetBase.py +39 -20
  50. spire/xls/__init__.py +3 -1
  51. spire/xls/autofilter/AutoFitterOptions.py +7 -0
  52. spire/xls/autofilter/CustomFilter.py +9 -1
  53. spire/xls/autofilter/FilterColumn.py +2 -2
  54. spire/xls/autofilter/XlsAutoFiltersCollection.py +1 -0
  55. spire/xls/charts/Chart.py +1 -0
  56. spire/xls/charts/ChartArea.py +1 -0
  57. spire/xls/charts/ChartDataLabels.py +1 -0
  58. spire/xls/charts/ChartPlotArea.py +1 -0
  59. spire/xls/charts/ChartShadow.py +1 -1
  60. spire/xls/charts/ChartSheet.py +1 -0
  61. spire/xls/charts/ChartTextArea.py +20 -19
  62. spire/xls/charts/XlsChart.py +13 -13
  63. spire/xls/charts/XlsChartAxis.py +3 -0
  64. spire/xls/charts/XlsChartCategoryAxis.py +1 -1
  65. spire/xls/charts/XlsChartDataLabelArea.py +17 -12
  66. spire/xls/charts/XlsChartDataLabels.py +19 -0
  67. spire/xls/charts/XlsChartDataTable.py +17 -12
  68. spire/xls/charts/XlsChartDropBar.py +4 -1
  69. spire/xls/charts/XlsChartFrameFormat.py +7 -2
  70. spire/xls/charts/XlsChartGridLine.py +2 -2
  71. spire/xls/charts/XlsChartInterior.py +2 -0
  72. spire/xls/charts/XlsChartLegend.py +2 -1
  73. spire/xls/charts/XlsChartLegendArea.py +18 -12
  74. spire/xls/charts/XlsChartSerie.py +4 -1
  75. spire/xls/charts/XlsChartSerieDataFormat.py +12 -3
  76. spire/xls/charts/XlsChartShape.py +13 -13
  77. spire/xls/charts/XlsChartTitleArea.py +2 -0
  78. spire/xls/charts/XlsChartWallOrFloor.py +8 -2
  79. spire/xls/collection/ArcShapeCollection.py +1 -1
  80. spire/xls/collection/AutoFiltersCollection.py +1 -0
  81. spire/xls/collection/BordersCollectionArrayWrapper.py +2 -2
  82. spire/xls/collection/ButtonShapeCollection.py +4 -4
  83. spire/xls/collection/DataConnections.py +1 -1
  84. spire/xls/collection/ExternalLinkCollection.py +2 -1
  85. spire/xls/collection/GroupBoxCollection.py +4 -4
  86. spire/xls/collection/QueryTableCollection.py +1 -1
  87. spire/xls/collection/RangesCollection.py +4 -3
  88. spire/xls/collection/ShapeCollectionBase.py +6 -6
  89. spire/xls/collection/WorksheetsCollection.py +6 -6
  90. spire/xls/collection/XlsBordersCollection.py +2 -2
  91. spire/xls/collection/XlsChartFormatCollection.py +4 -4
  92. spire/xls/collection/XlsChartSeries.py +3 -3
  93. spire/xls/collection/XlsChartsCollection.py +10 -8
  94. spire/xls/collection/XlsDataValidationCollection.py +4 -2
  95. spire/xls/collection/XlsFontsCollection.py +2 -1
  96. spire/xls/collection/XlsRangesCollection.py +17 -10
  97. spire/xls/collection/XlsStylesCollection.py +2 -2
  98. spire/xls/collection/XlsWorkbookObjectsCollection.py +5 -4
  99. spire/xls/collection/pivot_table/PivotDataFields.py +1 -0
  100. spire/xls/collection/pivot_table/PivotTableFields.py +1 -1
  101. spire/xls/collection/pivot_table/XlsPivotCachesCollection.py +2 -0
  102. spire/xls/collection/pivot_table/XlsPivotTablesCollection.py +1 -0
  103. spire/xls/common/Boolean.py +2 -0
  104. spire/xls/common/Byte.py +2 -0
  105. spire/xls/common/Char.py +2 -0
  106. spire/xls/common/Color.py +2 -0
  107. spire/xls/common/Common.py +13 -0
  108. spire/xls/common/CultureInfo.py +2 -0
  109. spire/xls/common/DateTime.py +16 -0
  110. spire/xls/common/Double.py +2 -0
  111. spire/xls/common/EmfType.py +2 -0
  112. spire/xls/common/Encoding.py +2 -0
  113. spire/xls/common/FontStyle.py +2 -0
  114. spire/xls/common/GraphicsUnit.py +2 -0
  115. spire/xls/common/ICollection.py +3 -0
  116. spire/xls/common/IDictionary.py +2 -0
  117. spire/xls/common/IEnumerable.py +3 -0
  118. spire/xls/common/IEnumerator.py +2 -0
  119. spire/xls/common/IList.py +3 -0
  120. spire/xls/common/Int16.py +2 -0
  121. spire/xls/common/Int32.py +2 -0
  122. spire/xls/common/Int64.py +2 -0
  123. spire/xls/common/License.py +12 -0
  124. spire/xls/common/PixelFormat.py +2 -0
  125. spire/xls/common/Point.py +2 -0
  126. spire/xls/common/PointF.py +2 -0
  127. spire/xls/common/Rectangle.py +2 -0
  128. spire/xls/common/RectangleF.py +2 -0
  129. spire/xls/common/Regex.py +2 -0
  130. spire/xls/common/RegexOptions.py +2 -0
  131. spire/xls/common/Single.py +2 -0
  132. spire/xls/common/Size.py +2 -0
  133. spire/xls/common/SizeF.py +6 -4
  134. spire/xls/common/SpireObject.py +2 -0
  135. spire/xls/common/Stream.py +2 -0
  136. spire/xls/common/String.py +3 -1
  137. spire/xls/common/TimeSpan.py +2 -0
  138. spire/xls/common/UInt16.py +2 -0
  139. spire/xls/common/UInt32.py +2 -0
  140. spire/xls/common/UInt64.py +2 -0
  141. spire/xls/common/__init__.py +80 -9
  142. spire/xls/conditional_formatting/ConditionValue.py +0 -12
  143. spire/xls/conditional_formatting/ConditionalFormatWrapper.py +2 -2
  144. spire/xls/conditional_formatting/XlsConditionValue.py +4 -6
  145. spire/xls/conditional_formatting/XlsConditionalFormat.py +10 -2
  146. spire/xls/conditional_formatting/XlsConditionalFormats.py +10 -5
  147. spire/xls/interfaces/IChartErrorBars.py +2 -0
  148. spire/xls/interfaces/IChartTrendLine.py +1 -0
  149. spire/xls/interfaces/IListObject.py +2 -0
  150. spire/xls/interfaces/IOleObject.py +2 -0
  151. spire/xls/interfaces/IWorksheet.py +10 -10
  152. spire/xls/interfaces/ImportObjectOptions.py +7 -0
  153. spire/xls/interfaces/collections/IShapes.py +6 -6
  154. spire/xls/interfaces/pivot_table/IPivotTableOptions.py +12 -14
  155. spire/xls/lib/Spire.Xls.Base.dll +0 -0
  156. spire/xls/pivot_tables/PivotDataField.py +1 -1
  157. spire/xls/pivot_tables/PivotReportFilter.py +4 -4
  158. spire/xls/pivot_tables/PivotReportFilters.py +1 -1
  159. spire/xls/pivot_tables/PivotStyle.py +1 -0
  160. spire/xls/pivot_tables/PivotTableStyle.py +19 -12
  161. spire/xls/pivot_tables/XlsPivotCache.py +3 -1
  162. spire/xls/pivot_tables/XlsPivotField.py +2 -1
  163. spire/xls/pivot_tables/XlsPivotTable.py +4 -1
  164. spire/xls/sorting/SortColumn.py +1 -1
  165. spire/xls/sorting/SortColumns.py +1 -0
  166. spire/xls/sparkline/SparklineCollection.py +13 -1
  167. spire/xls/sparkline/SparklineGroupCollection.py +1 -1
  168. spire/xls/template_markers/MarkerDesigner.py +3 -2
  169. {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/METADATA +1 -1
  170. {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/RECORD +173 -172
  171. /spire/xls/lib/{_init_.py → __init__.py} +0 -0
  172. {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/WHEEL +0 -0
  173. {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
- # @property
64
- #
65
- # def Styles(self)->'Dictionary2':
66
- # """
67
- #
68
- # """
69
- # GetDllLibXls().PivotTableStyle_get_Styles.argtypes=[c_void_p]
70
- # GetDllLibXls().PivotTableStyle_get_Styles.restype=c_void_p
71
- # intPtr = CallCFunction(GetDllLibXls().PivotTableStyle_get_Styles, self.Ptr)
72
- # ret = None if intPtr==None else Dictionary2(intPtr)
73
- # return ret
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 SpireObject(intPtr)
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 SpireObject(intPtr)
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 SpireObject(intPtr)
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)
@@ -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 = GetVectorFromArray(intPtrArray, c_wchar_p)
75
+ ret = GetStrVectorFromArray(intPtrArray, c_wchar_p)
76
76
  return ret
77
77
 
78
78
  @CustomSortOrder.setter
@@ -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 ( SpireObject, ISparklines) :
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:
@@ -6,7 +6,7 @@ from spire.xls import *
6
6
  from ctypes import *
7
7
  import abc
8
8
 
9
- class SparklineGroupCollection (SpireObject) :
9
+ class SparklineGroupCollection (IList[SparklineGroup]) :
10
10
  """
11
11
  The SparklineGroupCollection represents the collection of SparklineGroup objects.
12
12
 
@@ -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
- CallCFunction(GetDllLibXls().MarkerDesigner_Contains, self.Ptr, paramName)
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
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spire-xls
3
- Version: 15.7.1
3
+ Version: 16.2.0
4
4
  Summary: A 100% standalone Excel Python API for Processing Excel Files
5
5
  Home-page: https://www.e-iceblue.com
6
6
  Author: E-iceblue