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
@@ -73,10 +73,11 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
73
73
  Returns:
74
74
  ICommentShape: The added comment shape.
75
75
  """
76
+ from spire.xls.CommentsRange import CommentsRange
76
77
  GetDllLibXls().XlsRangesCollection_AddComment.argtypes=[c_void_p]
77
78
  GetDllLibXls().XlsRangesCollection_AddComment.restype=c_void_p
78
79
  intPtr = CallCFunction(GetDllLibXls().XlsRangesCollection_AddComment, self.Ptr)
79
- ret = None if intPtr==None else XlsComment(intPtr)
80
+ ret = None if intPtr==None else CommentsRange(intPtr)
80
81
  return ret
81
82
 
82
83
 
@@ -296,7 +297,7 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
296
297
  GetDllLibXls().XlsRangesCollection_GetRectangles.argtypes=[c_void_p]
297
298
  GetDllLibXls().XlsRangesCollection_GetRectangles.restype=IntPtrArray
298
299
  intPtrArray = CallCFunction(GetDllLibXls().XlsRangesCollection_GetRectangles, self.Ptr)
299
- ret = GetVectorFromArray(intPtrArray, Rectangle)
300
+ ret = GetObjVectorFromArray(intPtrArray, Rectangle)
300
301
  return ret
301
302
 
302
303
 
@@ -364,7 +365,7 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
364
365
  GetDllLibXls().XlsRangesCollection_GetEnumerator.argtypes=[c_void_p]
365
366
  GetDllLibXls().XlsRangesCollection_GetEnumerator.restype=c_void_p
366
367
  intPtr = CallCFunction(GetDllLibXls().XlsRangesCollection_GetEnumerator, self.Ptr)
367
- ret = None if intPtr==None else IEnumerator(intPtr)
368
+ ret = None if intPtr==None else EnumeratorXlsRange(intPtr)
368
369
  return ret
369
370
 
370
371
 
@@ -461,10 +462,11 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
461
462
  """
462
463
 
463
464
  """
465
+ from spire.xls.collection.BordersCollectionArrayWrapper import BordersCollectionArrayWrapper
464
466
  GetDllLibXls().XlsRangesCollection_get_Borders.argtypes=[c_void_p]
465
467
  GetDllLibXls().XlsRangesCollection_get_Borders.restype=c_void_p
466
468
  intPtr = CallCFunction(GetDllLibXls().XlsRangesCollection_get_Borders, self.Ptr)
467
- ret = None if intPtr==None else XlsBordersCollection(intPtr)
469
+ ret = None if intPtr==None else BordersCollectionArrayWrapper(intPtr)
468
470
  return ret
469
471
 
470
472
 
@@ -882,10 +884,11 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
882
884
  Returns hyperlinks for this ranges collection.
883
885
 
884
886
  """
887
+ from spire.xls.collection.HyperLinksCollection import HyperLinksCollection
885
888
  GetDllLibXls().XlsRangesCollection_get_Hyperlinks.argtypes=[c_void_p]
886
889
  GetDllLibXls().XlsRangesCollection_get_Hyperlinks.restype=c_void_p
887
890
  intPtr = CallCFunction(GetDllLibXls().XlsRangesCollection_get_Hyperlinks, self.Ptr)
888
- ret = None if intPtr==None else IHyperLinks(intPtr)
891
+ ret = None if intPtr==None else HyperLinksCollection(intPtr)
889
892
  return ret
890
893
 
891
894
 
@@ -1083,10 +1086,11 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
1083
1086
  """
1084
1087
 
1085
1088
  """
1089
+ from spire.xls.StyleArrayWrapper import StyleArrayWrapper
1086
1090
  GetDllLibXls().XlsRangesCollection_get_Style.argtypes=[c_void_p]
1087
1091
  GetDllLibXls().XlsRangesCollection_get_Style.restype=c_void_p
1088
1092
  intPtr = CallCFunction(GetDllLibXls().XlsRangesCollection_get_Style, self.Ptr)
1089
- ret = None if intPtr==None else CellStyle(intPtr)
1093
+ ret = None if intPtr==None else StyleArrayWrapper(intPtr)
1090
1094
  return ret
1091
1095
 
1092
1096
 
@@ -1205,6 +1209,7 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
1205
1209
  """
1206
1210
 
1207
1211
  """
1212
+ from spire.xls.XlsWorksheet import XlsWorksheet
1208
1213
  GetDllLibXls().XlsRangesCollection_get_Worksheet.argtypes=[c_void_p]
1209
1214
  GetDllLibXls().XlsRangesCollection_get_Worksheet.restype=c_void_p
1210
1215
  intPtr = CallCFunction(GetDllLibXls().XlsRangesCollection_get_Worksheet, self.Ptr)
@@ -1424,10 +1429,11 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
1424
1429
  """
1425
1430
 
1426
1431
  """
1432
+ from spire.xls.CommentsRange import CommentsRange
1427
1433
  GetDllLibXls().XlsRangesCollection_get_Comment.argtypes=[c_void_p]
1428
1434
  GetDllLibXls().XlsRangesCollection_get_Comment.restype=c_void_p
1429
1435
  intPtr = CallCFunction(GetDllLibXls().XlsRangesCollection_get_Comment, self.Ptr)
1430
- ret = None if intPtr==None else XlsComment(intPtr)
1436
+ ret = None if intPtr==None else CommentsRange(intPtr)
1431
1437
  return ret
1432
1438
 
1433
1439
 
@@ -1437,10 +1443,11 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
1437
1443
  """
1438
1444
 
1439
1445
  """
1446
+ from spire.xls.RTFStringArray import RTFStringArray
1440
1447
  GetDllLibXls().XlsRangesCollection_get_RichText.argtypes=[c_void_p]
1441
1448
  GetDllLibXls().XlsRangesCollection_get_RichText.restype=c_void_p
1442
1449
  intPtr = CallCFunction(GetDllLibXls().XlsRangesCollection_get_RichText, self.Ptr)
1443
- ret = None if intPtr==None else RichTextObject(intPtr)
1450
+ ret = None if intPtr==None else RTFStringArray(intPtr)
1444
1451
  return ret
1445
1452
 
1446
1453
 
@@ -1463,7 +1470,7 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
1463
1470
  GetDllLibXls().XlsRangesCollection_get_MergeArea.argtypes=[c_void_p]
1464
1471
  GetDllLibXls().XlsRangesCollection_get_MergeArea.restype=c_void_p
1465
1472
  intPtr = CallCFunction(GetDllLibXls().XlsRangesCollection_get_MergeArea, self.Ptr)
1466
- ret = None if intPtr==None else XlsRange(intPtr)
1473
+ ret = None if intPtr==None else XlsRangesCollection(intPtr)
1467
1474
  return ret
1468
1475
 
1469
1476
 
@@ -1631,4 +1638,4 @@ class XlsRangesCollection ( CollectionBase[XlsRange], IXLSRanges, ICombinedRang
1631
1638
  """
1632
1639
  Clears the contents of the range.
1633
1640
  """
1634
- GetObjIntPtr(self.Ptr, "ClearContents", "");
1641
+ raise NotImplementedError()
@@ -43,11 +43,11 @@ class XlsStylesCollection ( CollectionBase[CellStyleObject], IStyles) :
43
43
  """
44
44
 
45
45
  """
46
-
46
+ from spire.xls.XlsStyle import XlsStyle
47
47
  GetDllLibXls().XlsStylesCollection_get_Item.argtypes=[c_void_p ,c_void_p]
48
48
  GetDllLibXls().XlsStylesCollection_get_Item.restype=c_void_p
49
49
  intPtr = CallCFunction(GetDllLibXls().XlsStylesCollection_get_Item, self.Ptr, name)
50
- ret = None if intPtr==None else CellStyle(intPtr)
50
+ ret = None if intPtr==None else XlsStyle(intPtr)
51
51
  return ret
52
52
 
53
53
 
@@ -6,7 +6,7 @@ from spire.xls import *
6
6
  from ctypes import *
7
7
  import abc
8
8
 
9
- class XlsWorkbookObjectsCollection ( ITabSheets) :
9
+ class XlsWorkbookObjectsCollection ( ITabSheets,SpireObject) :
10
10
  """
11
11
 
12
12
  """
@@ -16,10 +16,11 @@ class XlsWorkbookObjectsCollection ( ITabSheets) :
16
16
  """
17
17
 
18
18
  """
19
+ from spire.xls.XlsWorkbook import XlsWorkbook
19
20
  GetDllLibXls().XlsWorkbookObjectsCollection_get_Workbook.argtypes=[c_void_p]
20
21
  GetDllLibXls().XlsWorkbookObjectsCollection_get_Workbook.restype=c_void_p
21
22
  intPtr = CallCFunction(GetDllLibXls().XlsWorkbookObjectsCollection_get_Workbook, self.Ptr)
22
- ret = None if intPtr==None else IWorkbook(intPtr)
23
+ ret = None if intPtr==None else XlsWorkbook(intPtr)
23
24
  return ret
24
25
 
25
26
 
@@ -39,11 +40,11 @@ class XlsWorkbookObjectsCollection ( ITabSheets) :
39
40
  """
40
41
 
41
42
  """
42
-
43
+ from spire.xls.XlsWorksheetBase import XlsWorksheetBase
43
44
  GetDllLibXls().XlsWorkbookObjectsCollection_get_Item.argtypes=[c_void_p ,c_int]
44
45
  GetDllLibXls().XlsWorkbookObjectsCollection_get_Item.restype=c_void_p
45
46
  intPtr = CallCFunction(GetDllLibXls().XlsWorkbookObjectsCollection_get_Item, self.Ptr, index)
46
- ret = None if intPtr==None else ITabSheet(intPtr)
47
+ ret = None if intPtr==None else XlsWorksheetBase(intPtr)
47
48
  return ret
48
49
 
49
50
 
@@ -44,6 +44,7 @@ class PivotDataFields ( CollectionBase[PivotDataField], IPivotDataFields) :
44
44
  """
45
45
 
46
46
  """
47
+ from spire.xls.pivot_tables.XlsPivotTable import XlsPivotTable
47
48
  GetDllLibXls().PivotDataFields_get_Parent.argtypes=[c_void_p]
48
49
  GetDllLibXls().PivotDataFields_get_Parent.restype=c_void_p
49
50
  intPtr = CallCFunction(GetDllLibXls().PivotDataFields_get_Parent, self.Ptr)
@@ -46,7 +46,7 @@ class PivotTableFields ( CollectionBase[XlsPivotField], ICloneParent, IPivotFie
46
46
  GetDllLibXls().PivotTableFields_Clone.argtypes=[c_void_p ,c_void_p]
47
47
  GetDllLibXls().PivotTableFields_Clone.restype=c_void_p
48
48
  intPtr = CallCFunction(GetDllLibXls().PivotTableFields_Clone, self.Ptr, intPtrparent)
49
- ret = None if intPtr==None else SpireObject(intPtr)
49
+ ret = None if intPtr==None else PivotTableFields(intPtr)
50
50
  return ret
51
51
 
52
52
 
@@ -16,6 +16,7 @@ class XlsPivotCachesCollection ( CollectionBase[XlsPivotCache], IPivotCaches) :
16
16
  """
17
17
 
18
18
  """
19
+ from spire.xls.XlsWorkbook import XlsWorkbook
19
20
  GetDllLibXls().XlsPivotCachesCollection_get_Parent.argtypes=[c_void_p]
20
21
  GetDllLibXls().XlsPivotCachesCollection_get_Parent.restype=c_void_p
21
22
  intPtr = CallCFunction(GetDllLibXls().XlsPivotCachesCollection_get_Parent, self.Ptr)
@@ -29,6 +30,7 @@ class XlsPivotCachesCollection ( CollectionBase[XlsPivotCache], IPivotCaches) :
29
30
  """
30
31
 
31
32
  """
33
+ from spire.xls.XlsWorkbook import XlsWorkbook
32
34
  GetDllLibXls().XlsPivotCachesCollection_get_Workbook.argtypes=[c_void_p]
33
35
  GetDllLibXls().XlsPivotCachesCollection_get_Workbook.restype=c_void_p
34
36
  intPtr = CallCFunction(GetDllLibXls().XlsPivotCachesCollection_get_Workbook, self.Ptr)
@@ -106,6 +106,7 @@ class XlsPivotTablesCollection (CollectionBase[XlsPivotTable],IPivotTables) :
106
106
  """
107
107
 
108
108
  """
109
+ from spire.xls.XlsWorksheetBase import XlsWorksheetBase
109
110
  GetDllLibXls().XlsPivotTablesCollection_get_ParentWorksheet.argtypes=[c_void_p]
110
111
  GetDllLibXls().XlsPivotTablesCollection_get_ParentWorksheet.restype=c_void_p
111
112
  intPtr = CallCFunction(GetDllLibXls().XlsPivotTablesCollection_get_ParentWorksheet, self.Ptr)
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/Byte.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/Char.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/Color.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -11,6 +11,8 @@ elif __package__ == "spire.xls.common":
11
11
  from spire.xls.common import *
12
12
  elif __package__ == "spire.doc.common":
13
13
  from spire.doc.common import *
14
+ elif __package__ == "spire.ocr.common":
15
+ from spire.ocr.common import *
14
16
  else :
15
17
  from spire.presentation.common import *
16
18
 
@@ -40,6 +42,17 @@ def StrToPtr(value):
40
42
  else :
41
43
  return value
42
44
 
45
+ def GetStringPtrArray(intPtrArray:IntPtrArray):
46
+ ret = []
47
+ size = intPtrArray.size
48
+ if(size == 0):
49
+ return ret
50
+ r0 = intPtrArray.data[0] + (intPtrArray.data[1]<<32)
51
+ r = cast(r0, POINTER(c_void_p))
52
+ for i in range(0,size):
53
+ ret.append(PtrToStr(r[i]))
54
+ return ret
55
+
43
56
  def GetIntPtrArray(intPtrArray:IntPtrArray):
44
57
  ret = []
45
58
  size = intPtrArray.size
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -595,6 +597,20 @@ class DateTime (SpireObject) :
595
597
  # ret = None if intPtr==None else DateTime(intPtr)
596
598
  # return ret
597
599
  #
600
+ @staticmethod
601
+ @dispatch
602
+
603
+ def ParseExact(s:str,formatStr:str)->'DateTime':
604
+ """
605
+
606
+ """
607
+ sPtr = StrToPtr(s)
608
+ formatStr1 = StrToPtr(formatStr)
609
+ dlllib.DateTime_ParseExactSF.argtypes=[c_char_p,c_char_p]
610
+ dlllib.DateTime_ParseExactSF.restype=c_void_p
611
+ intPtr = CallCFunction(dlllib.DateTime_ParseExactSF, sPtr,formatStr1)
612
+ ret = None if intPtr==None else DateTime(intPtr)
613
+ return ret
598
614
 
599
615
 
600
616
  @dispatch
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -11,6 +11,9 @@ elif __package__ == "spire.xls.common" :
11
11
  elif __package__ == "spire.doc.common" :
12
12
  from spire.doc.common import *
13
13
  from spire.doc.common.IEnumerable import IEnumerable
14
+ elif __package__ == "spire.ocr.common":
15
+ from spire.ocr.common import *
16
+ from spire.ocr.common.IEnumerable import IEnumerable
14
17
  else :
15
18
  from spire.presentation.common import *
16
19
  from spire.presentation.common.IEnumerable import IEnumerable
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -10,6 +10,9 @@ elif __package__ == "spire.xls.common" :
10
10
  elif __package__ == "spire.doc.common" :
11
11
  from spire.doc.common import *
12
12
  from spire.doc.common.IEnumerator import IEnumerator
13
+ elif __package__ == "spire.ocr.common" :
14
+ from spire.ocr.common import *
15
+ from spire.ocr.common.IEnumerator import IEnumerator
13
16
  else :
14
17
  from spire.presentation.common import *
15
18
  from spire.presentation.common.IEnumerator import IEnumerator
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/IList.py CHANGED
@@ -11,6 +11,9 @@ elif __package__ == "spire.xls.common" :
11
11
  elif __package__ == "spire.doc.common" :
12
12
  from spire.doc.common import *
13
13
  from spire.doc.common.ICollection import ICollection
14
+ elif __package__ == "spire.ocr.common" :
15
+ from spire.ocr.common import *
16
+ from spire.ocr.common.ICollection import ICollection
14
17
  else :
15
18
  from spire.presentation.common import *
16
19
  from spire.presentation.common.ICollection import ICollection
spire/xls/common/Int16.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/Int32.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/Int64.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -41,11 +43,13 @@ class License (SpireObject) :
41
43
  licenseFileFullPathPtr = StrToPtr(licenseFileFullPath)
42
44
  License.SetLicenseFileFullPathByDLLHander(GetDllLibDoc(), licenseFileFullPathPtr)
43
45
  License.SetLicenseFileFullPathByDLLHander(GetDllLibPdf(), licenseFileFullPathPtr)
46
+ License.SetLicenseFileFullPathByDLLHander(GetDllLibOcr(), licenseFileFullPathPtr)
44
47
  License.SetLicenseFileFullPathByDLLHander(GetDllLibXls(), licenseFileFullPathPtr)
45
48
  License.SetLicenseFileFullPathByDLLHander(GetDllLibPpt(), licenseFileFullPathPtr)
46
49
  else:
47
50
  License.SetLicenseFileFullPathByDLLHander(GetDllLibDoc(), licenseFileFullPath)
48
51
  License.SetLicenseFileFullPathByDLLHander(GetDllLibPdf(), licenseFileFullPath)
52
+ License.SetLicenseFileFullPathByDLLHander(GetDllLibOcr(), licenseFileFullPath)
49
53
  License.SetLicenseFileFullPathByDLLHander(GetDllLibXls(), licenseFileFullPath)
50
54
  License.SetLicenseFileFullPathByDLLHander(GetDllLibPpt(), licenseFileFullPath)
51
55
 
@@ -62,11 +66,13 @@ class License (SpireObject) :
62
66
  licenseFileNamePtr = StrToPtr(licenseFileName)
63
67
  License.SetLicenseFileNameByDLLHander(GetDllLibDoc(), licenseFileNamePtr)
64
68
  License.SetLicenseFileNameByDLLHander(GetDllLibPdf(), licenseFileNamePtr)
69
+ License.SetLicenseFileNameByDLLHander(GetDllLibOcr(), licenseFileNamePtr)
65
70
  License.SetLicenseFileNameByDLLHander(GetDllLibXls(), licenseFileNamePtr)
66
71
  License.SetLicenseFileNameByDLLHander(GetDllLibPpt(), licenseFileNamePtr)
67
72
  else:
68
73
  License.SetLicenseFileNameByDLLHander(GetDllLibDoc(), licenseFileName)
69
74
  License.SetLicenseFileNameByDLLHander(GetDllLibPdf(), licenseFileName)
75
+ License.SetLicenseFileNameByDLLHander(GetDllLibOcr(), licenseFileName)
70
76
  License.SetLicenseFileNameByDLLHander(GetDllLibXls(), licenseFileName)
71
77
  License.SetLicenseFileNameByDLLHander(GetDllLibPpt(), licenseFileName)
72
78
 
@@ -93,6 +99,7 @@ class License (SpireObject) :
93
99
  """
94
100
  License.SetLicenseFileStreamByDLLHander(GetDllLibDoc(), stream)
95
101
  License.SetLicenseFileStreamByDLLHander(GetDllLibPdf(), stream)
102
+ License.SetLicenseFileStreamByDLLHander(GetDllLibOcr(), stream)
96
103
  License.SetLicenseFileStreamByDLLHander(GetDllLibXls(), stream)
97
104
  License.SetLicenseFileStreamByDLLHander(GetDllLibPpt(), stream)
98
105
  @staticmethod
@@ -114,11 +121,13 @@ class License (SpireObject) :
114
121
  keyStr = StrToPtr(key)
115
122
  License.SetLicenseKeyByDLLHander(GetDllLibDoc(), keyStr)
116
123
  License.SetLicenseKeyByDLLHander(GetDllLibPdf(), keyStr)
124
+ License.SetLicenseKeyByDLLHander(GetDllLibOcr(), keyStr)
117
125
  License.SetLicenseKeyByDLLHander(GetDllLibXls(), keyStr)
118
126
  License.SetLicenseKeyByDLLHander(GetDllLibPpt(), keyStr)
119
127
  else:
120
128
  License.SetLicenseKeyByDLLHander(GetDllLibDoc(), key)
121
129
  License.SetLicenseKeyByDLLHander(GetDllLibPdf(), key)
130
+ License.SetLicenseKeyByDLLHander(GetDllLibOcr(), key)
122
131
  License.SetLicenseKeyByDLLHander(GetDllLibXls(), key)
123
132
  License.SetLicenseKeyByDLLHander(GetDllLibPpt(), key)
124
133
 
@@ -144,6 +153,7 @@ class License (SpireObject) :
144
153
  """
145
154
  License.ClearLicenseByDLLHander(GetDllLibDoc())
146
155
  License.ClearLicenseByDLLHander(GetDllLibPdf())
156
+ License.ClearLicenseByDLLHander(GetDllLibOcr())
147
157
  License.ClearLicenseByDLLHander(GetDllLibXls())
148
158
  License.ClearLicenseByDLLHander(GetDllLibPpt())
149
159
  @staticmethod
@@ -166,6 +176,8 @@ class License (SpireObject) :
166
176
  ret = License.GetLicenseFileNameByDLLHander(GetDllLibXls())
167
177
  if ret == None:
168
178
  ret = License.GetLicenseFileNameByDLLHander(GetDllLibPpt())
179
+ if ret == None:
180
+ ret = License.GetLicenseFileNameByDLLHander(GetDllLibOcr())
169
181
  return ret
170
182
  @staticmethod
171
183
  def GetLicenseFileNameByDLLHander(dllhander)->str:
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/Point.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common":
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/Regex.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  from ctypes import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  from ctypes import *
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/Size.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
spire/xls/common/SizeF.py CHANGED
@@ -7,6 +7,8 @@ elif __package__ == "spire.xls.common":
7
7
  from spire.xls.common import *
8
8
  elif __package__ == "spire.doc.common":
9
9
  from spire.doc.common import *
10
+ elif __package__ == "spire.ocr.common" :
11
+ from spire.ocr.common import *
10
12
  else :
11
13
  from spire.presentation.common import *
12
14
  #from spire.xls import *
@@ -34,10 +36,10 @@ class SizeF (SpireObject) :
34
36
  def __init__(self, pointf:'PointF'):
35
37
  ptrPoint:c_void_p = pointf.Ptr
36
38
 
37
- dlllib.SizeF_CreateS.argtypes=[c_void_p]
38
- dlllib.SizeF_CreateS.restype = c_void_p
39
- intPtr = CallCFunction(dlllib.SizeF_CreateS,ptrSize)
40
- super(SizeF, self).__init__(ptrPoint)
39
+ dlllib.SizeF_CreateP.argtypes=[c_void_p]
40
+ dlllib.SizeF_CreateP.restype = c_void_p
41
+ intPtr = CallCFunction(dlllib.SizeF_CreateP,ptrPoint)
42
+ super(SizeF, self).__init__(intPtr)
41
43
  """
42
44
 
43
45
  """