spire-xls 15.5.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/__init__.py +0 -0
- spire/xls/AddInFunctionsCollection.py +29 -0
- spire/xls/AddtionalFormatWrapper.py +976 -0
- spire/xls/AlertStyleType.py +18 -0
- spire/xls/ArcShapeCollection.py +70 -0
- spire/xls/AutoFiltersCollection.py +527 -0
- spire/xls/AutoFitterOptions.py +66 -0
- spire/xls/AutoFormatOptions.py +23 -0
- spire/xls/AutoFormatType.py +32 -0
- spire/xls/AutoSortScope.py +25 -0
- spire/xls/Average.py +29 -0
- spire/xls/AverageType.py +25 -0
- spire/xls/AxisLineIdentifierType.py +19 -0
- spire/xls/AxisTextDirectionType.py +18 -0
- spire/xls/AxisType.py +18 -0
- spire/xls/AxisTypes.py +18 -0
- spire/xls/BaseFormatType.py +17 -0
- spire/xls/BordersCollection.py +158 -0
- spire/xls/BordersCollectionArrayWrapper.py +95 -0
- spire/xls/BordersLineType.py +23 -0
- spire/xls/BubbleSizeType.py +17 -0
- spire/xls/BuiltInDocumentProperties.py +12 -0
- spire/xls/BuiltInPropertyType.py +50 -0
- spire/xls/BuiltInStyles.py +66 -0
- spire/xls/ButtonShapeCollection.py +70 -0
- spire/xls/CategoryType.py +18 -0
- spire/xls/CellBaseStyle.py +26 -0
- spire/xls/CellBorder.py +154 -0
- spire/xls/CellDataType.py +23 -0
- spire/xls/CellFormatType.py +21 -0
- spire/xls/CellRange.py +915 -0
- spire/xls/CellStyle.py +85 -0
- spire/xls/CellStyleFlag.py +432 -0
- spire/xls/CellStyleObject.py +617 -0
- spire/xls/CellValueChangedEventArgs.py +75 -0
- spire/xls/CellValueChangedEventHandler.py +52 -0
- spire/xls/Chart.py +404 -0
- spire/xls/ChartArea.py +61 -0
- spire/xls/ChartBackgroundMode.py +18 -0
- spire/xls/ChartBaseUnitType.py +18 -0
- spire/xls/ChartBorder.py +12 -0
- spire/xls/ChartCategoryAxis.py +93 -0
- spire/xls/ChartDataLabels.py +42 -0
- spire/xls/ChartDataPoint.py +42 -0
- spire/xls/ChartDataPointsCollection.py +75 -0
- spire/xls/ChartDataTable.py +12 -0
- spire/xls/ChartDisplayUnitType.py +26 -0
- spire/xls/ChartDropBar.py +12 -0
- spire/xls/ChartFormat.py +72 -0
- spire/xls/ChartFormatCollection.py +59 -0
- spire/xls/ChartGridLine.py +27 -0
- spire/xls/ChartInterior.py +12 -0
- spire/xls/ChartLegend.py +42 -0
- spire/xls/ChartLegendEntriesColl.py +128 -0
- spire/xls/ChartLegendEntry.py +27 -0
- spire/xls/ChartLinePatternType.py +24 -0
- spire/xls/ChartLineWeightType.py +19 -0
- spire/xls/ChartMarkerType.py +27 -0
- spire/xls/ChartPageSetup.py +12 -0
- spire/xls/ChartParagraphType.py +18 -0
- spire/xls/ChartPieType.py +18 -0
- spire/xls/ChartPlotArea.py +53 -0
- spire/xls/ChartPlotEmptyType.py +18 -0
- spire/xls/ChartSerie.py +142 -0
- spire/xls/ChartSerieDataFormat.py +56 -0
- spire/xls/ChartSeries.py +154 -0
- spire/xls/ChartSeriesAxis.py +72 -0
- spire/xls/ChartShadow.py +235 -0
- spire/xls/ChartSheet.py +285 -0
- spire/xls/ChartTextArea.py +782 -0
- spire/xls/ChartTitle.py +12 -0
- spire/xls/ChartValueAxis.py +92 -0
- spire/xls/ChartWallOrFloor.py +12 -0
- spire/xls/ChartsCollection.py +113 -0
- spire/xls/CheckBoxCollection.py +70 -0
- spire/xls/CheckState.py +18 -0
- spire/xls/CollectionBase.py +184 -0
- spire/xls/CollectionChangeEventArgs.py +36 -0
- spire/xls/CollectionExtended.py +92 -0
- spire/xls/ColorConditionValue.py +91 -0
- spire/xls/ColorFilter.py +45 -0
- spire/xls/ColorScale.py +172 -0
- spire/xls/ColorType.py +18 -0
- spire/xls/ComboBoxCollection.py +70 -0
- spire/xls/CommentHAlignType.py +21 -0
- spire/xls/CommentVAlignType.py +20 -0
- spire/xls/CommentsCollection.py +109 -0
- spire/xls/CommentsRange.py +578 -0
- spire/xls/CommonWrapper.py +40 -0
- spire/xls/ComparisonOperatorType.py +24 -0
- spire/xls/CompoundLineType.py +18 -0
- spire/xls/CondFormatCollectionWrapper.py +125 -0
- spire/xls/ConditionValue.py +82 -0
- spire/xls/ConditionValuePosition.py +16 -0
- spire/xls/ConditionValueType.py +20 -0
- spire/xls/ConditionalFormat.py +14 -0
- spire/xls/ConditionalFormatScope.py +16 -0
- spire/xls/ConditionalFormatType.py +33 -0
- spire/xls/ConditionalFormatWrapper.py +986 -0
- spire/xls/ConditionalFormats.py +55 -0
- spire/xls/ConditionalTopNType.py +17 -0
- spire/xls/ConnectionDataSourceType.py +26 -0
- spire/xls/ConverterSetting.py +347 -0
- spire/xls/CopyRangeOptions.py +23 -0
- spire/xls/CustomFilter.py +147 -0
- spire/xls/CustomFilterCollection.py +113 -0
- spire/xls/DBConnection.py +198 -0
- spire/xls/DVAspect.py +15 -0
- spire/xls/DataBar.py +220 -0
- spire/xls/DataBarAxisPosition.py +16 -0
- spire/xls/DataBarBorder.py +47 -0
- spire/xls/DataBarBorderType.py +15 -0
- spire/xls/DataBarFillType.py +15 -0
- spire/xls/DataBarNegativeColorType.py +15 -0
- spire/xls/DataConnections.py +25 -0
- spire/xls/DataLabelPositionType.py +26 -0
- spire/xls/DataMarkerDirection.py +17 -0
- spire/xls/DataSorter.py +154 -0
- spire/xls/DataSourceType.py +19 -0
- spire/xls/DateTimeGroupItem.py +132 -0
- spire/xls/DateTimeGroupingType.py +19 -0
- spire/xls/DeleteOption.py +15 -0
- spire/xls/DocumentProperty.py +304 -0
- spire/xls/DropLineStyleType.py +18 -0
- spire/xls/DynamicFilter.py +71 -0
- spire/xls/DynamicFilterType.py +48 -0
- spire/xls/EncryptedKeyInfo.py +12 -0
- spire/xls/ErrorBarIncludeType.py +19 -0
- spire/xls/ErrorBarType.py +20 -0
- spire/xls/Excel2016Charttype.py +20 -0
- spire/xls/ExcelAddInFunction.py +12 -0
- spire/xls/ExcelCalculationMode.py +18 -0
- spire/xls/ExcelChartType.py +96 -0
- spire/xls/ExcelClearOptions.py +18 -0
- spire/xls/ExcelColors.py +121 -0
- spire/xls/ExcelComboType.py +22 -0
- spire/xls/ExcelComment.py +27 -0
- spire/xls/ExcelCommentObject.py +618 -0
- spire/xls/ExcelFindOptions.py +16 -0
- spire/xls/ExcelFont.py +310 -0
- spire/xls/ExcelGradient.py +174 -0
- spire/xls/ExcelHorizontalAlignment.py +21 -0
- spire/xls/ExcelInterior.py +128 -0
- spire/xls/ExcelPatternType.py +52 -0
- spire/xls/ExcelPicture.py +12 -0
- spire/xls/ExcelQuartileCalculation.py +17 -0
- spire/xls/ExcelSaveType.py +15 -0
- spire/xls/ExcelShapeType.py +41 -0
- spire/xls/ExcelSheetType.py +20 -0
- spire/xls/ExcelTotalsCalculation.py +23 -0
- spire/xls/ExcelTreeMapLabelOption.py +18 -0
- spire/xls/ExcelVersion.py +24 -0
- spire/xls/ExcelVerticalAlignment.py +21 -0
- spire/xls/ExpandCollapseFlags.py +18 -0
- spire/xls/ExportTableOptions.py +74 -0
- spire/xls/ExternalConnection.py +147 -0
- spire/xls/ExternalLink.py +58 -0
- spire/xls/ExternalLinkCollection.py +25 -0
- spire/xls/FileFormat.py +40 -0
- spire/xls/FillPictureType.py +16 -0
- spire/xls/FilterColumn.py +258 -0
- spire/xls/FilterConditionType.py +21 -0
- spire/xls/FilterDataType.py +22 -0
- spire/xls/FilterOperatorType.py +20 -0
- spire/xls/FilterType.py +20 -0
- spire/xls/FindType.py +19 -0
- spire/xls/Font.py +376 -0
- spire/xls/FontArrayWrapper.py +265 -0
- spire/xls/FontUnderlineType.py +20 -0
- spire/xls/FontVertialAlignmentType.py +20 -0
- spire/xls/FontWrapper.py +450 -0
- spire/xls/FontsCollection.py +87 -0
- spire/xls/Format3D.py +235 -0
- spire/xls/GeomertyAdjustValue.py +63 -0
- spire/xls/GeomertyAdjustValueFormulaType.py +30 -0
- spire/xls/GeomertyAdjustValuesCollection.py +39 -0
- spire/xls/GetText.py +15 -0
- spire/xls/GoalSeek.py +65 -0
- spire/xls/GoalSeekResult.py +57 -0
- spire/xls/GradientArrayWrapper.py +188 -0
- spire/xls/GradientColorType.py +18 -0
- spire/xls/GradientPatternType.py +64 -0
- spire/xls/GradientPresetType.py +39 -0
- spire/xls/GradientStops.py +146 -0
- spire/xls/GradientStyleType.py +21 -0
- spire/xls/GradientTextureType.py +40 -0
- spire/xls/GradientType.py +17 -0
- spire/xls/GradientVariantsType.py +19 -0
- spire/xls/GroupBoxCollection.py +70 -0
- spire/xls/GroupByType.py +15 -0
- spire/xls/GroupShape.py +21 -0
- spire/xls/GroupShapeCollection.py +46 -0
- spire/xls/HPageBreak.py +32 -0
- spire/xls/HPageBreaksCollection.py +108 -0
- spire/xls/HTMLOptions.py +144 -0
- spire/xls/HistogramAxisFormat.py +30 -0
- spire/xls/HorizontalAlignType.py +23 -0
- spire/xls/HttpContentType.py +18 -0
- spire/xls/HyperLink.py +32 -0
- spire/xls/HyperLinkType.py +20 -0
- spire/xls/HyperLinksCollection.py +72 -0
- spire/xls/IAddInFunction.py +22 -0
- spire/xls/IAddInFunctions.py +50 -0
- spire/xls/IArcShape.py +259 -0
- spire/xls/IArcShapes.py +50 -0
- spire/xls/IAutoFilter.py +167 -0
- spire/xls/IAutoFilterCondition.py +123 -0
- spire/xls/IAutoFilters.py +49 -0
- spire/xls/IBorder.py +116 -0
- spire/xls/IBorders.py +106 -0
- spire/xls/IBuiltInDocumentProperties.py +579 -0
- spire/xls/IButtonShape.py +12 -0
- spire/xls/IButtonShapes.py +50 -0
- spire/xls/IChart.py +1368 -0
- spire/xls/IChartAxis.py +722 -0
- spire/xls/IChartBorder.py +220 -0
- spire/xls/IChartCategoryAxis.py +410 -0
- spire/xls/IChartDataLabels.py +457 -0
- spire/xls/IChartDataPoint.py +131 -0
- spire/xls/IChartDataPoints.py +31 -0
- spire/xls/IChartDataTable.py +197 -0
- spire/xls/IChartDropBar.py +12 -0
- spire/xls/IChartErrorBars.py +373 -0
- spire/xls/IChartFillBorder.py +303 -0
- spire/xls/IChartFormat.py +571 -0
- spire/xls/IChartFrameFormat.py +93 -0
- spire/xls/IChartGridLine.py +107 -0
- spire/xls/IChartInterior.py +278 -0
- spire/xls/IChartLegend.py +499 -0
- spire/xls/IChartLegendEntries.py +30 -0
- spire/xls/IChartLegendEntry.py +178 -0
- spire/xls/IChartPageSetup.py +56 -0
- spire/xls/IChartSerie.py +779 -0
- spire/xls/IChartSerieDataFormat.py +566 -0
- spire/xls/IChartSeries.py +39 -0
- spire/xls/IChartSeriesAxis.py +128 -0
- spire/xls/IChartShape.py +92 -0
- spire/xls/IChartShapes.py +39 -0
- spire/xls/IChartTextArea.py +197 -0
- spire/xls/IChartTrendLine.py +548 -0
- spire/xls/IChartTrendLines.py +79 -0
- spire/xls/IChartValueAxis.py +518 -0
- spire/xls/IChartWallOrFloor.py +32 -0
- spire/xls/ICharts.py +70 -0
- spire/xls/ICheckBox.py +96 -0
- spire/xls/ICheckBoxes.py +50 -0
- spire/xls/ICloneParent.py +28 -0
- spire/xls/IColorConditionValue.py +31 -0
- spire/xls/IColorScale.py +32 -0
- spire/xls/ICombinedRange.py +87 -0
- spire/xls/IComboBoxShape.py +95 -0
- spire/xls/IComboBoxes.py +50 -0
- spire/xls/IComment.py +85 -0
- spire/xls/ICommentShape.py +12 -0
- spire/xls/IComments.py +50 -0
- spire/xls/IConditionValue.py +68 -0
- spire/xls/IConditionalFormat.py +606 -0
- spire/xls/IConditionalFormats.py +48 -0
- spire/xls/IConditionalFormatsCollection.py +134 -0
- spire/xls/ICustomDocumentProperties.py +128 -0
- spire/xls/IDataBar.py +105 -0
- spire/xls/IDataSort.py +95 -0
- spire/xls/IDataValidation.py +421 -0
- spire/xls/IDataValidationCollection.py +132 -0
- spire/xls/IDataValidationTable.py +68 -0
- spire/xls/IDigitalSignature.py +99 -0
- spire/xls/IDigitalSignatures.py +29 -0
- spire/xls/IDocumentProperty.py +226 -0
- spire/xls/IErrorIndicator.py +31 -0
- spire/xls/IExcelApplication.py +22 -0
- spire/xls/IExtendIndex.py +21 -0
- spire/xls/IExtendedFormat.py +530 -0
- spire/xls/IFont.py +271 -0
- spire/xls/IFormat3D.py +252 -0
- spire/xls/IGeomPath.py +23 -0
- spire/xls/IGeomPathInfo.py +112 -0
- spire/xls/IGeomPathShape.py +30 -0
- spire/xls/IGlow.py +85 -0
- spire/xls/IGradient.py +174 -0
- spire/xls/IGroupBox.py +67 -0
- spire/xls/IGroupBoxes.py +50 -0
- spire/xls/IHPageBreak.py +22 -0
- spire/xls/IHPageBreaks.py +31 -0
- spire/xls/IHyperLink.py +118 -0
- spire/xls/IHyperLinks.py +48 -0
- spire/xls/IIconSet.py +96 -0
- spire/xls/IInterior.py +117 -0
- spire/xls/IInternalAddtionalFormat.py +238 -0
- spire/xls/IInternalFont.py +31 -0
- spire/xls/IInternalWorksheet.py +132 -0
- spire/xls/ILabelShape.py +49 -0
- spire/xls/ILabelShapes.py +50 -0
- spire/xls/ILineShape.py +305 -0
- spire/xls/ILines.py +50 -0
- spire/xls/IListBox.py +86 -0
- spire/xls/IListBoxes.py +50 -0
- spire/xls/IListObject.py +493 -0
- spire/xls/IListObjectColumn.py +222 -0
- spire/xls/IListObjects.py +31 -0
- spire/xls/IMarkersDesigner.py +113 -0
- spire/xls/IMigrantRange.py +21 -0
- spire/xls/INameRanges.py +162 -0
- spire/xls/INamedObject.py +22 -0
- spire/xls/INamedRange.py +162 -0
- spire/xls/INumberFormat.py +77 -0
- spire/xls/IOleObject.py +176 -0
- spire/xls/IOleObjects.py +32 -0
- spire/xls/IOptimizedUpdate.py +28 -0
- spire/xls/IOvalShape.py +154 -0
- spire/xls/IOvalShapes.py +50 -0
- spire/xls/IPageSetup.py +195 -0
- spire/xls/IPageSetupBase.py +642 -0
- spire/xls/IPictureShape.py +99 -0
- spire/xls/IPictures.py +250 -0
- spire/xls/IPivotCache.py +41 -0
- spire/xls/IPivotCaches.py +39 -0
- spire/xls/IPivotCalculatedFields.py +50 -0
- spire/xls/IPivotDataField.py +68 -0
- spire/xls/IPivotDataFields.py +50 -0
- spire/xls/IPivotField.py +291 -0
- spire/xls/IPivotFields.py +41 -0
- spire/xls/IPivotTable.py +393 -0
- spire/xls/IPivotTableOptions.py +428 -0
- spire/xls/IPivotTables.py +68 -0
- spire/xls/IPropertyData.py +70 -0
- spire/xls/IPrstGeomShape.py +71 -0
- spire/xls/IPrstGeomShapes.py +81 -0
- spire/xls/IRadioButton.py +105 -0
- spire/xls/IRadioButtons.py +71 -0
- spire/xls/IRectangleShape.py +60 -0
- spire/xls/IRectangleShapes.py +50 -0
- spire/xls/IReflectionEffect.py +138 -0
- spire/xls/IRichTextString.py +93 -0
- spire/xls/IScrollBarShape.py +140 -0
- spire/xls/IScrollBarShapes.py +50 -0
- spire/xls/IShadow.py +244 -0
- spire/xls/IShape.py +409 -0
- spire/xls/IShapeFill.py +522 -0
- spire/xls/IShapeLineFormat.py +331 -0
- spire/xls/IShapes.py +270 -0
- spire/xls/ISortColumn.py +96 -0
- spire/xls/ISortColumns.py +70 -0
- spire/xls/ISortedRule.py +112 -0
- spire/xls/ISparkline.py +68 -0
- spire/xls/ISparklineGroup.py +428 -0
- spire/xls/ISparklines.py +72 -0
- spire/xls/ISpinnerShape.py +102 -0
- spire/xls/ISpinnerShapes.py +50 -0
- spire/xls/IStyle.py +50 -0
- spire/xls/IStyles.py +69 -0
- spire/xls/ITabSheet.py +302 -0
- spire/xls/ITabSheets.py +57 -0
- spire/xls/ITextBox.py +116 -0
- spire/xls/ITextBoxLinkShape.py +40 -0
- spire/xls/ITextBoxShape.py +22 -0
- spire/xls/ITextBoxes.py +61 -0
- spire/xls/ITextFrame.py +120 -0
- spire/xls/IVPageBreak.py +22 -0
- spire/xls/IVPageBreaks.py +31 -0
- spire/xls/IWorkbook.py +1806 -0
- spire/xls/IWorksheet.py +2694 -0
- spire/xls/IWorksheetGroup.py +48 -0
- spire/xls/IWorksheets.py +159 -0
- spire/xls/IXLSRange.py +2479 -0
- spire/xls/IXLSRanges.py +35 -0
- spire/xls/IconSet.py +103 -0
- spire/xls/IconSetType.py +35 -0
- spire/xls/IgnoreErrorType.py +24 -0
- spire/xls/ImageFormatType.py +18 -0
- spire/xls/ImageLocationTypes.py +15 -0
- spire/xls/ImageType.py +17 -0
- spire/xls/ImportObjectOptions.py +89 -0
- spire/xls/InsertMoveOption.py +15 -0
- spire/xls/InsertOptionsType.py +16 -0
- spire/xls/InteriorArrayWrapper.py +126 -0
- spire/xls/LOGFONT.py +140 -0
- spire/xls/LabelShapeCollection.py +71 -0
- spire/xls/LegendPositionType.py +21 -0
- spire/xls/LegendSpacingType.py +18 -0
- spire/xls/LineCollection.py +85 -0
- spire/xls/LineShapeType.py +17 -0
- spire/xls/LineStyleType.py +29 -0
- spire/xls/ListBoxCollection.py +71 -0
- spire/xls/ListObjectCollection.py +45 -0
- spire/xls/MarkerDesigner.py +172 -0
- spire/xls/MeasureUnits.py +21 -0
- spire/xls/MsoPathInfo.py +38 -0
- spire/xls/MsoPathType.py +21 -0
- spire/xls/MultipleFilterCollection.py +166 -0
- spire/xls/NegativeBarFormat.py +82 -0
- spire/xls/OColor.py +165 -0
- spire/xls/OLEDBCommandType.py +19 -0
- spire/xls/OdsPageBackground.py +129 -0
- spire/xls/OdsPageBackgroundImagePositionType.py +22 -0
- spire/xls/OdsPageBackgroundImageType.py +16 -0
- spire/xls/OdsPageBackgroundType.py +16 -0
- spire/xls/OleLinkType.py +15 -0
- spire/xls/OleObjectType.py +51 -0
- spire/xls/OrderBy.py +19 -0
- spire/xls/OrderType.py +17 -0
- spire/xls/OvalShapeCollection.py +70 -0
- spire/xls/PageBreakExtentType.py +17 -0
- spire/xls/PageBreakType.py +18 -0
- spire/xls/PageColRow.py +48 -0
- spire/xls/PageOrientationType.py +17 -0
- spire/xls/PageSetup.py +14 -0
- spire/xls/PagesOrderType.py +17 -0
- spire/xls/PaperSizeEntry.py +30 -0
- spire/xls/PaperSizeType.py +135 -0
- spire/xls/PathFillMode.py +19 -0
- spire/xls/PdfConformanceLevel.py +20 -0
- spire/xls/PicStretch.py +104 -0
- spire/xls/PicTile.py +72 -0
- spire/xls/PicturesCollection.py +532 -0
- spire/xls/PivotAutoFomatTypes.py +35 -0
- spire/xls/PivotBuiltInStyles.py +97 -0
- spire/xls/PivotCache.py +12 -0
- spire/xls/PivotCachesCollection.py +12 -0
- spire/xls/PivotCalculatedFieldsCollection.py +38 -0
- spire/xls/PivotConditionalFormat.py +54 -0
- spire/xls/PivotConditionalFormatCollection.py +38 -0
- spire/xls/PivotDataField.py +118 -0
- spire/xls/PivotDataFields.py +104 -0
- spire/xls/PivotDataType.py +21 -0
- spire/xls/PivotField.py +12 -0
- spire/xls/PivotFieldFormatType.py +28 -0
- spire/xls/PivotFieldSortType.py +16 -0
- spire/xls/PivotGroupByTypes.py +23 -0
- spire/xls/PivotItem.py +161 -0
- spire/xls/PivotItemType.py +28 -0
- spire/xls/PivotLabelFilterType.py +27 -0
- spire/xls/PivotPageAreaFieldsOrderType.py +15 -0
- spire/xls/PivotReportFilter.py +92 -0
- spire/xls/PivotReportFilters.py +63 -0
- spire/xls/PivotStyle.py +79 -0
- spire/xls/PivotTable.py +12 -0
- spire/xls/PivotTableElement.py +38 -0
- spire/xls/PivotTableFields.py +85 -0
- spire/xls/PivotTableLayoutType.py +16 -0
- spire/xls/PivotTableStyle.py +63 -0
- spire/xls/PivotTablesCollection.py +12 -0
- spire/xls/PivotValueFilterType.py +21 -0
- spire/xls/PresetTextEffect.py +43 -0
- spire/xls/PrintCommentType.py +18 -0
- spire/xls/PrintErrorsType.py +19 -0
- spire/xls/PrintingPageType.py +16 -0
- spire/xls/PropertyType.py +31 -0
- spire/xls/PrstGeomShapeCollection.py +126 -0
- spire/xls/PrstGeomShapeType.py +201 -0
- spire/xls/QueryTableCollection.py +25 -0
- spire/xls/QueryTableXls.py +42 -0
- spire/xls/RTFCommentArray.py +112 -0
- spire/xls/RTFStringArray.py +112 -0
- spire/xls/RadioButtonCollection.py +137 -0
- spire/xls/RangeRichTextString.py +42 -0
- spire/xls/RangesCollection.py +537 -0
- spire/xls/ReadingOrderType.py +18 -0
- spire/xls/RectangleCollection.py +71 -0
- spire/xls/RectangleShapeType.py +22 -0
- spire/xls/RectangleStyleType.py +17 -0
- spire/xls/ReferRangeArea.py +88 -0
- spire/xls/RelationShip.py +15 -0
- spire/xls/RenameStrategy.py +16 -0
- spire/xls/ResizeBehaveType.py +18 -0
- spire/xls/RichText.py +49 -0
- spire/xls/RichTextObject.py +133 -0
- spire/xls/RichTextShape.py +168 -0
- spire/xls/RichTextString.py +126 -0
- spire/xls/RtfTags.py +30 -0
- spire/xls/RtfTextWriter.py +629 -0
- spire/xls/SaveShapeTypeOption.py +310 -0
- spire/xls/ScrollBarCollection.py +71 -0
- spire/xls/SelectionType.py +16 -0
- spire/xls/ShapeArrowLengthType.py +18 -0
- spire/xls/ShapeArrowStyleType.py +21 -0
- spire/xls/ShapeArrowWidthType.py +18 -0
- spire/xls/ShapeCollectionBase.py +87 -0
- spire/xls/ShapeDashLineStyleType.py +23 -0
- spire/xls/ShapeFillType.py +22 -0
- spire/xls/ShapeGeomPath.py +26 -0
- spire/xls/ShapeGlow.py +91 -0
- spire/xls/ShapeLayerChangeType.py +19 -0
- spire/xls/ShapeLineStyleType.py +20 -0
- spire/xls/ShapeReflection.py +131 -0
- spire/xls/ShapeSegmentPath.py +26 -0
- spire/xls/SheetProtectionType.py +33 -0
- spire/xls/SortColumn.py +120 -0
- spire/xls/SortColumns.py +185 -0
- spire/xls/SortComparsionType.py +19 -0
- spire/xls/SortOrientationType.py +17 -0
- spire/xls/SortedWayType.py +18 -0
- spire/xls/Sparkline.py +70 -0
- spire/xls/SparklineCollection.py +112 -0
- spire/xls/SparklineEmptyCells.py +16 -0
- spire/xls/SparklineGroup.py +523 -0
- spire/xls/SparklineGroupCollection.py +71 -0
- spire/xls/SparklineType.py +18 -0
- spire/xls/SpartlineVerticalAxisType.py +16 -0
- spire/xls/SpinnerShapeCollection.py +70 -0
- spire/xls/SplitType.py +19 -0
- spire/xls/StrikeThroughStyle.py +17 -0
- spire/xls/StringUtil.py +12 -0
- spire/xls/StyleArrayWrapper.py +621 -0
- spire/xls/StyleDefineType.py +15 -0
- spire/xls/StylesCollection.py +141 -0
- spire/xls/SubtotalTypes.py +26 -0
- spire/xls/TRangeValueType.py +19 -0
- spire/xls/TableBuiltInStyles.py +75 -0
- spire/xls/TextBoxCollection.py +70 -0
- spire/xls/TextBoxShapeBase.py +140 -0
- spire/xls/TextDirection.py +20 -0
- spire/xls/TextDirectionType.py +16 -0
- spire/xls/TextRotationType.py +19 -0
- spire/xls/TextSaveOptions.py +85 -0
- spire/xls/TextVerticalValue.py +19 -0
- spire/xls/ThemeColorType.py +27 -0
- spire/xls/TickLabelPositionType.py +19 -0
- spire/xls/TickMarkType.py +19 -0
- spire/xls/TimePeriodType.py +23 -0
- spire/xls/Top10Filter.py +75 -0
- spire/xls/TopBottom.py +44 -0
- spire/xls/TopBottomType.py +19 -0
- spire/xls/TopFormatType.py +18 -0
- spire/xls/TrendLineType.py +21 -0
- spire/xls/UnderlineStyle.py +32 -0
- spire/xls/UnknownVariableAction.py +18 -0
- spire/xls/UtilityMethods.py +55 -0
- spire/xls/VPageBreak.py +34 -0
- spire/xls/VPageBreaksCollection.py +96 -0
- spire/xls/Validation.py +33 -0
- spire/xls/ValidationComparisonOperator.py +23 -0
- spire/xls/VariableTypeAction.py +19 -0
- spire/xls/VerticalAlignType.py +20 -0
- spire/xls/ViewMode.py +18 -0
- spire/xls/WebQueryConnection.py +224 -0
- spire/xls/Workbook.py +3152 -0
- spire/xls/WorkbookObjectsCollection.py +25 -0
- spire/xls/Worksheet.py +1319 -0
- spire/xls/WorksheetChartsCollection.py +83 -0
- spire/xls/WorksheetConditionalFormats.py +12 -0
- spire/xls/WorksheetCopyType.py +31 -0
- spire/xls/WorksheetVisibility.py +18 -0
- spire/xls/WorksheetsCollection.py +341 -0
- spire/xls/WriteProtection.py +64 -0
- spire/xls/XLSXBorderJoinType.py +19 -0
- spire/xls/XLSXChartBevelType.py +26 -0
- spire/xls/XLSXChartLightingType.py +40 -0
- spire/xls/XLSXChartMaterialType.py +32 -0
- spire/xls/XLSXChartPrespectiveType.py +21 -0
- spire/xls/XLSXChartShadowInnerType.py +25 -0
- spire/xls/XLSXChartShadowOuterType.py +25 -0
- spire/xls/XLSXPivotItemType.py +28 -0
- spire/xls/XlsAddInFunction.py +78 -0
- spire/xls/XlsAddInFunctionsCollection.py +101 -0
- spire/xls/XlsArcShape.py +331 -0
- spire/xls/XlsAutoFiltersCollection.py +119 -0
- spire/xls/XlsBitmapShape.py +297 -0
- spire/xls/XlsBorder.py +172 -0
- spire/xls/XlsBorderArrayWrapper.py +116 -0
- spire/xls/XlsBordersCollection.py +101 -0
- spire/xls/XlsBuiltInDocumentProperties.py +639 -0
- spire/xls/XlsButtonShape.py +137 -0
- spire/xls/XlsChart.py +1510 -0
- spire/xls/XlsChartAxis.py +564 -0
- spire/xls/XlsChartBorder.py +165 -0
- spire/xls/XlsChartCategoryAxis.py +656 -0
- spire/xls/XlsChartDataLabelArea.py +387 -0
- spire/xls/XlsChartDataLabels.py +811 -0
- spire/xls/XlsChartDataPoint.py +108 -0
- spire/xls/XlsChartDataPointsCollection.py +120 -0
- spire/xls/XlsChartDataTable.py +393 -0
- spire/xls/XlsChartDropBar.py +301 -0
- spire/xls/XlsChartFill.py +571 -0
- spire/xls/XlsChartFormat.py +1069 -0
- spire/xls/XlsChartFormatCollection.py +162 -0
- spire/xls/XlsChartFrameFormat.py +614 -0
- spire/xls/XlsChartGridLine.py +171 -0
- spire/xls/XlsChartInterior.py +240 -0
- spire/xls/XlsChartLegend.py +355 -0
- spire/xls/XlsChartLegendArea.py +419 -0
- spire/xls/XlsChartLegendEntry.py +156 -0
- spire/xls/XlsChartPageSetup.py +56 -0
- spire/xls/XlsChartPlotArea.py +12 -0
- spire/xls/XlsChartSerie.py +589 -0
- spire/xls/XlsChartSerieDataFormat.py +1008 -0
- spire/xls/XlsChartSeries.py +111 -0
- spire/xls/XlsChartSeriesAxis.py +212 -0
- spire/xls/XlsChartShape.py +1142 -0
- spire/xls/XlsChartTitleArea.py +392 -0
- spire/xls/XlsChartValueAxis.py +317 -0
- spire/xls/XlsChartWallOrFloor.py +319 -0
- spire/xls/XlsChartsCollection.py +89 -0
- spire/xls/XlsCheckBoxShape.py +156 -0
- spire/xls/XlsComboBoxShape.py +128 -0
- spire/xls/XlsComment.py +234 -0
- spire/xls/XlsCommentsCollection.py +87 -0
- spire/xls/XlsConditionValue.py +111 -0
- spire/xls/XlsConditionalFormat.py +1119 -0
- spire/xls/XlsConditionalFormats.py +590 -0
- spire/xls/XlsDataValidationCollection.py +159 -0
- spire/xls/XlsDataValidationTable.py +105 -0
- spire/xls/XlsDocumentProperty.py +370 -0
- spire/xls/XlsEventArgs.py +93 -0
- spire/xls/XlsEventHandler.py +52 -0
- spire/xls/XlsFill.py +139 -0
- spire/xls/XlsFont.py +364 -0
- spire/xls/XlsFontStyle.py +12 -0
- spire/xls/XlsFontsCollection.py +51 -0
- spire/xls/XlsGradient.py +185 -0
- spire/xls/XlsGradientStop.py +85 -0
- spire/xls/XlsGroupBoxShape.py +88 -0
- spire/xls/XlsHPageBreak.py +105 -0
- spire/xls/XlsHPageBreaksCollection.py +85 -0
- spire/xls/XlsHeaderFooterShapeCollection.py +57 -0
- spire/xls/XlsHyperLink.py +229 -0
- spire/xls/XlsHyperLinksCollection.py +102 -0
- spire/xls/XlsLabelShape.py +73 -0
- spire/xls/XlsLineShape.py +367 -0
- spire/xls/XlsListBoxShape.py +124 -0
- spire/xls/XlsName.py +1871 -0
- spire/xls/XlsObject.py +36 -0
- spire/xls/XlsOvalShape.py +176 -0
- spire/xls/XlsPageSetup.py +220 -0
- spire/xls/XlsPageSetupBase.py +1354 -0
- spire/xls/XlsPicturesCollection.py +365 -0
- spire/xls/XlsPivotCache.py +401 -0
- spire/xls/XlsPivotCacheField.py +209 -0
- spire/xls/XlsPivotCachesCollection.py +124 -0
- spire/xls/XlsPivotField.py +885 -0
- spire/xls/XlsPivotTable.py +905 -0
- spire/xls/XlsPivotTablesCollection.py +131 -0
- spire/xls/XlsPrstGeomShape.py +97 -0
- spire/xls/XlsRadioButtonShape.py +188 -0
- spire/xls/XlsRange.py +3193 -0
- spire/xls/XlsRangesCollection.py +1566 -0
- spire/xls/XlsRectangleShape.py +174 -0
- spire/xls/XlsScrollBarShape.py +146 -0
- spire/xls/XlsShape.py +967 -0
- spire/xls/XlsShapeFill.py +627 -0
- spire/xls/XlsShapeLineFormat.py +341 -0
- spire/xls/XlsSpinnerShape.py +116 -0
- spire/xls/XlsStyle.py +106 -0
- spire/xls/XlsStylesCollection.py +73 -0
- spire/xls/XlsTextBoxShape.py +480 -0
- spire/xls/XlsVPageBreak.py +98 -0
- spire/xls/XlsVPageBreaksCollection.py +84 -0
- spire/xls/XlsValidation.py +520 -0
- spire/xls/XlsValidationWrapper.py +397 -0
- spire/xls/XlsWorkbook.py +1947 -0
- spire/xls/XlsWorkbookObjectsCollection.py +94 -0
- spire/xls/XlsWorksheet.py +4352 -0
- spire/xls/XlsWorksheetBase.py +1273 -0
- spire/xls/XlsWorksheetChartsCollection.py +25 -0
- spire/xls/XlsWorksheetConditionalFormats.py +215 -0
- spire/xls/XlsWorksheetsCollection.py +416 -0
- spire/xls/XmlOpenType.py +14 -0
- spire/xls/__init__.py +723 -0
- spire/xls/common/Boolean.py +192 -0
- spire/xls/common/Byte.py +256 -0
- spire/xls/common/Char.py +740 -0
- spire/xls/common/Color.py +2187 -0
- spire/xls/common/Common.py +150 -0
- spire/xls/common/CultureInfo.py +565 -0
- spire/xls/common/DateTime.py +1147 -0
- spire/xls/common/Double.py +438 -0
- spire/xls/common/EmfType.py +23 -0
- spire/xls/common/Encoding.py +928 -0
- spire/xls/common/FontStyle.py +25 -0
- spire/xls/common/GraphicsUnit.py +27 -0
- spire/xls/common/ICollection.py +70 -0
- spire/xls/common/IDictionary.py +122 -0
- spire/xls/common/IEnumerable.py +41 -0
- spire/xls/common/IEnumerator.py +60 -0
- spire/xls/common/IList.py +145 -0
- spire/xls/common/Int16.py +272 -0
- spire/xls/common/Int32.py +280 -0
- spire/xls/common/Int64.py +256 -0
- spire/xls/common/License.py +175 -0
- spire/xls/common/PixelFormat.py +43 -0
- spire/xls/common/Point.py +298 -0
- spire/xls/common/PointF.py +274 -0
- spire/xls/common/Rectangle.py +449 -0
- spire/xls/common/RectangleF.py +436 -0
- spire/xls/common/Regex.py +962 -0
- spire/xls/common/RegexOptions.py +29 -0
- spire/xls/common/Single.py +416 -0
- spire/xls/common/Size.py +271 -0
- spire/xls/common/SizeF.py +259 -0
- spire/xls/common/SpireObject.py +79 -0
- spire/xls/common/Stream.py +550 -0
- spire/xls/common/String.py +1878 -0
- spire/xls/common/TimeSpan.py +872 -0
- spire/xls/common/UInt16.py +272 -0
- spire/xls/common/UInt32.py +272 -0
- spire/xls/common/UInt64.py +272 -0
- spire/xls/common/__init__.py +316 -0
- spire/xls/lib/Spire.Xls.Base.dll +0 -0
- spire/xls/lib/__init__.py +0 -0
- spire/xls/lib/libSkiaSharp.dll +0 -0
- spire_xls-15.5.0.dist-info/METADATA +197 -0
- spire_xls-15.5.0.dist-info/RECORD +703 -0
- spire_xls-15.5.0.dist-info/WHEEL +5 -0
- spire_xls-15.5.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,928 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar,Union,Generic,List,Tuple
|
|
4
|
+
if __package__ == "spire.pdf.common":
|
|
5
|
+
from spire.pdf.common import *
|
|
6
|
+
elif __package__ == "spire.xls.common":
|
|
7
|
+
from spire.xls.common import *
|
|
8
|
+
elif __package__ == "spire.doc.common":
|
|
9
|
+
from spire.doc.common import *
|
|
10
|
+
else :
|
|
11
|
+
from spire.presentation.common import *
|
|
12
|
+
#from spire.xls import *
|
|
13
|
+
from ctypes import *
|
|
14
|
+
import abc
|
|
15
|
+
|
|
16
|
+
class Encoding (SpireObject) :
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
"""
|
|
20
|
+
# @staticmethod
|
|
21
|
+
# @dispatch
|
|
22
|
+
#
|
|
23
|
+
# def Convert(srcEncoding:'Encoding',dstEncoding:'Encoding',bytes:'Byte[]')->List[Byte]:
|
|
24
|
+
# """
|
|
25
|
+
#
|
|
26
|
+
# """
|
|
27
|
+
# intPtrsrcEncoding:c_void_p = srcEncoding.Ptr
|
|
28
|
+
# intPtrdstEncoding:c_void_p = dstEncoding.Ptr
|
|
29
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
30
|
+
# countbytes = len(bytes)
|
|
31
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
32
|
+
# arraybytes = ArrayTypebytes()
|
|
33
|
+
# for i in range(0, countbytes):
|
|
34
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
35
|
+
#
|
|
36
|
+
#
|
|
37
|
+
# dlllib.Encoding_Convert.argtypes=[ c_void_p,c_void_p,ArrayTypebytes]
|
|
38
|
+
# dlllib.Encoding_Convert.restype=IntPtrArray
|
|
39
|
+
# intPtrArray = CallCFunction(dlllib.Encoding_Convert, intPtrsrcEncoding,intPtrdstEncoding,arraybytes)
|
|
40
|
+
# ret = GetObjVectorFromArray(intPtrArray, Byte)
|
|
41
|
+
# return ret
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# @staticmethod
|
|
45
|
+
#
|
|
46
|
+
# def RegisterProvider(provider:'EncodingProvider'):
|
|
47
|
+
# """
|
|
48
|
+
#
|
|
49
|
+
# """
|
|
50
|
+
# intPtrprovider:c_void_p = provider.Ptr
|
|
51
|
+
#
|
|
52
|
+
# dlllib.Encoding_RegisterProvider.argtypes=[ c_void_p]
|
|
53
|
+
# CallCFunction(dlllib.Encoding_RegisterProvider, intPtrprovider)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@staticmethod
|
|
57
|
+
@dispatch
|
|
58
|
+
|
|
59
|
+
def GetEncoding(codepage:int)->'Encoding':
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
dlllib.Encoding_GetEncoding.argtypes=[ c_int]
|
|
65
|
+
dlllib.Encoding_GetEncoding.restype=c_void_p
|
|
66
|
+
intPtr = CallCFunction(dlllib.Encoding_GetEncoding, codepage)
|
|
67
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
68
|
+
return ret
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# @staticmethod
|
|
72
|
+
# @dispatch
|
|
73
|
+
#
|
|
74
|
+
# def GetEncoding(codepage:int,encoderFallback:'EncoderFallback',decoderFallback:'DecoderFallback')->'Encoding':
|
|
75
|
+
# """
|
|
76
|
+
#
|
|
77
|
+
# """
|
|
78
|
+
# intPtrencoderFallback:c_void_p = encoderFallback.Ptr
|
|
79
|
+
# intPtrdecoderFallback:c_void_p = decoderFallback.Ptr
|
|
80
|
+
#
|
|
81
|
+
# dlllib.Encoding_GetEncodingCED.argtypes=[ c_int,c_void_p,c_void_p]
|
|
82
|
+
# dlllib.Encoding_GetEncodingCED.restype=c_void_p
|
|
83
|
+
# intPtr = CallCFunction(dlllib.Encoding_GetEncodingCED, codepage,intPtrencoderFallback,intPtrdecoderFallback)
|
|
84
|
+
# ret = None if intPtr==None else Encoding(intPtr)
|
|
85
|
+
# return ret
|
|
86
|
+
#
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
@staticmethod
|
|
90
|
+
@dispatch
|
|
91
|
+
|
|
92
|
+
def GetEncoding(name:str)->'Encoding':
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
"""
|
|
96
|
+
if __package__ == "spire.doc.common" or __package__ == "spire.presentation.common":
|
|
97
|
+
namePtr = StrToPtr(name)
|
|
98
|
+
dlllib.Encoding_GetEncodingN.argtypes=[ c_char_p]
|
|
99
|
+
dlllib.Encoding_GetEncodingN.restype=c_void_p
|
|
100
|
+
intPtr = CallCFunction(dlllib.Encoding_GetEncodingN,namePtr)
|
|
101
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
102
|
+
return ret
|
|
103
|
+
else:
|
|
104
|
+
dlllib.Encoding_GetEncodingN.argtypes=[ c_void_p]
|
|
105
|
+
dlllib.Encoding_GetEncodingN.restype=c_void_p
|
|
106
|
+
intPtr = CallCFunction(dlllib.Encoding_GetEncodingN, name)
|
|
107
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
108
|
+
return ret
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
# @staticmethod
|
|
113
|
+
# @dispatch
|
|
114
|
+
#
|
|
115
|
+
# def GetEncoding(name:str,encoderFallback:'EncoderFallback',decoderFallback:'DecoderFallback')->'Encoding':
|
|
116
|
+
# """
|
|
117
|
+
#
|
|
118
|
+
# """
|
|
119
|
+
# intPtrencoderFallback:c_void_p = encoderFallback.Ptr
|
|
120
|
+
# intPtrdecoderFallback:c_void_p = decoderFallback.Ptr
|
|
121
|
+
#
|
|
122
|
+
# dlllib.Encoding_GetEncodingNED.argtypes=[ c_void_p,c_void_p,c_void_p]
|
|
123
|
+
# dlllib.Encoding_GetEncodingNED.restype=c_void_p
|
|
124
|
+
# intPtr = CallCFunction(dlllib.Encoding_GetEncodingNED, name,intPtrencoderFallback,intPtrdecoderFallback)
|
|
125
|
+
# ret = None if intPtr==None else Encoding(intPtr)
|
|
126
|
+
# return ret
|
|
127
|
+
#
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
# @staticmethod
|
|
131
|
+
#
|
|
132
|
+
# def GetEncodings()->List['EncodingInfo']:
|
|
133
|
+
# """
|
|
134
|
+
#
|
|
135
|
+
# """
|
|
136
|
+
# #dlllib.Encoding_GetEncodings.argtypes=[]
|
|
137
|
+
# dlllib.Encoding_GetEncodings.restype=IntPtrArray
|
|
138
|
+
# intPtrArray = CallCFunction(dlllib.Encoding_GetEncodings)
|
|
139
|
+
# ret = GetVectorFromArray(intPtrArray, EncodingInfo)
|
|
140
|
+
# return ret
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
#
|
|
144
|
+
# def GetPreamble(self)->List['Byte']:
|
|
145
|
+
# """
|
|
146
|
+
#
|
|
147
|
+
# """
|
|
148
|
+
# dlllib.Encoding_GetPreamble.argtypes=[c_void_p]
|
|
149
|
+
# dlllib.Encoding_GetPreamble.restype=IntPtrArray
|
|
150
|
+
# intPtrArray = CallCFunction(dlllib.Encoding_GetPreamble,self.Ptr)
|
|
151
|
+
# ret = GetVectorFromArray(intPtrArray, Byte)
|
|
152
|
+
# return ret
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
|
|
157
|
+
def BodyName(self)->str:
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
"""
|
|
161
|
+
dlllib.Encoding_get_BodyName.argtypes=[c_void_p]
|
|
162
|
+
dlllib.Encoding_get_BodyName.restype=c_void_p
|
|
163
|
+
ret = PtrToStr(CallCFunction(dlllib.Encoding_get_BodyName,self.Ptr))
|
|
164
|
+
return ret
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
|
|
169
|
+
def HeaderName(self)->str:
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
"""
|
|
173
|
+
dlllib.Encoding_get_HeaderName.argtypes=[c_void_p]
|
|
174
|
+
dlllib.Encoding_get_HeaderName.restype=c_void_p
|
|
175
|
+
ret = PtrToStr(CallCFunction(dlllib.Encoding_get_HeaderName,self.Ptr))
|
|
176
|
+
return ret
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
|
|
181
|
+
def WebName(self)->str:
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
"""
|
|
185
|
+
dlllib.Encoding_get_WebName.argtypes=[c_void_p]
|
|
186
|
+
dlllib.Encoding_get_WebName.restype=c_void_p
|
|
187
|
+
ret = PtrToStr(CallCFunction(dlllib.Encoding_get_WebName,self.Ptr))
|
|
188
|
+
return ret
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
def WindowsCodePage(self)->int:
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
"""
|
|
196
|
+
dlllib.Encoding_get_WindowsCodePage.argtypes=[c_void_p]
|
|
197
|
+
dlllib.Encoding_get_WindowsCodePage.restype=c_int
|
|
198
|
+
ret = CallCFunction(dlllib.Encoding_get_WindowsCodePage,self.Ptr)
|
|
199
|
+
return ret
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def IsBrowserDisplay(self)->bool:
|
|
203
|
+
"""
|
|
204
|
+
|
|
205
|
+
"""
|
|
206
|
+
dlllib.Encoding_get_IsBrowserDisplay.argtypes=[c_void_p]
|
|
207
|
+
dlllib.Encoding_get_IsBrowserDisplay.restype=c_bool
|
|
208
|
+
ret = CallCFunction(dlllib.Encoding_get_IsBrowserDisplay,self.Ptr)
|
|
209
|
+
return ret
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def IsBrowserSave(self)->bool:
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
"""
|
|
216
|
+
dlllib.Encoding_get_IsBrowserSave.argtypes=[c_void_p]
|
|
217
|
+
dlllib.Encoding_get_IsBrowserSave.restype=c_bool
|
|
218
|
+
ret = CallCFunction(dlllib.Encoding_get_IsBrowserSave,self.Ptr)
|
|
219
|
+
return ret
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
def IsMailNewsDisplay(self)->bool:
|
|
223
|
+
"""
|
|
224
|
+
|
|
225
|
+
"""
|
|
226
|
+
dlllib.Encoding_get_IsMailNewsDisplay.argtypes=[c_void_p]
|
|
227
|
+
dlllib.Encoding_get_IsMailNewsDisplay.restype=c_bool
|
|
228
|
+
ret = CallCFunction(dlllib.Encoding_get_IsMailNewsDisplay,self.Ptr)
|
|
229
|
+
return ret
|
|
230
|
+
|
|
231
|
+
@property
|
|
232
|
+
def IsMailNewsSave(self)->bool:
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
"""
|
|
236
|
+
dlllib.Encoding_get_IsMailNewsSave.argtypes=[c_void_p]
|
|
237
|
+
dlllib.Encoding_get_IsMailNewsSave.restype=c_bool
|
|
238
|
+
ret = CallCFunction(dlllib.Encoding_get_IsMailNewsSave,self.Ptr)
|
|
239
|
+
return ret
|
|
240
|
+
|
|
241
|
+
@property
|
|
242
|
+
def IsSingleByte(self)->bool:
|
|
243
|
+
"""
|
|
244
|
+
|
|
245
|
+
"""
|
|
246
|
+
dlllib.Encoding_get_IsSingleByte.argtypes=[c_void_p]
|
|
247
|
+
dlllib.Encoding_get_IsSingleByte.restype=c_bool
|
|
248
|
+
ret = CallCFunction(dlllib.Encoding_get_IsSingleByte,self.Ptr)
|
|
249
|
+
return ret
|
|
250
|
+
|
|
251
|
+
# @property
|
|
252
|
+
#
|
|
253
|
+
# def EncoderFallback(self)->'EncoderFallback':
|
|
254
|
+
# """
|
|
255
|
+
#
|
|
256
|
+
# """
|
|
257
|
+
# dlllib.Encoding_get_EncoderFallback.argtypes=[c_void_p]
|
|
258
|
+
# dlllib.Encoding_get_EncoderFallback.restype=c_void_p
|
|
259
|
+
# intPtr = CallCFunction(dlllib.Encoding_get_EncoderFallback,self.Ptr)
|
|
260
|
+
# ret = None if intPtr==None else EncoderFallback(intPtr)
|
|
261
|
+
# return ret
|
|
262
|
+
#
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
# @EncoderFallback.setter
|
|
266
|
+
# def EncoderFallback(self, value:'EncoderFallback'):
|
|
267
|
+
# dlllib.Encoding_set_EncoderFallback.argtypes=[c_void_p, c_void_p]
|
|
268
|
+
# CallCFunction(dlllib.Encoding_set_EncoderFallback,self.Ptr, value.Ptr)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
# @property
|
|
272
|
+
#
|
|
273
|
+
# def DecoderFallback(self)->'DecoderFallback':
|
|
274
|
+
# """
|
|
275
|
+
#
|
|
276
|
+
# """
|
|
277
|
+
# dlllib.Encoding_get_DecoderFallback.argtypes=[c_void_p]
|
|
278
|
+
# dlllib.Encoding_get_DecoderFallback.restype=c_void_p
|
|
279
|
+
# intPtr = CallCFunction(dlllib.Encoding_get_DecoderFallback,self.Ptr)
|
|
280
|
+
# ret = None if intPtr==None else DecoderFallback(intPtr)
|
|
281
|
+
# return ret
|
|
282
|
+
#
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
# @DecoderFallback.setter
|
|
286
|
+
# def DecoderFallback(self, value:'DecoderFallback'):
|
|
287
|
+
# dlllib.Encoding_set_DecoderFallback.argtypes=[c_void_p, c_void_p]
|
|
288
|
+
# CallCFunction(dlllib.Encoding_set_DecoderFallback,self.Ptr, value.Ptr)
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
def Clone(self)->'SpireObject':
|
|
293
|
+
"""
|
|
294
|
+
|
|
295
|
+
"""
|
|
296
|
+
dlllib.Encoding_Clone.argtypes=[c_void_p]
|
|
297
|
+
dlllib.Encoding_Clone.restype=c_void_p
|
|
298
|
+
intPtr = CallCFunction(dlllib.Encoding_Clone,self.Ptr)
|
|
299
|
+
ret = None if intPtr==None else SpireObject(intPtr)
|
|
300
|
+
return ret
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
@property
|
|
304
|
+
def IsReadOnly(self)->bool:
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
"""
|
|
308
|
+
dlllib.Encoding_get_IsReadOnly.argtypes=[c_void_p]
|
|
309
|
+
dlllib.Encoding_get_IsReadOnly.restype=c_bool
|
|
310
|
+
ret = CallCFunction(dlllib.Encoding_get_IsReadOnly,self.Ptr)
|
|
311
|
+
return ret
|
|
312
|
+
|
|
313
|
+
@staticmethod
|
|
314
|
+
|
|
315
|
+
def get_ASCII()->'Encoding':
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
"""
|
|
319
|
+
#dlllib.Encoding_get_ASCII.argtypes=[]
|
|
320
|
+
dlllib.Encoding_get_ASCII.restype=c_void_p
|
|
321
|
+
intPtr = CallCFunction(dlllib.Encoding_get_ASCII)
|
|
322
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
323
|
+
return ret
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
# @dispatch
|
|
327
|
+
#
|
|
328
|
+
# def GetByteCount(self ,chars:'Char[]')->int:
|
|
329
|
+
# """
|
|
330
|
+
#
|
|
331
|
+
# """
|
|
332
|
+
# #arraychars:ArrayTypechars = ""
|
|
333
|
+
# countchars = len(chars)
|
|
334
|
+
# ArrayTypechars = c_void_p * countchars
|
|
335
|
+
# arraychars = ArrayTypechars()
|
|
336
|
+
# for i in range(0, countchars):
|
|
337
|
+
# arraychars[i] = chars[i].Ptr
|
|
338
|
+
#
|
|
339
|
+
#
|
|
340
|
+
# dlllib.Encoding_GetByteCount.argtypes=[c_void_p ,ArrayTypechars]
|
|
341
|
+
# dlllib.Encoding_GetByteCount.restype=c_int
|
|
342
|
+
# ret = CallCFunction(dlllib.Encoding_GetByteCount,self.Ptr, arraychars)
|
|
343
|
+
# return ret
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
@dispatch
|
|
347
|
+
|
|
348
|
+
def GetByteCount(self ,s:str)->int:
|
|
349
|
+
"""
|
|
350
|
+
|
|
351
|
+
"""
|
|
352
|
+
if __package__ == "spire.doc.common" or __package__ == "spire.presentation.common":
|
|
353
|
+
sPtr = StrToPtr(s)
|
|
354
|
+
dlllib.Encoding_GetByteCountS.argtypes=[c_void_p ,c_char_p]
|
|
355
|
+
dlllib.Encoding_GetByteCountS.restype=c_int
|
|
356
|
+
ret = CallCFunction(dlllib.Encoding_GetByteCountS,self.Ptr, sPtr)
|
|
357
|
+
return ret
|
|
358
|
+
else:
|
|
359
|
+
dlllib.Encoding_GetByteCountS.argtypes=[c_void_p ,c_void_p]
|
|
360
|
+
dlllib.Encoding_GetByteCountS.restype=c_int
|
|
361
|
+
ret = CallCFunction(dlllib.Encoding_GetByteCountS,self.Ptr, s)
|
|
362
|
+
return ret
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
# @dispatch
|
|
366
|
+
#
|
|
367
|
+
# def GetByteCount(self ,chars:'Char*',count:int)->int:
|
|
368
|
+
# """
|
|
369
|
+
#
|
|
370
|
+
# """
|
|
371
|
+
# intPtrchars:c_void_p = chars.Ptr
|
|
372
|
+
#
|
|
373
|
+
# dlllib.Encoding_GetByteCountCC.argtypes=[c_void_p ,c_void_p,c_int]
|
|
374
|
+
# dlllib.Encoding_GetByteCountCC.restype=c_int
|
|
375
|
+
# ret = CallCFunction(dlllib.Encoding_GetByteCountCC,self.Ptr, intPtrchars,count)
|
|
376
|
+
# return ret
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
# @dispatch
|
|
380
|
+
#
|
|
381
|
+
# def GetBytes(self ,chars:'Char[]')->List[Byte]:
|
|
382
|
+
# """
|
|
383
|
+
#
|
|
384
|
+
# """
|
|
385
|
+
# #arraychars:ArrayTypechars = ""
|
|
386
|
+
# countchars = len(chars)
|
|
387
|
+
# ArrayTypechars = c_void_p * countchars
|
|
388
|
+
# arraychars = ArrayTypechars()
|
|
389
|
+
# for i in range(0, countchars):
|
|
390
|
+
# arraychars[i] = chars[i].Ptr
|
|
391
|
+
#
|
|
392
|
+
#
|
|
393
|
+
# dlllib.Encoding_GetBytes.argtypes=[c_void_p ,ArrayTypechars]
|
|
394
|
+
# dlllib.Encoding_GetBytes.restype=IntPtrArray
|
|
395
|
+
# intPtrArray = CallCFunction(dlllib.Encoding_GetBytes,self.Ptr, arraychars)
|
|
396
|
+
# ret = GetObjVectorFromArray(intPtrArray, Byte)
|
|
397
|
+
# return ret
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
# @dispatch
|
|
401
|
+
#
|
|
402
|
+
# def GetBytes(self ,chars:'Char[]',index:int,count:int)->List[Byte]:
|
|
403
|
+
# """
|
|
404
|
+
#
|
|
405
|
+
# """
|
|
406
|
+
# #arraychars:ArrayTypechars = ""
|
|
407
|
+
# countchars = len(chars)
|
|
408
|
+
# ArrayTypechars = c_void_p * countchars
|
|
409
|
+
# arraychars = ArrayTypechars()
|
|
410
|
+
# for i in range(0, countchars):
|
|
411
|
+
# arraychars[i] = chars[i].Ptr
|
|
412
|
+
#
|
|
413
|
+
#
|
|
414
|
+
# dlllib.Encoding_GetBytesCIC.argtypes=[c_void_p ,ArrayTypechars,c_int,c_int]
|
|
415
|
+
# dlllib.Encoding_GetBytesCIC.restype=IntPtrArray
|
|
416
|
+
# intPtrArray = CallCFunction(dlllib.Encoding_GetBytesCIC,self.Ptr, arraychars,index,count)
|
|
417
|
+
# ret = GetObjVectorFromArray(intPtrArray, Byte)
|
|
418
|
+
# return ret
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
# @dispatch
|
|
422
|
+
#
|
|
423
|
+
# def GetBytes(self ,s:str)->List[Byte]:
|
|
424
|
+
# """
|
|
425
|
+
#
|
|
426
|
+
# """
|
|
427
|
+
#
|
|
428
|
+
# dlllib.Encoding_GetBytesS.argtypes=[c_void_p ,c_void_p]
|
|
429
|
+
# dlllib.Encoding_GetBytesS.restype=IntPtrArray
|
|
430
|
+
# intPtrArray = CallCFunction(dlllib.Encoding_GetBytesS,self.Ptr, s)
|
|
431
|
+
# ret = GetObjVectorFromArray(intPtrArray, Byte)
|
|
432
|
+
# return ret
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
# @dispatch
|
|
436
|
+
#
|
|
437
|
+
# def GetBytes(self ,s:str,charIndex:int,charCount:int,bytes:'Byte[]',byteIndex:int)->int:
|
|
438
|
+
# """
|
|
439
|
+
#
|
|
440
|
+
# """
|
|
441
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
442
|
+
# countbytes = len(bytes)
|
|
443
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
444
|
+
# arraybytes = ArrayTypebytes()
|
|
445
|
+
# for i in range(0, countbytes):
|
|
446
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
447
|
+
#
|
|
448
|
+
#
|
|
449
|
+
# dlllib.Encoding_GetBytesSCCBB.argtypes=[c_void_p ,c_void_p,c_int,c_int,ArrayTypebytes,c_int]
|
|
450
|
+
# dlllib.Encoding_GetBytesSCCBB.restype=c_int
|
|
451
|
+
# ret = CallCFunction(dlllib.Encoding_GetBytesSCCBB,self.Ptr, s,charIndex,charCount,arraybytes,byteIndex)
|
|
452
|
+
# return ret
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
# @dispatch
|
|
456
|
+
#
|
|
457
|
+
# def GetCharCount(self ,bytes:'Byte[]')->int:
|
|
458
|
+
# """
|
|
459
|
+
#
|
|
460
|
+
# """
|
|
461
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
462
|
+
# countbytes = len(bytes)
|
|
463
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
464
|
+
# arraybytes = ArrayTypebytes()
|
|
465
|
+
# for i in range(0, countbytes):
|
|
466
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
467
|
+
#
|
|
468
|
+
#
|
|
469
|
+
# dlllib.Encoding_GetCharCount.argtypes=[c_void_p ,ArrayTypebytes]
|
|
470
|
+
# dlllib.Encoding_GetCharCount.restype=c_int
|
|
471
|
+
# ret = CallCFunction(dlllib.Encoding_GetCharCount,self.Ptr, arraybytes)
|
|
472
|
+
# return ret
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
# @dispatch
|
|
476
|
+
#
|
|
477
|
+
# def GetCharCount(self ,bytes:'Byte*',count:int)->int:
|
|
478
|
+
# """
|
|
479
|
+
#
|
|
480
|
+
# """
|
|
481
|
+
# intPtrbytes:c_void_p = bytes.Ptr
|
|
482
|
+
#
|
|
483
|
+
# dlllib.Encoding_GetCharCountBC.argtypes=[c_void_p ,c_void_p,c_int]
|
|
484
|
+
# dlllib.Encoding_GetCharCountBC.restype=c_int
|
|
485
|
+
# ret = CallCFunction(dlllib.Encoding_GetCharCountBC,self.Ptr, intPtrbytes,count)
|
|
486
|
+
# return ret
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
# @dispatch
|
|
490
|
+
#
|
|
491
|
+
# def GetChars(self ,bytes:'Byte[]')->List[Char]:
|
|
492
|
+
# """
|
|
493
|
+
#
|
|
494
|
+
# """
|
|
495
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
496
|
+
# countbytes = len(bytes)
|
|
497
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
498
|
+
# arraybytes = ArrayTypebytes()
|
|
499
|
+
# for i in range(0, countbytes):
|
|
500
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
501
|
+
#
|
|
502
|
+
#
|
|
503
|
+
# dlllib.Encoding_GetChars.argtypes=[c_void_p ,ArrayTypebytes]
|
|
504
|
+
# dlllib.Encoding_GetChars.restype=IntPtrArray
|
|
505
|
+
# intPtrArray = CallCFunction(dlllib.Encoding_GetChars,self.Ptr, arraybytes)
|
|
506
|
+
# ret = GetObjVectorFromArray(intPtrArray, Char)
|
|
507
|
+
# return ret
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
# @dispatch
|
|
511
|
+
#
|
|
512
|
+
# def GetChars(self ,bytes:'Byte[]',index:int,count:int)->List[Char]:
|
|
513
|
+
# """
|
|
514
|
+
#
|
|
515
|
+
# """
|
|
516
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
517
|
+
# countbytes = len(bytes)
|
|
518
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
519
|
+
# arraybytes = ArrayTypebytes()
|
|
520
|
+
# for i in range(0, countbytes):
|
|
521
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
522
|
+
#
|
|
523
|
+
#
|
|
524
|
+
# dlllib.Encoding_GetCharsBIC.argtypes=[c_void_p ,ArrayTypebytes,c_int,c_int]
|
|
525
|
+
# dlllib.Encoding_GetCharsBIC.restype=IntPtrArray
|
|
526
|
+
# intPtrArray = CallCFunction(dlllib.Encoding_GetCharsBIC,self.Ptr, arraybytes,index,count)
|
|
527
|
+
# ret = GetObjVectorFromArray(intPtrArray, Char)
|
|
528
|
+
# return ret
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
# @dispatch
|
|
532
|
+
#
|
|
533
|
+
# def GetString(self ,bytes:'Byte*',byteCount:int)->str:
|
|
534
|
+
# """
|
|
535
|
+
#
|
|
536
|
+
# """
|
|
537
|
+
# intPtrbytes:c_void_p = bytes.Ptr
|
|
538
|
+
#
|
|
539
|
+
# dlllib.Encoding_GetString.argtypes=[c_void_p ,c_void_p,c_int]
|
|
540
|
+
# dlllib.Encoding_GetString.restype=c_wchar_p
|
|
541
|
+
# ret = CallCFunction(dlllib.Encoding_GetString,self.Ptr, intPtrbytes,byteCount)
|
|
542
|
+
# return ret
|
|
543
|
+
#
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
@property
|
|
547
|
+
def CodePage(self)->int:
|
|
548
|
+
"""
|
|
549
|
+
|
|
550
|
+
"""
|
|
551
|
+
dlllib.Encoding_get_CodePage.argtypes=[c_void_p]
|
|
552
|
+
dlllib.Encoding_get_CodePage.restype=c_int
|
|
553
|
+
ret = CallCFunction(dlllib.Encoding_get_CodePage,self.Ptr)
|
|
554
|
+
return ret
|
|
555
|
+
|
|
556
|
+
@dispatch
|
|
557
|
+
def IsAlwaysNormalized(self)->bool:
|
|
558
|
+
"""
|
|
559
|
+
|
|
560
|
+
"""
|
|
561
|
+
dlllib.Encoding_IsAlwaysNormalized.argtypes=[c_void_p]
|
|
562
|
+
dlllib.Encoding_IsAlwaysNormalized.restype=c_bool
|
|
563
|
+
ret = CallCFunction(dlllib.Encoding_IsAlwaysNormalized,self.Ptr)
|
|
564
|
+
return ret
|
|
565
|
+
|
|
566
|
+
# @dispatch
|
|
567
|
+
#
|
|
568
|
+
# def IsAlwaysNormalized(self ,form:'NormalizationForm')->bool:
|
|
569
|
+
# """
|
|
570
|
+
#
|
|
571
|
+
# """
|
|
572
|
+
# enumform:c_int = form.value
|
|
573
|
+
#
|
|
574
|
+
# dlllib.Encoding_IsAlwaysNormalizedF.argtypes=[c_void_p ,c_int]
|
|
575
|
+
# dlllib.Encoding_IsAlwaysNormalizedF.restype=c_bool
|
|
576
|
+
# ret = CallCFunction(dlllib.Encoding_IsAlwaysNormalizedF,self.Ptr, enumform)
|
|
577
|
+
# return ret
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
#
|
|
581
|
+
# def GetDecoder(self)->'Decoder':
|
|
582
|
+
# """
|
|
583
|
+
#
|
|
584
|
+
# """
|
|
585
|
+
# dlllib.Encoding_GetDecoder.argtypes=[c_void_p]
|
|
586
|
+
# dlllib.Encoding_GetDecoder.restype=c_void_p
|
|
587
|
+
# intPtr = CallCFunction(dlllib.Encoding_GetDecoder,self.Ptr)
|
|
588
|
+
# ret = None if intPtr==None else Decoder(intPtr)
|
|
589
|
+
# return ret
|
|
590
|
+
#
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
@staticmethod
|
|
594
|
+
|
|
595
|
+
def get_Default()->'Encoding':
|
|
596
|
+
"""
|
|
597
|
+
|
|
598
|
+
"""
|
|
599
|
+
#dlllib.Encoding_get_Default.argtypes=[]
|
|
600
|
+
dlllib.Encoding_get_Default.restype=c_void_p
|
|
601
|
+
intPtr = CallCFunction(dlllib.Encoding_get_Default)
|
|
602
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
603
|
+
return ret
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
#
|
|
607
|
+
# def GetEncoder(self)->'Encoder':
|
|
608
|
+
# """
|
|
609
|
+
#
|
|
610
|
+
# """
|
|
611
|
+
# dlllib.Encoding_GetEncoder.argtypes=[c_void_p]
|
|
612
|
+
# dlllib.Encoding_GetEncoder.restype=c_void_p
|
|
613
|
+
# intPtr = CallCFunction(dlllib.Encoding_GetEncoder,self.Ptr)
|
|
614
|
+
# ret = None if intPtr==None else Encoder(intPtr)
|
|
615
|
+
# return ret
|
|
616
|
+
#
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
# @dispatch
|
|
620
|
+
#
|
|
621
|
+
# def GetString(self ,bytes:'Byte[]')->str:
|
|
622
|
+
# """
|
|
623
|
+
#
|
|
624
|
+
# """
|
|
625
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
626
|
+
# countbytes = len(bytes)
|
|
627
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
628
|
+
# arraybytes = ArrayTypebytes()
|
|
629
|
+
# for i in range(0, countbytes):
|
|
630
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
631
|
+
#
|
|
632
|
+
#
|
|
633
|
+
# dlllib.Encoding_GetStringB.argtypes=[c_void_p ,ArrayTypebytes]
|
|
634
|
+
# dlllib.Encoding_GetStringB.restype=c_wchar_p
|
|
635
|
+
# ret = CallCFunction(dlllib.Encoding_GetStringB,self.Ptr, arraybytes)
|
|
636
|
+
# return ret
|
|
637
|
+
#
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
# @dispatch
|
|
641
|
+
#
|
|
642
|
+
# def GetString(self ,bytes:'Byte[]',index:int,count:int)->str:
|
|
643
|
+
# """
|
|
644
|
+
#
|
|
645
|
+
# """
|
|
646
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
647
|
+
# countbytes = len(bytes)
|
|
648
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
649
|
+
# arraybytes = ArrayTypebytes()
|
|
650
|
+
# for i in range(0, countbytes):
|
|
651
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
652
|
+
#
|
|
653
|
+
#
|
|
654
|
+
# dlllib.Encoding_GetStringBIC.argtypes=[c_void_p ,ArrayTypebytes,c_int,c_int]
|
|
655
|
+
# dlllib.Encoding_GetStringBIC.restype=c_wchar_p
|
|
656
|
+
# ret = CallCFunction(dlllib.Encoding_GetStringBIC,self.Ptr, arraybytes,index,count)
|
|
657
|
+
# return ret
|
|
658
|
+
#
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
@staticmethod
|
|
662
|
+
|
|
663
|
+
def get_Unicode()->'Encoding':
|
|
664
|
+
"""
|
|
665
|
+
|
|
666
|
+
"""
|
|
667
|
+
#dlllib.Encoding_get_Unicode.argtypes=[]
|
|
668
|
+
dlllib.Encoding_get_Unicode.restype=c_void_p
|
|
669
|
+
intPtr = CallCFunction(dlllib.Encoding_get_Unicode)
|
|
670
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
671
|
+
return ret
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
@staticmethod
|
|
675
|
+
|
|
676
|
+
def get_BigEndianUnicode()->'Encoding':
|
|
677
|
+
"""
|
|
678
|
+
|
|
679
|
+
"""
|
|
680
|
+
#dlllib.Encoding_get_BigEndianUnicode.argtypes=[]
|
|
681
|
+
dlllib.Encoding_get_BigEndianUnicode.restype=c_void_p
|
|
682
|
+
intPtr = CallCFunction(dlllib.Encoding_get_BigEndianUnicode)
|
|
683
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
684
|
+
return ret
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
@staticmethod
|
|
688
|
+
|
|
689
|
+
def get_UTF7()->'Encoding':
|
|
690
|
+
"""
|
|
691
|
+
|
|
692
|
+
"""
|
|
693
|
+
#dlllib.Encoding_get_UTF7.argtypes=[]
|
|
694
|
+
dlllib.Encoding_get_UTF7.restype=c_void_p
|
|
695
|
+
intPtr = CallCFunction(dlllib.Encoding_get_UTF7)
|
|
696
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
697
|
+
return ret
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
@staticmethod
|
|
701
|
+
|
|
702
|
+
def get_UTF8()->'Encoding':
|
|
703
|
+
"""
|
|
704
|
+
|
|
705
|
+
"""
|
|
706
|
+
#dlllib.Encoding_get_UTF8.argtypes=[]
|
|
707
|
+
dlllib.Encoding_get_UTF8.restype=c_void_p
|
|
708
|
+
intPtr = CallCFunction(dlllib.Encoding_get_UTF8)
|
|
709
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
710
|
+
return ret
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
@staticmethod
|
|
714
|
+
|
|
715
|
+
def get_UTF32()->'Encoding':
|
|
716
|
+
"""
|
|
717
|
+
|
|
718
|
+
"""
|
|
719
|
+
#dlllib.Encoding_get_UTF32.argtypes=[]
|
|
720
|
+
dlllib.Encoding_get_UTF32.restype=c_void_p
|
|
721
|
+
intPtr = CallCFunction(dlllib.Encoding_get_UTF32)
|
|
722
|
+
ret = None if intPtr==None else Encoding(intPtr)
|
|
723
|
+
return ret
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
def Equals(self ,value:'SpireObject')->bool:
|
|
728
|
+
"""
|
|
729
|
+
|
|
730
|
+
"""
|
|
731
|
+
intPtrvalue:c_void_p = value.Ptr
|
|
732
|
+
|
|
733
|
+
dlllib.Encoding_Equals.argtypes=[c_void_p ,c_void_p]
|
|
734
|
+
dlllib.Encoding_Equals.restype=c_bool
|
|
735
|
+
ret = CallCFunction(dlllib.Encoding_Equals,self.Ptr, intPtrvalue)
|
|
736
|
+
return ret
|
|
737
|
+
|
|
738
|
+
def GetHashCode(self)->int:
|
|
739
|
+
"""
|
|
740
|
+
|
|
741
|
+
"""
|
|
742
|
+
dlllib.Encoding_GetHashCode.argtypes=[c_void_p]
|
|
743
|
+
dlllib.Encoding_GetHashCode.restype=c_int
|
|
744
|
+
ret = CallCFunction(dlllib.Encoding_GetHashCode,self.Ptr)
|
|
745
|
+
return ret
|
|
746
|
+
|
|
747
|
+
# @staticmethod
|
|
748
|
+
# @dispatch
|
|
749
|
+
#
|
|
750
|
+
# def Convert(srcEncoding:'Encoding',dstEncoding:'Encoding',bytes:'Byte[]',index:int,count:int)->List[Byte]:
|
|
751
|
+
# """
|
|
752
|
+
#
|
|
753
|
+
# """
|
|
754
|
+
# intPtrsrcEncoding:c_void_p = srcEncoding.Ptr
|
|
755
|
+
# intPtrdstEncoding:c_void_p = dstEncoding.Ptr
|
|
756
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
757
|
+
# countbytes = len(bytes)
|
|
758
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
759
|
+
# arraybytes = ArrayTypebytes()
|
|
760
|
+
# for i in range(0, countbytes):
|
|
761
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
762
|
+
#
|
|
763
|
+
#
|
|
764
|
+
# dlllib.Encoding_ConvertSDBIC.argtypes=[ c_void_p,c_void_p,ArrayTypebytes,c_int,c_int]
|
|
765
|
+
# dlllib.Encoding_ConvertSDBIC.restype=IntPtrArray
|
|
766
|
+
# intPtrArray = CallCFunction(dlllib.Encoding_ConvertSDBIC, intPtrsrcEncoding,intPtrdstEncoding,arraybytes,index,count)
|
|
767
|
+
# ret = GetObjVectorFromArray(intPtrArray, Byte)
|
|
768
|
+
# return ret
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
@property
|
|
772
|
+
|
|
773
|
+
def EncodingName(self)->str:
|
|
774
|
+
"""
|
|
775
|
+
|
|
776
|
+
"""
|
|
777
|
+
dlllib.Encoding_get_EncodingName.argtypes=[c_void_p]
|
|
778
|
+
dlllib.Encoding_get_EncodingName.restype=c_void_p
|
|
779
|
+
ret = PtrToStr(CallCFunction(dlllib.Encoding_get_EncodingName,self.Ptr))
|
|
780
|
+
return ret
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
# @dispatch
|
|
784
|
+
#
|
|
785
|
+
# def GetByteCount(self ,chars:'Char[]',index:int,count:int)->int:
|
|
786
|
+
# """
|
|
787
|
+
#
|
|
788
|
+
# """
|
|
789
|
+
# #arraychars:ArrayTypechars = ""
|
|
790
|
+
# countchars = len(chars)
|
|
791
|
+
# ArrayTypechars = c_void_p * countchars
|
|
792
|
+
# arraychars = ArrayTypechars()
|
|
793
|
+
# for i in range(0, countchars):
|
|
794
|
+
# arraychars[i] = chars[i].Ptr
|
|
795
|
+
#
|
|
796
|
+
#
|
|
797
|
+
# dlllib.Encoding_GetByteCountCIC.argtypes=[c_void_p ,ArrayTypechars,c_int,c_int]
|
|
798
|
+
# dlllib.Encoding_GetByteCountCIC.restype=c_int
|
|
799
|
+
# ret = CallCFunction(dlllib.Encoding_GetByteCountCIC,self.Ptr, arraychars,index,count)
|
|
800
|
+
# return ret
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
# @dispatch
|
|
804
|
+
#
|
|
805
|
+
# def GetBytes(self ,chars:'Char[]',charIndex:int,charCount:int,bytes:'Byte[]',byteIndex:int)->int:
|
|
806
|
+
# """
|
|
807
|
+
#
|
|
808
|
+
# """
|
|
809
|
+
# #arraychars:ArrayTypechars = ""
|
|
810
|
+
# countchars = len(chars)
|
|
811
|
+
# ArrayTypechars = c_void_p * countchars
|
|
812
|
+
# arraychars = ArrayTypechars()
|
|
813
|
+
# for i in range(0, countchars):
|
|
814
|
+
# arraychars[i] = chars[i].Ptr
|
|
815
|
+
#
|
|
816
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
817
|
+
# countbytes = len(bytes)
|
|
818
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
819
|
+
# arraybytes = ArrayTypebytes()
|
|
820
|
+
# for i in range(0, countbytes):
|
|
821
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
822
|
+
#
|
|
823
|
+
#
|
|
824
|
+
# dlllib.Encoding_GetBytesCCCBB.argtypes=[c_void_p ,ArrayTypechars,c_int,c_int,ArrayTypebytes,c_int]
|
|
825
|
+
# dlllib.Encoding_GetBytesCCCBB.restype=c_int
|
|
826
|
+
# ret = CallCFunction(dlllib.Encoding_GetBytesCCCBB,self.Ptr, arraychars,charIndex,charCount,arraybytes,byteIndex)
|
|
827
|
+
# return ret
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
# @dispatch
|
|
831
|
+
#
|
|
832
|
+
# def GetBytes(self ,chars:'Char*',charCount:int,bytes:'Byte*',byteCount:int)->int:
|
|
833
|
+
# """
|
|
834
|
+
#
|
|
835
|
+
# """
|
|
836
|
+
# intPtrchars:c_void_p = chars.Ptr
|
|
837
|
+
# intPtrbytes:c_void_p = bytes.Ptr
|
|
838
|
+
#
|
|
839
|
+
# dlllib.Encoding_GetBytesCCBB.argtypes=[c_void_p ,c_void_p,c_int,c_void_p,c_int]
|
|
840
|
+
# dlllib.Encoding_GetBytesCCBB.restype=c_int
|
|
841
|
+
# ret = CallCFunction(dlllib.Encoding_GetBytesCCBB,self.Ptr, intPtrchars,charCount,intPtrbytes,byteCount)
|
|
842
|
+
# return ret
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
# @dispatch
|
|
846
|
+
#
|
|
847
|
+
# def GetCharCount(self ,bytes:'Byte[]',index:int,count:int)->int:
|
|
848
|
+
# """
|
|
849
|
+
#
|
|
850
|
+
# """
|
|
851
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
852
|
+
# countbytes = len(bytes)
|
|
853
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
854
|
+
# arraybytes = ArrayTypebytes()
|
|
855
|
+
# for i in range(0, countbytes):
|
|
856
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
857
|
+
#
|
|
858
|
+
#
|
|
859
|
+
# dlllib.Encoding_GetCharCountBIC.argtypes=[c_void_p ,ArrayTypebytes,c_int,c_int]
|
|
860
|
+
# dlllib.Encoding_GetCharCountBIC.restype=c_int
|
|
861
|
+
# ret = CallCFunction(dlllib.Encoding_GetCharCountBIC,self.Ptr, arraybytes,index,count)
|
|
862
|
+
# return ret
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
# @dispatch
|
|
866
|
+
#
|
|
867
|
+
# def GetChars(self ,bytes:'Byte[]',byteIndex:int,byteCount:int,chars:'Char[]',charIndex:int)->int:
|
|
868
|
+
# """
|
|
869
|
+
#
|
|
870
|
+
# """
|
|
871
|
+
# #arraybytes:ArrayTypebytes = ""
|
|
872
|
+
# countbytes = len(bytes)
|
|
873
|
+
# ArrayTypebytes = c_void_p * countbytes
|
|
874
|
+
# arraybytes = ArrayTypebytes()
|
|
875
|
+
# for i in range(0, countbytes):
|
|
876
|
+
# arraybytes[i] = bytes[i].Ptr
|
|
877
|
+
#
|
|
878
|
+
# #arraychars:ArrayTypechars = ""
|
|
879
|
+
# countchars = len(chars)
|
|
880
|
+
# ArrayTypechars = c_void_p * countchars
|
|
881
|
+
# arraychars = ArrayTypechars()
|
|
882
|
+
# for i in range(0, countchars):
|
|
883
|
+
# arraychars[i] = chars[i].Ptr
|
|
884
|
+
#
|
|
885
|
+
#
|
|
886
|
+
# dlllib.Encoding_GetCharsBBBCC.argtypes=[c_void_p ,ArrayTypebytes,c_int,c_int,ArrayTypechars,c_int]
|
|
887
|
+
# dlllib.Encoding_GetCharsBBBCC.restype=c_int
|
|
888
|
+
# ret = CallCFunction(dlllib.Encoding_GetCharsBBBCC,self.Ptr, arraybytes,byteIndex,byteCount,arraychars,charIndex)
|
|
889
|
+
# return ret
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
# @dispatch
|
|
893
|
+
#
|
|
894
|
+
# def GetChars(self ,bytes:'Byte*',byteCount:int,chars:'Char*',charCount:int)->int:
|
|
895
|
+
# """
|
|
896
|
+
#
|
|
897
|
+
# """
|
|
898
|
+
# intPtrbytes:c_void_p = bytes.Ptr
|
|
899
|
+
# intPtrchars:c_void_p = chars.Ptr
|
|
900
|
+
#
|
|
901
|
+
# dlllib.Encoding_GetCharsBBCC.argtypes=[c_void_p ,c_void_p,c_int,c_void_p,c_int]
|
|
902
|
+
# dlllib.Encoding_GetCharsBBCC.restype=c_int
|
|
903
|
+
# ret = CallCFunction(dlllib.Encoding_GetCharsBBCC,self.Ptr, intPtrbytes,byteCount,intPtrchars,charCount)
|
|
904
|
+
# return ret
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
def GetMaxByteCount(self ,charCount:int)->int:
|
|
909
|
+
"""
|
|
910
|
+
|
|
911
|
+
"""
|
|
912
|
+
|
|
913
|
+
dlllib.Encoding_GetMaxByteCount.argtypes=[c_void_p ,c_int]
|
|
914
|
+
dlllib.Encoding_GetMaxByteCount.restype=c_int
|
|
915
|
+
ret = CallCFunction(dlllib.Encoding_GetMaxByteCount,self.Ptr, charCount)
|
|
916
|
+
return ret
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
def GetMaxCharCount(self ,byteCount:int)->int:
|
|
920
|
+
"""
|
|
921
|
+
|
|
922
|
+
"""
|
|
923
|
+
|
|
924
|
+
dlllib.Encoding_GetMaxCharCount.argtypes=[c_void_p ,c_int]
|
|
925
|
+
dlllib.Encoding_GetMaxCharCount.restype=c_int
|
|
926
|
+
ret = CallCFunction(dlllib.Encoding_GetMaxCharCount,self.Ptr, byteCount)
|
|
927
|
+
return ret
|
|
928
|
+
|