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
spire/xls/Font.py
CHANGED
|
@@ -56,17 +56,17 @@ class Font (SpireObject) :
|
|
|
56
56
|
ret = CallCFunction(dlllib.Font_get_GdiCharSet,self.Ptr)
|
|
57
57
|
return ret
|
|
58
58
|
|
|
59
|
-
@property
|
|
60
|
-
def GdiVerticalFont(self)->bool:
|
|
61
|
-
|
|
59
|
+
# @property
|
|
60
|
+
# def GdiVerticalFont(self)->bool:
|
|
61
|
+
# """Gets a value indicating whether this font is a GDI vertical font.
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
# Returns:
|
|
64
|
+
# bool: True if this is a GDI vertical font; otherwise, False.
|
|
65
|
+
# """
|
|
66
|
+
# dlllib.Font_get_GdiVerticalFont.argtypes=[c_void_p]
|
|
67
|
+
# dlllib.Font_get_GdiVerticalFont.restype=c_bool
|
|
68
|
+
# ret = CallCFunction(dlllib.Font_get_GdiVerticalFont,self.Ptr)
|
|
69
|
+
# return ret
|
|
70
70
|
|
|
71
71
|
@property
|
|
72
72
|
def Italic(self)->bool:
|
|
@@ -92,18 +92,18 @@ class Font (SpireObject) :
|
|
|
92
92
|
# return ret
|
|
93
93
|
|
|
94
94
|
|
|
95
|
-
@dispatch
|
|
95
|
+
# @dispatch
|
|
96
96
|
|
|
97
|
-
def ToLogFont(self ,logFont:SpireObject):
|
|
98
|
-
|
|
97
|
+
# def ToLogFont(self ,logFont:SpireObject):
|
|
98
|
+
# """Fills a LOGFONT structure with the font's data.
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
# Args:
|
|
101
|
+
# logFont (SpireObject): The LOGFONT structure to fill with this font's data.
|
|
102
|
+
# """
|
|
103
|
+
# intPtrlogFont:c_void_p = logFont.Ptr
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
# dlllib.Font_ToLogFont.argtypes=[c_void_p ,c_void_p]
|
|
106
|
+
# CallCFunction(dlllib.Font_ToLogFont,self.Ptr, intPtrlogFont)
|
|
107
107
|
|
|
108
108
|
# @dispatch
|
|
109
109
|
#
|
|
@@ -209,25 +209,25 @@ class Font (SpireObject) :
|
|
|
209
209
|
#
|
|
210
210
|
|
|
211
211
|
|
|
212
|
-
@staticmethod
|
|
213
|
-
@dispatch
|
|
212
|
+
# @staticmethod
|
|
213
|
+
# @dispatch
|
|
214
214
|
|
|
215
|
-
def FromLogFont(lf:SpireObject)->'Font':
|
|
216
|
-
|
|
215
|
+
# def FromLogFont(lf:SpireObject)->'Font':
|
|
216
|
+
# """Creates a Font object from a LOGFONT structure.
|
|
217
217
|
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
# Args:
|
|
219
|
+
# lf (SpireObject): The LOGFONT structure from which to create the font.
|
|
220
220
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
# Returns:
|
|
222
|
+
# Font: A new Font object based on the specified LOGFONT structure.
|
|
223
|
+
# """
|
|
224
|
+
# intPtrlf:c_void_p = lf.Ptr
|
|
225
225
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
226
|
+
# dlllib.Font_FromLogFontL.argtypes=[ c_void_p]
|
|
227
|
+
# dlllib.Font_FromLogFontL.restype=c_void_p
|
|
228
|
+
# intPtr = CallCFunction(dlllib.Font_FromLogFontL, intPtrlf)
|
|
229
|
+
# ret = None if intPtr==None else Font(intPtr)
|
|
230
|
+
# return ret
|
|
231
231
|
|
|
232
232
|
|
|
233
233
|
# @staticmethod
|
|
@@ -247,17 +247,17 @@ class Font (SpireObject) :
|
|
|
247
247
|
|
|
248
248
|
|
|
249
249
|
|
|
250
|
-
def Clone(self)->'SpireObject':
|
|
251
|
-
|
|
250
|
+
# def Clone(self)->'SpireObject':
|
|
251
|
+
# """Creates an exact copy of this Font object.
|
|
252
252
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
253
|
+
# Returns:
|
|
254
|
+
# SpireObject: A new Font object that is an exact copy of this Font.
|
|
255
|
+
# """
|
|
256
|
+
# dlllib.Font_Clone.argtypes=[c_void_p]
|
|
257
|
+
# dlllib.Font_Clone.restype=c_void_p
|
|
258
|
+
# intPtr = CallCFunction(dlllib.Font_Clone,self.Ptr)
|
|
259
|
+
# ret = None if intPtr==None else SpireObject(intPtr)
|
|
260
|
+
# return ret
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
#def Dispose(self):
|
|
@@ -329,21 +329,21 @@ class Font (SpireObject) :
|
|
|
329
329
|
return ret
|
|
330
330
|
|
|
331
331
|
|
|
332
|
-
def Equals(self ,obj:'SpireObject')->bool:
|
|
333
|
-
|
|
332
|
+
# def Equals(self ,obj:'SpireObject')->bool:
|
|
333
|
+
# """Determines whether the specified object is equal to this Font object.
|
|
334
334
|
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
# Args:
|
|
336
|
+
# obj (SpireObject): The object to compare with the current Font.
|
|
337
337
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
338
|
+
# Returns:
|
|
339
|
+
# bool: True if the specified object is equal to the current Font; otherwise, False.
|
|
340
|
+
# """
|
|
341
|
+
# intPtrobj:c_void_p = obj.Ptr
|
|
342
342
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
343
|
+
# dlllib.Font_Equals.argtypes=[c_void_p ,c_void_p]
|
|
344
|
+
# dlllib.Font_Equals.restype=c_bool
|
|
345
|
+
# ret = CallCFunction(dlllib.Font_Equals,self.Ptr, intPtrobj)
|
|
346
|
+
# return ret
|
|
347
347
|
|
|
348
348
|
|
|
349
349
|
def ToString(self)->str:
|
|
@@ -372,58 +372,58 @@ class Font (SpireObject) :
|
|
|
372
372
|
# return ret
|
|
373
373
|
|
|
374
374
|
|
|
375
|
-
@dispatch
|
|
376
|
-
def GetHeight(self)->float:
|
|
377
|
-
|
|
375
|
+
# @dispatch
|
|
376
|
+
# def GetHeight(self)->float:
|
|
377
|
+
# """Gets the height of this font.
|
|
378
378
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
@dispatch
|
|
388
|
-
|
|
389
|
-
def GetHeight(self ,dpi:float)->float:
|
|
390
|
-
|
|
379
|
+
# Returns:
|
|
380
|
+
# float: The height of this font.
|
|
381
|
+
# """
|
|
382
|
+
# dlllib.Font_GetHeight1.argtypes=[c_void_p]
|
|
383
|
+
# dlllib.Font_GetHeight1.restype=c_float
|
|
384
|
+
# ret = CallCFunction(dlllib.Font_GetHeight1,self.Ptr)
|
|
385
|
+
# return ret
|
|
386
|
+
|
|
387
|
+
# @dispatch
|
|
388
|
+
|
|
389
|
+
# def GetHeight(self ,dpi:float)->float:
|
|
390
|
+
# """Gets the height of this font for the specified DPI value.
|
|
391
391
|
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
# Args:
|
|
393
|
+
# dpi (float): The dots per inch (DPI) value for which to calculate the font height.
|
|
394
394
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
395
|
+
# Returns:
|
|
396
|
+
# float: The height of this font for the specified DPI.
|
|
397
|
+
# """
|
|
398
398
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
@property
|
|
405
|
-
def IsSystemFont(self)->bool:
|
|
406
|
-
|
|
399
|
+
# dlllib.Font_GetHeightD.argtypes=[c_void_p ,c_float]
|
|
400
|
+
# dlllib.Font_GetHeightD.restype=c_float
|
|
401
|
+
# ret = CallCFunction(dlllib.Font_GetHeightD,self.Ptr, dpi)
|
|
402
|
+
# return ret
|
|
403
|
+
|
|
404
|
+
# @property
|
|
405
|
+
# def IsSystemFont(self)->bool:
|
|
406
|
+
# """Gets a value indicating whether this font is a system font.
|
|
407
407
|
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
@property
|
|
417
|
-
|
|
418
|
-
def SystemFontName(self)->str:
|
|
419
|
-
|
|
408
|
+
# Returns:
|
|
409
|
+
# bool: True if this font is a system font; otherwise, False.
|
|
410
|
+
# """
|
|
411
|
+
# dlllib.Font_get_IsSystemFont.argtypes=[c_void_p]
|
|
412
|
+
# dlllib.Font_get_IsSystemFont.restype=c_bool
|
|
413
|
+
# ret = CallCFunction(dlllib.Font_get_IsSystemFont,self.Ptr)
|
|
414
|
+
# return ret
|
|
415
|
+
|
|
416
|
+
# @property
|
|
417
|
+
|
|
418
|
+
# def SystemFontName(self)->str:
|
|
419
|
+
# """Gets the name of the system font that this font is based on.
|
|
420
420
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
421
|
+
# Returns:
|
|
422
|
+
# str: The name of the system font if this font is a system font; otherwise, an empty string.
|
|
423
|
+
# """
|
|
424
|
+
# dlllib.Font_get_SystemFontName.argtypes=[c_void_p]
|
|
425
|
+
# dlllib.Font_get_SystemFontName.restype=c_void_p
|
|
426
|
+
# ret = PtrToStr(CallCFunction(dlllib.Font_get_SystemFontName,self.Ptr))
|
|
427
|
+
# return ret
|
|
428
428
|
|
|
429
429
|
|
spire/xls/FontWrapper.py
CHANGED
|
@@ -463,6 +463,7 @@ class FontWrapper ( CommonWrapper, IInternalFont) :
|
|
|
463
463
|
Returns:
|
|
464
464
|
XlsFont: The internal font object.
|
|
465
465
|
"""
|
|
466
|
+
from spire.xls.XlsFont import XlsFont
|
|
466
467
|
GetDllLibXls().FontWrapper_get_Font.argtypes=[c_void_p]
|
|
467
468
|
GetDllLibXls().FontWrapper_get_Font.restype=c_void_p
|
|
468
469
|
intPtr = CallCFunction(GetDllLibXls().FontWrapper_get_Font, self.Ptr)
|
|
@@ -512,6 +513,7 @@ class FontWrapper ( CommonWrapper, IInternalFont) :
|
|
|
512
513
|
Returns:
|
|
513
514
|
XlsWorkbook: The parent workbook object.
|
|
514
515
|
"""
|
|
516
|
+
from spire.xls.XlsWorkbook import XlsWorkbook
|
|
515
517
|
GetDllLibXls().FontWrapper_get_Workbook.argtypes=[c_void_p]
|
|
516
518
|
GetDllLibXls().FontWrapper_get_Workbook.restype=c_void_p
|
|
517
519
|
intPtr = CallCFunction(GetDllLibXls().FontWrapper_get_Workbook, self.Ptr)
|
|
@@ -528,25 +530,25 @@ class FontWrapper ( CommonWrapper, IInternalFont) :
|
|
|
528
530
|
CallCFunction(GetDllLibXls().FontWrapper_ColorObjectUpdate, self.Ptr)
|
|
529
531
|
|
|
530
532
|
|
|
531
|
-
def Clone(self ,book:'XlsWorkbook',parent:'SpireObject',dicFontIndexes:'IDictionary')->'FontWrapper':
|
|
532
|
-
|
|
533
|
+
# def Clone(self ,book:'XlsWorkbook',parent:'SpireObject',dicFontIndexes:'IDictionary')->'FontWrapper':
|
|
534
|
+
# """Creates a clone of this FontWrapper object.
|
|
533
535
|
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
536
|
+
# Args:
|
|
537
|
+
# book (XlsWorkbook): The workbook for the cloned font.
|
|
538
|
+
# parent (SpireObject): The parent object for the cloned font.
|
|
539
|
+
# dicFontIndexes (IDictionary): A dictionary mapping font indexes.
|
|
538
540
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
541
|
+
# Returns:
|
|
542
|
+
# FontWrapper: A new FontWrapper object that is a copy of this instance.
|
|
543
|
+
# """
|
|
544
|
+
# intPtrbook:c_void_p = book.Ptr
|
|
545
|
+
# intPtrparent:c_void_p = parent.Ptr
|
|
546
|
+
# intPtrdicFontIndexes:c_void_p = dicFontIndexes.Ptr
|
|
547
|
+
|
|
548
|
+
# GetDllLibXls().FontWrapper_Clone.argtypes=[c_void_p ,c_void_p,c_void_p,c_void_p]
|
|
549
|
+
# GetDllLibXls().FontWrapper_Clone.restype=c_void_p
|
|
550
|
+
# intPtr = CallCFunction(GetDllLibXls().FontWrapper_Clone, self.Ptr, intPtrbook,intPtrparent,intPtrdicFontIndexes)
|
|
551
|
+
# ret = None if intPtr==None else FontWrapper(intPtr)
|
|
552
|
+
# return ret
|
|
551
553
|
|
|
552
554
|
|
spire/xls/GradientStops.py
CHANGED
|
@@ -6,7 +6,7 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class GradientStops (
|
|
9
|
+
class GradientStops (CollectionBase[XlsGradientStop]) :
|
|
10
10
|
"""Represents a collection of gradient stops in Excel.
|
|
11
11
|
|
|
12
12
|
This class provides properties and methods for managing gradient stops,
|
spire/xls/HPageBreak.py
CHANGED
|
@@ -17,6 +17,7 @@ class HPageBreak ( XlsHPageBreak) :
|
|
|
17
17
|
Location of the page break.
|
|
18
18
|
|
|
19
19
|
"""
|
|
20
|
+
from spire.xls.CellRange import CellRange
|
|
20
21
|
GetDllLibXls().HPageBreak_get_Location.argtypes=[c_void_p]
|
|
21
22
|
GetDllLibXls().HPageBreak_get_Location.restype=c_void_p
|
|
22
23
|
intPtr = CallCFunction(GetDllLibXls().HPageBreak_get_Location, self.Ptr)
|
spire/xls/HyperLink.py
CHANGED
|
@@ -17,6 +17,7 @@ class HyperLink ( XlsHyperLink) :
|
|
|
17
17
|
Returns a Range object that represents the range the specified hyperlink is attached to.
|
|
18
18
|
|
|
19
19
|
"""
|
|
20
|
+
from spire.xls.CellRange import CellRange
|
|
20
21
|
GetDllLibXls().HyperLink_get_Range.argtypes=[c_void_p]
|
|
21
22
|
GetDllLibXls().HyperLink_get_Range.restype=c_void_p
|
|
22
23
|
intPtr = CallCFunction(GetDllLibXls().HyperLink_get_Range, self.Ptr)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar,Union,Generic,List,Tuple
|
|
4
|
+
from spire.xls.common import *
|
|
5
|
+
from spire.xls import *
|
|
6
|
+
from ctypes import *
|
|
7
|
+
import abc
|
|
8
|
+
|
|
9
|
+
class MsoTextFrame ( SpireObject, ITextFrame) :
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
@property
|
|
14
|
+
def AutoSize(self)->bool:
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
"""
|
|
18
|
+
GetDllLibXls().MsoTextFrame_get_AutoSize.argtypes=[c_void_p]
|
|
19
|
+
GetDllLibXls().MsoTextFrame_get_AutoSize.restype=c_bool
|
|
20
|
+
ret = CallCFunction(GetDllLibXls().MsoTextFrame_get_AutoSize,self.Ptr)
|
|
21
|
+
return ret
|
|
22
|
+
|
|
23
|
+
@AutoSize.setter
|
|
24
|
+
def AutoSize(self, value:bool):
|
|
25
|
+
GetDllLibXls().MsoTextFrame_set_AutoSize.argtypes=[c_void_p, c_bool]
|
|
26
|
+
CallCFunction(GetDllLibXls().MsoTextFrame_set_AutoSize,self.Ptr, value)
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
def IsAutoMargin(self)->bool:
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
"""
|
|
33
|
+
GetDllLibXls().MsoTextFrame_get_IsAutoMargin.argtypes=[c_void_p]
|
|
34
|
+
GetDllLibXls().MsoTextFrame_get_IsAutoMargin.restype=c_bool
|
|
35
|
+
ret = CallCFunction(GetDllLibXls().MsoTextFrame_get_IsAutoMargin,self.Ptr)
|
|
36
|
+
return ret
|
|
37
|
+
|
|
38
|
+
@IsAutoMargin.setter
|
|
39
|
+
def IsAutoMargin(self, value:bool):
|
|
40
|
+
GetDllLibXls().MsoTextFrame_set_IsAutoMargin.argtypes=[c_void_p, c_bool]
|
|
41
|
+
CallCFunction(GetDllLibXls().MsoTextFrame_set_IsAutoMargin,self.Ptr, value)
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def LeftMarginPt(self)->float:
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
"""
|
|
48
|
+
GetDllLibXls().MsoTextFrame_get_LeftMarginPt.argtypes=[c_void_p]
|
|
49
|
+
GetDllLibXls().MsoTextFrame_get_LeftMarginPt.restype=c_double
|
|
50
|
+
ret = CallCFunction(GetDllLibXls().MsoTextFrame_get_LeftMarginPt,self.Ptr)
|
|
51
|
+
return ret
|
|
52
|
+
|
|
53
|
+
@LeftMarginPt.setter
|
|
54
|
+
def LeftMarginPt(self, value:float):
|
|
55
|
+
GetDllLibXls().MsoTextFrame_set_LeftMarginPt.argtypes=[c_void_p, c_double]
|
|
56
|
+
CallCFunction(GetDllLibXls().MsoTextFrame_set_LeftMarginPt,self.Ptr, value)
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def RightMarginPt(self)->float:
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
"""
|
|
63
|
+
GetDllLibXls().MsoTextFrame_get_RightMarginPt.argtypes=[c_void_p]
|
|
64
|
+
GetDllLibXls().MsoTextFrame_get_RightMarginPt.restype=c_double
|
|
65
|
+
ret = CallCFunction(GetDllLibXls().MsoTextFrame_get_RightMarginPt,self.Ptr)
|
|
66
|
+
return ret
|
|
67
|
+
|
|
68
|
+
@RightMarginPt.setter
|
|
69
|
+
def RightMarginPt(self, value:float):
|
|
70
|
+
GetDllLibXls().MsoTextFrame_set_RightMarginPt.argtypes=[c_void_p, c_double]
|
|
71
|
+
CallCFunction(GetDllLibXls().MsoTextFrame_set_RightMarginPt,self.Ptr, value)
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def TopMarginPt(self)->float:
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
"""
|
|
78
|
+
GetDllLibXls().MsoTextFrame_get_TopMarginPt.argtypes=[c_void_p]
|
|
79
|
+
GetDllLibXls().MsoTextFrame_get_TopMarginPt.restype=c_double
|
|
80
|
+
ret = CallCFunction(GetDllLibXls().MsoTextFrame_get_TopMarginPt,self.Ptr)
|
|
81
|
+
return ret
|
|
82
|
+
|
|
83
|
+
@TopMarginPt.setter
|
|
84
|
+
def TopMarginPt(self, value:float):
|
|
85
|
+
GetDllLibXls().MsoTextFrame_set_TopMarginPt.argtypes=[c_void_p, c_double]
|
|
86
|
+
CallCFunction(GetDllLibXls().MsoTextFrame_set_TopMarginPt,self.Ptr, value)
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def BottomMarginPt(self)->float:
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
"""
|
|
93
|
+
GetDllLibXls().MsoTextFrame_get_BottomMarginPt.argtypes=[c_void_p]
|
|
94
|
+
GetDllLibXls().MsoTextFrame_get_BottomMarginPt.restype=c_double
|
|
95
|
+
ret = CallCFunction(GetDllLibXls().MsoTextFrame_get_BottomMarginPt,self.Ptr)
|
|
96
|
+
return ret
|
|
97
|
+
|
|
98
|
+
@BottomMarginPt.setter
|
|
99
|
+
def BottomMarginPt(self, value:float):
|
|
100
|
+
GetDllLibXls().MsoTextFrame_set_BottomMarginPt.argtypes=[c_void_p, c_double]
|
|
101
|
+
CallCFunction(GetDllLibXls().MsoTextFrame_set_BottomMarginPt,self.Ptr, value)
|
|
102
|
+
|
spire/xls/RangeRichTextString.py
CHANGED
|
@@ -36,7 +36,7 @@ class RangeRichTextString ( RichTextString) :
|
|
|
36
36
|
|
|
37
37
|
@property
|
|
38
38
|
|
|
39
|
-
def DefaultFont(self)->'
|
|
39
|
+
def DefaultFont(self)->'IFont':
|
|
40
40
|
"""Gets the default font for this rich text string.
|
|
41
41
|
|
|
42
42
|
The default font is used for any portion of the text that doesn't have
|
|
@@ -48,7 +48,7 @@ class RangeRichTextString ( RichTextString) :
|
|
|
48
48
|
GetDllLibXls().RangeRichTextString_get_DefaultFont.argtypes=[c_void_p]
|
|
49
49
|
GetDllLibXls().RangeRichTextString_get_DefaultFont.restype=c_void_p
|
|
50
50
|
intPtr = CallCFunction(GetDllLibXls().RangeRichTextString_get_DefaultFont, self.Ptr)
|
|
51
|
-
ret = None if intPtr==None else
|
|
51
|
+
ret = None if intPtr==None else FontWrapper(intPtr)
|
|
52
52
|
return ret
|
|
53
53
|
|
|
54
54
|
|
spire/xls/ReferRangeArea.py
CHANGED
|
@@ -101,11 +101,3 @@ class ReferRangeArea (SpireObject) :
|
|
|
101
101
|
ret = CallCFunction(GetDllLibXls().ReferRangeArea_get_StartRow, self.Ptr)
|
|
102
102
|
return ret
|
|
103
103
|
|
|
104
|
-
class ListReferRangeAreas (IList[ReferRangeArea]):
|
|
105
|
-
"""Represents a collection of ReferRangeArea objects.
|
|
106
|
-
|
|
107
|
-
This class implements the IList interface for ReferRangeArea objects, providing
|
|
108
|
-
standard collection functionality for working with multiple range references.
|
|
109
|
-
It is typically used to manage multiple range references in formulas or named ranges.
|
|
110
|
-
"""
|
|
111
|
-
pass
|
spire/xls/RichText.py
CHANGED
|
@@ -25,7 +25,7 @@ class RichText ( RichTextObject) :
|
|
|
25
25
|
Position: Position
|
|
26
26
|
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
from spire.xls.ExcelFont import ExcelFont
|
|
29
29
|
GetDllLibXls().RichText_GetFont.argtypes=[c_void_p ,c_int]
|
|
30
30
|
GetDllLibXls().RichText_GetFont.restype=c_void_p
|
|
31
31
|
intPtr = CallCFunction(GetDllLibXls().RichText_GetFont, self.Ptr, position)
|
spire/xls/RichTextShape.py
CHANGED
|
@@ -90,7 +90,7 @@ class RichTextShape ( SpireObject, IRichTextString) :
|
|
|
90
90
|
Returns:
|
|
91
91
|
IFont: The font object used at the specified position.
|
|
92
92
|
"""
|
|
93
|
-
|
|
93
|
+
from sprie.xls.XlsFont import XlsFont
|
|
94
94
|
GetDllLibXls().RichTextShape_GetFont.argtypes=[c_void_p ,c_int]
|
|
95
95
|
GetDllLibXls().RichTextShape_GetFont.restype=c_void_p
|
|
96
96
|
intPtr = CallCFunction(GetDllLibXls().RichTextShape_GetFont, self.Ptr, index)
|
|
@@ -173,6 +173,7 @@ class RichTextShape ( SpireObject, IRichTextString) :
|
|
|
173
173
|
Returns:
|
|
174
174
|
XlsFont: The default font object for the rich text shape.
|
|
175
175
|
"""
|
|
176
|
+
from sprie.xls.XlsFont import XlsFont
|
|
176
177
|
GetDllLibXls().RichTextShape_get_DefaultFont.argtypes=[c_void_p]
|
|
177
178
|
GetDllLibXls().RichTextShape_get_DefaultFont.restype=c_void_p
|
|
178
179
|
intPtr = CallCFunction(GetDllLibXls().RichTextShape_get_DefaultFont, self.Ptr)
|
spire/xls/RichTextString.py
CHANGED
|
@@ -154,6 +154,7 @@ class RichTextString ( CommonWrapper, IRichTextString, IExcelApplication) :
|
|
|
154
154
|
Returns:
|
|
155
155
|
XlsFont: The default font object for the rich text string.
|
|
156
156
|
"""
|
|
157
|
+
from spire.xls.XlsFont import XlsFont
|
|
157
158
|
GetDllLibXls().RichTextString_get_DefaultFont.argtypes=[c_void_p]
|
|
158
159
|
GetDllLibXls().RichTextString_get_DefaultFont.restype=c_void_p
|
|
159
160
|
intPtr = CallCFunction(GetDllLibXls().RichTextString_get_DefaultFont, self.Ptr)
|
spire/xls/ShapeGlow.py
CHANGED
|
@@ -105,7 +105,7 @@ class ShapeGlow ( XlsObject, IGlow, ICloneParent) :
|
|
|
105
105
|
GetDllLibXls().ShapeGlow_Clone.argtypes=[c_void_p ,c_void_p]
|
|
106
106
|
GetDllLibXls().ShapeGlow_Clone.restype=c_void_p
|
|
107
107
|
intPtr = CallCFunction(GetDllLibXls().ShapeGlow_Clone, self.Ptr, intPtrparent)
|
|
108
|
-
ret = None if intPtr==None else
|
|
108
|
+
ret = None if intPtr==None else ShapeGlow(intPtr)
|
|
109
109
|
return ret
|
|
110
110
|
|
|
111
111
|
|
spire/xls/TextSaveOptions.py
CHANGED
|
@@ -13,6 +13,13 @@ class TextSaveOptions (SpireObject) :
|
|
|
13
13
|
are exported to text-based formats such as CSV or TSV. It allows customization
|
|
14
14
|
of separator characters, encoding, and data inclusion settings.
|
|
15
15
|
"""
|
|
16
|
+
@dispatch
|
|
17
|
+
def __init__(self):
|
|
18
|
+
GetDllLibXls().TextSaveOptions_Create.restype = c_void_p
|
|
19
|
+
intPtr = CallCFunction(GetDllLibXls().TextSaveOptions_Create)
|
|
20
|
+
|
|
21
|
+
super(TextSaveOptions, self).__init__(intPtr)
|
|
22
|
+
|
|
16
23
|
@property
|
|
17
24
|
def RetainHiddenData(self)->bool:
|
|
18
25
|
"""Gets or sets whether to retain hidden data in the output text file.
|
spire/xls/VPageBreak.py
CHANGED
|
@@ -18,6 +18,7 @@ class VPageBreak ( XlsVPageBreak) :
|
|
|
18
18
|
Returns or sets the cell (a Range object) that defines the page-break location.
|
|
19
19
|
|
|
20
20
|
"""
|
|
21
|
+
from spire.xls.CellRange import CellRange
|
|
21
22
|
GetDllLibXls().VPageBreak_get_Location.argtypes=[c_void_p]
|
|
22
23
|
GetDllLibXls().VPageBreak_get_Location.restype=c_void_p
|
|
23
24
|
intPtr = CallCFunction(GetDllLibXls().VPageBreak_get_Location, self.Ptr)
|