├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ └── main.yml ├── .gitignore ├── .gitmodules ├── .vscode └── launch.json ├── LICENSE ├── README.md ├── README_en.md ├── examples ├── README.md ├── rpcetapi │ ├── README.md │ └── et_convert.py ├── rpcwppapi │ ├── README.md │ └── wpp_convert.py └── rpcwpsapi │ ├── convertto │ ├── README.md │ └── convertto.py │ └── embedded │ ├── README.md │ └── demo.py ├── include └── pyevents.h ├── project.py ├── py ├── __init__.py └── utils.py ├── pyproject.toml ├── sip ├── common │ ├── common.sip │ ├── export.sip │ ├── guid.sip │ ├── ksoapi.sip │ ├── ksoapi │ │ ├── Adjustments.sip │ │ ├── AnswerWizard.sip │ │ ├── AnswerWizardFiles.sip │ │ ├── Assistant.sip │ │ ├── Axes.sip │ │ ├── Balloon.sip │ │ ├── BalloonCheckbox.sip │ │ ├── BalloonCheckboxes.sip │ │ ├── BalloonLabel.sip │ │ ├── BalloonLabels.sip │ │ ├── BulletFormat2.sip │ │ ├── COMAddIn.sip │ │ ├── COMAddIns.sip │ │ ├── CalloutFormat.sip │ │ ├── CanvasShapes.sip │ │ ├── CategoryCollection.sip │ │ ├── ChartColorFormat.sip │ │ ├── ChartFillFormat.sip │ │ ├── ChartFont.sip │ │ ├── ChartGroups.sip │ │ ├── ChartPoint.sip │ │ ├── ColorFormat.sip │ │ ├── CommandBar.sip │ │ ├── CommandBarControl.sip │ │ ├── CommandBarControls.sip │ │ ├── CommandBarPopup.sip │ │ ├── ConnectorFormat.sip │ │ ├── ContactCard.sip │ │ ├── Crop.sip │ │ ├── CustomTaskPaneEvents.sip │ │ ├── CustomXMLNode.sip │ │ ├── CustomXMLNodes.sip │ │ ├── CustomXMLPrefixMapping.sip │ │ ├── CustomXMLPrefixMappings.sip │ │ ├── CustomXMLSchema.sip │ │ ├── CustomXMLValidationError.sip │ │ ├── CustomXMLValidationErrors.sip │ │ ├── DiagramNode.sip │ │ ├── DiagramNodeChildren.sip │ │ ├── DiagramNodes.sip │ │ ├── DocumentInspector.sip │ │ ├── DocumentInspectors.sip │ │ ├── DocumentLibraryVersion.sip │ │ ├── DocumentLibraryVersions.sip │ │ ├── DocumentProperties.sip │ │ ├── DocumentProperty.sip │ │ ├── EffectParameter.sip │ │ ├── EffectParameters.sip │ │ ├── EncryptionProvider.sip │ │ ├── FileDialog.sip │ │ ├── FileDialogFilter.sip │ │ ├── FileDialogFilters.sip │ │ ├── FileDialogSelectedItems.sip │ │ ├── FileSearch.sip │ │ ├── FileTypes.sip │ │ ├── FillFormat.sip │ │ ├── Font2.sip │ │ ├── FoundFiles.sip │ │ ├── FreeformBuilder.sip │ │ ├── FullSeriesCollection.sip │ │ ├── GlowFormat.sip │ │ ├── GradientStop.sip │ │ ├── GradientStops.sip │ │ ├── GridLines.sip │ │ ├── GroupShapes.sip │ │ ├── HTMLProject.sip │ │ ├── HTMLProjectItem.sip │ │ ├── HTMLProjectItems.sip │ │ ├── IAccessible.sip │ │ ├── IAssistance.sip │ │ ├── IBlogExtensibility.sip │ │ ├── IBlogPictureExtensibility.sip │ │ ├── ICTPFactory.sip │ │ ├── ICommandBarButtonEvents.sip │ │ ├── ICommandBarComboBoxEvents.sip │ │ ├── ICommandBarsEvents.sip │ │ ├── IConverter.sip │ │ ├── IConverterApplicationPreferences.sip │ │ ├── IConverterPreferences.sip │ │ ├── IConverterUICallback.sip │ │ ├── ICustomTaskPaneConsumer.sip │ │ ├── ICustomXMLPartEvents.sip │ │ ├── ICustomXMLPartsEvents.sip │ │ ├── IDocumentInspector.sip │ │ ├── IFind.sip │ │ ├── IFoundFiles.sip │ │ ├── ILicAgent.sip │ │ ├── ILicValidator.sip │ │ ├── ILicWizExternal.sip │ │ ├── IMsoAxis.sip │ │ ├── IMsoAxisTitle.sip │ │ ├── IMsoBorder.sip │ │ ├── IMsoCategory.sip │ │ ├── IMsoCharacters.sip │ │ ├── IMsoChart.sip │ │ ├── IMsoChartArea.sip │ │ ├── IMsoChartData.sip │ │ ├── IMsoChartFormat.sip │ │ ├── IMsoChartGroup.sip │ │ ├── IMsoChartTitle.sip │ │ ├── IMsoContactCard.sip │ │ ├── IMsoCorners.sip │ │ ├── IMsoDataLabel.sip │ │ ├── IMsoDataLabels.sip │ │ ├── IMsoDataTable.sip │ │ ├── IMsoDiagram.sip │ │ ├── IMsoDispCagNotifySink.sip │ │ ├── IMsoDisplayUnitLabel.sip │ │ ├── IMsoDownBars.sip │ │ ├── IMsoDropLines.sip │ │ ├── IMsoEServicesDialog.sip │ │ ├── IMsoEnvelopeVB.sip │ │ ├── IMsoEnvelopeVBEvents.sip │ │ ├── IMsoErrorBars.sip │ │ ├── IMsoFloor.sip │ │ ├── IMsoHiLoLines.sip │ │ ├── IMsoHyperlinks.sip │ │ ├── IMsoInterior.sip │ │ ├── IMsoLeaderLines.sip │ │ ├── IMsoLegend.sip │ │ ├── IMsoLegendKey.sip │ │ ├── IMsoPlotArea.sip │ │ ├── IMsoSeries.sip │ │ ├── IMsoSeriesLines.sip │ │ ├── IMsoTickLabels.sip │ │ ├── IMsoTrendline.sip │ │ ├── IMsoUpBars.sip │ │ ├── IMsoWalls.sip │ │ ├── IRibbonControl.sip │ │ ├── IRibbonExtensibility.sip │ │ ├── IRibbonUI.sip │ │ ├── LanguageSettings.sip │ │ ├── LegendEntries.sip │ │ ├── LegendEntry.sip │ │ ├── LineFormat.sip │ │ ├── MetaProperties.sip │ │ ├── MetaProperty.sip │ │ ├── MsoDebugOptions.sip │ │ ├── MsoDebugOptions_UT.sip │ │ ├── MsoDebugOptions_UTManager.sip │ │ ├── MsoDebugOptions_UTRunResult.sip │ │ ├── MsoDebugOptions_UTs.sip │ │ ├── NewFile.sip │ │ ├── ODSOColumn.sip │ │ ├── ODSOColumns.sip │ │ ├── ODSOFilter.sip │ │ ├── ODSOFilters.sip │ │ ├── OfficeDataSourceObject.sip │ │ ├── OfficeTheme.sip │ │ ├── ParagraphFormat2.sip │ │ ├── Permission.sip │ │ ├── PickerDialog.sip │ │ ├── PickerField.sip │ │ ├── PickerFields.sip │ │ ├── PickerProperties.sip │ │ ├── PickerProperty.sip │ │ ├── PickerResult.sip │ │ ├── PickerResults.sip │ │ ├── PictureEffect.sip │ │ ├── PictureEffects.sip │ │ ├── PictureFormat.sip │ │ ├── Points.sip │ │ ├── PolicyItem.sip │ │ ├── PropertyTest.sip │ │ ├── PropertyTests.sip │ │ ├── ReflectionFormat.sip │ │ ├── Ruler2.sip │ │ ├── RulerLevel2.sip │ │ ├── RulerLevels2.sip │ │ ├── ScopeFolder.sip │ │ ├── ScopeFolders.sip │ │ ├── Script.sip │ │ ├── Scripts.sip │ │ ├── SearchFolders.sip │ │ ├── SearchScope.sip │ │ ├── SearchScopes.sip │ │ ├── SeriesCollection.sip │ │ ├── ServerPolicy.sip │ │ ├── ShadowFormat.sip │ │ ├── Shape.sip │ │ ├── ShapeNode.sip │ │ ├── ShapeNodes.sip │ │ ├── ShapeRange.sip │ │ ├── Shapes.sip │ │ ├── SharedWorkspace.sip │ │ ├── SharedWorkspaceFile.sip │ │ ├── SharedWorkspaceFiles.sip │ │ ├── SharedWorkspaceFolder.sip │ │ ├── SharedWorkspaceFolders.sip │ │ ├── SharedWorkspaceLink.sip │ │ ├── SharedWorkspaceLinks.sip │ │ ├── SharedWorkspaceMember.sip │ │ ├── SharedWorkspaceMembers.sip │ │ ├── SharedWorkspaceTask.sip │ │ ├── SharedWorkspaceTasks.sip │ │ ├── Signature.sip │ │ ├── SignatureInfo.sip │ │ ├── SignatureProvider.sip │ │ ├── SignatureSet.sip │ │ ├── SignatureSetup.sip │ │ ├── SmartArt.sip │ │ ├── SmartArtColor.sip │ │ ├── SmartArtColors.sip │ │ ├── SmartArtLayout.sip │ │ ├── SmartArtLayouts.sip │ │ ├── SmartArtNode.sip │ │ ├── SmartArtNodes.sip │ │ ├── SmartArtQuickStyle.sip │ │ ├── SmartArtQuickStyles.sip │ │ ├── SmartDocument.sip │ │ ├── SoftEdgeFormat.sip │ │ ├── Sync.sip │ │ ├── TabStop2.sip │ │ ├── TabStops2.sip │ │ ├── TextColumn2.sip │ │ ├── TextEffectFormat.sip │ │ ├── TextFrame.sip │ │ ├── TextFrame2.sip │ │ ├── TextRange2.sip │ │ ├── ThemeColor.sip │ │ ├── ThemeColorScheme.sip │ │ ├── ThemeEffectScheme.sip │ │ ├── ThemeFont.sip │ │ ├── ThemeFontScheme.sip │ │ ├── ThemeFonts.sip │ │ ├── ThreeDFormat.sip │ │ ├── Trendlines.sip │ │ ├── UserPermission.sip │ │ ├── WebComponent.sip │ │ ├── WebComponentFormat.sip │ │ ├── WebComponentProperties.sip │ │ ├── WebComponentWindowExternal.sip │ │ ├── WebPageFont.sip │ │ ├── WebPageFonts.sip │ │ ├── WorkflowTask.sip │ │ ├── WorkflowTasks.sip │ │ ├── WorkflowTemplate.sip │ │ ├── WorkflowTemplates.sip │ │ ├── _CommandBarActiveX.sip │ │ ├── _CommandBarButton.sip │ │ ├── _CommandBarButtonEvents.sip │ │ ├── _CommandBarComboBox.sip │ │ ├── _CommandBarComboBoxEvents.sip │ │ ├── _CommandBars.sip │ │ ├── _CommandBarsEvents.sip │ │ ├── _CustomTaskPane.sip │ │ ├── _CustomTaskPaneEvents.sip │ │ ├── _CustomXMLPart.sip │ │ ├── _CustomXMLPartEvents.sip │ │ ├── _CustomXMLParts.sip │ │ ├── _CustomXMLPartsEvents.sip │ │ ├── _CustomXMLSchemaCollection.sip │ │ ├── _IMsoDispObj.sip │ │ ├── _IMsoOleAccDispObj.sip │ │ └── enums.sip │ ├── oaidl.sip │ ├── objbase.sip │ ├── objidl.sip │ ├── typedef.sip │ ├── wpsapiex.sip │ └── wpsapiex │ │ ├── ApplicationEventsEx.sip │ │ ├── DocumentsEx.sip │ │ ├── EtApplicationEventsEx.sip │ │ ├── EtRangeEx.sip │ │ ├── HeaderFooterEx.sip │ │ ├── Heading.sip │ │ ├── Headings.sip │ │ ├── KsoDocumentEx.sip │ │ ├── PictureFormatEx.sip │ │ ├── PresentationsEx.sip │ │ ├── PrintoutPageEx.sip │ │ ├── RangeEx.sip │ │ ├── WaterMark.sip │ │ ├── WaterMarks.sip │ │ ├── WorkbooksEx.sip │ │ ├── WppApplicationEventsEx.sip │ │ ├── WpsApplicationEventsEx.sip │ │ ├── WpsCloudService.sip │ │ ├── _ApplicationEx.sip │ │ ├── _DocumentEx.sip │ │ ├── _EtApplicationEx.sip │ │ ├── _PresentationEx.sip │ │ ├── _WorkbookEx.sip │ │ ├── _WppApplicationEx.sip │ │ ├── _WpsApplicationEx.sip │ │ └── enums.sip ├── rpcetapi │ ├── Adjustments.sip │ ├── CalloutFormat.sip │ ├── ColorFormat.sip │ ├── CubeField.sip │ ├── CubeFields.sip │ ├── DefaultWebOptions.sip │ ├── DiagramNode.sip │ ├── DiagramNodeChildren.sip │ ├── DiagramNodes.sip │ ├── FillFormat.sip │ ├── IAboveAverage.sip │ ├── IAction.sip │ ├── IActions.sip │ ├── IAddIn.sip │ ├── IAddIns.sip │ ├── IAddIns2.sip │ ├── IAllowEditRange.sip │ ├── IAllowEditRanges.sip │ ├── IAppEvents.sip │ ├── IArc.sip │ ├── IArcs.sip │ ├── IAreas.sip │ ├── IAutoCorrect.sip │ ├── IAutoFilter.sip │ ├── IAutoRecover.sip │ ├── IAxes.sip │ ├── IAxis.sip │ ├── IAxisTitle.sip │ ├── IBorder.sip │ ├── IBorders.sip │ ├── IButton.sip │ ├── IButtons.sip │ ├── ICalculatedFields.sip │ ├── ICalculatedItems.sip │ ├── ICalculatedMember.sip │ ├── ICalculatedMembers.sip │ ├── ICanvasShapes.sip │ ├── ICategoryCollection.sip │ ├── ICellFormat.sip │ ├── ICharacters.sip │ ├── IChartArea.sip │ ├── IChartCategory.sip │ ├── IChartColorFormat.sip │ ├── IChartEvents.sip │ ├── IChartFillFormat.sip │ ├── IChartFormat.sip │ ├── IChartGroup.sip │ ├── IChartGroups.sip │ ├── IChartObject.sip │ ├── IChartObjects.sip │ ├── IChartTitle.sip │ ├── IChartView.sip │ ├── ICharts.sip │ ├── ICheckBox.sip │ ├── ICheckBoxes.sip │ ├── IColorScale.sip │ ├── IColorScaleCriteria.sip │ ├── IColorScaleCriterion.sip │ ├── IColorStop.sip │ ├── IColorStops.sip │ ├── IComment.sip │ ├── IComments.sip │ ├── IConditionValue.sip │ ├── IConnections.sip │ ├── IConnectorFormat.sip │ ├── IControlFormat.sip │ ├── ICorners.sip │ ├── ICustomProperties.sip │ ├── ICustomProperty.sip │ ├── ICustomView.sip │ ├── ICustomViews.sip │ ├── IDataBarBorder.sip │ ├── IDataFeedConnection.sip │ ├── IDataLabel.sip │ ├── IDataLabels.sip │ ├── IDataTable.sip │ ├── IDatabar.sip │ ├── IDiagram.sip │ ├── IDialog.sip │ ├── IDialogFrame.sip │ ├── IDialogSheet.sip │ ├── IDialogSheetView.sip │ ├── IDialogSheets.sip │ ├── IDialogs.sip │ ├── IDisplayFormat.sip │ ├── IDisplayUnitLabel.sip │ ├── IDocEvents.sip │ ├── IDownBars.sip │ ├── IDrawing.sip │ ├── IDrawingObjects.sip │ ├── IDrawings.sip │ ├── IDropDown.sip │ ├── IDropDowns.sip │ ├── IDropLines.sip │ ├── IDummy.sip │ ├── IEditBox.sip │ ├── IEditBoxes.sip │ ├── IError.sip │ ├── IErrorBars.sip │ ├── IErrorCheckingOptions.sip │ ├── IErrors.sip │ ├── IFileExportConverter.sip │ ├── IFileExportConverters.sip │ ├── IFilter.sip │ ├── IFilters.sip │ ├── IFloor.sip │ ├── IFont.sip │ ├── IFormatColor.sip │ ├── IFormatCondition.sip │ ├── IFormatConditions.sip │ ├── IFreeformBuilder.sip │ ├── IFullSeriesCollection.sip │ ├── IGraphic.sip │ ├── IGridlines.sip │ ├── IGroupBox.sip │ ├── IGroupBoxes.sip │ ├── IGroupObject.sip │ ├── IGroupObjects.sip │ ├── IGroupShapes.sip │ ├── IHPageBreak.sip │ ├── IHPageBreaks.sip │ ├── IHeaderFooter.sip │ ├── IHiLoLines.sip │ ├── IHyperlink.sip │ ├── IHyperlinks.sip │ ├── IIcon.sip │ ├── IIconCriteria.sip │ ├── IIconCriterion.sip │ ├── IIconSet.sip │ ├── IIconSetCondition.sip │ ├── IIconSets.sip │ ├── IInterior.sip │ ├── IKRpcClient.sip │ ├── ILabel.sip │ ├── ILabels.sip │ ├── ILeaderLines.sip │ ├── ILegend.sip │ ├── ILegendEntries.sip │ ├── ILegendEntry.sip │ ├── ILegendKey.sip │ ├── ILine.sip │ ├── ILinearGradient.sip │ ├── ILines.sip │ ├── ILinkFormat.sip │ ├── IListBox.sip │ ├── IListBoxes.sip │ ├── IListColumn.sip │ ├── IListColumns.sip │ ├── IListDataFormat.sip │ ├── IListObject.sip │ ├── IListObjects.sip │ ├── IListRow.sip │ ├── IListRows.sip │ ├── IMailer.sip │ ├── IMenu.sip │ ├── IMenuBar.sip │ ├── IMenuBars.sip │ ├── IMenuItem.sip │ ├── IMenuItems.sip │ ├── IMenus.sip │ ├── IModel.sip │ ├── IModelChanges.sip │ ├── IModelColumnChange.sip │ ├── IModelColumnChanges.sip │ ├── IModelColumnName.sip │ ├── IModelColumnNames.sip │ ├── IModelConnection.sip │ ├── IModelMeasureName.sip │ ├── IModelMeasureNames.sip │ ├── IModelRelationship.sip │ ├── IModelRelationships.sip │ ├── IModelTable.sip │ ├── IModelTableColumn.sip │ ├── IModelTableColumns.sip │ ├── IModelTableNameChange.sip │ ├── IModelTableNameChanges.sip │ ├── IModelTableNames.sip │ ├── IModelTables.sip │ ├── IModule.sip │ ├── IModuleView.sip │ ├── IModules.sip │ ├── IMultiThreadedCalculation.sip │ ├── IName.sip │ ├── INames.sip │ ├── INegativeBarFormat.sip │ ├── IODBCConnection.sip │ ├── IODBCError.sip │ ├── IODBCErrors.sip │ ├── IOLEDBConnection.sip │ ├── IOLEDBError.sip │ ├── IOLEDBErrors.sip │ ├── IOLEFormat.sip │ ├── IOLEObjectEvents.sip │ ├── IOLEObjects.sip │ ├── IOptionButton.sip │ ├── IOptionButtons.sip │ ├── IOutline.sip │ ├── IOval.sip │ ├── IOvals.sip │ ├── IPage.sip │ ├── IPageSetup.sip │ ├── IPages.sip │ ├── IPane.sip │ ├── IPanes.sip │ ├── IParameter.sip │ ├── IParameters.sip │ ├── IPhonetic.sip │ ├── IPhonetics.sip │ ├── IPicture.sip │ ├── IPictures.sip │ ├── IPivotAxis.sip │ ├── IPivotCache.sip │ ├── IPivotCaches.sip │ ├── IPivotCell.sip │ ├── IPivotField.sip │ ├── IPivotFields.sip │ ├── IPivotFilter.sip │ ├── IPivotFilters.sip │ ├── IPivotFormula.sip │ ├── IPivotFormulas.sip │ ├── IPivotItem.sip │ ├── IPivotItemList.sip │ ├── IPivotItems.sip │ ├── IPivotLayout.sip │ ├── IPivotLine.sip │ ├── IPivotLineCells.sip │ ├── IPivotLines.sip │ ├── IPivotTable.sip │ ├── IPivotTableChangeList.sip │ ├── IPivotTables.sip │ ├── IPivotValueCell.sip │ ├── IPlotArea.sip │ ├── IPoint.sip │ ├── IPoints.sip │ ├── IProtectedViewWindow.sip │ ├── IProtectedViewWindows.sip │ ├── IProtection.sip │ ├── IPublishObjects.sip │ ├── IQueryTables.sip │ ├── IQuickAnalysis.sip │ ├── IRTD.sip │ ├── IRTDUpdateEvent.sip │ ├── IRange.sip │ ├── IRanges.sip │ ├── IRecentFile.sip │ ├── IRecentFiles.sip │ ├── IRectangle.sip │ ├── IRectangles.sip │ ├── IRectangularGradient.sip │ ├── IRefreshEvents.sip │ ├── IResearch.sip │ ├── IRoutingSlip.sip │ ├── IRtdServer.sip │ ├── IScenario.sip │ ├── IScenarios.sip │ ├── IScrollBar.sip │ ├── IScrollBars.sip │ ├── ISeries.sip │ ├── ISeriesCollection.sip │ ├── ISeriesLines.sip │ ├── IServerViewableItems.sip │ ├── IShape.sip │ ├── IShapeRange.sip │ ├── IShapes.sip │ ├── ISheetViews.sip │ ├── ISlicer.sip │ ├── ISlicerCache.sip │ ├── ISlicerCacheLevel.sip │ ├── ISlicerCacheLevels.sip │ ├── ISlicerCaches.sip │ ├── ISlicerItem.sip │ ├── ISlicerItems.sip │ ├── ISlicerPivotTables.sip │ ├── ISlicers.sip │ ├── ISmartTag.sip │ ├── ISmartTagAction.sip │ ├── ISmartTagActions.sip │ ├── ISmartTagOptions.sip │ ├── ISmartTagRecognizer.sip │ ├── ISmartTagRecognizers.sip │ ├── ISmartTags.sip │ ├── ISort.sip │ ├── ISortField.sip │ ├── ISortFields.sip │ ├── ISoundNote.sip │ ├── ISparkAxes.sip │ ├── ISparkColor.sip │ ├── ISparkHorizontalAxis.sip │ ├── ISparkPoints.sip │ ├── ISparkVerticalAxis.sip │ ├── ISparkline.sip │ ├── ISparklineGroup.sip │ ├── ISparklineGroups.sip │ ├── ISpeech.sip │ ├── ISpellingOptions.sip │ ├── ISpinner.sip │ ├── ISpinners.sip │ ├── IStyle.sip │ ├── IStyles.sip │ ├── ITab.sip │ ├── ITableObject.sip │ ├── ITableStyle.sip │ ├── ITableStyleElement.sip │ ├── ITableStyleElements.sip │ ├── ITableStyles.sip │ ├── ITextBox.sip │ ├── ITextBoxes.sip │ ├── ITextConnection.sip │ ├── ITextFrame.sip │ ├── ITickLabels.sip │ ├── ITimelineState.sip │ ├── ITimelineViewState.sip │ ├── IToolbar.sip │ ├── IToolbarButton.sip │ ├── IToolbarButtons.sip │ ├── IToolbars.sip │ ├── ITop10.sip │ ├── ITrendline.sip │ ├── ITrendlines.sip │ ├── IUniqueValues.sip │ ├── IUpBars.sip │ ├── IUsedObjects.sip │ ├── IUserAccess.sip │ ├── IUserAccessList.sip │ ├── IVPageBreak.sip │ ├── IVPageBreaks.sip │ ├── IValidation.sip │ ├── IValueChange.sip │ ├── IWalls.sip │ ├── IWatch.sip │ ├── IWatches.sip │ ├── IWindow.sip │ ├── IWindows.sip │ ├── IWorkbookConnection.sip │ ├── IWorkbookEvents.sip │ ├── IWorksheetDataConnection.sip │ ├── IWorksheetView.sip │ ├── IWorksheets.sip │ ├── IXPath.sip │ ├── IXmlDataBinding.sip │ ├── IXmlMap.sip │ ├── IXmlMaps.sip │ ├── IXmlNamespace.sip │ ├── IXmlNamespaces.sip │ ├── IXmlSchema.sip │ ├── IXmlSchemas.sip │ ├── LineFormat.sip │ ├── PictureFormat.sip │ ├── PublishObject.sip │ ├── ShadowFormat.sip │ ├── ShapeNode.sip │ ├── ShapeNodes.sip │ ├── Sheets.sip │ ├── Solver.sip │ ├── TextEffectFormat.sip │ ├── TextFrame2.sip │ ├── ThreeDFormat.sip │ ├── TreeviewControl.sip │ ├── WebOptions.sip │ ├── Workbooks.sip │ ├── WorksheetFunction.sip │ ├── _Application.sip │ ├── _Chart.sip │ ├── _DebugTools.sip │ ├── _IOLEObject.sip │ ├── _IQueryTable.sip │ ├── _Workbook.sip │ ├── _Worksheet.sip │ ├── enums.sip │ ├── mso_enum.sip │ └── rpcetapi.sip ├── rpcwppapi │ ├── ActionSetting.sip │ ├── ActionSettings.sip │ ├── AddIn.sip │ ├── AddIns.sip │ ├── Adjustments.sip │ ├── AnimationBehavior.sip │ ├── AnimationBehaviors.sip │ ├── AnimationPoint.sip │ ├── AnimationPoints.sip │ ├── AnimationSettings.sip │ ├── AutoCorrect.sip │ ├── Axes.sip │ ├── Axis.sip │ ├── AxisTitle.sip │ ├── Borders.sip │ ├── Broadcast.sip │ ├── BulletFormat.sip │ ├── CalloutFormat.sip │ ├── CanvasShapes.sip │ ├── CategoryCollection.sip │ ├── Cell.sip │ ├── CellRange.sip │ ├── Chart.sip │ ├── ChartArea.sip │ ├── ChartBorder.sip │ ├── ChartCategory.sip │ ├── ChartCharacters.sip │ ├── ChartColorFormat.sip │ ├── ChartData.sip │ ├── ChartFillFormat.sip │ ├── ChartFont.sip │ ├── ChartFormat.sip │ ├── ChartGroup.sip │ ├── ChartGroups.sip │ ├── ChartTitle.sip │ ├── Coauthoring.sip │ ├── Collection.sip │ ├── ColorEffect.sip │ ├── ColorFormat.sip │ ├── ColorScheme.sip │ ├── ColorSchemes.sip │ ├── Column.sip │ ├── Columns.sip │ ├── CommandEffect.sip │ ├── Comment.sip │ ├── Comments.sip │ ├── ConnectorFormat.sip │ ├── Corners.sip │ ├── CustomLayout.sip │ ├── CustomLayouts.sip │ ├── CustomerData.sip │ ├── DataLabel.sip │ ├── DataLabels.sip │ ├── DataTable.sip │ ├── DefaultWebOptions.sip │ ├── Design.sip │ ├── Designs.sip │ ├── Diagram.sip │ ├── DiagramNode.sip │ ├── DiagramNodeChildren.sip │ ├── DiagramNodes.sip │ ├── DisplayUnitLabel.sip │ ├── DocumentWindow.sip │ ├── DocumentWindows.sip │ ├── DownBars.sip │ ├── DropLines.sip │ ├── EApplication.sip │ ├── Effect.sip │ ├── EffectInformation.sip │ ├── EffectParameters.sip │ ├── ErrorBars.sip │ ├── ExtraColors.sip │ ├── FileConverter.sip │ ├── FileConverters.sip │ ├── FillFormat.sip │ ├── FilterEffect.sip │ ├── Floor.sip │ ├── Font.sip │ ├── Fonts.sip │ ├── FreeformBuilder.sip │ ├── FullSeriesCollection.sip │ ├── Gridlines.sip │ ├── GroupShapes.sip │ ├── Guide.sip │ ├── Guides.sip │ ├── HeaderFooter.sip │ ├── HeadersFooters.sip │ ├── HiLoLines.sip │ ├── Hyperlink.sip │ ├── Hyperlinks.sip │ ├── IKRpcClient.sip │ ├── Interior.sip │ ├── LeaderLines.sip │ ├── Legend.sip │ ├── LegendEntries.sip │ ├── LegendEntry.sip │ ├── LegendKey.sip │ ├── LineFormat.sip │ ├── LinkFormat.sip │ ├── MasterEvents.sip │ ├── MediaBookmark.sip │ ├── MediaBookmarks.sip │ ├── MediaFormat.sip │ ├── MotionEffect.sip │ ├── MouseDownHandler.sip │ ├── MouseTracker.sip │ ├── NamedSlideShow.sip │ ├── NamedSlideShows.sip │ ├── OLEFormat.sip │ ├── ObjectVerbs.sip │ ├── Options.sip │ ├── PageSetup.sip │ ├── Pane.sip │ ├── Panes.sip │ ├── ParagraphFormat.sip │ ├── PictureFormat.sip │ ├── PlaceholderFormat.sip │ ├── Placeholders.sip │ ├── PlaySettings.sip │ ├── Player.sip │ ├── PlotArea.sip │ ├── Point.sip │ ├── Points.sip │ ├── PresEvents.sip │ ├── Presentations.sip │ ├── PrintOptions.sip │ ├── PrintRange.sip │ ├── PrintRanges.sip │ ├── PropertyEffect.sip │ ├── ProtectedViewWindow.sip │ ├── ProtectedViewWindows.sip │ ├── PublishObject.sip │ ├── PublishObjects.sip │ ├── RGBColor.sip │ ├── ResampleMediaTask.sip │ ├── ResampleMediaTasks.sip │ ├── Research.sip │ ├── RotationEffect.sip │ ├── Row.sip │ ├── Rows.sip │ ├── Ruler.sip │ ├── RulerLevel.sip │ ├── RulerLevels.sip │ ├── ScaleEffect.sip │ ├── SectionProperties.sip │ ├── Selection.sip │ ├── Sequence.sip │ ├── Sequences.sip │ ├── Series.sip │ ├── SeriesCollection.sip │ ├── SeriesLines.sip │ ├── SetEffect.sip │ ├── ShadowFormat.sip │ ├── Shape.sip │ ├── ShapeNode.sip │ ├── ShapeNodes.sip │ ├── ShapeRange.sip │ ├── Shapes.sip │ ├── SldEvents.sip │ ├── SlideNavigation.sip │ ├── SlideRange.sip │ ├── SlideShowSettings.sip │ ├── SlideShowTransition.sip │ ├── SlideShowView.sip │ ├── SlideShowWindow.sip │ ├── SlideShowWindows.sip │ ├── Slides.sip │ ├── SoundEffect.sip │ ├── SoundFormat.sip │ ├── TabStop.sip │ ├── TabStops.sip │ ├── Table.sip │ ├── TableBackground.sip │ ├── TableStyle.sip │ ├── Tags.sip │ ├── TextEffectFormat.sip │ ├── TextFrame.sip │ ├── TextFrame2.sip │ ├── TextRange.sip │ ├── TextStyle.sip │ ├── TextStyleLevel.sip │ ├── TextStyleLevels.sip │ ├── TextStyles.sip │ ├── Theme.sip │ ├── ThemeVariant.sip │ ├── ThemeVariants.sip │ ├── ThreeDFormat.sip │ ├── TickLabels.sip │ ├── TimeLine.sip │ ├── Timing.sip │ ├── Trendline.sip │ ├── Trendlines.sip │ ├── UpBars.sip │ ├── View.sip │ ├── Walls.sip │ ├── WebOptions.sip │ ├── _Application.sip │ ├── _Master.sip │ ├── _PowerRex.sip │ ├── _Presentation.sip │ ├── _Slide.sip │ ├── enums.sip │ └── rpcwppapi.sip └── rpcwpsapi │ ├── AddIn.sip │ ├── AddIns.sip │ ├── Adjustments.sip │ ├── AutoCaption.sip │ ├── AutoCaptions.sip │ ├── AutoCorrect.sip │ ├── AutoCorrectEntries.sip │ ├── AutoCorrectEntry.sip │ ├── AutoTextEntries.sip │ ├── AutoTextEntry.sip │ ├── Axes.sip │ ├── Axis.sip │ ├── AxisTitle.sip │ ├── Bibliography.sip │ ├── Bookmark.sip │ ├── Bookmarks.sip │ ├── Border.sip │ ├── Borders.sip │ ├── Break.sip │ ├── Breaks.sip │ ├── Broadcast.sip │ ├── Browser.sip │ ├── BuildingBlock.sip │ ├── BuildingBlockEntries.sip │ ├── BuildingBlockType.sip │ ├── BuildingBlockTypes.sip │ ├── BuildingBlocks.sip │ ├── CalloutFormat.sip │ ├── CanvasShapes.sip │ ├── CaptionLabel.sip │ ├── CaptionLabels.sip │ ├── Categories.sip │ ├── Category.sip │ ├── CategoryCollection.sip │ ├── Cell.sip │ ├── Cells.sip │ ├── Characters.sip │ ├── Chart.sip │ ├── ChartArea.sip │ ├── ChartBorder.sip │ ├── ChartCategory.sip │ ├── ChartCharacters.sip │ ├── ChartColorFormat.sip │ ├── ChartData.sip │ ├── ChartFillFormat.sip │ ├── ChartFont.sip │ ├── ChartFormat.sip │ ├── ChartGroup.sip │ ├── ChartGroups.sip │ ├── ChartTitle.sip │ ├── CheckBox.sip │ ├── CoAuthLock.sip │ ├── CoAuthLocks.sip │ ├── CoAuthUpdate.sip │ ├── CoAuthUpdates.sip │ ├── CoAuthor.sip │ ├── CoAuthoring.sip │ ├── CoAuthors.sip │ ├── ColorFormat.sip │ ├── Column.sip │ ├── Columns.sip │ ├── Comment.sip │ ├── Comments.sip │ ├── ConditionalStyle.sip │ ├── Conflict.sip │ ├── Conflicts.sip │ ├── ConnectorFormat.sip │ ├── ContentControl.sip │ ├── ContentControlListEntries.sip │ ├── ContentControlListEntry.sip │ ├── ContentControls.sip │ ├── Corners.sip │ ├── CustomLabel.sip │ ├── CustomLabels.sip │ ├── CustomProperties.sip │ ├── CustomProperty.sip │ ├── DataLabel.sip │ ├── DataLabels.sip │ ├── DataTable.sip │ ├── DefaultWebOptions.sip │ ├── Diagram.sip │ ├── DiagramNode.sip │ ├── DiagramNodeChildren.sip │ ├── DiagramNodes.sip │ ├── Dialog.sip │ ├── Dialogs.sip │ ├── Dictionaries.sip │ ├── Dictionary.sip │ ├── DisplayUnitLabel.sip │ ├── DocumentField.sip │ ├── DocumentFields.sip │ ├── Documents.sip │ ├── DownBars.sip │ ├── DropCap.sip │ ├── DropDown.sip │ ├── DropLines.sip │ ├── Editor.sip │ ├── Editors.sip │ ├── Email.sip │ ├── EmailAuthor.sip │ ├── EmailOptions.sip │ ├── EmailSignature.sip │ ├── EmailSignatureEntries.sip │ ├── EmailSignatureEntry.sip │ ├── Endnote.sip │ ├── EndnoteOptions.sip │ ├── Endnotes.sip │ ├── Envelope.sip │ ├── ErrorBars.sip │ ├── Field.sip │ ├── Fields.sip │ ├── FileConverter.sip │ ├── FileConverters.sip │ ├── FillFormat.sip │ ├── Find.sip │ ├── FirstLetterException.sip │ ├── FirstLetterExceptions.sip │ ├── Floor.sip │ ├── FontNames.sip │ ├── Footnote.sip │ ├── FootnoteOptions.sip │ ├── Footnotes.sip │ ├── FormField.sip │ ├── FormFields.sip │ ├── Frame.sip │ ├── Frames.sip │ ├── Frameset.sip │ ├── FreeformBuilder.sip │ ├── FullSeriesCollection.sip │ ├── GlowFormat.sip │ ├── Gridlines.sip │ ├── GroupShapes.sip │ ├── HTMLDivision.sip │ ├── HTMLDivisions.sip │ ├── HangulAndAlphabetException.sip │ ├── HangulAndAlphabetExceptions.sip │ ├── HangulHanjaConversionDictionaries.sip │ ├── HeaderFooter.sip │ ├── HeadersFooters.sip │ ├── HeadingStyle.sip │ ├── HeadingStyles.sip │ ├── HiLoLines.sip │ ├── HorizontalLineFormat.sip │ ├── Hyperlink.sip │ ├── Hyperlinks.sip │ ├── IApplicationEvents.sip │ ├── IApplicationEvents2.sip │ ├── IApplicationEvents3.sip │ ├── IApplicationEvents4.sip │ ├── IKRpcClient.sip │ ├── Index.sip │ ├── Indexes.sip │ ├── InlineShape.sip │ ├── InlineShapes.sip │ ├── Interior.sip │ ├── KeyBinding.sip │ ├── KeyBindings.sip │ ├── KeysBoundTo.sip │ ├── Language.sip │ ├── Languages.sip │ ├── LeaderLines.sip │ ├── Legend.sip │ ├── LegendEntries.sip │ ├── LegendEntry.sip │ ├── LegendKey.sip │ ├── Line.sip │ ├── LineFormat.sip │ ├── LineNumbering.sip │ ├── Lines.sip │ ├── LinkFormat.sip │ ├── List.sip │ ├── ListEntries.sip │ ├── ListEntry.sip │ ├── ListFormat.sip │ ├── ListGalleries.sip │ ├── ListGallery.sip │ ├── ListLevel.sip │ ├── ListLevels.sip │ ├── ListParagraphs.sip │ ├── ListTemplate.sip │ ├── ListTemplates.sip │ ├── Lists.sip │ ├── MailMerge.sip │ ├── MailMergeDataField.sip │ ├── MailMergeDataFields.sip │ ├── MailMergeDataSource.sip │ ├── MailMergeField.sip │ ├── MailMergeFieldName.sip │ ├── MailMergeFieldNames.sip │ ├── MailMergeFields.sip │ ├── MailMessage.sip │ ├── Mailer.sip │ ├── MailingLabel.sip │ ├── MappedDataField.sip │ ├── MappedDataFields.sip │ ├── OLEFormat.sip │ ├── OMath.sip │ ├── OMathAcc.sip │ ├── OMathArgs.sip │ ├── OMathAutoCorrect.sip │ ├── OMathAutoCorrectEntries.sip │ ├── OMathAutoCorrectEntry.sip │ ├── OMathBar.sip │ ├── OMathBorderBox.sip │ ├── OMathBox.sip │ ├── OMathBreak.sip │ ├── OMathBreaks.sip │ ├── OMathDelim.sip │ ├── OMathEqArray.sip │ ├── OMathFrac.sip │ ├── OMathFunc.sip │ ├── OMathFunction.sip │ ├── OMathFunctions.sip │ ├── OMathGroupChar.sip │ ├── OMathLimLow.sip │ ├── OMathLimUpp.sip │ ├── OMathMat.sip │ ├── OMathMatCol.sip │ ├── OMathMatCols.sip │ ├── OMathMatRow.sip │ ├── OMathMatRows.sip │ ├── OMathNary.sip │ ├── OMathPhantom.sip │ ├── OMathRad.sip │ ├── OMathRecognizedFunction.sip │ ├── OMathRecognizedFunctions.sip │ ├── OMathScrPre.sip │ ├── OMathScrSub.sip │ ├── OMathScrSubSup.sip │ ├── OMathScrSup.sip │ ├── OMaths.sip │ ├── OfdExportOptions.sip │ ├── Options.sip │ ├── OtherCorrectionsException.sip │ ├── OtherCorrectionsExceptions.sip │ ├── Page.sip │ ├── PageNumber.sip │ ├── PageNumbers.sip │ ├── PageSetup.sip │ ├── Pages.sip │ ├── Pane.sip │ ├── Panes.sip │ ├── Paragraph.sip │ ├── Paragraphs.sip │ ├── PdfExportOptions.sip │ ├── PictureFormat.sip │ ├── PlotArea.sip │ ├── Point.sip │ ├── Points.sip │ ├── ProofreadingErrors.sip │ ├── ProtectedViewWindow.sip │ ├── ProtectedViewWindows.sip │ ├── Range.sip │ ├── ReadabilityStatistic.sip │ ├── ReadabilityStatistics.sip │ ├── RecentFile.sip │ ├── RecentFiles.sip │ ├── Rectangle.sip │ ├── Rectangles.sip │ ├── ReflectionFormat.sip │ ├── RepeatingSectionItem.sip │ ├── RepeatingSectionItemColl.sip │ ├── Replacement.sip │ ├── Research.sip │ ├── Reviewer.sip │ ├── Reviewers.sip │ ├── Revision.sip │ ├── Revisions.sip │ ├── RevisionsFilter.sip │ ├── RoutingSlip.sip │ ├── Row.sip │ ├── Rows.sip │ ├── Section.sip │ ├── Sections.sip │ ├── Selection.sip │ ├── Sentences.sip │ ├── Series.sip │ ├── SeriesCollection.sip │ ├── SeriesLines.sip │ ├── Shading.sip │ ├── ShadowFormat.sip │ ├── Shape.sip │ ├── ShapeNode.sip │ ├── ShapeNodes.sip │ ├── ShapeRange.sip │ ├── Shapes.sip │ ├── SmartTag.sip │ ├── SmartTagAction.sip │ ├── SmartTagActions.sip │ ├── SmartTagRecognizer.sip │ ├── SmartTagRecognizers.sip │ ├── SmartTagType.sip │ ├── SmartTagTypes.sip │ ├── SmartTags.sip │ ├── SoftEdgeFormat.sip │ ├── Source.sip │ ├── Sources.sip │ ├── SpellingSuggestion.sip │ ├── SpellingSuggestions.sip │ ├── StoryRanges.sip │ ├── Style.sip │ ├── StyleSheet.sip │ ├── StyleSheets.sip │ ├── Styles.sip │ ├── Subdocument.sip │ ├── Subdocuments.sip │ ├── SynonymInfo.sip │ ├── System.sip │ ├── TabStop.sip │ ├── TabStops.sip │ ├── Table.sip │ ├── TableOfAuthorities.sip │ ├── TableOfAuthoritiesCategory.sip │ ├── TableOfContents.sip │ ├── TableOfFigures.sip │ ├── TableStyle.sip │ ├── Tables.sip │ ├── TablesOfAuthorities.sip │ ├── TablesOfAuthoritiesCategories.sip │ ├── TablesOfContents.sip │ ├── TablesOfFigures.sip │ ├── Task.sip │ ├── TaskPane.sip │ ├── TaskPanes.sip │ ├── Tasks.sip │ ├── Template.sip │ ├── Templates.sip │ ├── TextColumn.sip │ ├── TextColumns.sip │ ├── TextEffectFormat.sip │ ├── TextFrame.sip │ ├── TextInput.sip │ ├── TextRetrievalMode.sip │ ├── ThreeDFormat.sip │ ├── TickLabels.sip │ ├── Trendline.sip │ ├── Trendlines.sip │ ├── TwoInitialCapsException.sip │ ├── TwoInitialCapsExceptions.sip │ ├── UndoRecord.sip │ ├── UpBars.sip │ ├── Variable.sip │ ├── Variables.sip │ ├── Version.sip │ ├── Versions.sip │ ├── View.sip │ ├── Walls.sip │ ├── WebOptions.sip │ ├── Window.sip │ ├── Windows.sip │ ├── Words.sip │ ├── WrapFormat.sip │ ├── XMLChildNodeSuggestion.sip │ ├── XMLChildNodeSuggestions.sip │ ├── XMLMapping.sip │ ├── XMLNamespace.sip │ ├── XMLNamespaces.sip │ ├── XMLNode.sip │ ├── XMLNodes.sip │ ├── XMLSchemaReference.sip │ ├── XMLSchemaReferences.sip │ ├── XSLTransform.sip │ ├── XSLTransforms.sip │ ├── Zoom.sip │ ├── Zooms.sip │ ├── _Application.sip │ ├── _Application_extend.sip │ ├── _Document.sip │ ├── _Font.sip │ ├── _LetterContent.sip │ ├── _OLEControl.sip │ ├── _ParagraphFormat.sip │ ├── enums.sip │ ├── mso_enum.sip │ └── rpcwpsapi.sip └── tests ├── test_iter.py ├── test_property.py ├── test_rpcetapi.py ├── test_rpcevents.py ├── test_rpcproxy.py ├── test_rpcwppapi.py └── test_rpcwpsapi.py /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: bug 6 | assignees: timxx 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior 15 | 16 | **Expected behavior** 17 | A clear and concise description of what you expected to happen. 18 | 19 | **Screenshots** 20 | If applicable, add screenshots to help explain your problem. 21 | 22 | **Environment** 23 | - Distribution: [e.g. Ubuntu 18.04] 24 | - Versions: [e.g. pywpsrpc 1.0.2, WPS Office 11.1.0.9126] 25 | - Installed from pip: [yes/build from source] 26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Build 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | tags: 7 | - '*' 8 | pull_request: 9 | branches: [ master ] 10 | 11 | jobs: 12 | build: 13 | runs-on: ubuntu-20.04 14 | strategy: 15 | fail-fast: false 16 | matrix: 17 | python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] 18 | permissions: 19 | id-token: write 20 | 21 | steps: 22 | - name: Checkout repository and submodules 23 | uses: actions/checkout@v2 24 | with: 25 | submodules: recursive 26 | - name: Set up Python ${{ matrix.python-version }} 27 | uses: actions/setup-python@v2 28 | with: 29 | python-version: ${{ matrix.python-version }} 30 | - name: Install dependencies 31 | run: | 32 | sudo apt install g++ qtbase5-dev qt5-default 33 | python -m pip install --upgrade pip 34 | if [ "${{ matrix.python-version }}" == "3.6" ] || [ "${{ matrix.python-version }}" == "3.7" ]; then 35 | python -m pip install sip==6.5.1 twine 36 | else 37 | python -m pip install sip twine 38 | fi 39 | - name: Build 40 | run: | 41 | sip-sdist 42 | sip-wheel --verbose 43 | mkdir -p dist 44 | mv pywpsrpc-*.tar.gz pywpsrpc-*.whl dist 45 | - name: Upload 46 | if: ${{ github.ref_type == 'tag' || startsWith(github.event.head_commit.message, '[upload]') }} 47 | uses: pypa/gh-action-pypi-publish@release/v1 48 | with: 49 | skip-existing: true 50 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | Makefile 3 | sip*.cpp 4 | sip*.h 5 | *.o 6 | *.so 7 | *.sbf 8 | *.exp 9 | *.stash 10 | *.a 11 | *.docx 12 | *.doc 13 | *.rtf 14 | *.wps 15 | *.xlsx 16 | *.xls 17 | *.et 18 | *.pptx 19 | *.ppt 20 | *.wpt 21 | __pycache__ 22 | build 23 | *.tar 24 | *.gz 25 | *.whl 26 | out 27 | .~* 28 | dist 29 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "wpsrpc-sdk"] 2 | path = wpsrpc-sdk 3 | url = git@github.com:timxx/wpsrpc-sdk.git 4 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Python: Current File", 9 | "type": "python", 10 | "request": "launch", 11 | "program": "${file}", 12 | "console": "integratedTerminal" 13 | } 14 | ] 15 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Weitian Leung 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- 1 | # examples for pywpsrpc 2 | 3 | Each root directory contains examples for corresponding module. 4 | 5 | 6 | To run the demos, you should have installed the pywpsrpc package. 7 | -------------------------------------------------------------------------------- /examples/rpcetapi/README.md: -------------------------------------------------------------------------------- 1 | ## Convert To PDF 2 | 3 | - et_convert.py 4 | 5 | xlsx,xls ->pdf 6 | 7 | For example: 8 | 9 | ```shell 10 | et_convert.py --format "pdf" test.xlsx 11 | ``` 12 | 13 | ![](https://fastly.jsdelivr.net/gh/qbmzc/images/2022/202206190956257.png) 14 | 15 | [open.wps.cn](https://open.wps.cn/docs/client/wpsLoad) 16 | -------------------------------------------------------------------------------- /examples/rpcwppapi/README.md: -------------------------------------------------------------------------------- 1 | ## Convert To PDF 2 | 3 | - wpp_convert.py 4 | 5 | pptx,ppt ->pdf 6 | 7 | For example: 8 | 9 | ```shell 10 | wpp_convert.py --format "pdf" test.pptx 11 | ``` 12 | 13 | ![](https://fastly.jsdelivr.net/gh/qbmzc/images/2022/202206190956257.png) 14 | 15 | [open.wps.cn](https://open.wps.cn/docs/client/wpsLoad) 16 | -------------------------------------------------------------------------------- /examples/rpcwpsapi/convertto/README.md: -------------------------------------------------------------------------------- 1 | # convert document to the specify format 2 | 3 | ## How to use 4 | 5 | convertto.py --format "format" "file path 1" "file path2" 6 | 7 | For example: 8 | ``` 9 | convertto.py --format "pdf" README.md 10 | ``` 11 | 12 | This will generate the README.pdf in *out* directory -------------------------------------------------------------------------------- /examples/rpcwpsapi/embedded/README.md: -------------------------------------------------------------------------------- 1 | # Embedded WPS Office into sepcify window 2 | 3 | This demo shows how to embed the wps window into the one we created 4 | -------------------------------------------------------------------------------- /py/__init__.py: -------------------------------------------------------------------------------- 1 | #** 2 | # * Copyright (c) 2020 Weitian Leung 3 | # * 4 | # * This file is part of pywpsrpc. 5 | # * 6 | # * This file is distributed under the MIT License. 7 | # * See the LICENSE file for details. 8 | # * 9 | #* 10 | 11 | from .utils import (RpcException, RpcProxy, RpcIter) 12 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | requires = ["sip >=6"] 3 | build-backend = "sipbuild.api" 4 | 5 | [tool.sip.metadata] 6 | name = "pywpsrpc" 7 | version = "2.3.12" 8 | summary = "Python bindings for the WPS Office RPC" 9 | home-page = "https://github.com/timxx/pywpsrpc" 10 | author = "Weitian Leung" 11 | author-email = "weitianleung@gmail.com" 12 | license = "MIT" 13 | description-file = "README.md" 14 | description-content-type = "text/markdown" 15 | platform = "Linux" 16 | 17 | [tool.sip.project] 18 | sdist-excludes = [".gitignore", ".travis.yml", "*.tar.gz", 19 | ".git/*", ".git/*/*", ".git/*/*/*", ".git/*/*/*/*", 20 | ".git/*/*/*/*/*", ".git/*/*/*/*/*/*", ".git/*/*/*/*/*/*/*", 21 | ".github/*/*", ".vscode/*", ".gitmodules", "wpsrpc-sdk/.git", 22 | "build/*", "build/*/*", "build/*/*/*", "build/.*"] 23 | -------------------------------------------------------------------------------- /sip/common/ksoapi/Adjustments.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct Adjustments : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | int *Count /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | int count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT get_Item( 28 | int Index, 29 | single *Val /Out/) = 0; 30 | 31 | single __getitem__(int index) const; 32 | %MethodCode 33 | ksoapi::single prop = 0; 34 | if (sipCpp->get_Item(a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT put_Item( 41 | int Index, 42 | single Val) = 0; 43 | 44 | int getCount(); 45 | %MethodCode 46 | int prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | }; 62 | }; 63 | -------------------------------------------------------------------------------- /sip/common/ksoapi/AnswerWizard.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct AnswerWizard : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Files( 17 | AnswerWizardFiles **Files /Out/) = 0; 18 | 19 | virtual HRESULT ClearFileList() = 0; 20 | 21 | virtual HRESULT ResetFileList() = 0; 22 | 23 | AnswerWizardFiles* getFiles(); 24 | %MethodCode 25 | ksoapi::AnswerWizardFiles *prop = nullptr; 26 | HRESULT hr = sipCpp->get_Files(&prop); 27 | if (hr != S_OK) 28 | { 29 | PyErr_Format(PyExc_AttributeError, 30 | "Call 'get_Files()' failed with 0x%x", hr); 31 | return nullptr; 32 | } 33 | else 34 | { 35 | sipRes = prop; 36 | } 37 | %End 38 | 39 | %Property(name=Files, get=getFiles) 40 | }; 41 | }; 42 | -------------------------------------------------------------------------------- /sip/common/ksoapi/Axes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct Axes : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *pval /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT get_Item( 28 | XlAxisType Type, 29 | XlAxisGroup AxisGroup = ksoapi::xlPrimary, 30 | IMsoAxis **RHS /Out/ = 0) = 0; 31 | 32 | virtual HRESULT get__Default( 33 | XlAxisType Type, 34 | XlAxisGroup AxisGroup = ksoapi::xlPrimary, 35 | IMsoAxis **RHS /Out/ = 0) = 0; 36 | 37 | long getCount(); 38 | %MethodCode 39 | long prop = 0; 40 | HRESULT hr = sipCpp->get_Count(&prop); 41 | if (hr != S_OK) 42 | { 43 | PyErr_Format(PyExc_AttributeError, 44 | "Call 'get_Count()' failed with 0x%x", hr); 45 | return nullptr; 46 | } 47 | else 48 | { 49 | sipRes = prop; 50 | } 51 | %End 52 | 53 | %Property(name=Count, get=getCount) 54 | 55 | }; 56 | }; 57 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ChartGroups.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ChartGroups : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *RHS /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT Index, 29 | IMsoChartGroup **RHS /Out/) = 0; 30 | 31 | IMsoChartGroup* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | ksoapi::IMsoChartGroup *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | long getCount(); 41 | %MethodCode 42 | long prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ContactCard.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ContactCard : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Close() = 0; 17 | 18 | virtual HRESULT Show( 19 | MsoContactCardStyle CardStyle, 20 | long RectangleLeft, 21 | long RectangleRight, 22 | long RectangleTop, 23 | long RectangleBottom, 24 | long HorizontalPosition, 25 | VARIANT_BOOL ShowWithDelay = VARIANT_FALSE) = 0; 26 | 27 | }; 28 | }; 29 | -------------------------------------------------------------------------------- /sip/common/ksoapi/CustomTaskPaneEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct CustomTaskPaneEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual void VisibleStateChange( 17 | _CustomTaskPane *CustomTaskPaneInst) = 0; 18 | 19 | virtual void DockPositionStateChange( 20 | _CustomTaskPane *CustomTaskPaneInst) = 0; 21 | 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /sip/common/ksoapi/CustomXMLNodes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct CustomXMLNodes : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *plCount /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT get_Item( 28 | long Index, 29 | CustomXMLNode **ppNode /Out/) = 0; 30 | 31 | CustomXMLNode* __getitem__(long index) const; 32 | %MethodCode 33 | ksoapi::CustomXMLNode *prop = nullptr; 34 | if (sipCpp->get_Item(a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | long getCount(); 41 | %MethodCode 42 | long prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/common/ksoapi/CustomXMLPrefixMapping.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct CustomXMLPrefixMapping : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Prefix( 17 | BSTR *pbstrPrefix /Out/) = 0; 18 | 19 | virtual HRESULT get_NamespaceURI( 20 | BSTR *pbstrNamespaceURI /Out/) = 0; 21 | 22 | BSTR getPrefix(); 23 | %MethodCode 24 | BSTR *prop = new BSTR; 25 | HRESULT hr = sipCpp->get_Prefix(prop); 26 | if (hr != S_OK) 27 | { 28 | delete prop; 29 | PyErr_Format(PyExc_AttributeError, 30 | "Call 'get_Prefix()' failed with 0x%x", hr); 31 | return nullptr; 32 | } 33 | else 34 | { 35 | sipRes = prop; 36 | } 37 | %End 38 | 39 | %Property(name=Prefix, get=getPrefix) 40 | 41 | BSTR getNamespaceURI(); 42 | %MethodCode 43 | BSTR *prop = new BSTR; 44 | HRESULT hr = sipCpp->get_NamespaceURI(prop); 45 | if (hr != S_OK) 46 | { 47 | delete prop; 48 | PyErr_Format(PyExc_AttributeError, 49 | "Call 'get_NamespaceURI()' failed with 0x%x", hr); 50 | return nullptr; 51 | } 52 | else 53 | { 54 | sipRes = prop; 55 | } 56 | %End 57 | 58 | %Property(name=NamespaceURI, get=getNamespaceURI) 59 | }; 60 | }; 61 | -------------------------------------------------------------------------------- /sip/common/ksoapi/DiagramNodes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct DiagramNodes : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Item( 17 | VARIANT Index, 18 | DiagramNode **ppdn /Out/) = 0; 19 | 20 | DiagramNode* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | ksoapi::DiagramNode *prop = nullptr; 23 | if (sipCpp->Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT SelectAll() = 0; 30 | 31 | virtual HRESULT get_Count( 32 | int *iDiagramNodes /Out/) = 0; 33 | 34 | Py_ssize_t __len__() const; 35 | %MethodCode 36 | int count = 0; 37 | if (sipCpp->get_Count(&count) != S_OK) 38 | count = 0; 39 | sipRes = count; 40 | %End 41 | 42 | int getCount(); 43 | %MethodCode 44 | int prop = 0; 45 | HRESULT hr = sipCpp->get_Count(&prop); 46 | if (hr != S_OK) 47 | { 48 | PyErr_Format(PyExc_AttributeError, 49 | "Call 'get_Count()' failed with 0x%x", hr); 50 | return nullptr; 51 | } 52 | else 53 | { 54 | sipRes = prop; 55 | } 56 | %End 57 | 58 | %Property(name=Count, get=getCount) 59 | }; 60 | }; 61 | -------------------------------------------------------------------------------- /sip/common/ksoapi/DocumentInspectors.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct DocumentInspectors : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | int Index, 18 | DocumentInspector **ppidisp /Out/) = 0; 19 | 20 | DocumentInspector* __getitem__(int index) const; 21 | %MethodCode 22 | ksoapi::DocumentInspector *prop = nullptr; 23 | if (sipCpp->get_Item(a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | int *pcItems /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | int count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/EffectParameters.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct EffectParameters : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | VARIANT Index, 18 | EffectParameter **EffectParameter /Out/) = 0; 19 | 20 | EffectParameter* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | ksoapi::EffectParameter *prop = nullptr; 23 | if (sipCpp->get_Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | int *Count /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | int count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/FileDialogFilter.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct FileDialogFilter : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Extensions( 17 | BSTR *Extensions /Out/) = 0; 18 | 19 | virtual HRESULT get_Description( 20 | BSTR *Description /Out/) = 0; 21 | 22 | BSTR getExtensions(); 23 | %MethodCode 24 | BSTR *prop = new BSTR; 25 | HRESULT hr = sipCpp->get_Extensions(prop); 26 | if (hr != S_OK) 27 | { 28 | delete prop; 29 | PyErr_Format(PyExc_AttributeError, 30 | "Call 'get_Extensions()' failed with 0x%x", hr); 31 | return nullptr; 32 | } 33 | else 34 | { 35 | sipRes = prop; 36 | } 37 | %End 38 | 39 | %Property(name=Extensions, get=getExtensions) 40 | 41 | BSTR getDescription(); 42 | %MethodCode 43 | BSTR *prop = new BSTR; 44 | HRESULT hr = sipCpp->get_Description(prop); 45 | if (hr != S_OK) 46 | { 47 | delete prop; 48 | PyErr_Format(PyExc_AttributeError, 49 | "Call 'get_Description()' failed with 0x%x", hr); 50 | return nullptr; 51 | } 52 | else 53 | { 54 | sipRes = prop; 55 | } 56 | %End 57 | 58 | %Property(name=Description, get=getDescription) 59 | }; 60 | }; 61 | -------------------------------------------------------------------------------- /sip/common/ksoapi/FileDialogSelectedItems.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct FileDialogSelectedItems : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *pcFiles /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | int Index, 29 | BSTR *Item /Out/) = 0; 30 | 31 | BSTR __getitem__(int index) const; 32 | %MethodCode 33 | BSTR *prop = new BSTR; 34 | if (sipCpp->Item(a0, prop) != S_OK) 35 | { 36 | delete prop; 37 | sipIsErr = 1; 38 | } 39 | else 40 | { 41 | sipRes = prop; 42 | } 43 | %End 44 | 45 | long getCount(); 46 | %MethodCode 47 | long prop = 0; 48 | HRESULT hr = sipCpp->get_Count(&prop); 49 | if (hr != S_OK) 50 | { 51 | PyErr_Format(PyExc_AttributeError, 52 | "Call 'get_Count()' failed with 0x%x", hr); 53 | return nullptr; 54 | } 55 | else 56 | { 57 | sipRes = prop; 58 | } 59 | %End 60 | 61 | %Property(name=Count, get=getCount) 62 | }; 63 | }; 64 | -------------------------------------------------------------------------------- /sip/common/ksoapi/FoundFiles.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct FoundFiles : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | int Index, 18 | long lcid, 19 | BSTR *pbstrFile /Out/) = 0; 20 | 21 | virtual HRESULT get_Count( 22 | long *pc /Out/) = 0; 23 | 24 | Py_ssize_t __len__() const; 25 | %MethodCode 26 | long count = 0; 27 | if (sipCpp->get_Count(&count) != S_OK) 28 | count = 0; 29 | sipRes = count; 30 | %End 31 | 32 | long getCount(); 33 | %MethodCode 34 | long prop = 0; 35 | HRESULT hr = sipCpp->get_Count(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Count()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Count, get=getCount) 49 | 50 | }; 51 | }; 52 | -------------------------------------------------------------------------------- /sip/common/ksoapi/FreeformBuilder.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct FreeformBuilder : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT AddNodes( 17 | MsoSegmentType SegmentType, 18 | MsoEditingType EditingType, 19 | single X1, 20 | single Y1, 21 | single X2 = 0, 22 | single Y2 = 0, 23 | single X3 = 0, 24 | single Y3 = 0) = 0; 25 | 26 | virtual HRESULT ConvertToShape( 27 | Shape **Freeform /Out/) = 0; 28 | }; 29 | }; 30 | -------------------------------------------------------------------------------- /sip/common/ksoapi/FullSeriesCollection.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct FullSeriesCollection : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *RHS /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT Index, 29 | IMsoSeries **RHS /Out/) = 0; 30 | 31 | IMsoSeries* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | ksoapi::IMsoSeries *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT get__Default( 41 | VARIANT Index, 42 | IMsoSeries **RHS /Out/) = 0; 43 | 44 | long getCount(); 45 | %MethodCode 46 | long prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | }; 62 | }; 63 | -------------------------------------------------------------------------------- /sip/common/ksoapi/GroupShapes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct GroupShapes : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | int *pnShapes /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | int count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT Index, 29 | Shape **Item /Out/) = 0; 30 | 31 | Shape* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | ksoapi::Shape *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT Range( 41 | VARIANT Index, 42 | ShapeRange **Range /Out/) = 0; 43 | 44 | int getCount(); 45 | %MethodCode 46 | int prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | 62 | }; 63 | }; 64 | -------------------------------------------------------------------------------- /sip/common/ksoapi/HTMLProjectItems.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct HTMLProjectItems : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Item( 17 | VARIANT *Index, 18 | HTMLProjectItem **RetValue /Out/) = 0; 19 | 20 | HTMLProjectItem* __getitem__(VARIANT *index) const; 21 | %MethodCode 22 | ksoapi::HTMLProjectItem *prop = nullptr; 23 | if (sipCpp->Item(a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | long *RetValue /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | long count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | long getCount(); 41 | %MethodCode 42 | long prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IAssistance.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IAssistance : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT ShowHelp( 17 | BSTR HelpId = 0, 18 | BSTR Scope = 0) = 0; 19 | 20 | virtual HRESULT SearchHelp( 21 | BSTR Query, 22 | BSTR Scope = 0) = 0; 23 | 24 | virtual HRESULT SetDefaultContext( 25 | BSTR HelpId) = 0; 26 | 27 | virtual HRESULT ClearDefaultContext( 28 | BSTR HelpId) = 0; 29 | 30 | }; 31 | }; 32 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IBlogPictureExtensibility.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IBlogPictureExtensibility : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT BlogPictureProviderProperties( 17 | BSTR *BlogPictureProvider /Out/, 18 | BSTR *FriendlyName /Out/) = 0; 19 | 20 | virtual HRESULT CreatePictureAccount( 21 | BSTR Account, 22 | BSTR BlogProvider, 23 | long ParentWindow, 24 | IDispatch *Document) = 0; 25 | 26 | virtual HRESULT PublishPicture( 27 | BSTR Account, 28 | long ParentWindow, 29 | IDispatch *Document, 30 | IUnknown *Image, 31 | BSTR *PictureURI /Out/, 32 | long ImageType) = 0; 33 | 34 | }; 35 | }; 36 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ICTPFactory.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ICTPFactory : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT CreateCTP( 17 | BSTR CTPAxID, 18 | BSTR CTPTitle, 19 | VARIANT CTPParentWindow = argMissing2(), 20 | _CustomTaskPane **CTPInst /Out/ = 0) = 0; 21 | 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ICommandBarButtonEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ICommandBarButtonEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual void Click( 17 | CommandBarButton *Ctrl, 18 | VARIANT_BOOL *CancelDefault /In,Out/) = 0; 19 | 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ICommandBarComboBoxEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ICommandBarComboBoxEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual void Change( 17 | CommandBarComboBox *Ctrl) = 0; 18 | 19 | }; 20 | }; 21 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ICommandBarsEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ICommandBarsEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual void OnUpdate() = 0; 17 | 18 | }; 19 | }; 20 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IConverter.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IConverter : public IUnknown /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT HrInitConverter( 17 | IConverterApplicationPreferences *pcap, 18 | IConverterPreferences **ppcp /Out/, 19 | IConverterUICallback *pcuic) = 0; 20 | 21 | virtual HRESULT HrUninitConverter( 22 | IConverterUICallback *pcuic) = 0; 23 | 24 | virtual HRESULT HrImport( 25 | BSTR bstrSourcePath, 26 | BSTR bstrDestPath, 27 | IConverterApplicationPreferences *pcap, 28 | IConverterPreferences **ppcp /Out/, 29 | IConverterUICallback *pcuic) = 0; 30 | 31 | virtual HRESULT HrExport( 32 | BSTR bstrSourcePath, 33 | BSTR bstrDestPath, 34 | BSTR bstrClass, 35 | IConverterApplicationPreferences *pcap, 36 | IConverterPreferences **ppcp /Out/, 37 | IConverterUICallback *pcuic) = 0; 38 | 39 | virtual HRESULT HrGetFormat( 40 | BSTR bstrPath, 41 | BSTR *pbstrClass /Out/, 42 | IConverterApplicationPreferences *pcap, 43 | IConverterPreferences **ppcp /Out/, 44 | IConverterUICallback *pcuic) = 0; 45 | 46 | virtual HRESULT HrGetErrorString( 47 | long hrErr, 48 | BSTR *pbstrErrorMsg /Out/, 49 | IConverterApplicationPreferences *pcap) = 0; 50 | 51 | }; 52 | }; 53 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IConverterApplicationPreferences.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IConverterApplicationPreferences : public IUnknown /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT HrGetLcid( 17 | unsigned long *plcid /Out/) = 0; 18 | 19 | virtual HRESULT HrGetHwnd( 20 | long *phwnd /Out/) = 0; 21 | 22 | virtual HRESULT HrGetApplication( 23 | BSTR *pbstrApplication /Out/) = 0; 24 | 25 | virtual HRESULT HrCheckFormat( 26 | int *pFormat /Out/) = 0; 27 | 28 | }; 29 | }; 30 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IConverterPreferences.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IConverterPreferences : public IUnknown /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT HrGetMacroEnabled( 17 | int *pfMacroEnabled /Out/) = 0; 18 | 19 | virtual HRESULT HrCheckFormat( 20 | int *pFormat /Out/) = 0; 21 | 22 | virtual HRESULT HrGetLossySave( 23 | int *pfLossySave /Out/) = 0; 24 | 25 | }; 26 | }; 27 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IConverterUICallback.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IConverterUICallback : public IUnknown /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT HrReportProgress( 17 | unsigned int uPercentComplete) = 0; 18 | 19 | virtual HRESULT HrMessageBox( 20 | BSTR bstrText, 21 | BSTR bstrCaption, 22 | unsigned int uType, 23 | int *pidResult /Out/) = 0; 24 | 25 | virtual HRESULT HrInputBox( 26 | BSTR bstrText, 27 | BSTR bstrCaption, 28 | BSTR *pbstrInput /Out/, 29 | int fPassword) = 0; 30 | 31 | }; 32 | }; 33 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ICustomTaskPaneConsumer.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ICustomTaskPaneConsumer : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT CTPFactoryAvailable( 17 | ICTPFactory *CTPFactoryInst) = 0; 18 | 19 | }; 20 | }; 21 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ICustomXMLPartEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ICustomXMLPartEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual void NodeAfterInsert( 17 | CustomXMLNode *NewNode, 18 | VARIANT_BOOL InUndoRedo) = 0; 19 | 20 | virtual void NodeAfterDelete( 21 | CustomXMLNode *OldNode, 22 | CustomXMLNode *OldParentNode, 23 | CustomXMLNode *OldNextSibling, 24 | VARIANT_BOOL InUndoRedo) = 0; 25 | 26 | virtual void NodeAfterReplace( 27 | CustomXMLNode *OldNode, 28 | CustomXMLNode *NewNode, 29 | VARIANT_BOOL InUndoRedo) = 0; 30 | 31 | }; 32 | }; 33 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ICustomXMLPartsEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ICustomXMLPartsEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual void PartAfterAdd( 17 | CustomXMLPart *NewPart) = 0; 18 | 19 | virtual void PartBeforeDelete( 20 | CustomXMLPart *OldPart) = 0; 21 | 22 | virtual void PartAfterLoad( 23 | CustomXMLPart *Part) = 0; 24 | 25 | }; 26 | }; 27 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IDocumentInspector.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IDocumentInspector : public IUnknown /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT GetInfo( 17 | BSTR *Name /Out/, 18 | BSTR *Desc /Out/) = 0; 19 | 20 | virtual HRESULT Inspect( 21 | IDispatch *Doc, 22 | MsoDocInspectorStatus *Status /Out/, 23 | BSTR *Result /Out/, 24 | BSTR *Action /Out/) = 0; 25 | 26 | virtual HRESULT Fix( 27 | IDispatch *Doc, 28 | long hwnd, 29 | MsoDocInspectorStatus *Status /Out/, 30 | BSTR *Result /Out/) = 0; 31 | 32 | }; 33 | }; 34 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IFoundFiles.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IFoundFiles : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | int Index, 18 | BSTR *pbstr /Out/) = 0; 19 | 20 | BSTR __getitem__(int index) const; 21 | %MethodCode 22 | BSTR *prop = new BSTR; 23 | if (sipCpp->get_Item(a0, prop) != S_OK) 24 | { 25 | delete prop; 26 | sipIsErr = 1; 27 | } 28 | else 29 | { 30 | sipRes = prop; 31 | } 32 | %End 33 | 34 | virtual HRESULT get_Count( 35 | int *pCount /Out/) = 0; 36 | 37 | Py_ssize_t __len__() const; 38 | %MethodCode 39 | int count = 0; 40 | if (sipCpp->get_Count(&count) != S_OK) 41 | count = 0; 42 | sipRes = count; 43 | %End 44 | 45 | int getCount(); 46 | %MethodCode 47 | int prop = 0; 48 | HRESULT hr = sipCpp->get_Count(&prop); 49 | if (hr != S_OK) 50 | { 51 | PyErr_Format(PyExc_AttributeError, 52 | "Call 'get_Count()' failed with 0x%x", hr); 53 | return nullptr; 54 | } 55 | else 56 | { 57 | sipRes = prop; 58 | } 59 | %End 60 | 61 | %Property(name=Count, get=getCount) 62 | 63 | }; 64 | }; 65 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IMsoAxisTitle.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IMsoAxisTitle : public ksoapi::IMsoChartTitle /Abstract/ 14 | { 15 | public: 16 | }; 17 | }; 18 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IMsoCorners.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IMsoCorners : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Name( 17 | BSTR *RHS /Out/) = 0; 18 | 19 | virtual HRESULT Select( 20 | VARIANT *RHS /Out/) = 0; 21 | 22 | BSTR getName(); 23 | %MethodCode 24 | BSTR *prop = new BSTR; 25 | HRESULT hr = sipCpp->get_Name(prop); 26 | if (hr != S_OK) 27 | { 28 | delete prop; 29 | PyErr_Format(PyExc_AttributeError, 30 | "Call 'get_Name()' failed with 0x%x", hr); 31 | return nullptr; 32 | } 33 | else 34 | { 35 | sipRes = prop; 36 | } 37 | %End 38 | 39 | %Property(name=Name, get=getName) 40 | }; 41 | }; 42 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IMsoDispCagNotifySink.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IMsoDispCagNotifySink : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT InsertClip( 17 | IUnknown *pClipMoniker, 18 | IUnknown *pItemMoniker) = 0; 19 | 20 | virtual HRESULT WindowIsClosing() = 0; 21 | 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IMsoDisplayUnitLabel.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IMsoDisplayUnitLabel : public ksoapi::IMsoChartTitle /Abstract/ 14 | { 15 | public: 16 | }; 17 | }; 18 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IMsoEnvelopeVBEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IMsoEnvelopeVBEvents : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IMsoHyperlinks.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IMsoHyperlinks : public IDispatch /Abstract/ 14 | { 15 | public: 16 | }; 17 | }; 18 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IRibbonExtensibility.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IRibbonExtensibility : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT GetCustomUI( 17 | BSTR RibbonID, 18 | BSTR *RibbonXml /Out/) = 0; 19 | 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /sip/common/ksoapi/IRibbonUI.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct IRibbonUI : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Invalidate() = 0; 17 | 18 | virtual HRESULT InvalidateControl( 19 | BSTR ControlID) = 0; 20 | 21 | virtual HRESULT InvalidateControlMso( 22 | BSTR ControlID) = 0; 23 | 24 | virtual HRESULT ActivateTab( 25 | BSTR ControlID) = 0; 26 | 27 | virtual HRESULT ActivateTabMso( 28 | BSTR ControlID) = 0; 29 | 30 | virtual HRESULT ActivateTabQ( 31 | BSTR ControlID, 32 | BSTR Namespace) = 0; 33 | 34 | }; 35 | }; 36 | -------------------------------------------------------------------------------- /sip/common/ksoapi/LanguageSettings.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct LanguageSettings : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_LanguageID( 17 | MsoAppLanguageID Id, 18 | int *plid /Out/) = 0; 19 | 20 | virtual HRESULT get_LanguagePreferredForEditing( 21 | MsoLanguageID lid, 22 | VARIANT_BOOL *pf /Out/) = 0; 23 | }; 24 | }; 25 | -------------------------------------------------------------------------------- /sip/common/ksoapi/LegendEntries.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct LegendEntries : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *RHS /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT Index, 29 | LegendEntry **RHS /Out/) = 0; 30 | 31 | LegendEntry* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | ksoapi::LegendEntry *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT get__Default( 41 | VARIANT Index, 42 | LegendEntry **RHS /Out/) = 0; 43 | 44 | long getCount(); 45 | %MethodCode 46 | long prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | }; 62 | }; 63 | -------------------------------------------------------------------------------- /sip/common/ksoapi/NewFile.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct NewFile : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Add( 17 | BSTR FileName, 18 | VARIANT Section = argMissing2(), 19 | VARIANT DisplayName = argMissing2(), 20 | VARIANT Action = argMissing2(), 21 | VARIANT_BOOL *pvarf /Out/ = 0) = 0; 22 | 23 | virtual HRESULT Remove( 24 | BSTR FileName, 25 | VARIANT Section = argMissing2(), 26 | VARIANT DisplayName = argMissing2(), 27 | VARIANT Action = argMissing2(), 28 | VARIANT_BOOL *pvarf /Out/ = 0) = 0; 29 | 30 | }; 31 | }; 32 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ODSOColumns.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ODSOColumns : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *plCount /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT varIndex, 29 | IDispatch **ppColumn /Out/) = 0; 30 | 31 | IDispatch* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | IDispatch *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | long getCount(); 41 | %MethodCode 42 | long prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/PickerFields.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct PickerFields : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | int Index, 18 | PickerField **Field /Out/) = 0; 19 | 20 | PickerField* __getitem__(int index) const; 21 | %MethodCode 22 | ksoapi::PickerField *prop = nullptr; 23 | if (sipCpp->get_Item(a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | long *Count /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | long count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | long getCount(); 41 | %MethodCode 42 | long prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/Points.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct Points : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *RHS /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | long Index, 29 | ChartPoint **RHS /Out/) = 0; 30 | 31 | ChartPoint* __getitem__(long index) const; 32 | %MethodCode 33 | ksoapi::ChartPoint *prop = nullptr; 34 | if (sipCpp->Item(a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT get__Default( 41 | long Index, 42 | ChartPoint **RHS /Out/) = 0; 43 | 44 | long getCount(); 45 | %MethodCode 46 | long prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | }; 62 | }; 63 | -------------------------------------------------------------------------------- /sip/common/ksoapi/PropertyTests.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct PropertyTests : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | int Index, 18 | long lcid, 19 | PropertyTest **ppIDocProp /Out/) = 0; 20 | 21 | virtual HRESULT get_Count( 22 | long *pc /Out/) = 0; 23 | 24 | Py_ssize_t __len__() const; 25 | %MethodCode 26 | long count = 0; 27 | if (sipCpp->get_Count(&count) != S_OK) 28 | count = 0; 29 | sipRes = count; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | BSTR Name, 34 | MsoCondition Condition, 35 | VARIANT Value = argMissing2(), 36 | VARIANT SecondValue = argMissing2(), 37 | MsoConnector Connector = ksoapi::msoConnectorAnd) = 0; 38 | 39 | virtual HRESULT Remove( 40 | int Index) = 0; 41 | 42 | long getCount(); 43 | %MethodCode 44 | long prop = 0; 45 | HRESULT hr = sipCpp->get_Count(&prop); 46 | if (hr != S_OK) 47 | { 48 | PyErr_Format(PyExc_AttributeError, 49 | "Call 'get_Count()' failed with 0x%x", hr); 50 | return nullptr; 51 | } 52 | else 53 | { 54 | sipRes = prop; 55 | } 56 | %End 57 | 58 | %Property(name=Count, get=getCount) 59 | 60 | }; 61 | }; 62 | -------------------------------------------------------------------------------- /sip/common/ksoapi/Ruler2.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct Ruler2 : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Levels( 17 | RulerLevels2 **RulerLevels /Out/) = 0; 18 | 19 | virtual HRESULT get_TabStops( 20 | TabStops2 **TabStops /Out/) = 0; 21 | 22 | RulerLevels2* getLevels(); 23 | %MethodCode 24 | ksoapi::RulerLevels2 *prop = nullptr; 25 | HRESULT hr = sipCpp->get_Levels(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_Levels()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=Levels, get=getLevels) 39 | 40 | TabStops2* getTabStops(); 41 | %MethodCode 42 | ksoapi::TabStops2 *prop = nullptr; 43 | HRESULT hr = sipCpp->get_TabStops(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_TabStops()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=TabStops, get=getTabStops) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/RulerLevels2.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct RulerLevels2 : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | int *Count /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | int count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT Index, 29 | RulerLevel2 **RulerLevel /Out/) = 0; 30 | 31 | RulerLevel2* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | ksoapi::RulerLevel2 *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ScopeFolders.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ScopeFolders : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | int Index, 18 | ScopeFolder **ScopeFolderRet /Out/) = 0; 19 | 20 | ScopeFolder* __getitem__(int index) const; 21 | %MethodCode 22 | ksoapi::ScopeFolder *prop = nullptr; 23 | if (sipCpp->get_Item(a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | int *iCountRetVal /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | int count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/SearchScope.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct SearchScope : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Type( 17 | MsoSearchIn *MsoSearchInRetVal /Out/) = 0; 18 | 19 | virtual HRESULT get_ScopeFolder( 20 | ScopeFolder **ScopeFolderRet /Out/) = 0; 21 | 22 | MsoSearchIn getType(); 23 | %MethodCode 24 | ksoapi::MsoSearchIn prop = (ksoapi::MsoSearchIn)0; 25 | HRESULT hr = sipCpp->get_Type(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_Type()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=Type, get=getType) 39 | 40 | ScopeFolder* getScopeFolder(); 41 | %MethodCode 42 | ksoapi::ScopeFolder *prop = nullptr; 43 | HRESULT hr = sipCpp->get_ScopeFolder(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_ScopeFolder()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=ScopeFolder, get=getScopeFolder) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/SearchScopes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct SearchScopes : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | int Index, 18 | SearchScope **SearchScopeRet /Out/) = 0; 19 | 20 | SearchScope* __getitem__(int index) const; 21 | %MethodCode 22 | ksoapi::SearchScope *prop = nullptr; 23 | if (sipCpp->get_Item(a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | int *iCountRetVal /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | int count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/common/ksoapi/SharedWorkspaceFolder.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct SharedWorkspaceFolder : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_FolderName( 17 | BSTR *FolderName /Out/) = 0; 18 | 19 | virtual HRESULT Delete( 20 | VARIANT DeleteEventIfFolderContainsFiles = argMissing2()) = 0; 21 | 22 | BSTR getFolderName(); 23 | %MethodCode 24 | BSTR *prop = new BSTR; 25 | HRESULT hr = sipCpp->get_FolderName(prop); 26 | if (hr != S_OK) 27 | { 28 | delete prop; 29 | PyErr_Format(PyExc_AttributeError, 30 | "Call 'get_FolderName()' failed with 0x%x", hr); 31 | return nullptr; 32 | } 33 | else 34 | { 35 | sipRes = prop; 36 | } 37 | %End 38 | 39 | %Property(name=FolderName, get=getFolderName) 40 | }; 41 | }; 42 | -------------------------------------------------------------------------------- /sip/common/ksoapi/SmartArtColors.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct SmartArtColors : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | VARIANT Index, 18 | SmartArtColor **SmartArtColor /Out/) = 0; 19 | 20 | SmartArtColor* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | ksoapi::SmartArtColor *prop = nullptr; 23 | if (sipCpp->get_Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | int *Count /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | int count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/SmartArtLayouts.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct SmartArtLayouts : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | VARIANT Index, 18 | SmartArtLayout **SmartArtLayout /Out/) = 0; 19 | 20 | SmartArtLayout* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | ksoapi::SmartArtLayout *prop = nullptr; 23 | if (sipCpp->get_Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | int *Count /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | int count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/SmartArtNodes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct SmartArtNodes : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | VARIANT Index, 18 | SmartArtNode **SmartArtNode /Out/) = 0; 19 | 20 | SmartArtNode* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | ksoapi::SmartArtNode *prop = nullptr; 23 | if (sipCpp->get_Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | int *Count /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | int count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | virtual HRESULT Add( 41 | SmartArtNode **NewNode /Out/) = 0; 42 | 43 | int getCount(); 44 | %MethodCode 45 | int prop = 0; 46 | HRESULT hr = sipCpp->get_Count(&prop); 47 | if (hr != S_OK) 48 | { 49 | PyErr_Format(PyExc_AttributeError, 50 | "Call 'get_Count()' failed with 0x%x", hr); 51 | return nullptr; 52 | } 53 | else 54 | { 55 | sipRes = prop; 56 | } 57 | %End 58 | 59 | %Property(name=Count, get=getCount) 60 | }; 61 | }; 62 | -------------------------------------------------------------------------------- /sip/common/ksoapi/SmartArtQuickStyles.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct SmartArtQuickStyles : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | VARIANT Index, 18 | SmartArtQuickStyle **Style /Out/) = 0; 19 | 20 | SmartArtQuickStyle* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | ksoapi::SmartArtQuickStyle *prop = nullptr; 23 | if (sipCpp->get_Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | int *Count /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | int count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ThemeColorScheme.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ThemeColorScheme : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | int *Count /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | int count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Colors( 28 | MsoThemeColorSchemeIndex Index, 29 | ThemeColor **Color /Out/) = 0; 30 | 31 | virtual HRESULT Load( 32 | BSTR FileName) = 0; 33 | 34 | virtual HRESULT Save( 35 | BSTR FileName) = 0; 36 | 37 | virtual HRESULT GetCustomColor( 38 | BSTR Name, 39 | MsoRGBType *CustomColor /Out/) = 0; 40 | 41 | int getCount(); 42 | %MethodCode 43 | int prop = 0; 44 | HRESULT hr = sipCpp->get_Count(&prop); 45 | if (hr != S_OK) 46 | { 47 | PyErr_Format(PyExc_AttributeError, 48 | "Call 'get_Count()' failed with 0x%x", hr); 49 | return nullptr; 50 | } 51 | else 52 | { 53 | sipRes = prop; 54 | } 55 | %End 56 | 57 | %Property(name=Count, get=getCount) 58 | 59 | }; 60 | }; 61 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ThemeEffectScheme.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ThemeEffectScheme : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Load( 17 | BSTR FileName) = 0; 18 | }; 19 | }; 20 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ThemeFont.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ThemeFont : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Name( 17 | BSTR *Val /Out/) = 0; 18 | 19 | virtual HRESULT put_Name( 20 | BSTR Val) = 0; 21 | 22 | BSTR getName(); 23 | %MethodCode 24 | BSTR *prop = new BSTR; 25 | HRESULT hr = sipCpp->get_Name(prop); 26 | if (hr != S_OK) 27 | { 28 | delete prop; 29 | PyErr_Format(PyExc_AttributeError, 30 | "Call 'get_Name()' failed with 0x%x", hr); 31 | return nullptr; 32 | } 33 | else 34 | { 35 | sipRes = prop; 36 | } 37 | %End 38 | 39 | PyObject* setName(BSTR prop); 40 | %MethodCode 41 | HRESULT hr = sipCpp->put_Name(*a0); 42 | if (hr != S_OK) 43 | { 44 | PyErr_Format(PyExc_AttributeError, 45 | "Call 'put_Name()' failed with 0x%x", hr); 46 | sipRes = nullptr; 47 | } 48 | else 49 | { 50 | Py_INCREF(Py_None); 51 | sipRes = Py_None; 52 | } 53 | %End 54 | 55 | %Property(name=Name, get=getName, set=setName) 56 | }; 57 | }; 58 | -------------------------------------------------------------------------------- /sip/common/ksoapi/ThemeFonts.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct ThemeFonts : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | int *Count /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | int count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | MsoFontLanguageIndex Index, 29 | ThemeFont **Val /Out/) = 0; 30 | 31 | ThemeFont* __getitem__(MsoFontLanguageIndex index) const; 32 | %MethodCode 33 | ksoapi::ThemeFont *prop = nullptr; 34 | if (sipCpp->Item(a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/common/ksoapi/WebPageFonts.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct WebPageFonts : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | int *Count /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | int count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT get_Item( 28 | MsoCharacterSet Index, 29 | WebPageFont **Item /Out/) = 0; 30 | 31 | WebPageFont* __getitem__(MsoCharacterSet index) const; 32 | %MethodCode 33 | ksoapi::WebPageFont *prop = nullptr; 34 | if (sipCpp->get_Item(a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | int getCount(); 41 | %MethodCode 42 | int prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/ksoapi/WorkflowTasks.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct WorkflowTasks : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | long Index, 18 | WorkflowTask **ppret /Out/) = 0; 19 | 20 | WorkflowTask* __getitem__(long index) const; 21 | %MethodCode 22 | ksoapi::WorkflowTask *prop = nullptr; 23 | if (sipCpp->get_Item(a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | long *pCount /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | long count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | long getCount(); 41 | %MethodCode 42 | long prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/common/ksoapi/WorkflowTemplates.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct WorkflowTemplates : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | long Index, 18 | WorkflowTemplate **ppret /Out/) = 0; 19 | 20 | WorkflowTemplate* __getitem__(long index) const; 21 | %MethodCode 22 | ksoapi::WorkflowTemplate *prop = nullptr; 23 | if (sipCpp->get_Item(a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get_Count( 30 | long *pCount /Out/) = 0; 31 | 32 | Py_ssize_t __len__() const; 33 | %MethodCode 34 | long count = 0; 35 | if (sipCpp->get_Count(&count) != S_OK) 36 | count = 0; 37 | sipRes = count; 38 | %End 39 | 40 | long getCount(); 41 | %MethodCode 42 | long prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/common/ksoapi/_CommandBarButtonEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct _CommandBarButtonEvents : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/ksoapi/_CommandBarComboBoxEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct _CommandBarComboBoxEvents : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/ksoapi/_CommandBarsEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct _CommandBarsEvents : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/ksoapi/_CustomTaskPaneEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct _CustomTaskPaneEvents : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/ksoapi/_CustomXMLPartEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct _CustomXMLPartEvents : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/ksoapi/_CustomXMLPartsEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct _CustomXMLPartsEvents : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/ksoapi/_IMsoDispObj.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct _IMsoDispObj : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/ksoapi/_IMsoOleAccDispObj.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace ksoapi 12 | { 13 | struct _IMsoOleAccDispObj : public ksoapi::IAccessible /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/objidl.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | 12 | struct IUnknown /Abstract/ 13 | { 14 | }; 15 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/ApplicationEventsEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct ApplicationEventsEx : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/DocumentsEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct DocumentsEx : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT OpenFromShm( 17 | VARIANT *ShmID, 18 | VARIANT *ConfirmConversions = argMissing(), 19 | VARIANT *ReadOnly = argMissing(), 20 | VARIANT *AddToRecentFiles = argMissing(), 21 | VARIANT *PasswordDocument = argMissing(), 22 | VARIANT *PasswordTemplate = argMissing(), 23 | VARIANT *Revert = argMissing(), 24 | VARIANT *WritePasswordDocument = argMissing(), 25 | VARIANT *WritePasswordTemplate = argMissing(), 26 | VARIANT *Format = argMissing(), 27 | VARIANT *Encoding = argMissing(), 28 | VARIANT *Visible = argMissing(), 29 | VARIANT *OpenAndRepair = argMissing(), 30 | VARIANT *DocumentDirection = argMissing(), 31 | VARIANT *NoEncodingDialog = argMissing(), 32 | VARIANT *XMLTransform = argMissing(), 33 | DocumentEx **prop /Out/ = 0) = 0; 34 | 35 | }; 36 | }; 37 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/EtApplicationEventsEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct EtApplicationEventsEx : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/EtRangeEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct EtRangeEx : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT MinimumDataRange( 17 | VARIANT *pRange /Out/) = 0; 18 | 19 | virtual HRESULT TextInJSON( 20 | BSTR *pTextInJSON /Out/) = 0; 21 | 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/HeaderFooterEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct HeaderFooterEx : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_WaterMarks( 17 | WaterMarks **prop /Out/) = 0; 18 | 19 | WaterMarks* getWaterMarks(); 20 | %MethodCode 21 | wpsapiex::WaterMarks *prop = nullptr; 22 | HRESULT hr = sipCpp->get_WaterMarks(&prop); 23 | if (hr != S_OK) 24 | { 25 | PyErr_Format(PyExc_AttributeError, 26 | "Call 'get_WaterMarks()' failed with 0x%x", hr); 27 | return nullptr; 28 | } 29 | else 30 | { 31 | sipRes = prop; 32 | } 33 | %End 34 | 35 | %Property(name=WaterMarks, get=getWaterMarks) 36 | }; 37 | }; 38 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/Heading.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct Heading : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Level( 17 | long *prop /Out/) = 0; 18 | 19 | virtual HRESULT get_Range( 20 | IDispatch **prop /Out/) = 0; 21 | 22 | long getLevel(); 23 | %MethodCode 24 | long prop = 0; 25 | HRESULT hr = sipCpp->get_Level(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_Level()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=Level, get=getLevel) 39 | 40 | IDispatch* getRange(); 41 | %MethodCode 42 | IDispatch *prop = nullptr; 43 | HRESULT hr = sipCpp->get_Range(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Range()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Range, get=getRange) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/Headings.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct Headings : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *prop /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | long Index, 29 | Heading **prop /Out/) = 0; 30 | 31 | Heading* __getitem__(long index) const; 32 | %MethodCode 33 | wpsapiex::Heading *prop = nullptr; 34 | if (sipCpp->Item(a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | long getCount(); 41 | %MethodCode 42 | long prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/KsoDocumentEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct KsoDocumentEx : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT InvalidateRightsInfo() = 0; 17 | 18 | virtual HRESULT SetSecretLabel( 19 | BSTR param) = 0; 20 | 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/PictureFormatEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct PictureFormatEx : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_PictureID( 17 | BSTR *Md4 /Out/) = 0; 18 | 19 | BSTR getPictureID(); 20 | %MethodCode 21 | BSTR *prop = new BSTR; 22 | HRESULT hr = sipCpp->get_PictureID(prop); 23 | if (hr != S_OK) 24 | { 25 | delete prop; 26 | PyErr_Format(PyExc_AttributeError, 27 | "Call 'get_PictureID()' failed with 0x%x", hr); 28 | return nullptr; 29 | } 30 | else 31 | { 32 | sipRes = prop; 33 | } 34 | %End 35 | 36 | %Property(name=PictureID, get=getPictureID) 37 | }; 38 | }; 39 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/PresentationsEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct PresentationsEx : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT OpenFromShm( 17 | BSTR ShmID, 18 | VARIANT Password = argMissing2(), 19 | VARIANT ModifyPassword = argMissing2(), 20 | int ReadOnly = 0, 21 | int Untitled = 0, 22 | int WithWindow = 0, 23 | PresentationEx **Open /Out/ = 0) = 0; 24 | 25 | }; 26 | }; 27 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/PrintoutPageEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct PrintoutPageEx : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_PrintOutRange( 17 | int *printOutRange /Out/) = 0; 18 | 19 | virtual HRESULT get_PrintOutPages( 20 | BSTR *pages /Out/) = 0; 21 | 22 | int getPrintOutRange(); 23 | %MethodCode 24 | int prop = 0; 25 | HRESULT hr = sipCpp->get_PrintOutRange(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_PrintOutRange()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=PrintOutRange, get=getPrintOutRange) 39 | 40 | BSTR getPrintOutPages(); 41 | %MethodCode 42 | BSTR *prop = new BSTR; 43 | HRESULT hr = sipCpp->get_PrintOutPages(prop); 44 | if (hr != S_OK) 45 | { 46 | delete prop; 47 | PyErr_Format(PyExc_AttributeError, 48 | "Call 'get_PrintOutPages()' failed with 0x%x", hr); 49 | return nullptr; 50 | } 51 | else 52 | { 53 | sipRes = prop; 54 | } 55 | %End 56 | 57 | %Property(name=PrintOutPages, get=getPrintOutPages) 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/RangeEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct RangeEx : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_WaterMarks( 17 | WaterMarks **prop /Out/) = 0; 18 | 19 | virtual HRESULT get_Headings( 20 | Headings **prop /Out/) = 0; 21 | 22 | WaterMarks* getWaterMarks(); 23 | %MethodCode 24 | wpsapiex::WaterMarks *prop = nullptr; 25 | HRESULT hr = sipCpp->get_WaterMarks(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_WaterMarks()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=WaterMarks, get=getWaterMarks) 39 | 40 | Headings* getHeadings(); 41 | %MethodCode 42 | wpsapiex::Headings *prop = nullptr; 43 | HRESULT hr = sipCpp->get_Headings(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Headings()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Headings, get=getHeadings) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/WppApplicationEventsEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct WppApplicationEventsEx : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/WpsApplicationEventsEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct WpsApplicationEventsEx : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/WpsCloudService.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct WpsCloudService : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_LoginToken( 17 | BSTR *prop /Out/) = 0; 18 | 19 | virtual HRESULT DownloadCloudFile( 20 | BSTR VolumeID, 21 | BSTR FileID, 22 | BSTR Path, 23 | VARIANT_BOOL IsAsync, 24 | BSTR *OutputPath /Out/) = 0; 25 | 26 | virtual HRESULT UploadCloudFile( 27 | BSTR VolumeID, 28 | BSTR FileID, 29 | BSTR FilePath, 30 | VARIANT_BOOL IsAsync = -1) = 0; 31 | 32 | BSTR getLoginToken(); 33 | %MethodCode 34 | BSTR *prop = new BSTR; 35 | HRESULT hr = sipCpp->get_LoginToken(prop); 36 | if (hr != S_OK) 37 | { 38 | delete prop; 39 | PyErr_Format(PyExc_AttributeError, 40 | "Call 'get_LoginToken()' failed with 0x%x", hr); 41 | return nullptr; 42 | } 43 | else 44 | { 45 | sipRes = prop; 46 | } 47 | %End 48 | 49 | %Property(name=LoginToken, get=getLoginToken) 50 | }; 51 | }; 52 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/_PresentationEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct _PresentationEx : public wpsapiex::KsoDocumentEx /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT SaveAsShm( 17 | VARIANT *FileFormat = argMissing(), 18 | VARIANT *EmbedTrueTypeFonts = argMissing(), 19 | BSTR *ShmID /Out/ = 0) = 0; 20 | 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/_WorkbookEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct _WorkbookEx : public wpsapiex::KsoDocumentEx /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT SaveAsShm( 17 | VARIANT *FileFormat = argMissing(), 18 | VARIANT *Password = argMissing(), 19 | VARIANT *WriteResPassword = argMissing(), 20 | VARIANT *ReadOnlyRecommended = argMissing(), 21 | VARIANT *CreateBackup = argMissing(), 22 | VARIANT *AccessMode = argMissing(), 23 | VARIANT *ConflictResolution = argMissing(), 24 | VARIANT *AddToMru = argMissing(), 25 | VARIANT *TextCodepage = argMissing(), 26 | VARIANT *TextVisualLayout = argMissing(), 27 | VARIANT *Local = argMissing(), 28 | VARIANT *lcid = argMissing(), 29 | BSTR *ShmID /Out/ = 0) = 0; 30 | 31 | virtual HRESULT get_CellText(long nIdx, VARIANT* pArrayData) = 0; 32 | }; 33 | }; 34 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/_WppApplicationEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct _WppApplicationEx : public wpsapiex::_ApplicationEx /Abstract/ 14 | { 15 | public: 16 | }; 17 | }; 18 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/_WpsApplicationEx.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | struct _WpsApplicationEx : public wpsapiex::_ApplicationEx /Abstract/ 14 | { 15 | public: 16 | }; 17 | }; 18 | -------------------------------------------------------------------------------- /sip/common/wpsapiex/enums.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapiex 12 | { 13 | enum KsoRightsInfo 14 | { 15 | ksoNoneRight = 0x0, 16 | ksoModifyRight = 0x1, 17 | ksoCopyRight = 0x2, 18 | ksoPrintRight = 0x4, 19 | ksoSaveRight = 0x8, 20 | ksoBackupRight = 0x10, 21 | ksoVbaRight = 0x20, 22 | ksoSaveAsRight = 0x40, 23 | ksoFullRight = -1 24 | }; 25 | 26 | enum KsoWebExtWatchingDataType 27 | { 28 | ksoInvalidWatchingDataType = 0x0, 29 | ksoRangeWatchingDataType = 0x1 30 | }; 31 | 32 | enum KsoWebExtWatchingDataUpdateType 33 | { 34 | ksoInvalidWatchingDataUpdateType = 0x0, 35 | ksoRangeValueChangedUpdateType = 0x1, 36 | ksoRangeChangedUpdateType = 0x2 37 | }; 38 | 39 | enum WdWaterMarkType 40 | { 41 | wdTextWaterMark = 1, 42 | wdPictureWaterMark = 2 43 | }; 44 | 45 | enum WdContentChangeType 46 | { 47 | wdContentInsert = 0, 48 | wdContentDelete = 1, 49 | wdContentStyle = 2, 50 | wdContentHeading = 3, 51 | wdContentParaProp = 4 52 | }; 53 | 54 | enum WdInkDrawPenStyle 55 | { 56 | wdBallpointPen = 0, 57 | wdWatercolorPen = 1, 58 | wdHighlighterPen = 2 59 | }; 60 | 61 | enum WdInkDrawStyle 62 | { 63 | WdInkDrawPen = 0, 64 | WdInkDrawShape = 1 65 | }; 66 | 67 | enum WdInkDrawShapeStyle 68 | { 69 | wdDrawLineShape = 0, 70 | wdDrawWaveShape = 1, 71 | wdDrawRectShape = 2 72 | }; 73 | }; 74 | -------------------------------------------------------------------------------- /sip/rpcetapi/Adjustments.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct Adjustments : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | int *Count /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | int count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT get_Item( 28 | int Index, 29 | single *Val /Out/) = 0; 30 | 31 | single __getitem__(int index) const; 32 | %MethodCode 33 | etapi::single prop = 0; 34 | if (sipCpp->get_Item(a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT put_Item( 41 | int Index, 42 | single Val) = 0; 43 | 44 | int getCount(); 45 | %MethodCode 46 | int prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | }; 62 | }; 63 | -------------------------------------------------------------------------------- /sip/rpcetapi/DiagramNodes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct DiagramNodes : public ksoapi::_IMsoDispObj /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Item( 17 | VARIANT Index, 18 | DiagramNode **ppdn /Out/) = 0; 19 | 20 | DiagramNode* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | etapi::DiagramNode *prop = nullptr; 23 | if (sipCpp->Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT SelectAll() = 0; 30 | 31 | virtual HRESULT get_Count( 32 | int *pcDiagramNodes /Out/) = 0; 33 | 34 | Py_ssize_t __len__() const; 35 | %MethodCode 36 | int count = 0; 37 | if (sipCpp->get_Count(&count) != S_OK) 38 | count = 0; 39 | sipRes = count; 40 | %End 41 | 42 | int getCount(); 43 | %MethodCode 44 | int prop = 0; 45 | HRESULT hr = sipCpp->get_Count(&prop); 46 | if (hr != S_OK) 47 | { 48 | PyErr_Format(PyExc_AttributeError, 49 | "Call 'get_Count()' failed with 0x%x", hr); 50 | return nullptr; 51 | } 52 | else 53 | { 54 | sipRes = prop; 55 | } 56 | %End 57 | 58 | %Property(name=Count, get=getCount) 59 | }; 60 | }; 61 | -------------------------------------------------------------------------------- /sip/rpcetapi/ICanvasShapes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct ICanvasShapes : public IDispatch /Abstract/ 14 | { 15 | public: 16 | }; 17 | }; 18 | -------------------------------------------------------------------------------- /sip/rpcetapi/IChartEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct IChartEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Activate() = 0; 17 | 18 | virtual HRESULT Deactivate() = 0; 19 | 20 | virtual HRESULT Resize() = 0; 21 | 22 | virtual HRESULT MouseDown( 23 | long Button, 24 | long Shift, 25 | long x, 26 | long y) = 0; 27 | 28 | virtual HRESULT MouseUp( 29 | long Button, 30 | long Shift, 31 | long x, 32 | long y) = 0; 33 | 34 | virtual HRESULT MouseMove( 35 | long Button, 36 | long Shift, 37 | long x, 38 | long y) = 0; 39 | 40 | virtual HRESULT BeforeRightClick( 41 | VARIANT_BOOL *Cancel /In,Out/) = 0; 42 | 43 | virtual HRESULT DragPlot() = 0; 44 | 45 | virtual HRESULT DragOver() = 0; 46 | 47 | virtual HRESULT BeforeDoubleClick( 48 | long ElementID, 49 | long Arg1, 50 | long Arg2, 51 | VARIANT_BOOL *Cancel /In,Out/) = 0; 52 | 53 | virtual HRESULT Select( 54 | long ElementID, 55 | long Arg1, 56 | long Arg2) = 0; 57 | 58 | virtual HRESULT SeriesChange( 59 | long SeriesIndex, 60 | long PointIndex) = 0; 61 | 62 | virtual HRESULT Calculate() = 0; 63 | 64 | }; 65 | }; 66 | -------------------------------------------------------------------------------- /sip/rpcetapi/IOLEObjectEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct IOLEObjectEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT GotFocus() = 0; 17 | 18 | virtual HRESULT LostFocus() = 0; 19 | 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /sip/rpcetapi/IPages.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct IPages : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Item( 17 | VARIANT Index, 18 | Page **RHS /Out/) = 0; 19 | 20 | Page* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | etapi::Page *prop = nullptr; 23 | if (sipCpp->get_Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT get__Default( 30 | VARIANT Index, 31 | Page **RHS /Out/) = 0; 32 | 33 | virtual HRESULT get_Count( 34 | long *RHS /Out/) = 0; 35 | 36 | Py_ssize_t __len__() const; 37 | %MethodCode 38 | long count = 0; 39 | if (sipCpp->get_Count(&count) != S_OK) 40 | count = 0; 41 | sipRes = count; 42 | %End 43 | 44 | long getCount(); 45 | %MethodCode 46 | long prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | 62 | }; 63 | }; 64 | -------------------------------------------------------------------------------- /sip/rpcetapi/IRefreshEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct IRefreshEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT BeforeRefresh( 17 | VARIANT_BOOL *Cancel /In,Out/) = 0; 18 | 19 | virtual HRESULT AfterRefresh( 20 | VARIANT_BOOL Success) = 0; 21 | 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /sip/rpcetapi/IRtdServer.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct IRtdServer : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT ServerStart( 17 | IRTDUpdateEvent *CallbackObject, 18 | long *pfRes /Out/) = 0; 19 | 20 | virtual HRESULT ConnectData( 21 | long TopicID, 22 | SAFEARRAY * *Strings, 23 | VARIANT_BOOL *GetNewValues /In,Out/, 24 | VARIANT *pvarOut /Out/) = 0; 25 | 26 | virtual HRESULT RefreshData( 27 | long *TopicCount /In,Out/, 28 | SAFEARRAY * *parrayOut /Out/) = 0; 29 | 30 | virtual HRESULT DisconnectData( 31 | long TopicID) = 0; 32 | 33 | virtual HRESULT Heartbeat( 34 | long *pfRes /Out/) = 0; 35 | 36 | virtual HRESULT ServerTerminate() = 0; 37 | 38 | }; 39 | }; 40 | -------------------------------------------------------------------------------- /sip/rpcetapi/WorksheetFunction.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct WorksheetFunction : public IDispatch /Abstract/ 14 | { 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /sip/rpcetapi/_DebugTools.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace etapi 12 | { 13 | struct _DebugTools : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Dump( 17 | BSTR path) = 0; 18 | 19 | virtual HRESULT Do() = 0; 20 | 21 | virtual HRESULT Diagnose() = 0; 22 | 23 | virtual HRESULT Report() = 0; 24 | 25 | virtual HRESULT Profile() = 0; 26 | 27 | virtual HRESULT RunCommand( 28 | long cmdid, 29 | VARIANT param1 = argMissing2(), 30 | VARIANT param2 = argMissing2(), 31 | VARIANT param3 = argMissing2()) = 0; 32 | 33 | virtual HRESULT GetResult( 34 | long cmdid, 35 | VARIANT param, 36 | VARIANT *res /Out/) = 0; 37 | 38 | virtual HRESULT get_Solver( 39 | Solver **prop /Out/) = 0; 40 | 41 | Solver* getSolver(); 42 | %MethodCode 43 | etapi::Solver *prop = nullptr; 44 | HRESULT hr = sipCpp->get_Solver(&prop); 45 | if (hr != S_OK) 46 | { 47 | PyErr_Format(PyExc_AttributeError, 48 | "Call 'get_Solver()' failed with 0x%x", hr); 49 | return nullptr; 50 | } 51 | else 52 | { 53 | sipRes = prop; 54 | } 55 | %End 56 | 57 | %Property(name=Solver, get=getSolver) 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/rpcwppapi/ActionSettings.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct ActionSettings : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | PpMouseActivation Index, 21 | ActionSetting **Item /Out/) = 0; 22 | 23 | ActionSetting* __getitem__(PpMouseActivation index) const; 24 | %MethodCode 25 | wppapi::ActionSetting *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/AddIns.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct AddIns : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | VARIANT *Index, 21 | AddIn **Item /Out/) = 0; 22 | 23 | AddIn* __getitem__(VARIANT *index) const; 24 | %MethodCode 25 | wppapi::AddIn *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | BSTR FileName, 34 | AddIn **Add /Out/) = 0; 35 | 36 | virtual HRESULT Remove( 37 | VARIANT *Index) = 0; 38 | 39 | Application* getApplication(); 40 | %MethodCode 41 | wppapi::Application *prop = nullptr; 42 | HRESULT hr = sipCpp->get_Application(&prop); 43 | if (hr != S_OK) 44 | { 45 | PyErr_Format(PyExc_AttributeError, 46 | "Call 'get_Application()' failed with 0x%x", hr); 47 | return nullptr; 48 | } 49 | else 50 | { 51 | sipRes = prop; 52 | } 53 | %End 54 | 55 | %Property(name=Application, get=getApplication) 56 | }; 57 | }; 58 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Adjustments.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Adjustments : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | int *Count /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | int count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT get_Item( 28 | int Index, 29 | single *Val /Out/) = 0; 30 | 31 | single __getitem__(int index) const; 32 | %MethodCode 33 | wppapi::single prop = 0; 34 | if (sipCpp->get_Item(a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT put_Item( 41 | int Index, 42 | single Val) = 0; 43 | 44 | int getCount(); 45 | %MethodCode 46 | int prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | }; 62 | }; 63 | -------------------------------------------------------------------------------- /sip/rpcwppapi/AnimationBehaviors.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct AnimationBehaviors : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | AnimationBehavior **Item /Out/) = 0; 22 | 23 | AnimationBehavior* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::AnimationBehavior *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | MsoAnimType Type, 34 | int Index = 0, 35 | AnimationBehavior **Add /Out/ = 0) = 0; 36 | 37 | Application* getApplication(); 38 | %MethodCode 39 | wppapi::Application *prop = nullptr; 40 | HRESULT hr = sipCpp->get_Application(&prop); 41 | if (hr != S_OK) 42 | { 43 | PyErr_Format(PyExc_AttributeError, 44 | "Call 'get_Application()' failed with 0x%x", hr); 45 | return nullptr; 46 | } 47 | else 48 | { 49 | sipRes = prop; 50 | } 51 | %End 52 | 53 | %Property(name=Application, get=getApplication) 54 | }; 55 | }; 56 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Borders.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Borders : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | PpBorderType BorderType, 21 | LineFormat **Item /Out/) = 0; 22 | 23 | LineFormat* __getitem__(PpBorderType index) const; 24 | %MethodCode 25 | wppapi::LineFormat *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Collection.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Collection : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT _Index( 17 | int Index, 18 | VARIANT *_Index /Out/) = 0; 19 | 20 | virtual HRESULT get_Count( 21 | long *Count /Out/) = 0; 22 | 23 | Py_ssize_t __len__() const; 24 | %MethodCode 25 | long count = 0; 26 | if (sipCpp->get_Count(&count) != S_OK) 27 | count = 0; 28 | sipRes = count; 29 | %End 30 | 31 | long getCount(); 32 | %MethodCode 33 | long prop = 0; 34 | HRESULT hr = sipCpp->get_Count(&prop); 35 | if (hr != S_OK) 36 | { 37 | PyErr_Format(PyExc_AttributeError, 38 | "Call 'get_Count()' failed with 0x%x", hr); 39 | return nullptr; 40 | } 41 | else 42 | { 43 | sipRes = prop; 44 | } 45 | %End 46 | 47 | %Property(name=Count, get=getCount) 48 | }; 49 | }; 50 | -------------------------------------------------------------------------------- /sip/rpcwppapi/ColorScheme.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct ColorScheme : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Colors( 20 | PpColorSchemeIndex SchemeColor, 21 | RGBColor **Colors /Out/) = 0; 22 | 23 | virtual HRESULT Delete() = 0; 24 | 25 | Application* getApplication(); 26 | %MethodCode 27 | wppapi::Application *prop = nullptr; 28 | HRESULT hr = sipCpp->get_Application(&prop); 29 | if (hr != S_OK) 30 | { 31 | PyErr_Format(PyExc_AttributeError, 32 | "Call 'get_Application()' failed with 0x%x", hr); 33 | return nullptr; 34 | } 35 | else 36 | { 37 | sipRes = prop; 38 | } 39 | %End 40 | 41 | %Property(name=Application, get=getApplication) 42 | }; 43 | }; 44 | -------------------------------------------------------------------------------- /sip/rpcwppapi/ColorSchemes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct ColorSchemes : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | ColorScheme **Item /Out/) = 0; 22 | 23 | ColorScheme* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::ColorScheme *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | ColorScheme *Scheme, 34 | ColorScheme **Add /Out/) = 0; 35 | 36 | Application* getApplication(); 37 | %MethodCode 38 | wppapi::Application *prop = nullptr; 39 | HRESULT hr = sipCpp->get_Application(&prop); 40 | if (hr != S_OK) 41 | { 42 | PyErr_Format(PyExc_AttributeError, 43 | "Call 'get_Application()' failed with 0x%x", hr); 44 | return nullptr; 45 | } 46 | else 47 | { 48 | sipRes = prop; 49 | } 50 | %End 51 | 52 | %Property(name=Application, get=getApplication) 53 | }; 54 | }; 55 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Columns.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Columns : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | Column **Item /Out/) = 0; 22 | 23 | Column* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::Column *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | int BeforeColumn = 0, 34 | Column **Add /Out/ = 0) = 0; 35 | 36 | Application* getApplication(); 37 | %MethodCode 38 | wppapi::Application *prop = nullptr; 39 | HRESULT hr = sipCpp->get_Application(&prop); 40 | if (hr != S_OK) 41 | { 42 | PyErr_Format(PyExc_AttributeError, 43 | "Call 'get_Application()' failed with 0x%x", hr); 44 | return nullptr; 45 | } 46 | else 47 | { 48 | sipRes = prop; 49 | } 50 | %End 51 | 52 | %Property(name=Application, get=getApplication) 53 | }; 54 | }; 55 | -------------------------------------------------------------------------------- /sip/rpcwppapi/CustomLayouts.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct CustomLayouts : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | VARIANT Index, 21 | CustomLayout **Item /Out/) = 0; 22 | 23 | CustomLayout* __getitem__(VARIANT index) const; 24 | %MethodCode 25 | wppapi::CustomLayout *prop = nullptr; 26 | if (sipCpp->Item(*a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | int Index, 34 | CustomLayout **Add /Out/) = 0; 35 | 36 | virtual HRESULT Paste( 37 | int Index = 0, 38 | CustomLayout **Paste /Out/ = 0) = 0; 39 | 40 | Application* getApplication(); 41 | %MethodCode 42 | wppapi::Application *prop = nullptr; 43 | HRESULT hr = sipCpp->get_Application(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Application()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Application, get=getApplication) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/rpcwppapi/CustomerData.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct CustomerData : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | BSTR Id, 21 | ksoapi::CustomXMLPart **Item /Out/) = 0; 22 | 23 | virtual HRESULT Add( 24 | ksoapi::CustomXMLPart **Add /Out/) = 0; 25 | 26 | virtual HRESULT Delete( 27 | BSTR Id) = 0; 28 | 29 | Application* getApplication(); 30 | %MethodCode 31 | wppapi::Application *prop = nullptr; 32 | HRESULT hr = sipCpp->get_Application(&prop); 33 | if (hr != S_OK) 34 | { 35 | PyErr_Format(PyExc_AttributeError, 36 | "Call 'get_Application()' failed with 0x%x", hr); 37 | return nullptr; 38 | } 39 | else 40 | { 41 | sipRes = prop; 42 | } 43 | %End 44 | 45 | %Property(name=Application, get=getApplication) 46 | }; 47 | }; 48 | -------------------------------------------------------------------------------- /sip/rpcwppapi/DiagramNodes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct DiagramNodes : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Item( 17 | VARIANT Index, 18 | DiagramNode **ppdn /Out/) = 0; 19 | 20 | DiagramNode* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | wppapi::DiagramNode *prop = nullptr; 23 | if (sipCpp->Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT SelectAll() = 0; 30 | 31 | virtual HRESULT get_Count( 32 | int *iDiagramNodes /Out/) = 0; 33 | 34 | Py_ssize_t __len__() const; 35 | %MethodCode 36 | int count = 0; 37 | if (sipCpp->get_Count(&count) != S_OK) 38 | count = 0; 39 | sipRes = count; 40 | %End 41 | 42 | int getCount(); 43 | %MethodCode 44 | int prop = 0; 45 | HRESULT hr = sipCpp->get_Count(&prop); 46 | if (hr != S_OK) 47 | { 48 | PyErr_Format(PyExc_AttributeError, 49 | "Call 'get_Count()' failed with 0x%x", hr); 50 | return nullptr; 51 | } 52 | else 53 | { 54 | sipRes = prop; 55 | } 56 | %End 57 | 58 | %Property(name=Count, get=getCount) 59 | }; 60 | }; 61 | -------------------------------------------------------------------------------- /sip/rpcwppapi/DocumentWindows.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct DocumentWindows : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | DocumentWindow **Item /Out/) = 0; 22 | 23 | DocumentWindow* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::DocumentWindow *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Arrange( 33 | PpArrangeStyle arrangeStyle = wppapi::ppArrangeTiled) = 0; 34 | 35 | Application* getApplication(); 36 | %MethodCode 37 | wppapi::Application *prop = nullptr; 38 | HRESULT hr = sipCpp->get_Application(&prop); 39 | if (hr != S_OK) 40 | { 41 | PyErr_Format(PyExc_AttributeError, 42 | "Call 'get_Application()' failed with 0x%x", hr); 43 | return nullptr; 44 | } 45 | else 46 | { 47 | sipRes = prop; 48 | } 49 | %End 50 | 51 | %Property(name=Application, get=getApplication) 52 | }; 53 | }; 54 | -------------------------------------------------------------------------------- /sip/rpcwppapi/ExtraColors.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct ExtraColors : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | MsoRGBType *Item /Out/) = 0; 22 | 23 | MsoRGBType __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::MsoRGBType prop = 0; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | MsoRGBType Type) = 0; 34 | 35 | virtual HRESULT Clear() = 0; 36 | 37 | Application* getApplication(); 38 | %MethodCode 39 | wppapi::Application *prop = nullptr; 40 | HRESULT hr = sipCpp->get_Application(&prop); 41 | if (hr != S_OK) 42 | { 43 | PyErr_Format(PyExc_AttributeError, 44 | "Call 'get_Application()' failed with 0x%x", hr); 45 | return nullptr; 46 | } 47 | else 48 | { 49 | sipRes = prop; 50 | } 51 | %End 52 | 53 | %Property(name=Application, get=getApplication) 54 | }; 55 | }; 56 | -------------------------------------------------------------------------------- /sip/rpcwppapi/FileConverters.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct FileConverters : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Item( 17 | VARIANT Index, 18 | FileConverter **Item /Out/) = 0; 19 | 20 | FileConverter* __getitem__(VARIANT index) const; 21 | %MethodCode 22 | wppapi::FileConverter *prop = nullptr; 23 | if (sipCpp->Item(*a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | }; 30 | }; 31 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Fonts.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Fonts : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | VARIANT Index, 21 | Font **Item /Out/) = 0; 22 | 23 | Font* __getitem__(VARIANT index) const; 24 | %MethodCode 25 | wppapi::Font *prop = nullptr; 26 | if (sipCpp->Item(*a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Replace( 33 | BSTR Original, 34 | BSTR Replacement) = 0; 35 | 36 | Application* getApplication(); 37 | %MethodCode 38 | wppapi::Application *prop = nullptr; 39 | HRESULT hr = sipCpp->get_Application(&prop); 40 | if (hr != S_OK) 41 | { 42 | PyErr_Format(PyExc_AttributeError, 43 | "Call 'get_Application()' failed with 0x%x", hr); 44 | return nullptr; 45 | } 46 | else 47 | { 48 | sipRes = prop; 49 | } 50 | %End 51 | 52 | %Property(name=Application, get=getApplication) 53 | }; 54 | }; 55 | -------------------------------------------------------------------------------- /sip/rpcwppapi/FreeformBuilder.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct FreeformBuilder : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT AddNodes( 17 | MsoSegmentType SegmentType, 18 | MsoEditingType EditingType, 19 | single X1, 20 | single Y1, 21 | single X2 = 0, 22 | single Y2 = 0, 23 | single X3 = 0, 24 | single Y3 = 0) = 0; 25 | 26 | virtual HRESULT ConvertToShape( 27 | Shape **Freeform /Out/) = 0; 28 | }; 29 | }; 30 | -------------------------------------------------------------------------------- /sip/rpcwppapi/GroupShapes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct GroupShapes : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | int *pnShapes /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | int count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT Index, 29 | Shape **Item /Out/) = 0; 30 | 31 | Shape* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | wppapi::Shape *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT Range( 41 | VARIANT Index, 42 | ShapeRange **Range /Out/) = 0; 43 | 44 | int getCount(); 45 | %MethodCode 46 | int prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | 62 | }; 63 | }; 64 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Guides.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Guides : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | Guide **Item /Out/) = 0; 22 | 23 | Guide* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::Guide *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | PpGuideOrientation Orientation, 34 | single Position, 35 | Guide **Add /Out/) = 0; 36 | 37 | Application* getApplication(); 38 | %MethodCode 39 | wppapi::Application *prop = nullptr; 40 | HRESULT hr = sipCpp->get_Application(&prop); 41 | if (hr != S_OK) 42 | { 43 | PyErr_Format(PyExc_AttributeError, 44 | "Call 'get_Application()' failed with 0x%x", hr); 45 | return nullptr; 46 | } 47 | else 48 | { 49 | sipRes = prop; 50 | } 51 | %End 52 | 53 | %Property(name=Application, get=getApplication) 54 | }; 55 | }; 56 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Hyperlinks.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Hyperlinks : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | Hyperlink **Item /Out/) = 0; 22 | 23 | Hyperlink* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::Hyperlink *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/MasterEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct MasterEvents : public IUnknown /Abstract/ 14 | { 15 | public: 16 | }; 17 | }; 18 | -------------------------------------------------------------------------------- /sip/rpcwppapi/MediaBookmarks.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct MediaBookmarks : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Item( 17 | int Index, 18 | MediaBookmark **Item /Out/) = 0; 19 | 20 | MediaBookmark* __getitem__(int index) const; 21 | %MethodCode 22 | wppapi::MediaBookmark *prop = nullptr; 23 | if (sipCpp->Item(a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT Add( 30 | long Position, 31 | BSTR Name, 32 | MediaBookmark **Add /Out/) = 0; 33 | 34 | }; 35 | }; 36 | -------------------------------------------------------------------------------- /sip/rpcwppapi/MouseDownHandler.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct MouseDownHandler : public IUnknown /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT OnMouseDown( 17 | IUnknown *activeWin) = 0; 18 | 19 | }; 20 | }; 21 | -------------------------------------------------------------------------------- /sip/rpcwppapi/MouseTracker.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct MouseTracker : public IUnknown /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT OnTrack( 17 | single X, 18 | single Y) = 0; 19 | 20 | virtual HRESULT EndTrack( 21 | single X, 22 | single Y) = 0; 23 | 24 | }; 25 | }; 26 | -------------------------------------------------------------------------------- /sip/rpcwppapi/NamedSlideShows.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct NamedSlideShows : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | VARIANT Index, 21 | NamedSlideShow **Item /Out/) = 0; 22 | 23 | NamedSlideShow* __getitem__(VARIANT index) const; 24 | %MethodCode 25 | wppapi::NamedSlideShow *prop = nullptr; 26 | if (sipCpp->Item(*a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | BSTR Name, 34 | VARIANT safeArrayOfSlideIDs, 35 | NamedSlideShow **Add /Out/) = 0; 36 | 37 | Application* getApplication(); 38 | %MethodCode 39 | wppapi::Application *prop = nullptr; 40 | HRESULT hr = sipCpp->get_Application(&prop); 41 | if (hr != S_OK) 42 | { 43 | PyErr_Format(PyExc_AttributeError, 44 | "Call 'get_Application()' failed with 0x%x", hr); 45 | return nullptr; 46 | } 47 | else 48 | { 49 | sipRes = prop; 50 | } 51 | %End 52 | 53 | %Property(name=Application, get=getApplication) 54 | }; 55 | }; 56 | -------------------------------------------------------------------------------- /sip/rpcwppapi/ObjectVerbs.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct ObjectVerbs : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | BSTR *Item /Out/) = 0; 22 | 23 | BSTR __getitem__(int index) const; 24 | %MethodCode 25 | BSTR *prop = new BSTR; 26 | if (sipCpp->Item(a0, prop) != S_OK) 27 | { 28 | delete prop; 29 | sipIsErr = 1; 30 | } 31 | else 32 | { 33 | sipRes = prop; 34 | } 35 | %End 36 | 37 | Application* getApplication(); 38 | %MethodCode 39 | wppapi::Application *prop = nullptr; 40 | HRESULT hr = sipCpp->get_Application(&prop); 41 | if (hr != S_OK) 42 | { 43 | PyErr_Format(PyExc_AttributeError, 44 | "Call 'get_Application()' failed with 0x%x", hr); 45 | return nullptr; 46 | } 47 | else 48 | { 49 | sipRes = prop; 50 | } 51 | %End 52 | 53 | %Property(name=Application, get=getApplication) 54 | }; 55 | }; 56 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Panes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Panes : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | Pane **Item /Out/) = 0; 22 | 23 | Pane* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::Pane *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Placeholders.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Placeholders : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | Shape **Item /Out/) = 0; 22 | 23 | Shape* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::Shape *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT FindByName( 33 | VARIANT Index, 34 | Shape **FindByName /Out/) = 0; 35 | 36 | Application* getApplication(); 37 | %MethodCode 38 | wppapi::Application *prop = nullptr; 39 | HRESULT hr = sipCpp->get_Application(&prop); 40 | if (hr != S_OK) 41 | { 42 | PyErr_Format(PyExc_AttributeError, 43 | "Call 'get_Application()' failed with 0x%x", hr); 44 | return nullptr; 45 | } 46 | else 47 | { 48 | sipRes = prop; 49 | } 50 | %End 51 | 52 | %Property(name=Application, get=getApplication) 53 | }; 54 | }; 55 | -------------------------------------------------------------------------------- /sip/rpcwppapi/PresEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct PresEvents : public IUnknown /Abstract/ 14 | { 15 | public: 16 | }; 17 | }; 18 | -------------------------------------------------------------------------------- /sip/rpcwppapi/PrintRanges.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct PrintRanges : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Add( 17 | int Start, 18 | int End, 19 | PrintRange **Add /Out/) = 0; 20 | 21 | virtual HRESULT get_Application( 22 | Application **Application /Out/) = 0; 23 | 24 | virtual HRESULT ClearAll() = 0; 25 | 26 | virtual HRESULT Item( 27 | int Index, 28 | PrintRange **Item /Out/) = 0; 29 | 30 | PrintRange* __getitem__(int index) const; 31 | %MethodCode 32 | wppapi::PrintRange *prop = nullptr; 33 | if (sipCpp->Item(a0, &prop) != S_OK) 34 | sipIsErr = 1; 35 | else 36 | sipRes = prop; 37 | %End 38 | 39 | Application* getApplication(); 40 | %MethodCode 41 | wppapi::Application *prop = nullptr; 42 | HRESULT hr = sipCpp->get_Application(&prop); 43 | if (hr != S_OK) 44 | { 45 | PyErr_Format(PyExc_AttributeError, 46 | "Call 'get_Application()' failed with 0x%x", hr); 47 | return nullptr; 48 | } 49 | else 50 | { 51 | sipRes = prop; 52 | } 53 | %End 54 | 55 | %Property(name=Application, get=getApplication) 56 | }; 57 | }; 58 | -------------------------------------------------------------------------------- /sip/rpcwppapi/ProtectedViewWindows.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct ProtectedViewWindows : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | ProtectedViewWindow **Item /Out/) = 0; 22 | 23 | ProtectedViewWindow* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::ProtectedViewWindow *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Open( 33 | BSTR FileName, 34 | BSTR ReadPassword = 0, 35 | MsoTriState OpenAndRepair = wppapi::msoFalse, 36 | ProtectedViewWindow **Open /Out/ = 0) = 0; 37 | 38 | Application* getApplication(); 39 | %MethodCode 40 | wppapi::Application *prop = nullptr; 41 | HRESULT hr = sipCpp->get_Application(&prop); 42 | if (hr != S_OK) 43 | { 44 | PyErr_Format(PyExc_AttributeError, 45 | "Call 'get_Application()' failed with 0x%x", hr); 46 | return nullptr; 47 | } 48 | else 49 | { 50 | sipRes = prop; 51 | } 52 | %End 53 | 54 | %Property(name=Application, get=getApplication) 55 | }; 56 | }; 57 | -------------------------------------------------------------------------------- /sip/rpcwppapi/PublishObjects.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct PublishObjects : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | PublishObject **Item /Out/) = 0; 22 | 23 | PublishObject* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::PublishObject *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/ResampleMediaTasks.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct ResampleMediaTasks : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Item( 17 | int Index, 18 | ResampleMediaTask **Item /Out/) = 0; 19 | 20 | ResampleMediaTask* __getitem__(int index) const; 21 | %MethodCode 22 | wppapi::ResampleMediaTask *prop = nullptr; 23 | if (sipCpp->Item(a0, &prop) != S_OK) 24 | sipIsErr = 1; 25 | else 26 | sipRes = prop; 27 | %End 28 | 29 | virtual HRESULT Pause() = 0; 30 | 31 | virtual HRESULT Cancel() = 0; 32 | 33 | virtual HRESULT Resume() = 0; 34 | 35 | virtual HRESULT get_PercentComplete( 36 | long *PercentComplete /Out/) = 0; 37 | 38 | long getPercentComplete(); 39 | %MethodCode 40 | long prop = 0; 41 | HRESULT hr = sipCpp->get_PercentComplete(&prop); 42 | if (hr != S_OK) 43 | { 44 | PyErr_Format(PyExc_AttributeError, 45 | "Call 'get_PercentComplete()' failed with 0x%x", hr); 46 | return nullptr; 47 | } 48 | else 49 | { 50 | sipRes = prop; 51 | } 52 | %End 53 | 54 | %Property(name=PercentComplete, get=getPercentComplete) 55 | }; 56 | }; 57 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Research.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Research : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Query( 20 | BSTR ServiceID, 21 | VARIANT *QueryString = argMissing(), 22 | VARIANT *QueryLanguage = argMissing(), 23 | VARIANT_BOOL UseSelection = VARIANT_FALSE, 24 | VARIANT_BOOL LaunchQuery = -1) = 0; 25 | 26 | virtual HRESULT SetLanguagePair( 27 | VARIANT *Language1, 28 | VARIANT *Language2) = 0; 29 | 30 | virtual HRESULT IsResearchService( 31 | BSTR ServiceID, 32 | VARIANT_BOOL *IsResearchService /Out/) = 0; 33 | 34 | Application* getApplication(); 35 | %MethodCode 36 | wppapi::Application *prop = nullptr; 37 | HRESULT hr = sipCpp->get_Application(&prop); 38 | if (hr != S_OK) 39 | { 40 | PyErr_Format(PyExc_AttributeError, 41 | "Call 'get_Application()' failed with 0x%x", hr); 42 | return nullptr; 43 | } 44 | else 45 | { 46 | sipRes = prop; 47 | } 48 | %End 49 | 50 | %Property(name=Application, get=getApplication) 51 | }; 52 | }; 53 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Rows.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Rows : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | Row **Item /Out/) = 0; 22 | 23 | Row* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::Row *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | int BeforeRow = 0, 34 | Row **Add /Out/ = 0) = 0; 35 | 36 | Application* getApplication(); 37 | %MethodCode 38 | wppapi::Application *prop = nullptr; 39 | HRESULT hr = sipCpp->get_Application(&prop); 40 | if (hr != S_OK) 41 | { 42 | PyErr_Format(PyExc_AttributeError, 43 | "Call 'get_Application()' failed with 0x%x", hr); 44 | return nullptr; 45 | } 46 | else 47 | { 48 | sipRes = prop; 49 | } 50 | %End 51 | 52 | %Property(name=Application, get=getApplication) 53 | }; 54 | }; 55 | -------------------------------------------------------------------------------- /sip/rpcwppapi/RulerLevels.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct RulerLevels : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | RulerLevel **Item /Out/) = 0; 22 | 23 | RulerLevel* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::RulerLevel *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Sequences.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Sequences : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | Sequence **Item /Out/) = 0; 22 | 23 | Sequence* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::Sequence *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | virtual HRESULT Add( 33 | int Index = 0, 34 | Sequence **Add /Out/ = 0) = 0; 35 | 36 | Application* getApplication(); 37 | %MethodCode 38 | wppapi::Application *prop = nullptr; 39 | HRESULT hr = sipCpp->get_Application(&prop); 40 | if (hr != S_OK) 41 | { 42 | PyErr_Format(PyExc_AttributeError, 43 | "Call 'get_Application()' failed with 0x%x", hr); 44 | return nullptr; 45 | } 46 | else 47 | { 48 | sipRes = prop; 49 | } 50 | %End 51 | 52 | %Property(name=Application, get=getApplication) 53 | }; 54 | }; 55 | -------------------------------------------------------------------------------- /sip/rpcwppapi/SldEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct SldEvents : public IUnknown /Abstract/ 14 | { 15 | public: 16 | }; 17 | }; 18 | -------------------------------------------------------------------------------- /sip/rpcwppapi/SlideShowWindows.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct SlideShowWindows : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | SlideShowWindow **Item /Out/) = 0; 22 | 23 | SlideShowWindow* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::SlideShowWindow *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/TableStyle.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct TableStyle : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Name( 17 | BSTR *Name /Out/) = 0; 18 | 19 | virtual HRESULT get_Id( 20 | BSTR *Id /Out/) = 0; 21 | 22 | BSTR getName(); 23 | %MethodCode 24 | BSTR *prop = new BSTR; 25 | HRESULT hr = sipCpp->get_Name(prop); 26 | if (hr != S_OK) 27 | { 28 | delete prop; 29 | PyErr_Format(PyExc_AttributeError, 30 | "Call 'get_Name()' failed with 0x%x", hr); 31 | return nullptr; 32 | } 33 | else 34 | { 35 | sipRes = prop; 36 | } 37 | %End 38 | 39 | %Property(name=Name, get=getName) 40 | 41 | BSTR getId(); 42 | %MethodCode 43 | BSTR *prop = new BSTR; 44 | HRESULT hr = sipCpp->get_Id(prop); 45 | if (hr != S_OK) 46 | { 47 | delete prop; 48 | PyErr_Format(PyExc_AttributeError, 49 | "Call 'get_Id()' failed with 0x%x", hr); 50 | return nullptr; 51 | } 52 | else 53 | { 54 | sipRes = prop; 55 | } 56 | %End 57 | 58 | %Property(name=Id, get=getId) 59 | }; 60 | }; 61 | -------------------------------------------------------------------------------- /sip/rpcwppapi/TextStyleLevels.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct TextStyleLevels : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Level, 21 | TextStyleLevel **Item /Out/) = 0; 22 | 23 | TextStyleLevel* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::TextStyleLevel *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/TextStyles.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct TextStyles : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | PpTextStyleType Type, 21 | TextStyle **Item /Out/) = 0; 22 | 23 | TextStyle* __getitem__(PpTextStyleType index) const; 24 | %MethodCode 25 | wppapi::TextStyle *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/Theme.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct Theme : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT get_ThemeVariants( 20 | ThemeVariants **ThemeVariants /Out/) = 0; 21 | 22 | Application* getApplication(); 23 | %MethodCode 24 | wppapi::Application *prop = nullptr; 25 | HRESULT hr = sipCpp->get_Application(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_Application()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=Application, get=getApplication) 39 | 40 | ThemeVariants* getThemeVariants(); 41 | %MethodCode 42 | wppapi::ThemeVariants *prop = nullptr; 43 | HRESULT hr = sipCpp->get_ThemeVariants(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_ThemeVariants()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=ThemeVariants, get=getThemeVariants) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/rpcwppapi/ThemeVariants.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct ThemeVariants : public wppapi::Collection /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **Application /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | int Index, 21 | ThemeVariant **Item /Out/) = 0; 22 | 23 | ThemeVariant* __getitem__(int index) const; 24 | %MethodCode 25 | wppapi::ThemeVariant *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wppapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /sip/rpcwppapi/_PowerRex.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wppapi 12 | { 13 | struct _PowerRex : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT OnAsfEncoderEvent( 17 | VARIANT erorCode, 18 | VARIANT bstrErrorDesc) = 0; 19 | 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/Axes.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct Axes : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *prop /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | XlAxisType Type, 29 | XlAxisGroup AxisGroup = wpsapi::xlPrimary, 30 | Axis **prop /Out/ = 0) = 0; 31 | 32 | virtual HRESULT _Default( 33 | XlAxisType Type, 34 | XlAxisGroup AxisGroup = wpsapi::xlPrimary, 35 | Axis **prop /Out/ = 0) = 0; 36 | 37 | long getCount(); 38 | %MethodCode 39 | long prop = 0; 40 | HRESULT hr = sipCpp->get_Count(&prop); 41 | if (hr != S_OK) 42 | { 43 | PyErr_Format(PyExc_AttributeError, 44 | "Call 'get_Count()' failed with 0x%x", hr); 45 | return nullptr; 46 | } 47 | else 48 | { 49 | sipRes = prop; 50 | } 51 | %End 52 | 53 | %Property(name=Count, get=getCount) 54 | }; 55 | }; 56 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/ChartGroups.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct ChartGroups : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *prop /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT Index, 29 | ChartGroup **prop /Out/) = 0; 30 | 31 | ChartGroup* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | wpsapi::ChartGroup *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | long getCount(); 41 | %MethodCode 42 | long prop = 0; 43 | HRESULT hr = sipCpp->get_Count(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Count()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Count, get=getCount) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/CoAuthUpdate.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct CoAuthUpdate : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **prop /Out/) = 0; 18 | 19 | virtual HRESULT get_Range( 20 | Range **prop /Out/) = 0; 21 | 22 | Application* getApplication(); 23 | %MethodCode 24 | wpsapi::Application *prop = nullptr; 25 | HRESULT hr = sipCpp->get_Application(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_Application()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=Application, get=getApplication) 39 | 40 | Range* getRange(); 41 | %MethodCode 42 | wpsapi::Range *prop = nullptr; 43 | HRESULT hr = sipCpp->get_Range(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Range()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Range, get=getRange) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/Corners.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct Corners : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Name( 17 | BSTR *prop /Out/) = 0; 18 | 19 | virtual HRESULT Select( 20 | VARIANT *prop /Out/) = 0; 21 | 22 | BSTR getName(); 23 | %MethodCode 24 | BSTR *prop = new BSTR; 25 | HRESULT hr = sipCpp->get_Name(prop); 26 | if (hr != S_OK) 27 | { 28 | delete prop; 29 | PyErr_Format(PyExc_AttributeError, 30 | "Call 'get_Name()' failed with 0x%x", hr); 31 | return nullptr; 32 | } 33 | else 34 | { 35 | sipRes = prop; 36 | } 37 | %End 38 | 39 | %Property(name=Name, get=getName) 40 | }; 41 | }; 42 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/Email.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct Email : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **prop /Out/) = 0; 18 | 19 | virtual HRESULT get_CurrentEmailAuthor( 20 | EmailAuthor **prop /Out/) = 0; 21 | 22 | Application* getApplication(); 23 | %MethodCode 24 | wpsapi::Application *prop = nullptr; 25 | HRESULT hr = sipCpp->get_Application(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_Application()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=Application, get=getApplication) 39 | 40 | EmailAuthor* getCurrentEmailAuthor(); 41 | %MethodCode 42 | wpsapi::EmailAuthor *prop = nullptr; 43 | HRESULT hr = sipCpp->get_CurrentEmailAuthor(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_CurrentEmailAuthor()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=CurrentEmailAuthor, get=getCurrentEmailAuthor) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/EmailAuthor.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct EmailAuthor : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **prop /Out/) = 0; 18 | 19 | virtual HRESULT get_Style( 20 | Style **prop /Out/) = 0; 21 | 22 | Application* getApplication(); 23 | %MethodCode 24 | wpsapi::Application *prop = nullptr; 25 | HRESULT hr = sipCpp->get_Application(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_Application()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=Application, get=getApplication) 39 | 40 | Style* getStyle(); 41 | %MethodCode 42 | wpsapi::Style *prop = nullptr; 43 | HRESULT hr = sipCpp->get_Style(&prop); 44 | if (hr != S_OK) 45 | { 46 | PyErr_Format(PyExc_AttributeError, 47 | "Call 'get_Style()' failed with 0x%x", hr); 48 | return nullptr; 49 | } 50 | else 51 | { 52 | sipRes = prop; 53 | } 54 | %End 55 | 56 | %Property(name=Style, get=getStyle) 57 | }; 58 | }; 59 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/FreeformBuilder.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct FreeformBuilder : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **prop /Out/) = 0; 18 | 19 | virtual HRESULT AddNodes( 20 | MsoSegmentType SegmentType, 21 | MsoEditingType EditingType, 22 | single X1, 23 | single Y1, 24 | single X2 = 0, 25 | single Y2 = 0, 26 | single X3 = 0, 27 | single Y3 = 0) = 0; 28 | 29 | virtual HRESULT ConvertToShape( 30 | VARIANT *Anchor = argMissing(), 31 | Shape **prop /Out/ = 0) = 0; 32 | 33 | Application* getApplication(); 34 | %MethodCode 35 | wpsapi::Application *prop = nullptr; 36 | HRESULT hr = sipCpp->get_Application(&prop); 37 | if (hr != S_OK) 38 | { 39 | PyErr_Format(PyExc_AttributeError, 40 | "Call 'get_Application()' failed with 0x%x", hr); 41 | return nullptr; 42 | } 43 | else 44 | { 45 | sipRes = prop; 46 | } 47 | %End 48 | 49 | %Property(name=Application, get=getApplication) 50 | }; 51 | }; 52 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/FullSeriesCollection.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct FullSeriesCollection : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *prop /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT Index, 29 | Series **prop /Out/) = 0; 30 | 31 | Series* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | wpsapi::Series *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT _Default( 41 | VARIANT Index, 42 | Series **prop /Out/) = 0; 43 | 44 | long getCount(); 45 | %MethodCode 46 | long prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | }; 62 | }; 63 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/IApplicationEvents.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct IApplicationEvents : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Startup() = 0; 17 | 18 | virtual HRESULT Quit() = 0; 19 | 20 | virtual HRESULT DocumentChange() = 0; 21 | 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/IApplicationEvents2.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct IApplicationEvents2 : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT Startup() = 0; 17 | 18 | virtual HRESULT Quit() = 0; 19 | 20 | virtual HRESULT DocumentChange() = 0; 21 | 22 | virtual HRESULT DocumentOpen( 23 | Document *Doc) = 0; 24 | 25 | virtual HRESULT DocumentBeforeClose( 26 | Document *Doc, 27 | VARIANT_BOOL *Cancel) = 0; 28 | 29 | virtual HRESULT DocumentBeforePrint( 30 | Document *Doc, 31 | VARIANT_BOOL *Cancel) = 0; 32 | 33 | virtual HRESULT DocumentBeforeSave( 34 | Document *Doc, 35 | VARIANT_BOOL *SaveAsUI, 36 | VARIANT_BOOL *Cancel) = 0; 37 | 38 | virtual HRESULT NewDocument( 39 | Document *Doc) = 0; 40 | 41 | virtual HRESULT WindowActivate( 42 | Document *Doc, 43 | Window *Wn) = 0; 44 | 45 | virtual HRESULT WindowDeactivate( 46 | Document *Doc, 47 | Window *Wn) = 0; 48 | 49 | virtual HRESULT WindowSelectionChange( 50 | Selection *Sel) = 0; 51 | 52 | virtual HRESULT WindowBeforeRightClick( 53 | Selection *Sel, 54 | VARIANT_BOOL *Cancel) = 0; 55 | 56 | virtual HRESULT WindowBeforeDoubleClick( 57 | Selection *Sel, 58 | VARIANT_BOOL *Cancel) = 0; 59 | 60 | }; 61 | }; 62 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/LegendEntries.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct LegendEntries : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *prop /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | VARIANT Index, 29 | LegendEntry **prop /Out/) = 0; 30 | 31 | LegendEntry* __getitem__(VARIANT index) const; 32 | %MethodCode 33 | wpsapi::LegendEntry *prop = nullptr; 34 | if (sipCpp->Item(*a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT _Default( 41 | VARIANT Index, 42 | LegendEntry **prop /Out/) = 0; 43 | 44 | long getCount(); 45 | %MethodCode 46 | long prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | }; 62 | }; 63 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/MailMessage.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct MailMessage : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **prop /Out/) = 0; 18 | 19 | virtual HRESULT CheckName() = 0; 20 | 21 | virtual HRESULT Delete() = 0; 22 | 23 | virtual HRESULT DisplayMoveDialog() = 0; 24 | 25 | virtual HRESULT DisplayProperties() = 0; 26 | 27 | virtual HRESULT DisplaySelectNamesDialog() = 0; 28 | 29 | virtual HRESULT Forward() = 0; 30 | 31 | virtual HRESULT GoToNext() = 0; 32 | 33 | virtual HRESULT GoToPrevious() = 0; 34 | 35 | virtual HRESULT Reply() = 0; 36 | 37 | virtual HRESULT ReplyAll() = 0; 38 | 39 | virtual HRESULT ToggleHeader() = 0; 40 | 41 | Application* getApplication(); 42 | %MethodCode 43 | wpsapi::Application *prop = nullptr; 44 | HRESULT hr = sipCpp->get_Application(&prop); 45 | if (hr != S_OK) 46 | { 47 | PyErr_Format(PyExc_AttributeError, 48 | "Call 'get_Application()' failed with 0x%x", hr); 49 | return nullptr; 50 | } 51 | else 52 | { 53 | sipRes = prop; 54 | } 55 | %End 56 | 57 | %Property(name=Application, get=getApplication) 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/Points.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020-2021 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct Points : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Count( 17 | long *prop /Out/) = 0; 18 | 19 | Py_ssize_t __len__() const; 20 | %MethodCode 21 | long count = 0; 22 | if (sipCpp->get_Count(&count) != S_OK) 23 | count = 0; 24 | sipRes = count; 25 | %End 26 | 27 | virtual HRESULT Item( 28 | long Index, 29 | Point **prop /Out/) = 0; 30 | 31 | Point* __getitem__(long index) const; 32 | %MethodCode 33 | wpsapi::Point *prop = nullptr; 34 | if (sipCpp->Item(a0, &prop) != S_OK) 35 | sipIsErr = 1; 36 | else 37 | sipRes = prop; 38 | %End 39 | 40 | virtual HRESULT _Default( 41 | long Index, 42 | Point **prop /Out/) = 0; 43 | 44 | long getCount(); 45 | %MethodCode 46 | long prop = 0; 47 | HRESULT hr = sipCpp->get_Count(&prop); 48 | if (hr != S_OK) 49 | { 50 | PyErr_Format(PyExc_AttributeError, 51 | "Call 'get_Count()' failed with 0x%x", hr); 52 | return nullptr; 53 | } 54 | else 55 | { 56 | sipRes = prop; 57 | } 58 | %End 59 | 60 | %Property(name=Count, get=getCount) 61 | }; 62 | }; 63 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/SpellingSuggestion.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct SpellingSuggestion : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **prop /Out/) = 0; 18 | 19 | virtual HRESULT get_Name( 20 | BSTR *prop /Out/) = 0; 21 | 22 | Application* getApplication(); 23 | %MethodCode 24 | wpsapi::Application *prop = nullptr; 25 | HRESULT hr = sipCpp->get_Application(&prop); 26 | if (hr != S_OK) 27 | { 28 | PyErr_Format(PyExc_AttributeError, 29 | "Call 'get_Application()' failed with 0x%x", hr); 30 | return nullptr; 31 | } 32 | else 33 | { 34 | sipRes = prop; 35 | } 36 | %End 37 | 38 | %Property(name=Application, get=getApplication) 39 | 40 | BSTR getName(); 41 | %MethodCode 42 | BSTR *prop = new BSTR; 43 | HRESULT hr = sipCpp->get_Name(prop); 44 | if (hr != S_OK) 45 | { 46 | delete prop; 47 | PyErr_Format(PyExc_AttributeError, 48 | "Call 'get_Name()' failed with 0x%x", hr); 49 | return nullptr; 50 | } 51 | else 52 | { 53 | sipRes = prop; 54 | } 55 | %End 56 | 57 | %Property(name=Name, get=getName) 58 | }; 59 | }; 60 | -------------------------------------------------------------------------------- /sip/rpcwpsapi/Zooms.sip: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2020 Weitian Leung 3 | * 4 | * This file is part of pywpsrpc. 5 | * 6 | * This file is distributed under the MIT License. 7 | * See the LICENSE file for details. 8 | * 9 | */ 10 | 11 | namespace wpsapi 12 | { 13 | struct Zooms : public IDispatch /Abstract/ 14 | { 15 | public: 16 | virtual HRESULT get_Application( 17 | Application **prop /Out/) = 0; 18 | 19 | virtual HRESULT Item( 20 | WdViewType Index, 21 | Zoom **prop /Out/) = 0; 22 | 23 | Zoom* __getitem__(WdViewType index) const; 24 | %MethodCode 25 | wpsapi::Zoom *prop = nullptr; 26 | if (sipCpp->Item(a0, &prop) != S_OK) 27 | sipIsErr = 1; 28 | else 29 | sipRes = prop; 30 | %End 31 | 32 | Application* getApplication(); 33 | %MethodCode 34 | wpsapi::Application *prop = nullptr; 35 | HRESULT hr = sipCpp->get_Application(&prop); 36 | if (hr != S_OK) 37 | { 38 | PyErr_Format(PyExc_AttributeError, 39 | "Call 'get_Application()' failed with 0x%x", hr); 40 | return nullptr; 41 | } 42 | else 43 | { 44 | sipRes = prop; 45 | } 46 | %End 47 | 48 | %Property(name=Application, get=getApplication) 49 | }; 50 | }; 51 | -------------------------------------------------------------------------------- /tests/test_rpcproxy.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import sys 4 | import os 5 | 6 | sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + "/../build") 7 | 8 | from pywpsrpc.rpcwpsapi import (createWpsRpcInstance, wpsapi) 9 | from pywpsrpc.common import FAILED 10 | from pywpsrpc import RpcProxy 11 | 12 | 13 | def main(): 14 | hr, rpc = createWpsRpcInstance() 15 | if FAILED(hr): 16 | print("createWpsRpcInstance failed with hr: ", hr) 17 | sys.exit(-1) 18 | 19 | app = RpcProxy(rpc.getWpsApplication()) 20 | print(app.last_error) 21 | 22 | # get the raw object 23 | obj = app.rpc_object 24 | print(obj) 25 | 26 | print(app.Build) 27 | app.Visible = False 28 | app.Visible = True 29 | 30 | doc = app.Documents.Add() 31 | print(doc.Name) 32 | 33 | if not app.Selection.InsertAfter("Hello, world"): 34 | print("Can't insert text") 35 | 36 | font = app.Selection.Font 37 | font.Bold = True 38 | 39 | doc.Close(SaveChanges=wpsapi.wdDoNotSaveChanges) 40 | 41 | try: 42 | # should be failed since no Documents opened. 43 | doc = app.ActiveDocument 44 | except Exception as e: 45 | print(e) 46 | 47 | app.Quit(wpsapi.wdDoNotSaveChanges) 48 | 49 | 50 | if __name__ == "__main__": 51 | main() 52 | --------------------------------------------------------------------------------