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
|
@@ -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
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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)
|
spire/xls/common/Boolean.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/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 *
|
spire/xls/common/Common.py
CHANGED
|
@@ -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
|
spire/xls/common/CultureInfo.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/DateTime.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 *
|
|
@@ -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
|
spire/xls/common/Double.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/EmfType.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/Encoding.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/FontStyle.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/GraphicsUnit.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/ICollection.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.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
|
spire/xls/common/IDictionary.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/IEnumerable.py
CHANGED
|
@@ -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
|
spire/xls/common/IEnumerator.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/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 *
|
spire/xls/common/License.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 *
|
|
@@ -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:
|
spire/xls/common/PixelFormat.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/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 *
|
spire/xls/common/PointF.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/Rectangle.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/RectangleF.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/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 *
|
spire/xls/common/RegexOptions.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 *
|
spire/xls/common/Single.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/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.
|
|
38
|
-
dlllib.
|
|
39
|
-
intPtr = CallCFunction(dlllib.
|
|
40
|
-
super(SizeF, self).__init__(
|
|
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
|
"""
|