wps-jsapi
Version:
wps加载项的jsapi对象模型的TypeScript描述
2,548 lines (1,899 loc) • 216 kB
TypeScript
/// <reference path="lib.kso.d.ts" />
declare namespace Wpp {
interface WppThreeDFormat extends Kso.KsoThreeDFormat {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppPresentation {
/**
* Signatures
**/
readonly Signatures: Kso.KsoSignatureSet;
/**
* NotesMaster
**/
readonly NotesMaster: WppMaster;
AddTitleMaster(TitleMaster?: WppMaster): void;
/**
* HasTitleMaster
**/
readonly HasTitleMaster: Kso.KsoMsoTriState;
FollowHyperlink(Address?: string, SubAddress?: string, NewWindow?: boolean, AddHistory?: boolean, ExtraInfo?: string, Method?: Kso.KsoMsoExtraInfoMethod, HeaderInfo?: string): void;
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
ApplyTemplate2(FileName?: string, VariantGUID?: string): void;
ApplyTemplate(FileName?: string): void;
/**
* FarEastLineBreakLevel
**/
FarEastLineBreakLevel: WppPpFarEastLineBreakLevel;
/**
* BuiltInDocumentProperties
**/
readonly BuiltInDocumentProperties: any;
Save(): void;
/**
* TitleMaster
**/
readonly TitleMaster: WppMaster;
Unused(): void;
/**
* SlideMaster
**/
readonly SlideMaster: WppMaster;
/**
* TemplateName
**/
readonly TemplateName: string;
/**
* HandoutMaster
**/
readonly HandoutMaster: WppMaster;
/**
* HTMLProject
**/
readonly HTMLProject: Kso.KsoHTMLProject;
/**
* Slides
**/
readonly Slides: WppSlides;
/**
* ExtraColors
**/
readonly ExtraColors: WppExtraColors;
/**
* PageSetup
**/
readonly PageSetup: WppPageSetup;
/**
* ColorSchemes
**/
readonly ColorSchemes: WppColorSchemes;
/**
* SlideShowSettings
**/
readonly SlideShowSettings: WppSlideShowSettings;
/**
* CustomDocumentProperties
**/
readonly CustomDocumentProperties: any;
/**
* Fonts
**/
readonly Fonts: WppFonts;
/**
* Windows
**/
readonly Windows: WppDocumentWindows;
ReloadAs(cp?: Kso.KsoMsoEncoding): void;
/**
* LayoutDirection
**/
LayoutDirection: WppPpDirection;
/**
* Tags
**/
readonly Tags: WppTags;
/**
* PasswordEncryptionFileProperties
**/
readonly PasswordEncryptionFileProperties: boolean;
/**
* DefaultShape
**/
readonly DefaultShape: Kso.KsoShape;
/**
* ReadOnly
**/
readonly ReadOnly: Kso.KsoMsoTriState;
SetUndoText(Text?: string): void;
/**
* FullName
**/
readonly FullName: string;
SaveAs(FileName?: string, FileFormat?: WppPpSaveAsFileType, EmbedTrueTypeFonts?: Kso.KsoMsoTriState): void;
/**
* Name
**/
readonly Name: string;
/**
* Path
**/
readonly Path: string;
/**
* VBASigned
**/
readonly VBASigned: Kso.KsoMsoTriState;
/**
* Saved
**/
Saved: Kso.KsoMsoTriState;
NewWindow(NewWindow?: WppDocumentWindow): void;
Close(): void;
AddToFavorites(): void;
CanCheckIn(CanCheckIn?: boolean): void;
/**
* PrintOptions
**/
readonly PrintOptions: WppPrintOptions;
PrintOut(From?: number, To?: number, PrintToFile?: string, Copies?: number, Collate?: Kso.KsoMsoTriState): void;
SaveCopyAs(FileName?: string, FileFormat?: WppPpSaveAsFileType, EmbedTrueTypeFonts?: Kso.KsoMsoTriState): void;
/**
* Designs
**/
readonly Designs: WppDesigns;
/**
* NoLineBreakBefore
**/
NoLineBreakBefore: string;
MakeIntoTemplate(IsDesignTemplate?: Kso.KsoMsoTriState): void;
Export(Path?: string, FilterName?: string, ScaleWidth?: number, ScaleHeight?: number): void;
/**
* Container
**/
readonly Container: any;
/**
* DisplayComments
**/
DisplayComments: Kso.KsoMsoTriState;
/**
* GridDistance
**/
GridDistance: number;
/**
* WebOptions
**/
readonly WebOptions: WppWebOptions;
/**
* NoLineBreakAfter
**/
NoLineBreakAfter: string;
UpdateLinks(): void;
sblt(s?: string): void;
Convert2(FileName?: string): void;
/**
* PasswordEncryptionProvider
**/
readonly PasswordEncryptionProvider: string;
/**
* SlideShowWindow
**/
readonly SlideShowWindow: WppSlideShowWindow;
/**
* EnvelopeVisible
**/
EnvelopeVisible: Kso.KsoMsoTriState;
/**
* FarEastLineBreakLanguage
**/
FarEastLineBreakLanguage: Kso.KsoMsoFarEastLineBreakLanguageID;
WebPagePreview(): void;
Merge(Path?: string): void;
/**
* DefaultLanguageID
**/
DefaultLanguageID: Kso.KsoMsoLanguageID;
/**
* CommandBars
**/
readonly CommandBars: Kso.KsoCommandBars;
/**
* PublishObjects
**/
readonly PublishObjects: WppPublishObjects;
/**
* SnapToGrid
**/
SnapToGrid: Kso.KsoMsoTriState;
CheckIn(SaveChanges?: boolean, Comments?: any, MakePublic?: any): void;
/**
* RemovePersonalInformation
**/
RemovePersonalInformation: Kso.KsoMsoTriState;
SendForReview(Recipients?: string, Subject?: string, ShowMessage?: boolean, IncludeAttachment?: any): void;
ReplyWithChanges(ShowMessage?: boolean): void;
EndReview(): void;
/**
* HasRevisionInfo
**/
readonly HasRevisionInfo: WppPpRevisionInfo;
AddBaseline(FileName?: string): void;
/**
* CustomXMLParts
**/
readonly CustomXMLParts: Kso.KsoCustomXMLParts;
RemoveBaseline(): void;
/**
* PasswordEncryptionAlgorithm
**/
readonly PasswordEncryptionAlgorithm: string;
/**
* PasswordEncryptionKeyLength
**/
readonly PasswordEncryptionKeyLength: number;
SetPasswordEncryptionOptions(PasswordEncryptionProvider?: string, PasswordEncryptionAlgorithm?: string, PasswordEncryptionKeyLength?: number, PasswordEncryptionFileProperties?: boolean): void;
/**
* Password
**/
Password: string;
/**
* WritePassword
**/
WritePassword: string;
/**
* Permission
**/
readonly Permission: Kso.KsoPermission;
/**
* SharedWorkspace
**/
readonly SharedWorkspace: Kso.KsoSharedWorkspace;
/**
* Sync
**/
readonly Sync: Kso.KsoSync;
SendFaxOverInternet(Recipients?: string, Subject?: string, ShowMessage?: boolean): void;
/**
* DocumentLibraryVersions
**/
readonly DocumentLibraryVersions: Kso.KsoDocumentLibraryVersions;
/**
* ContentTypeProperties
**/
readonly ContentTypeProperties: Kso.KsoMetaProperties;
/**
* SectionCount
**/
readonly SectionCount: number;
/**
* HasSections
**/
readonly HasSections: boolean;
NewSectionAfter(Index?: number, AfterSlide?: boolean, sectionTitle?: string, newSectionIndex?: number): void;
DeleteSection(Index?: number): void;
DisableSections(): void;
sectionTitle(Index?: number, sectionTitle?: string): void;
RemoveDocumentInformation(Type?: WppPpRemoveDocInfoType): void;
CheckInWithVersion(SaveChanges?: boolean, Comments?: any, MakePublic?: any, VersionType?: any): void;
ExportAsFixedFormat(Path?: string, FixedFormatType?: WppPpFixedFormatType, Intent?: WppPpFixedFormatIntent, FrameSlides?: Kso.KsoMsoTriState, HandoutOrder?: WppPpPrintHandoutOrder, OutputType?: WppPpPrintOutputType, PrintHiddenSlides?: Kso.KsoMsoTriState, PrintRange?: WppPrintRange, RangeType?: WppPpPrintRangeType, SlideShowName?: string, IncludeDocProperties?: boolean, KeepIRMSettings?: boolean, DocStructureTags?: boolean, BitmapMissingFonts?: boolean, UseISO19005_1?: boolean, ExternalExporter?: any): void;
/**
* ServerPolicy
**/
readonly ServerPolicy: Kso.KsoServerPolicy;
GetWorkflowTasks(GetWorkflowTasks?: Kso.KsoWorkflowTasks): void;
GetWorkflowTemplates(GetWorkflowTemplates?: Kso.KsoWorkflowTemplates): void;
LockServerFile(): void;
/**
* HasVBProject
**/
readonly HasVBProject: boolean;
/**
* DocumentInspectors
**/
readonly DocumentInspectors: Kso.KsoDocumentInspectors;
/**
* Final
**/
Final: boolean;
ApplyTheme(themeName?: string): void;
/**
* CustomerData
**/
readonly CustomerData: WppCustomerData;
/**
* Research
**/
readonly Research: WppResearch;
PublishSlides(SlideLibraryUrl?: string, Overwrite?: boolean, UseSlideOrder?: boolean): void;
/**
* EncryptionProvider
**/
EncryptionProvider: string;
Convert(): void;
/**
* SectionProperties
**/
readonly SectionProperties: WppSectionProperties;
/**
* Coauthoring
**/
readonly Coauthoring: WppCoauthoring;
MergeWithBaseline(withPresentation?: string, baselinePresentation?: string): void;
/**
* InMergeMode
**/
readonly InMergeMode: boolean;
AcceptAll(): void;
RejectAll(): void;
EnsureAllMediaUpgraded(): void;
/**
* Broadcast
**/
readonly Broadcast: WppBroadcast;
/**
* HasNotesMaster
**/
readonly HasNotesMaster: boolean;
/**
* HasHandoutMaster
**/
readonly HasHandoutMaster: boolean;
/**
* CreateVideoStatus
**/
readonly CreateVideoStatus: WppPpMediaTaskStatus;
CreateVideo(FileName?: string, UseTimingsAndNarrations?: boolean, DefaultSlideDuration?: number, VertResolution?: number, FramesPerSecond?: number, Quality?: number): void;
/**
* ChartDataPointTrack
**/
ChartDataPointTrack: boolean;
ExportAsFixedFormat2(Path?: string, FixedFormatType?: WppPpFixedFormatType, Intent?: WppPpFixedFormatIntent, FrameSlides?: Kso.KsoMsoTriState, HandoutOrder?: WppPpPrintHandoutOrder, OutputType?: WppPpPrintOutputType, PrintHiddenSlides?: Kso.KsoMsoTriState, PrintRange?: WppPrintRange, RangeType?: WppPpPrintRangeType, SlideShowName?: string, IncludeDocProperties?: boolean, KeepIRMSettings?: boolean, DocStructureTags?: boolean, BitmapMissingFonts?: boolean, UseISO19005_1?: boolean, IncludeMarkup?: boolean, ExternalExporter?: any): void;
/**
* Guides
**/
readonly Guides: WppGuides;
}
interface WppPresentations {
Open(FileName?: string, ReadOnly?: Kso.KsoMsoTriState, Untitled?: Kso.KsoMsoTriState, WithWindow?: Kso.KsoMsoTriState, Open?: WppPresentation): void;
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
CheckOut(FileName?: string): void;
Item(Index?: any, Item?: WppPresentation): void;
Add(WithWindow?: Kso.KsoMsoTriState, Add?: WppPresentation): void;
OpenOld(FileName?: string, ReadOnly?: Kso.KsoMsoTriState, Untitled?: Kso.KsoMsoTriState, WithWindow?: Kso.KsoMsoTriState, OpenOld?: WppPresentation): void;
CanCheckOut(FileName?: string, CanCheckOut?: boolean): void;
Open2007(FileName?: string, ReadOnly?: Kso.KsoMsoTriState, Untitled?: Kso.KsoMsoTriState, WithWindow?: Kso.KsoMsoTriState, OpenAndRepair?: Kso.KsoMsoTriState, Open2007?: WppPresentation): void;
}
interface WppBorders {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
Item(BorderType?: WppPpBorderType, Item?: Kso.KsoLineFormat): void;
}
interface WppDiagramNode extends Kso.KsoDiagramNode {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppTabStops {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
/**
* DefaultSpacing
**/
DefaultSpacing: number;
Item(Index?: number, Item?: WppTabStop): void;
Add(Type?: WppPpTabStopType, Position?: number, Add?: WppTabStop): void;
}
interface WppMasterEvents {}
interface WppApplication {
/**
* Path
**/
readonly Path: string;
/**
* ProductCode
**/
readonly ProductCode: string;
/**
* Presentations
**/
readonly Presentations: WppPresentations;
/**
* Windows
**/
readonly Windows: WppDocumentWindows;
/**
* Assistance
**/
readonly Assistance: Kso.KsoAssistance;
/**
* DisplayAlerts
**/
DisplayAlerts: WppPpAlertLevel;
/**
* MsoDebugOptions
**/
readonly MsoDebugOptions: Kso.KsoMsoDebugOptions;
/**
* Assistant
**/
readonly Assistant: Kso.KsoAssistant;
/**
* Dialogs
**/
readonly Dialogs: any;
/**
* CommandBars
**/
readonly CommandBars: Kso.KsoCommandBars;
/**
* ActiveEncryptionSession
**/
readonly ActiveEncryptionSession: number;
/**
* ActiveWindow
**/
readonly ActiveWindow: WppDocumentWindow;
/**
* AutoCorrect
**/
readonly AutoCorrect: WppAutoCorrect;
/**
* Top
**/
Top: number;
/**
* SlideShowWindows
**/
readonly SlideShowWindows: WppSlideShowWindows;
/**
* Options
**/
readonly Options: WppOptions;
/**
* ActivePresentation
**/
readonly ActivePresentation: WppPresentation;
/**
* ActivePrinter
**/
readonly ActivePrinter: string;
/**
* Name
**/
readonly Name: string;
Activate(): void;
/**
* Caption
**/
Caption: string;
SetOptionFlag(Option?: number, State?: boolean, Persist?: boolean): void;
/**
* FileSearch
**/
readonly FileSearch: Kso.KsoFileSearch;
/**
* FileFind
**/
readonly FileFind: Kso.KsoFind;
/**
* Build
**/
readonly Build: string;
/**
* SmartArtLayouts
**/
readonly SmartArtLayouts: Kso.KsoSmartArtLayouts;
/**
* Creator
**/
readonly Creator: number;
/**
* Version
**/
readonly Version: string;
/**
* OperatingSystem
**/
readonly OperatingSystem: string;
/**
* AddIns
**/
readonly AddIns: WppAddIns;
/**
* FileConverters
**/
readonly FileConverters: WppFileConverters;
/**
* Height
**/
Height: number;
Help(HelpFile?: string, ContextID?: number): void;
Quit(): void;
OpenThemeFile(themeFileName?: string, Theme?: WppTheme): void;
LaunchSendToPPTDialog(SlideUrls?: any): void;
Run(MacroName?: string, safeArrayOfParams?: any[], Run?: any): void;
/**
* Left
**/
Left: number;
PPFileDialog(Type?: WppPpFileDialogType, PPFileDialog?: any): void;
/**
* SmartArtQuickStyles
**/
readonly SmartArtQuickStyles: Kso.KsoSmartArtQuickStyles;
/**
* HWND
**/
readonly HWND: number;
LaunchSpelling(pWindow?: WppDocumentWindow): void;
/**
* Width
**/
Width: number;
/**
* DisplayDocumentInformationPanel
**/
DisplayDocumentInformationPanel: boolean;
/**
* WindowState
**/
WindowState: WppPpWindowState;
/**
* Visible
**/
Visible: Kso.KsoMsoTriState;
/**
* Active
**/
readonly Active: Kso.KsoMsoTriState;
/**
* AnswerWizard
**/
readonly AnswerWizard: Kso.KsoAnswerWizard;
/**
* COMAddIns
**/
readonly COMAddIns: Kso.KsoCOMAddIns;
/**
* ShowStartupDialog
**/
ShowStartupDialog: Kso.KsoMsoTriState;
/**
* DefaultWebOptions
**/
readonly DefaultWebOptions: WppDefaultWebOptions;
/**
* LanguageSettings
**/
readonly LanguageSettings: Kso.KsoLanguageSettings;
/**
* ShowWindowsInTaskbar
**/
ShowWindowsInTaskbar: Kso.KsoMsoTriState;
GetOptionFlag(Option?: number, Persist?: boolean, GetOptionFlag?: boolean): void;
/**
* Marker
**/
readonly Marker: any;
/**
* FeatureInstall
**/
FeatureInstall: Kso.KsoMsoFeatureInstall;
/**
* SmartArtColors
**/
readonly SmartArtColors: Kso.KsoSmartArtColors;
FileDialog(Type?: Kso.KsoMsoFileDialogType, FileDialog?: Kso.KsoFileDialog): void;
/**
* DisplayGridLines
**/
DisplayGridLines: Kso.KsoMsoTriState;
/**
* AutomationSecurity
**/
AutomationSecurity: Kso.KsoMsoAutomationSecurity;
/**
* NewPresentation
**/
readonly NewPresentation: Kso.KsoNewFile;
SetPerfMarker(Marker?: number): void;
LaunchPublishSlidesDialog(SlideLibraryUrl?: string): void;
/**
* ProtectedViewWindows
**/
readonly ProtectedViewWindows: WppProtectedViewWindows;
/**
* ActiveProtectedViewWindow
**/
readonly ActiveProtectedViewWindow: WppProtectedViewWindow;
/**
* IsSandboxed
**/
readonly IsSandboxed: boolean;
/**
* ResampleMediaTasks
**/
readonly ResampleMediaTasks: WppResampleMediaTasks;
StartNewUndoEntry(): void;
/**
* FileValidation
**/
FileValidation: Kso.KsoMsoFileValidationMode;
/**
* ChartDataPointTrack
**/
ChartDataPointTrack: boolean;
/**
* DisplayGuides
**/
DisplayGuides: Kso.KsoMsoTriState;
}
interface WppTimeLine {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
/**
* MainSequence
**/
readonly MainSequence: WppSequence;
/**
* InteractiveSequences
**/
readonly InteractiveSequences: WppSequences;
}
interface WppShadowFormat extends Kso.KsoShadowFormat {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppCollection {
/**
* _NewEnum
**/
readonly _NewEnum: any;
_Index(Index?: number, _Index?: any): void;
/**
* Count
**/
readonly Count: number;
}
interface WppSelection {
/**
* Application
**/
readonly Application: WppApplication;
Delete(): void;
/**
* Parent
**/
readonly Parent: any;
Copy(): void;
Cut(): void;
Unselect(): void;
/**
* Type
**/
readonly Type: WppPpSelectionType;
/**
* ShapeRange
**/
readonly ShapeRange: Kso.KsoShapeRange;
/**
* SlideRange
**/
readonly SlideRange: WppSlideRange;
/**
* TextRange
**/
readonly TextRange: WppTextRange;
/**
* ChildShapeRange
**/
readonly ChildShapeRange: Kso.KsoShapeRange;
/**
* HasChildShapeRange
**/
readonly HasChildShapeRange: boolean;
/**
* TextRange2
**/
readonly TextRange2: Kso.KsoTextRange2;
}
interface WppPowerRex {
OnAsfEncoderEvent(erorCode?: any, bstrErrorDesc?: any): void;
}
interface WppShapes extends Kso.KsoShapes {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
AddTitle(Title?: Kso.KsoShape): void;
AddOLEObject(Left?: number, Top?: number, Width?: number, Height?: number, ClassName?: string, FileName?: string, DisplayAsIcon?: Kso.KsoMsoTriState, IconFileName?: string, IconIndex?: number, IconLabel?: string, Link?: Kso.KsoMsoTriState, OLEObject?: Kso.KsoShape): void;
/**
* Title
**/
readonly Title: Kso.KsoShape;
/**
* HasTitle
**/
readonly HasTitle: Kso.KsoMsoTriState;
/**
* Placeholders
**/
readonly Placeholders: WppPlaceholders;
AddComment(Left?: number, Top?: number, Width?: number, Height?: number, Comment?: Kso.KsoShape): void;
AddPlaceholder(Type?: WppPpPlaceholderType, Left?: number, Top?: number, Width?: number, Height?: number, Placeholder?: Kso.KsoShape): void;
AddMediaObject(FileName?: string, Left?: number, Top?: number, Width?: number, Height?: number, MediaObject?: Kso.KsoShape): void;
Paste(Paste?: Kso.KsoShapeRange): void;
PasteSpecial(DataType?: WppPpPasteDataType, DisplayAsIcon?: Kso.KsoMsoTriState, IconFileName?: string, IconIndex?: number, IconLabel?: string, Link?: Kso.KsoMsoTriState, PasteSpecial?: Kso.KsoShapeRange): void;
AddMediaObject2(FileName?: string, LinkToFile?: Kso.KsoMsoTriState, SaveWithDocument?: Kso.KsoMsoTriState, Left?: number, Top?: number, Width?: number, Height?: number, MediaObject2?: Kso.KsoShape): void;
AddMediaObjectFromEmbedTag(EmbedTag?: string, Left?: number, Top?: number, Width?: number, Height?: number, MediaObjectFromEmbedTag?: Kso.KsoShape): void;
}
interface WppDiagram {
/**
* Nodes
**/
readonly Nodes: Kso.KsoDiagramNodes;
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
/**
* AutoLayout
**/
AutoLayout: Kso.KsoMsoTriState;
/**
* Parent
**/
readonly Parent: any;
/**
* Type
**/
readonly Type: Kso.KsoMsoDiagramType;
/**
* Reverse
**/
Reverse: Kso.KsoMsoTriState;
Convert(Type?: Kso.KsoMsoDiagramType): void;
/**
* AutoFormat
**/
AutoFormat: Kso.KsoMsoTriState;
FitText(): void;
}
interface WppEApplication {
SlideShowOnPrevious(Wn?: WppSlideShowWindow): void;
WindowSelectionChange(Sel?: WppSelection): void;
PresentationBeforeClose(Pres?: WppPresentation, Cancel?: boolean): void;
WindowBeforeRightClick(Sel?: WppSelection, Cancel?: boolean): void;
WindowBeforeDoubleClick(Sel?: WppSelection, Cancel?: boolean): void;
PresentationNewSlide(Sld?: WppSlide): void;
PresentationCloseFinal(Pres?: WppPresentation): void;
PresentationClose(Pres?: WppPresentation): void;
NewPresentation(Pres?: WppPresentation): void;
PresentationSync(Pres?: WppPresentation, SyncEventType?: Kso.KsoMsoSyncEventType): void;
PresentationSave(Pres?: WppPresentation): void;
PresentationOpen(Pres?: WppPresentation): void;
AfterShapeSizeChange(shp?: Kso.KsoShape): void;
AfterPresentationOpen(Pres?: WppPresentation): void;
WindowActivate(Pres?: WppPresentation, Wn?: WppDocumentWindow): void;
AfterDragDropOnSlide(Sld?: WppSlide, X?: number, Y?: number): void;
SlideShowBegin(Wn?: WppSlideShowWindow): void;
WindowDeactivate(Pres?: WppPresentation, Wn?: WppDocumentWindow): void;
ProtectedViewWindowOpen(ProtViewWindow?: WppProtectedViewWindow): void;
SlideShowNextBuild(Wn?: WppSlideShowWindow): void;
SlideShowNextClick(Wn?: WppSlideShowWindow, nEffect?: WppEffect): void;
SlideShowNextSlide(Wn?: WppSlideShowWindow): void;
SlideShowEnd(Pres?: WppPresentation): void;
PresentationPrint(Pres?: WppPresentation): void;
SlideSelectionChanged(SldRange?: WppSlideRange): void;
ProtectedViewWindowActivate(ProtViewWindow?: WppProtectedViewWindow): void;
ColorSchemeChanged(SldRange?: WppSlideRange): void;
PresentationBeforeSave(Pres?: WppPresentation, Cancel?: boolean): void;
AfterNewPresentation(Pres?: WppPresentation): void;
SlideShowOnNext(Wn?: WppSlideShowWindow): void;
ProtectedViewWindowBeforeEdit(ProtViewWindow?: WppProtectedViewWindow, Cancel?: boolean): void;
ProtectedViewWindowBeforeClose(ProtViewWindow?: WppProtectedViewWindow, ProtectedViewCloseReason?: WppPpProtectedViewCloseReason, Cancel?: boolean): void;
ProtectedViewWindowDeactivate(ProtViewWindow?: WppProtectedViewWindow): void;
}
interface WppRulerLevels {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
Item(Index?: number, Item?: WppRulerLevel): void;
}
interface WppRulerLevel {
/**
* Application
**/
readonly Application: WppApplication;
/**
* FirstMargin
**/
FirstMargin: number;
/**
* Parent
**/
readonly Parent: any;
/**
* LeftMargin
**/
LeftMargin: number;
}
interface WppShapeRange extends Kso.KsoShapeRange {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
/**
* LinkFormat
**/
readonly LinkFormat: WppLinkFormat;
/**
* PlaceholderFormat
**/
readonly PlaceholderFormat: WppPlaceholderFormat;
/**
* MediaType
**/
readonly MediaType: WppPpMediaType;
/**
* HasSmartArt
**/
readonly HasSmartArt: Kso.KsoMsoTriState;
/**
* Tags
**/
readonly Tags: WppTags;
Export(PathName?: string, Filter?: WppPpShapeFormat, ScaleWidth?: number, ScaleHeight?: number, ExportMode?: WppPpExportMode): void;
/**
* OLEFormat
**/
readonly OLEFormat: WppOLEFormat;
/**
* AnimationSettings
**/
readonly AnimationSettings: WppAnimationSettings;
/**
* ActionSettings
**/
readonly ActionSettings: WppActionSettings;
/**
* HasTextFrame
**/
readonly HasTextFrame: Kso.KsoMsoTriState;
/**
* SoundFormat
**/
readonly SoundFormat: WppSoundFormat;
_Index(Index?: number, _Index?: any): void;
GetPolygonalRepresentation(maxPointsInBuffer?: number, pPoints?: number, numPointsInPolygon?: number, IsOpen?: Kso.KsoMsoTriState): void;
/**
* HasTable
**/
readonly HasTable: Kso.KsoMsoTriState;
/**
* Table
**/
readonly Table: WppTable;
/**
* CustomerData
**/
readonly CustomerData: WppCustomerData;
/**
* SmartArt
**/
readonly SmartArt: Kso.KsoSmartArt;
ConvertTextToSmartArt(Layout?: Kso.KsoSmartArtLayout): void;
/**
* MediaFormat
**/
readonly MediaFormat: WppMediaFormat;
PickupAnimation(): void;
ApplyAnimation(): void;
UpgradeMedia(): void;
}
interface WppSlideRange {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Name
**/
Name: string;
/**
* Parent
**/
readonly Parent: any;
/**
* Comments
**/
readonly Comments: WppComments;
/**
* Shapes
**/
readonly Shapes: Kso.KsoShapes;
/**
* SlideID
**/
readonly SlideID: number;
/**
* HeadersFooters
**/
readonly HeadersFooters: WppHeadersFooters;
/**
* Master
**/
readonly Master: WppMaster;
/**
* Tags
**/
readonly Tags: WppTags;
/**
* SlideShowTransition
**/
readonly SlideShowTransition: WppSlideShowTransition;
/**
* Count
**/
readonly Count: number;
/**
* ColorScheme
**/
ColorScheme: WppColorScheme;
/**
* Background
**/
readonly Background: Kso.KsoShapeRange;
/**
* PrintSteps
**/
readonly PrintSteps: number;
/**
* SlideNumber
**/
readonly SlideNumber: number;
Select(): void;
/**
* Layout
**/
Layout: WppPpSlideLayout;
Cut(): void;
ApplyTemplate2(FileName?: string, VariantGUID?: string): void;
MoveToSectionStart(toSection?: number): void;
ApplyTemplate(FileName?: string): void;
Copy(): void;
/**
* Design
**/
Design: WppDesign;
Delete(): void;
/**
* Scripts
**/
readonly Scripts: Kso.KsoScripts;
/**
* SlideIndex
**/
readonly SlideIndex: number;
/**
* DisplayMasterShapes
**/
DisplayMasterShapes: Kso.KsoMsoTriState;
PublishSlides(SlideLibraryUrl?: string, Overwrite?: boolean, UseSlideOrder?: boolean): void;
/**
* FollowMasterBackground
**/
FollowMasterBackground: Kso.KsoMsoTriState;
/**
* NotesPage
**/
readonly NotesPage: WppSlideRange;
/**
* Hyperlinks
**/
readonly Hyperlinks: WppHyperlinks;
Export(FileName?: string, FilterName?: string, ScaleWidth?: number, ScaleHeight?: number): void;
Item(Index?: any, Item?: WppSlide): void;
/**
* _NewEnum
**/
readonly _NewEnum: any;
/**
* BackgroundStyle
**/
BackgroundStyle: Kso.KsoMsoBackgroundStyleIndex;
ApplyThemeColorScheme(themeColorSchemeName?: string): void;
_Index(Index?: number, _Index?: any): void;
MoveTo(toPos?: number): void;
/**
* TimeLine
**/
readonly TimeLine: WppTimeLine;
/**
* SectionNumber
**/
readonly SectionNumber: number;
/**
* CustomLayout
**/
CustomLayout: WppCustomLayout;
ApplyTheme(themeName?: string): void;
/**
* ThemeColorScheme
**/
readonly ThemeColorScheme: Kso.KsoThemeColorScheme;
/**
* CustomerData
**/
readonly CustomerData: WppCustomerData;
/**
* sectionIndex
**/
readonly sectionIndex: number;
/**
* HasNotesPage
**/
readonly HasNotesPage: Kso.KsoMsoTriState;
}
interface WppTheme {
/**
* Application
**/
readonly Application: WppApplication;
/**
* ThemeVariants
**/
readonly ThemeVariants: WppThemeVariants;
/**
* Parent
**/
readonly Parent: any;
}
interface WppShape extends Kso.KsoShape {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
/**
* LinkFormat
**/
readonly LinkFormat: WppLinkFormat;
/**
* PlaceholderFormat
**/
readonly PlaceholderFormat: WppPlaceholderFormat;
/**
* MediaType
**/
readonly MediaType: WppPpMediaType;
/**
* Table
**/
readonly Table: WppTable;
/**
* Tags
**/
readonly Tags: WppTags;
Export(PathName?: string, Filter?: WppPpShapeFormat, ScaleWidth?: number, ScaleHeight?: number, ExportMode?: WppPpExportMode): void;
/**
* OLEFormat
**/
readonly OLEFormat: WppOLEFormat;
/**
* AnimationSettings
**/
readonly AnimationSettings: WppAnimationSettings;
/**
* ActionSettings
**/
readonly ActionSettings: WppActionSettings;
/**
* HasTextFrame
**/
readonly HasTextFrame: Kso.KsoMsoTriState;
/**
* SoundFormat
**/
readonly SoundFormat: WppSoundFormat;
/**
* HasTable
**/
readonly HasTable: Kso.KsoMsoTriState;
/**
* CustomerData
**/
readonly CustomerData: WppCustomerData;
/**
* MediaFormat
**/
readonly MediaFormat: WppMediaFormat;
PickupAnimation(): void;
ApplyAnimation(): void;
UpgradeMedia(): void;
}
interface WppChart {
/**
* Parent
**/
readonly Parent: any;
ApplyDataLabels(Type?: Kso.KsoXlDataLabelsType, LegendKey?: any, AutoText?: any, HasLeaderLines?: any, ShowSeriesName?: any, ShowCategoryName?: any, ShowValue?: any, ShowPercentage?: any, ShowBubbleSize?: any, Separator?: any): void;
/**
* PlotBy
**/
PlotBy: Kso.KsoXlRowCol;
Refresh(): void;
ApplyCustomType(ChartType?: Kso.KsoXlChartType, TypeName?: any): void;
/**
* ChartType
**/
ChartType: Kso.KsoXlChartType;
/**
* HasDataTable
**/
HasDataTable: boolean;
SetSourceData(Source?: string, PlotBy?: any): void;
/**
* Perspective
**/
Perspective: number;
/**
* Application
**/
readonly Application: WppApplication;
GetChartElement(X?: number, Y?: number, ElementID?: number, Arg1?: number, Arg2?: number): void;
/**
* Column3DGroup
**/
readonly Column3DGroup: number;
/**
* ChartData
**/
readonly ChartData: WppChartData;
AutoFormat(Gallery?: number, Format?: any): void;
/**
* Name
**/
Name: string;
SetBackgroundPicture(FileName?: string): void;
_ApplyDataLabels(Type?: Kso.KsoXlDataLabelsType, LegendKey?: any, AutoText?: any, HasLeaderLines?: any, lcid?: number): void;
SetDefaultChart(Name?: any): void;
/**
* DataTable
**/
readonly DataTable: WppDataTable;
Paste(Type?: any, lcid?: number): void;
/**
* BarShape
**/
BarShape: Kso.KsoXlBarShape;
/**
* Title
**/
Title: string;
/**
* BackWall
**/
readonly BackWall: WppWalls;
ApplyChartTemplate(FileName?: string): void;
/**
* SurfaceGroup
**/
readonly SurfaceGroup: number;
PieGroups(Index?: any, lcid?: number, RHS?: any): void;
SaveChartTemplate(FileName?: string): void;
/**
* SideWall
**/
readonly SideWall: WppWalls;
/**
* ChartStyle
**/
ChartStyle: any;
ChartGroups(Index?: any, lcid?: number, RHS?: any): void;
RadarGroups(Index?: any, lcid?: number, RHS?: any): void;
ClearToMatchStyle(): void;
/**
* Floor
**/
readonly Floor: number;
/**
* HasPivotFields
**/
HasPivotFields: boolean;
/**
* ShowDataLabelsOverMaximum
**/
ShowDataLabelsOverMaximum: boolean;
Axes(Type?: any, AxisGroup?: Kso.KsoXlAxisGroup, lcid?: number, RHS?: any): void;
ApplyLayout(Layout?: number, ChartType?: any): void;
/**
* Shapes
**/
readonly Shapes: Kso.KsoShapes;
/**
* Creator
**/
readonly Creator: number;
/**
* Area3DGroup
**/
readonly Area3DGroup: number;
Copy(Before?: any, After?: any, lcid?: number): void;
BarGroups(Index?: any, lcid?: number, RHS?: any): void;
AreaGroups(Index?: any, lcid?: number, RHS?: any): void;
/**
* Bar3DGroup
**/
readonly Bar3DGroup: number;
/**
* AutoScaling
**/
AutoScaling: number;
ColumnGroups(Index?: any, lcid?: number, RHS?: any): void;
/**
* HasHiddenContent
**/
readonly HasHiddenContent: boolean;
/**
* Line3DGroup
**/
readonly Line3DGroup: number;
Export(FileName?: string, FilterName?: any, Interactive?: any, RHS?: boolean): void;
LineGroups(Index?: any, lcid?: number, RHS?: any): void;
/**
* Pie3DGroup
**/
readonly Pie3DGroup: number;
Delete(lcid?: number): void;
DoughnutGroups(Index?: any, lcid?: number, RHS?: any): void;
XYGroups(Index?: any, lcid?: number, RHS?: any): void;
/**
* ChartArea
**/
readonly ChartArea: number;
/**
* ChartTitle
**/
readonly ChartTitle: number;
ChartWizard(Source?: any, Gallery?: any, Format?: any, PlotBy?: any, CategoryLabels?: any, SeriesLabels?: any, HasLegend?: any, Title?: any, CategoryTitle?: any, ValueTitle?: any, ExtraTitle?: any, lcid?: number): void;
CopyPicture(Appearance?: WppXlPictureAppearance, Format?: WppXlCopyPictureFormat, Size?: WppXlPictureAppearance, LocaleID?: number): void;
/**
* Corners
**/
readonly Corners: number;
/**
* DepthPercent
**/
DepthPercent: number;
/**
* DisplayBlanksAs
**/
DisplayBlanksAs: number;
/**
* Elevation
**/
Elevation: number;
/**
* GapDepth
**/
GapDepth: number;
HasAxis(Index1?: any, Index2?: any, lcid?: number, RHS?: any): void;
/**
* HasLegend
**/
HasLegend: number;
/**
* Legend
**/
readonly Legend: number;
/**
* HasTitle
**/
HasTitle: number;
/**
* HeightPercent
**/
HeightPercent: number;
/**
* PlotArea
**/
readonly PlotArea: number;
/**
* PlotVisibleOnly
**/
PlotVisibleOnly: number;
/**
* RightAngleAxes
**/
RightAngleAxes: number;
/**
* Rotation
**/
Rotation: number;
Select(Replace?: any, lcid?: number): void;
SeriesCollection(Index?: any, lcid?: number, RHS?: any): void;
SetElement(Element?: Kso.KsoMsoChartElementType): void;
/**
* Subtype
**/
Subtype: number;
/**
* Type
**/
Type: number;
/**
* Walls
**/
readonly Walls: number;
/**
* Format
**/
readonly Format: WppChartFormat;
/**
* ShowReportFilterFieldButtons
**/
ShowReportFilterFieldButtons: boolean;
/**
* ShowLegendFieldButtons
**/
ShowLegendFieldButtons: boolean;
/**
* ShowAxisFieldButtons
**/
ShowAxisFieldButtons: boolean;
/**
* ShowValueFieldButtons
**/
ShowValueFieldButtons: boolean;
/**
* ShowAllFieldButtons
**/
ShowAllFieldButtons: boolean;
/**
* AlternativeText
**/
AlternativeText: string;
FullSeriesCollection(Index?: any, ppFullSeriesCollection?: any): void;
DeleteHiddenContent(): void;
/**
* CategoryLabelLevel
**/
CategoryLabelLevel: Kso.KsoXlCategoryLabelLevel;
/**
* SeriesNameLevel
**/
SeriesNameLevel: Kso.KsoXlSeriesNameLevel;
/**
* ChartColor
**/
ChartColor: any;
ClearToMatchColorStyle(): void;
}
interface WppPlaceholders {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
Item(Index?: number, Item?: Kso.KsoShape): void;
FindByName(Index?: any, FindByName?: Kso.KsoShape): void;
}
interface WppDiagramNodeChildren extends Kso.KsoDiagramNodeChildren {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppHyperlinks {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
Item(Index?: number, Item?: WppHyperlink): void;
}
interface WppAdjustments extends Kso.KsoAdjustments {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppAddIn {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Name
**/
readonly Name: string;
/**
* Parent
**/
readonly Parent: any;
/**
* Loaded
**/
Loaded: Kso.KsoMsoTriState;
/**
* FullName
**/
readonly FullName: string;
/**
* Path
**/
readonly Path: string;
/**
* AutoLoad
**/
AutoLoad: Kso.KsoMsoTriState;
/**
* Registered
**/
Registered: Kso.KsoMsoTriState;
/**
* DisplayAlerts
**/
DisplayAlerts: Kso.KsoMsoTriState;
/**
* RegisteredInHKLM
**/
readonly RegisteredInHKLM: Kso.KsoMsoTriState;
}
interface WppColorFormat extends Kso.KsoColorFormat {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppCalloutFormat extends Kso.KsoCalloutFormat {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppPublishObject {
/**
* RangeEnd
**/
RangeEnd: number;
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
/**
* FileName
**/
FileName: string;
/**
* SpeakerNotes
**/
SpeakerNotes: Kso.KsoMsoTriState;
/**
* HTMLVersion
**/
HTMLVersion: WppPpHTMLVersion;
/**
* SourceType
**/
SourceType: WppPpPublishSourceType;
/**
* SlideShowName
**/
SlideShowName: string;
Publish(): void;
/**
* RangeStart
**/
RangeStart: number;
}
interface WppGuide {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Orientation
**/
readonly Orientation: WppPpGuideOrientation;
Delete(): void;
/**
* Parent
**/
readonly Parent: any;
/**
* Position
**/
Position: number;
/**
* Color
**/
readonly Color: Kso.KsoColorFormat;
}
interface WppRuler {
/**
* Levels
**/
readonly Levels: WppRulerLevels;
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
/**
* TabStops
**/
readonly TabStops: WppTabStops;
}
interface WppConnectorFormat extends Kso.KsoConnectorFormat {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppFillFormat extends Kso.KsoFillFormat {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppMotionEffect {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
/**
* ToX
**/
ToX: number;
/**
* ToY
**/
ToY: number;
/**
* ByX
**/
ByX: number;
/**
* ByY
**/
ByY: number;
/**
* FromX
**/
FromX: number;
/**
* FromY
**/
FromY: number;
/**
* Path
**/
Path: string;
}
interface WppGroupShapes extends Kso.KsoGroupShapes {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppSoundEffect {
ImportFromFile(FileName?: string): void;
/**
* Application
**/
readonly Application: WppApplication;
/**
* Name
**/
Name: string;
/**
* Parent
**/
readonly Parent: any;
/**
* Type
**/
Type: WppPpSoundEffectType;
Play(): void;
}
interface WppObjectVerbs {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
Item(Index?: number, Item?: string): void;
}
interface WppRows {
/**
* Application
**/
readonly Application: WppApplication;
/**
* Parent
**/
readonly Parent: any;
Item(Index?: number, Item?: WppRow): void;
Add(BeforeRow?: number, Add?: WppRow): void;
}
interface WppLineFormat extends Kso.KsoLineFormat {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppPlaySettings {
/**
* Application
**/
readonly Application: WppApplication;
/**
* RewindMovie
**/
RewindMovie: Kso.KsoMsoTriState;
/**
* Parent
**/
readonly Parent: any;
/**
* LoopUntilStopped
**/
LoopUntilStopped: Kso.KsoMsoTriState;
/**
* HideWhileNotPlaying
**/
HideWhileNotPlaying: Kso.KsoMsoTriState;
/**
* ActionVerb
**/
ActionVerb: string;
/**
* PlayOnEntry
**/
PlayOnEntry: Kso.KsoMsoTriState;
/**
* StopAfterSlides
**/
StopAfterSlides: number;
/**
* PauseAnimation
**/
PauseAnimation: Kso.KsoMsoTriState;
}
interface WppShapeNodes extends Kso.KsoShapeNodes {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppHyperlink {
/**
* Application
**/
readonly Application: WppApplication;
Follow(): void;
/**
* Parent
**/
readonly Parent: any;
/**
* Type
**/
readonly Type: Kso.KsoMsoHyperlinkType;
/**
* EmailSubject
**/
EmailSubject: string;
/**
* SubAddress
**/
SubAddress: string;
/**
* TextToDisplay
**/
TextToDisplay: string;
/**
* ScreenTip
**/
ScreenTip: string;
/**
* Address
**/
Address: string;
AddToFavorites(): void;
/**
* ShowAndReturn
**/
ShowAndReturn: Kso.KsoMsoTriState;
CreateNewDocument(FileName?: string, EditNow?: Kso.KsoMsoTriState, Overwrite?: Kso.KsoMsoTriState): void;
Delete(): void;
}
interface WppShapeNode extends Kso.KsoShapeNode {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppPictureFormat extends Kso.KsoPictureFormat {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppTextEffectFormat extends Kso.KsoTextEffectFormat {
/**
* Application
**/
readonly Application: any;
/**
* Creator
**/
readonly Creator: number;
}
interface WppChartBorder {
/**
* ColorIndex
**/
ColorIndex: any;
/**
* Color
**/
Color: any;
/**
* Application
**/
readonly Application: WppApplication;
/**
* LineStyle
**/
LineStyle: any;
/**
* Creator
**/
readonly Creator: number;
/**
* Weight
**/
Weight: any;
/**
* Parent
**/
readonly Parent: any;
}
interface WppCanvasShapes extends Kso.KsoCanvasShapes {
/**
* Applicatio