spire-xls 15.7.1__py3-none-win_amd64.whl → 15.11.1__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/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 +14 -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 +118 -121
- spire/xls/XlsWorksheetBase.py +39 -20
- spire/xls/__init__.py +2 -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/ChartArea.py +1 -0
- spire/xls/charts/XlsChart.py +1 -1
- spire/xls/charts/XlsChartFrameFormat.py +2 -1
- 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/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/XlsPivotCachesCollection.py +1 -0
- spire/xls/collection/pivot_table/XlsPivotTablesCollection.py +1 -0
- spire/xls/conditional_formatting/ConditionalFormatWrapper.py +2 -2
- spire/xls/conditional_formatting/XlsConditionalFormat.py +10 -2
- spire/xls/conditional_formatting/XlsConditionalFormats.py +10 -5
- spire/xls/interfaces/IWorksheet.py +10 -10
- spire/xls/interfaces/ImportObjectOptions.py +7 -0
- spire/xls/lib/Spire.Xls.Base.dll +0 -0
- spire/xls/pivot_tables/PivotStyle.py +1 -0
- spire/xls/pivot_tables/PivotTableStyle.py +19 -12
- {spire_xls-15.7.1.dist-info → spire_xls-15.11.1.dist-info}/METADATA +1 -1
- {spire_xls-15.7.1.dist-info → spire_xls-15.11.1.dist-info}/RECORD +88 -87
- {spire_xls-15.7.1.dist-info → spire_xls-15.11.1.dist-info}/WHEEL +0 -0
- {spire_xls-15.7.1.dist-info → spire_xls-15.11.1.dist-info}/top_level.txt +0 -0
spire/xls/Workbook.py
CHANGED
|
@@ -103,8 +103,8 @@ class Workbook (SpireObject) :
|
|
|
103
103
|
"""
|
|
104
104
|
intPtrstream:c_void_p = stream.Ptr
|
|
105
105
|
|
|
106
|
-
GetDllLibXls().
|
|
107
|
-
CallCFunction(GetDllLibXls().
|
|
106
|
+
GetDllLibXls().Workbook_SaveAsXmlStream.argtypes=[c_void_p ,c_void_p]
|
|
107
|
+
CallCFunction(GetDllLibXls().Workbook_SaveAsXmlStream, self.Ptr, intPtrstream)
|
|
108
108
|
|
|
109
109
|
# @dispatch
|
|
110
110
|
#
|
|
@@ -124,46 +124,46 @@ class Workbook (SpireObject) :
|
|
|
124
124
|
# return ret
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
@dispatch
|
|
127
|
+
# @dispatch
|
|
128
128
|
|
|
129
|
-
def SaveChartAsEmfImage(self ,worksheet:Worksheet,chartIndex:int)->Stream:
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
# def SaveChartAsEmfImage(self ,worksheet:Worksheet,chartIndex:int)->Stream:
|
|
130
|
+
# """
|
|
131
|
+
# Save chart to vector image.
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
# Args:
|
|
134
|
+
# worksheet: work sheet
|
|
135
|
+
# chartIndex: chart index
|
|
136
136
|
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
# """
|
|
138
|
+
# intPtrworksheet:c_void_p = worksheet.Ptr
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
# GetDllLibXls().Workbook_SaveChartAsEmfImageWC.argtypes=[c_void_p ,c_void_p,c_int]
|
|
141
|
+
# GetDllLibXls().Workbook_SaveChartAsEmfImageWC.restype=c_void_p
|
|
142
|
+
# intPtr = CallCFunction(GetDllLibXls().Workbook_SaveChartAsEmfImageWC, self.Ptr, intPtrworksheet,chartIndex)
|
|
143
|
+
# ret = None if intPtr==None else Stream(intPtr)
|
|
144
|
+
# return ret
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
@dispatch
|
|
147
|
+
# @dispatch
|
|
148
148
|
|
|
149
|
-
def SaveChartAsEmfImage(self ,worksheet:Worksheet,chartIndex:int,emfStream:Stream)->Stream:
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
# def SaveChartAsEmfImage(self ,worksheet:Worksheet,chartIndex:int,emfStream:Stream)->Stream:
|
|
150
|
+
# """
|
|
151
|
+
# Save chart to vector image.
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
# Args:
|
|
154
|
+
# worksheet: work sheet
|
|
155
|
+
# chartIndex: chart index
|
|
156
|
+
# emfStream: output stream
|
|
157
157
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
# """
|
|
159
|
+
# intPtrworksheet:c_void_p = worksheet.Ptr
|
|
160
|
+
# intPtremfStream:c_void_p = emfStream.Ptr
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
# GetDllLibXls().Workbook_SaveChartAsEmfImageWCE.argtypes=[c_void_p ,c_void_p,c_int,c_void_p]
|
|
163
|
+
# GetDllLibXls().Workbook_SaveChartAsEmfImageWCE.restype=c_void_p
|
|
164
|
+
# intPtr = CallCFunction(GetDllLibXls().Workbook_SaveChartAsEmfImageWCE, self.Ptr, intPtrworksheet,chartIndex,intPtremfStream)
|
|
165
|
+
# ret = None if intPtr==None else Stream(intPtr)
|
|
166
|
+
# return ret
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
@dispatch
|
|
@@ -439,8 +439,8 @@ class Workbook (SpireObject) :
|
|
|
439
439
|
|
|
440
440
|
"""
|
|
441
441
|
|
|
442
|
-
GetDllLibXls().
|
|
443
|
-
CallCFunction(GetDllLibXls().
|
|
442
|
+
GetDllLibXls().Workbook_UnProtect2.argtypes=[c_void_p ,c_void_p]
|
|
443
|
+
CallCFunction(GetDllLibXls().Workbook_UnProtect2, self.Ptr, bookWindowAndStructurePassword)
|
|
444
444
|
|
|
445
445
|
|
|
446
446
|
def UnProtectWorkbook(self ,password:str):
|
|
@@ -519,44 +519,43 @@ class Workbook (SpireObject) :
|
|
|
519
519
|
GetDllLibXls().Workbook_TrackedChanges.argtypes=[c_void_p,c_bool]
|
|
520
520
|
CallCFunction(GetDllLibXls().Workbook_TrackedChanges, self.Ptr,switchValue)
|
|
521
521
|
|
|
522
|
-
#
|
|
523
|
-
# def AddDigitalSignature(self ,certificate:'X509Certificate2',comments:str,signTime:'DateTime')->'IDigitalSignatures':
|
|
524
|
-
# """
|
|
525
|
-
# <summary>
|
|
526
|
-
# Add a DigitalSignature.
|
|
527
|
-
# </summary>
|
|
528
|
-
# <param name="certificate">Certificate object that was used to sign</param>
|
|
529
|
-
# <param name="comments">Signature Comments</param>
|
|
530
|
-
# <param name="signTime">Sign Time</param>
|
|
531
|
-
# <returns>Collection of DigitalSignature</returns>
|
|
532
|
-
# """
|
|
533
|
-
# intPtrcertificate:c_void_p = certificate.Ptr
|
|
534
|
-
# intPtrsignTime:c_void_p = signTime.Ptr
|
|
535
|
-
#
|
|
536
|
-
# GetDllLibXls().Workbook_AddDigitalSignature.argtypes=[c_void_p ,c_void_p,c_void_p,c_void_p]
|
|
537
|
-
# GetDllLibXls().Workbook_AddDigitalSignature.restype=c_void_p
|
|
538
|
-
# intPtr = CallCFunction(GetDllLibXls().Workbook_AddDigitalSignature, self.Ptr, intPtrcertificate,comments,intPtrsignTime)
|
|
539
|
-
# ret = None if intPtr==None else IDigitalSignatures(intPtr)
|
|
540
|
-
# return ret
|
|
541
|
-
#
|
|
542
522
|
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
def GetDigitalSignatures(self)->'IDigitalSignatures':
|
|
523
|
+
def AddDigitalSignature(self ,certificatePath:str,password:str,comments:str,signTime:'DateTime')->'IDigitalSignatures':
|
|
546
524
|
"""
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
525
|
+
<summary>
|
|
526
|
+
Add a DigitalSignature.
|
|
527
|
+
</summary>
|
|
528
|
+
<param name="certificate">Certificate object that was used to sign</param>
|
|
529
|
+
<param name="comments">Signature Comments</param>
|
|
530
|
+
<param name="signTime">Sign Time</param>
|
|
531
|
+
<returns>Collection of DigitalSignature</returns>
|
|
552
532
|
"""
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
533
|
+
intPtrsignTime:c_void_p = signTime.Ptr
|
|
534
|
+
|
|
535
|
+
GetDllLibXls().Workbook_AddDigitalSignature.argtypes=[c_void_p ,c_wchar_p,c_wchar_p,c_wchar_p,c_void_p]
|
|
536
|
+
GetDllLibXls().Workbook_AddDigitalSignature.restype=c_void_p
|
|
537
|
+
intPtr = CallCFunction(GetDllLibXls().Workbook_AddDigitalSignature, self.Ptr, certificatePath,password,comments,intPtrsignTime)
|
|
556
538
|
ret = None if intPtr==None else IDigitalSignatures(intPtr)
|
|
557
539
|
return ret
|
|
558
540
|
|
|
559
541
|
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
# def GetDigitalSignatures(self)->'IDigitalSignatures':
|
|
545
|
+
# """
|
|
546
|
+
# Get collection of DigitalSignature in this file.
|
|
547
|
+
|
|
548
|
+
# Returns:
|
|
549
|
+
# Collection of DigitalSignature
|
|
550
|
+
|
|
551
|
+
# """
|
|
552
|
+
# GetDllLibXls().Workbook_GetDigitalSignatures.argtypes=[c_void_p]
|
|
553
|
+
# GetDllLibXls().Workbook_GetDigitalSignatures.restype=c_void_p
|
|
554
|
+
# intPtr = CallCFunction(GetDllLibXls().Workbook_GetDigitalSignatures, self.Ptr)
|
|
555
|
+
# ret = None if intPtr==None else IDigitalSignatures(intPtr)
|
|
556
|
+
# return ret
|
|
557
|
+
|
|
558
|
+
|
|
560
559
|
def RemoveAllDigitalSignatures(self):
|
|
561
560
|
"""
|
|
562
561
|
Remove all DigitalSignature in this file.
|
|
@@ -957,8 +956,8 @@ class Workbook (SpireObject) :
|
|
|
957
956
|
|
|
958
957
|
"""
|
|
959
958
|
|
|
960
|
-
GetDllLibXls().
|
|
961
|
-
CallCFunction(GetDllLibXls().
|
|
959
|
+
GetDllLibXls().Workbook_LoadTemplateFromFileL.argtypes=[c_void_p ,c_void_p,c_bool]
|
|
960
|
+
CallCFunction(GetDllLibXls().Workbook_LoadTemplateFromFileL, self.Ptr, fileName,loadStyles)
|
|
962
961
|
|
|
963
962
|
@dispatch
|
|
964
963
|
|
|
@@ -2444,7 +2443,7 @@ class Workbook (SpireObject) :
|
|
|
2444
2443
|
GetDllLibXls().Workbook_get_Colors.argtypes=[c_void_p]
|
|
2445
2444
|
GetDllLibXls().Workbook_get_Colors.restype=IntPtrArray
|
|
2446
2445
|
intPtrArray = CallCFunction(GetDllLibXls().Workbook_get_Colors, self.Ptr)
|
|
2447
|
-
ret =
|
|
2446
|
+
ret = GetObjVectorFromArray(intPtrArray, Color)
|
|
2448
2447
|
return ret
|
|
2449
2448
|
|
|
2450
2449
|
|
|
@@ -3093,29 +3092,29 @@ class Workbook (SpireObject) :
|
|
|
3093
3092
|
return ret
|
|
3094
3093
|
|
|
3095
3094
|
|
|
3096
|
-
@staticmethod
|
|
3095
|
+
# @staticmethod
|
|
3097
3096
|
|
|
3098
|
-
def FixDateTimeNow()->'DateTime':
|
|
3099
|
-
|
|
3097
|
+
# def FixDateTimeNow()->'DateTime':
|
|
3098
|
+
# """
|
|
3100
3099
|
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3100
|
+
# """
|
|
3101
|
+
# #GetDllLibXls().Workbook_FixDateTimeNow.argtypes=[]
|
|
3102
|
+
# GetDllLibXls().Workbook_FixDateTimeNow.restype=c_void_p
|
|
3103
|
+
# intPtr = CallCFunction(GetDllLibXls().Workbook_FixDateTimeNow)
|
|
3104
|
+
# ret = None if intPtr==None else DateTime(intPtr)
|
|
3105
|
+
# return ret
|
|
3107
3106
|
|
|
3108
3107
|
|
|
3109
|
-
@staticmethod
|
|
3108
|
+
# @staticmethod
|
|
3110
3109
|
|
|
3111
|
-
def FixDateTimeToday()->'DateTime':
|
|
3112
|
-
|
|
3110
|
+
# def FixDateTimeToday()->'DateTime':
|
|
3111
|
+
# """
|
|
3113
3112
|
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3113
|
+
# """
|
|
3114
|
+
# #GetDllLibXls().Workbook_FixDateTimeToday.argtypes=[]
|
|
3115
|
+
# GetDllLibXls().Workbook_FixDateTimeToday.restype=c_void_p
|
|
3116
|
+
# intPtr = CallCFunction(GetDllLibXls().Workbook_FixDateTimeToday)
|
|
3117
|
+
# ret = None if intPtr==None else DateTime(intPtr)
|
|
3118
|
+
# return ret
|
|
3120
3119
|
|
|
3121
3120
|
|
spire/xls/Worksheet.py
CHANGED
|
@@ -10,6 +10,57 @@ class Worksheet ( XlsWorksheet) :
|
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
"""
|
|
13
|
+
@dispatch
|
|
14
|
+
|
|
15
|
+
def RemoveDuplicates(self):
|
|
16
|
+
"""
|
|
17
|
+
Remove Duplicate rows.
|
|
18
|
+
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
GetDllLibXls().Worksheet_RemoveDuplicates.argtypes=[c_void_p]
|
|
22
|
+
CallCFunction(GetDllLibXls().Worksheet_RemoveDuplicates, self.Ptr)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@dispatch
|
|
26
|
+
|
|
27
|
+
def RemoveDuplicates(self ,row:int,column:int,lastRow:int,lastColumn:int):
|
|
28
|
+
"""
|
|
29
|
+
Remove Duplicate rows.
|
|
30
|
+
|
|
31
|
+
Args:
|
|
32
|
+
row: row start
|
|
33
|
+
column: column start
|
|
34
|
+
lastRow: row end
|
|
35
|
+
lastColumn: column end
|
|
36
|
+
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
GetDllLibXls().Worksheet_RemoveDuplicatesSSEE.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
40
|
+
CallCFunction(GetDllLibXls().Worksheet_RemoveDuplicatesSSEE, self.Ptr, row,column,lastRow,lastColumn)
|
|
41
|
+
|
|
42
|
+
@dispatch
|
|
43
|
+
|
|
44
|
+
def RemoveDuplicates(self ,row:int,column:int,lastRow:int,lastColumn:int,hasHeaders:bool, columnOffsets:List[int]):
|
|
45
|
+
"""
|
|
46
|
+
Remove Duplicate rows.
|
|
47
|
+
|
|
48
|
+
Args:
|
|
49
|
+
row: row start
|
|
50
|
+
column: column start
|
|
51
|
+
lastRow: row end
|
|
52
|
+
lastColumn: column end
|
|
53
|
+
|
|
54
|
+
"""
|
|
55
|
+
countcolumnOffsets = len(columnOffsets)
|
|
56
|
+
ArrayTypecolumnOffsets = c_int * countcolumnOffsets
|
|
57
|
+
arraycolumnOffsets = ArrayTypecolumnOffsets()
|
|
58
|
+
for i in range(0, countcolumnOffsets):
|
|
59
|
+
arraycolumnOffsets[i] = columnOffsets[i]
|
|
60
|
+
|
|
61
|
+
GetDllLibXls().Worksheet_RemoveDuplicatesSSEEHC.argtypes=[c_void_p ,c_int,c_int,c_int,c_int,c_bool,ArrayTypecolumnOffsets,c_int]
|
|
62
|
+
CallCFunction(GetDllLibXls().Worksheet_RemoveDuplicatesSSEEHC, self.Ptr, row,column,lastRow,lastColumn,hasHeaders,arraycolumnOffsets,countcolumnOffsets)
|
|
63
|
+
|
|
13
64
|
@property
|
|
14
65
|
|
|
15
66
|
def AllocatedRange(self)->'CellRange':
|
|
@@ -596,8 +647,8 @@ class Worksheet ( XlsWorksheet) :
|
|
|
596
647
|
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
597
648
|
intPtrdestRange:c_void_p = destRange.Ptr
|
|
598
649
|
|
|
599
|
-
GetDllLibXls().
|
|
600
|
-
CallCFunction(GetDllLibXls().
|
|
650
|
+
GetDllLibXls().Worksheet_MoveRS.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool,c_bool]
|
|
651
|
+
CallCFunction(GetDllLibXls().Worksheet_MoveRS, self.Ptr, intPtrsourceRange,intPtrdestRange,updateReference,copyStyle)
|
|
601
652
|
|
|
602
653
|
# @dispatch
|
|
603
654
|
#
|
|
@@ -815,8 +866,8 @@ class Worksheet ( XlsWorksheet) :
|
|
|
815
866
|
"""
|
|
816
867
|
intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
|
|
817
868
|
|
|
818
|
-
GetDllLibXls().
|
|
819
|
-
CallCFunction(GetDllLibXls().
|
|
869
|
+
GetDllLibXls().Worksheet_SetDefaultColumnStyleFL.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
870
|
+
CallCFunction(GetDllLibXls().Worksheet_SetDefaultColumnStyleFL, self.Ptr, firstColumnIndex,lastColumnIndex,intPtrdefaultStyle)
|
|
820
871
|
|
|
821
872
|
@dispatch
|
|
822
873
|
|
|
@@ -874,8 +925,8 @@ class Worksheet ( XlsWorksheet) :
|
|
|
874
925
|
"""
|
|
875
926
|
intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
|
|
876
927
|
|
|
877
|
-
GetDllLibXls().
|
|
878
|
-
CallCFunction(GetDllLibXls().
|
|
928
|
+
GetDllLibXls().Worksheet_SetDefaultRowStyleFL.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
929
|
+
CallCFunction(GetDllLibXls().Worksheet_SetDefaultRowStyleFL, self.Ptr, firstRowIndex,lastRowIndex,intPtrdefaultStyle)
|
|
879
930
|
|
|
880
931
|
|
|
881
932
|
def GetDefaultColumnStyle(self ,columnIndex:int)->'CellStyle':
|
|
@@ -990,8 +1041,8 @@ class Worksheet ( XlsWorksheet) :
|
|
|
990
1041
|
|
|
991
1042
|
"""
|
|
992
1043
|
|
|
993
|
-
GetDllLibXls().
|
|
994
|
-
CallCFunction(GetDllLibXls().
|
|
1044
|
+
GetDllLibXls().Worksheet_RemoveRangeI.argtypes=[c_void_p ,c_int,c_int]
|
|
1045
|
+
CallCFunction(GetDllLibXls().Worksheet_RemoveRangeI, self.Ptr, rowIndex,columnIndex)
|
|
995
1046
|
|
|
996
1047
|
@dispatch
|
|
997
1048
|
|
|
@@ -1004,8 +1055,8 @@ class Worksheet ( XlsWorksheet) :
|
|
|
1004
1055
|
|
|
1005
1056
|
"""
|
|
1006
1057
|
|
|
1007
|
-
GetDllLibXls().
|
|
1008
|
-
CallCFunction(GetDllLibXls().
|
|
1058
|
+
GetDllLibXls().Worksheet_RemovePictureI.argtypes=[c_void_p ,c_int]
|
|
1059
|
+
CallCFunction(GetDllLibXls().Worksheet_RemovePictureI, self.Ptr, index)
|
|
1009
1060
|
|
|
1010
1061
|
@dispatch
|
|
1011
1062
|
|
|
@@ -1018,8 +1069,8 @@ class Worksheet ( XlsWorksheet) :
|
|
|
1018
1069
|
|
|
1019
1070
|
"""
|
|
1020
1071
|
|
|
1021
|
-
GetDllLibXls().
|
|
1022
|
-
CallCFunction(GetDllLibXls().
|
|
1072
|
+
GetDllLibXls().Worksheet_RemovePictureN.argtypes=[c_void_p ,c_void_p]
|
|
1073
|
+
CallCFunction(GetDllLibXls().Worksheet_RemovePictureN, self.Ptr, picturename)
|
|
1023
1074
|
|
|
1024
1075
|
@dispatch
|
|
1025
1076
|
|
spire/xls/XlsAddInFunction.py
CHANGED
|
@@ -72,21 +72,21 @@ class XlsAddInFunction ( XlsObject, IAddInFunction, ICloneParent) :
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
def Clone(self ,parent:'
|
|
75
|
+
def Clone(self ,parent:'XlsWorkbook')->'XlsAddInFunction':
|
|
76
76
|
"""Creates a new object that is a copy of the current instance.
|
|
77
77
|
|
|
78
78
|
Args:
|
|
79
|
-
parent (
|
|
79
|
+
parent (XlsWorkbook): Parent object for a copy of this instance.
|
|
80
80
|
|
|
81
81
|
Returns:
|
|
82
|
-
|
|
82
|
+
XlsAddInFunction: A new object that is a copy of this instance.
|
|
83
83
|
"""
|
|
84
84
|
intPtrparent:c_void_p = parent.Ptr
|
|
85
85
|
|
|
86
86
|
GetDllLibXls().XlsAddInFunction_Clone.argtypes=[c_void_p ,c_void_p]
|
|
87
87
|
GetDllLibXls().XlsAddInFunction_Clone.restype=c_void_p
|
|
88
88
|
intPtr = CallCFunction(GetDllLibXls().XlsAddInFunction_Clone, self.Ptr, intPtrparent)
|
|
89
|
-
ret = None if intPtr==None else
|
|
89
|
+
ret = None if intPtr==None else XlsAddInFunction(intPtr)
|
|
90
90
|
return ret
|
|
91
91
|
|
|
92
92
|
|
spire/xls/XlsArcShape.py
CHANGED
|
@@ -108,7 +108,7 @@ class XlsArcShape ( XlsPrstGeomShape, IArcShape) :
|
|
|
108
108
|
GetDllLibXls().XlsArcShape_get_RichText.argtypes=[c_void_p]
|
|
109
109
|
GetDllLibXls().XlsArcShape_get_RichText.restype=c_void_p
|
|
110
110
|
intPtr = CallCFunction(GetDllLibXls().XlsArcShape_get_RichText, self.Ptr)
|
|
111
|
-
ret = None if intPtr==None else
|
|
111
|
+
ret = None if intPtr==None else RichTextShape(intPtr)
|
|
112
112
|
return ret
|
|
113
113
|
|
|
114
114
|
|
spire/xls/XlsBorder.py
CHANGED
|
@@ -72,6 +72,7 @@ class XlsBorder ( XlsObject, IBorder) :
|
|
|
72
72
|
Returns:
|
|
73
73
|
OColor: An object representing the Office color.
|
|
74
74
|
"""
|
|
75
|
+
from spire.xls.OColor import OColor
|
|
75
76
|
GetDllLibXls().XlsBorder_get_OColor.argtypes=[c_void_p]
|
|
76
77
|
GetDllLibXls().XlsBorder_get_OColor.restype=c_void_p
|
|
77
78
|
intPtr = CallCFunction(GetDllLibXls().XlsBorder_get_OColor, self.Ptr)
|
spire/xls/XlsButtonShape.py
CHANGED
|
@@ -6,7 +6,7 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class XlsButtonShape ( XlsShape,
|
|
9
|
+
class XlsButtonShape ( XlsShape, IButtonShape) :
|
|
10
10
|
"""Represents a button shape in an Excel worksheet.
|
|
11
11
|
|
|
12
12
|
This class provides properties and methods for manipulating button shapes in Excel,
|
spire/xls/XlsComment.py
CHANGED
|
@@ -6,7 +6,7 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class XlsComment ( XlsShape,
|
|
9
|
+
class XlsComment ( XlsShape, ICommentShape) :
|
|
10
10
|
"""Represents a comment in an Excel worksheet.
|
|
11
11
|
|
|
12
12
|
This class provides properties and methods for manipulating comments in Excel,
|
|
@@ -21,6 +21,7 @@ class XlsDataValidationTable ( SpireObject, IDataValidationTable) :
|
|
|
21
21
|
Returns:
|
|
22
22
|
Worksheet: The worksheet object containing this data validation table.
|
|
23
23
|
"""
|
|
24
|
+
from spire.xls.Worksheet import Worksheet
|
|
24
25
|
GetDllLibXls().XlsDataValidationTable_get_Worksheet.argtypes=[c_void_p]
|
|
25
26
|
GetDllLibXls().XlsDataValidationTable_get_Worksheet.restype=c_void_p
|
|
26
27
|
intPtr = CallCFunction(GetDllLibXls().XlsDataValidationTable_get_Worksheet, self.Ptr)
|
|
@@ -36,6 +37,7 @@ class XlsDataValidationTable ( SpireObject, IDataValidationTable) :
|
|
|
36
37
|
Returns:
|
|
37
38
|
Workbook: The workbook object containing this data validation table.
|
|
38
39
|
"""
|
|
40
|
+
from spire.xls.Workbook import Workbook
|
|
39
41
|
GetDllLibXls().XlsDataValidationTable_get_Workbook.argtypes=[c_void_p]
|
|
40
42
|
GetDllLibXls().XlsDataValidationTable_get_Workbook.restype=c_void_p
|
|
41
43
|
intPtr = CallCFunction(GetDllLibXls().XlsDataValidationTable_get_Workbook, self.Ptr)
|
|
@@ -53,7 +55,7 @@ class XlsDataValidationTable ( SpireObject, IDataValidationTable) :
|
|
|
53
55
|
Returns:
|
|
54
56
|
XlsDataValidationCollection: The data validation collection at the specified index.
|
|
55
57
|
"""
|
|
56
|
-
|
|
58
|
+
from spire.xls.collection.XlsDataValidationCollection import XlsDataValidationCollection
|
|
57
59
|
GetDllLibXls().XlsDataValidationTable_get_Item.argtypes=[c_void_p ,c_int]
|
|
58
60
|
GetDllLibXls().XlsDataValidationTable_get_Item.restype=c_void_p
|
|
59
61
|
intPtr = CallCFunction(GetDllLibXls().XlsDataValidationTable_get_Item, self.Ptr, index)
|
spire/xls/XlsFont.py
CHANGED
|
@@ -94,6 +94,7 @@ class XlsFont ( XlsObject, IFont, IOptimizedUpdate, ICloneParent) :
|
|
|
94
94
|
Returns:
|
|
95
95
|
OColor: An object representing the Office color of the font.
|
|
96
96
|
"""
|
|
97
|
+
from spire.xls.OColor import OColor
|
|
97
98
|
GetDllLibXls().XlsFont_get_OColor.argtypes=[c_void_p]
|
|
98
99
|
GetDllLibXls().XlsFont_get_OColor.restype=c_void_p
|
|
99
100
|
intPtr = CallCFunction(GetDllLibXls().XlsFont_get_OColor, self.Ptr)
|
|
@@ -151,30 +152,35 @@ class XlsFont ( XlsObject, IFont, IOptimizedUpdate, ICloneParent) :
|
|
|
151
152
|
CallCFunction(GetDllLibXls().XlsFont_set_Color, self.Ptr, value.Ptr)
|
|
152
153
|
|
|
153
154
|
|
|
154
|
-
def SetThemeColor(self ,
|
|
155
|
+
def SetThemeColor(self ,themeType:'ThemeColorType',tint:float):
|
|
155
156
|
"""Sets a theme color for the font.
|
|
156
157
|
|
|
157
158
|
Args:
|
|
158
159
|
type (ThemeColorType): The theme color type to set.
|
|
159
160
|
tint (float): The tint value to apply to the theme color.
|
|
160
161
|
"""
|
|
161
|
-
enumtype:c_int =
|
|
162
|
+
enumtype:c_int = themeType.value
|
|
162
163
|
|
|
163
164
|
GetDllLibXls().XlsFont_SetThemeColor.argtypes=[c_void_p ,c_int,c_double]
|
|
164
165
|
CallCFunction(GetDllLibXls().XlsFont_SetThemeColor, self.Ptr, enumtype,tint)
|
|
165
166
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
167
|
+
def GetThemeColor(self)->Tuple[bool,ThemeColorType,float]:
|
|
168
|
+
|
|
169
|
+
GetDllLibXls().XlsFont_GetThemeColor_bool.argtypes=[c_void_p ]
|
|
170
|
+
GetDllLibXls().XlsFont_GetThemeColor_bool.restype=c_bool
|
|
171
|
+
ret = CallCFunction(GetDllLibXls().XlsFont_GetThemeColor_bool, self.Ptr)
|
|
172
|
+
if not ret:
|
|
173
|
+
return False,None,None
|
|
174
|
+
GetDllLibXls().XlsFont_GetThemeColor_Type.argtypes=[c_void_p ]
|
|
175
|
+
GetDllLibXls().XlsFont_GetThemeColor_Type.restype=c_int
|
|
176
|
+
ret_type = CallCFunction(GetDllLibXls().XlsFont_GetThemeColor_Type, self.Ptr)
|
|
177
|
+
theme_type = None if ret_type is None else ThemeColorType(ret_type)
|
|
178
|
+
|
|
179
|
+
GetDllLibXls().XlsFont_GetThemeColor_Tint.argtypes=[c_void_p ]
|
|
180
|
+
GetDllLibXls().XlsFont_GetThemeColor_Tint.restype=c_double
|
|
181
|
+
theme_tint = CallCFunction(GetDllLibXls().XlsFont_GetThemeColor_Tint, self.Ptr)
|
|
182
|
+
|
|
183
|
+
return True,theme_type,theme_tint
|
|
178
184
|
|
|
179
185
|
|
|
180
186
|
@property
|
spire/xls/XlsName.py
CHANGED
|
@@ -21,6 +21,7 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
21
21
|
Returns:
|
|
22
22
|
ICommentShape: The comment object.
|
|
23
23
|
"""
|
|
24
|
+
from spire.xls.XlsComment import XlsComment
|
|
24
25
|
GetDllLibXls().XlsName_get_Comment.argtypes=[c_void_p]
|
|
25
26
|
GetDllLibXls().XlsName_get_Comment.restype=c_void_p
|
|
26
27
|
intPtr = CallCFunction(GetDllLibXls().XlsName_get_Comment, self.Ptr)
|
|
@@ -36,11 +37,10 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
36
37
|
Returns:
|
|
37
38
|
IRichTextString: The rich text formatting object.
|
|
38
39
|
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return ret
|
|
40
|
+
refres = self.RefersToRange
|
|
41
|
+
if refres == None:
|
|
42
|
+
return None
|
|
43
|
+
return refres.RichText
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
@property
|
|
@@ -192,7 +192,7 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
192
192
|
GetDllLibXls().XlsName_get_Hyperlinks.argtypes=[c_void_p]
|
|
193
193
|
GetDllLibXls().XlsName_get_Hyperlinks.restype=c_void_p
|
|
194
194
|
intPtr = CallCFunction(GetDllLibXls().XlsName_get_Hyperlinks, self.Ptr)
|
|
195
|
-
ret = None if intPtr==None else
|
|
195
|
+
ret = None if intPtr==None else XlsHyperLinksCollection(intPtr)
|
|
196
196
|
return ret
|
|
197
197
|
|
|
198
198
|
|
|
@@ -341,6 +341,7 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
341
341
|
Returns:
|
|
342
342
|
ICommentShape: The newly added comment.
|
|
343
343
|
"""
|
|
344
|
+
from spire.xls.XlsComment import XlsComment
|
|
344
345
|
GetDllLibXls().XlsName_AddComment.argtypes=[c_void_p]
|
|
345
346
|
GetDllLibXls().XlsName_AddComment.restype=c_void_p
|
|
346
347
|
intPtr = CallCFunction(GetDllLibXls().XlsName_AddComment, self.Ptr)
|
|
@@ -501,17 +502,13 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
501
502
|
CallCFunction(GetDllLibXls().XlsName_ExpandGroupGF, self.Ptr, enumgroupBy,enumflags)
|
|
502
503
|
|
|
503
504
|
|
|
504
|
-
def GetEnumerator(self)->'
|
|
505
|
+
def GetEnumerator(self)->'EnumeratorXlsRange':
|
|
505
506
|
"""Gets an enumerator that can be used to iterate through the cells in the named range.
|
|
506
507
|
|
|
507
508
|
Returns:
|
|
508
509
|
IEnumerator: An enumerator for iterating through the cells.
|
|
509
510
|
"""
|
|
510
|
-
|
|
511
|
-
GetDllLibXls().XlsName_GetEnumerator.restype=c_void_p
|
|
512
|
-
intPtr = CallCFunction(GetDllLibXls().XlsName_GetEnumerator, self.Ptr)
|
|
513
|
-
ret = None if intPtr==None else IEnumerator(intPtr)
|
|
514
|
-
return ret
|
|
511
|
+
return self.RefersToRange.GetEnumerator()
|
|
515
512
|
|
|
516
513
|
|
|
517
514
|
@dispatch
|
|
@@ -547,7 +544,7 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
547
544
|
GetDllLibXls().XlsName_Clone.argtypes=[c_void_p ,c_void_p]
|
|
548
545
|
GetDllLibXls().XlsName_Clone.restype=c_void_p
|
|
549
546
|
intPtr = CallCFunction(GetDllLibXls().XlsName_Clone, self.Ptr, intPtrparent)
|
|
550
|
-
ret = None if intPtr==None else
|
|
547
|
+
ret = None if intPtr==None else XlsName(intPtr)
|
|
551
548
|
return ret
|
|
552
549
|
|
|
553
550
|
|
|
@@ -783,7 +780,7 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
783
780
|
|
|
784
781
|
def SetIndex(self ,index:int):
|
|
785
782
|
"""Sets the index of the named range in the collection.
|
|
786
|
-
|
|
783
|
+
the method is not implemented
|
|
787
784
|
This method changes the position of the named range in the collection.
|
|
788
785
|
|
|
789
786
|
Args:
|
|
@@ -797,7 +794,7 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
797
794
|
|
|
798
795
|
def SetIndex(self ,index:int,bRaiseEvent:bool):
|
|
799
796
|
"""Sets the index of the named range with an option to raise an event.
|
|
800
|
-
|
|
797
|
+
the method is not implemented
|
|
801
798
|
This method changes the position of the named range in the collection
|
|
802
799
|
and optionally raises a notification event.
|
|
803
800
|
|
|
@@ -989,6 +986,7 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
989
986
|
Returns:
|
|
990
987
|
IWorksheet: The worksheet that contains the named range.
|
|
991
988
|
"""
|
|
989
|
+
from spire.xls.XlsWorksheet import XlsWorksheet
|
|
992
990
|
GetDllLibXls().XlsName_get_Worksheet.argtypes=[c_void_p]
|
|
993
991
|
GetDllLibXls().XlsName_get_Worksheet.restype=c_void_p
|
|
994
992
|
intPtr = CallCFunction(GetDllLibXls().XlsName_get_Worksheet, self.Ptr)
|
|
@@ -1132,6 +1130,7 @@ class XlsName ( XlsObject, INamedRange, IXLSRange) :
|
|
|
1132
1130
|
Returns:
|
|
1133
1131
|
IBorders: The collection of borders.
|
|
1134
1132
|
"""
|
|
1133
|
+
from spire.xls.collection.XlsBordersCollection import XlsBordersCollection
|
|
1135
1134
|
GetDllLibXls().XlsName_get_Borders.argtypes=[c_void_p]
|
|
1136
1135
|
GetDllLibXls().XlsName_get_Borders.restype=c_void_p
|
|
1137
1136
|
intPtr = CallCFunction(GetDllLibXls().XlsName_get_Borders, self.Ptr)
|
spire/xls/XlsOvalShape.py
CHANGED
|
@@ -108,7 +108,7 @@ class XlsOvalShape ( XlsShape, IOvalShape) :
|
|
|
108
108
|
GetDllLibXls().XlsOvalShape_get_RichText.argtypes=[c_void_p]
|
|
109
109
|
GetDllLibXls().XlsOvalShape_get_RichText.restype=c_void_p
|
|
110
110
|
intPtr = CallCFunction(GetDllLibXls().XlsOvalShape_get_RichText, self.Ptr)
|
|
111
|
-
ret = None if intPtr==None else
|
|
111
|
+
ret = None if intPtr==None else RichTextShape(intPtr)
|
|
112
112
|
return ret
|
|
113
113
|
|
|
114
114
|
|
spire/xls/XlsPageSetup.py
CHANGED
|
@@ -70,7 +70,10 @@ class XlsPageSetup ( XlsPageSetupBase, IPageSetup) :
|
|
|
70
70
|
|
|
71
71
|
def PrintTitleColumns(self)->str:
|
|
72
72
|
"""Gets or sets the columns that contain the cells to be repeated on the left side of each page.
|
|
73
|
-
|
|
73
|
+
Example::
|
|
74
|
+
|
|
75
|
+
pageSetup.PrintTitleColumns = "$A:$A"
|
|
76
|
+
|
|
74
77
|
Returns:
|
|
75
78
|
str: The title columns as an A1-style reference.
|
|
76
79
|
"""
|
|
@@ -89,7 +92,10 @@ class XlsPageSetup ( XlsPageSetupBase, IPageSetup) :
|
|
|
89
92
|
|
|
90
93
|
def PrintTitleRows(self)->str:
|
|
91
94
|
"""Gets or sets the rows that contain the cells to be repeated at the top of each page.
|
|
92
|
-
|
|
95
|
+
Example::
|
|
96
|
+
|
|
97
|
+
pageSetup.PrintTitleRows = "$1:$10"
|
|
98
|
+
|
|
93
99
|
Returns:
|
|
94
100
|
str: The title rows as an A1-style reference.
|
|
95
101
|
"""
|