wpp-jsapi-declare
Version:
75 lines (71 loc) • 8.54 kB
TypeScript
declare namespace WPS {
interface WppApiEvent extends ApiEvent {
AddApiEventListener(EventName: 'AfterLogin', callback: string | (() => void)): void;
AddApiEventListener(EventName: 'AfterLogout', callback: string | (() => void)): void;
AddApiEventListener(EventName: 'AfterPresentationOpen', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'AfterTaskPaneHidden', callback: string | (() => void)): void;
AddApiEventListener(EventName: 'AfterTaskPaneShow', callback: string | (() => void)): void;
AddApiEventListener(EventName: 'DocumentAfterPrint', callback: string | ((Presentation: Wpp.Presentation, PrintoutPage: object) => void)): void;
AddApiEventListener(EventName: 'DocumentBeforeCopy', callback: string | ((Presentation: Wpp.Presentation, type: number) => void)): void;
AddApiEventListener(EventName: 'DocumentBeforeNew', callback: string | (() => void)): void;
AddApiEventListener(EventName: 'DocumentBeforeOpen', callback: string | ((filePath: string) => void)): void;
AddApiEventListener(EventName: 'DocumentBeforePaste', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'DocumentRightsInfo', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'FileAfterSave', callback: string | ((Presentation: Wpp.Presentation, dstFilePath: string, dstFormat: string) => void)): void;
AddApiEventListener(EventName: 'NewPresentation', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'PresentationBeforeClose', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'PresentationBeforePrint', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'PresentationBeforeSave', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'PresentationClose', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'PresentationCloseFinal', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'PresentationNewSlide', callback: string | ((Slide: Wpp.Slide) => void)): void;
AddApiEventListener(EventName: 'PresentationOpen', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'PresentationPrint', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'PresentationSave', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'Quit', callback: string | (() => void)): void;
AddApiEventListener(EventName: 'SlideSelectionChanged', callback: string | ((SlideRange: Wpp.SlideRange) => void)): void;
AddApiEventListener(EventName: 'SlideShowBegin', callback: string | ((SlideShowWindow: Wpp.SlideShowWindow) => void)): void;
AddApiEventListener(EventName: 'SlideShowEnd', callback: string | ((Presentation: Wpp.Presentation) => void)): void;
AddApiEventListener(EventName: 'SlideShowNextClick', callback: string | ((SlideShowWindow: Wpp.SlideShowWindow, Effect: Wpp.Effect) => void)): void;
AddApiEventListener(EventName: 'SlideShowNextSlide', callback: string | ((SlideShowWindow: Wpp.SlideShowWindow) => void)): void;
AddApiEventListener(EventName: 'SlideShowOnNext', callback: string | ((SlideShowWindow: Wpp.SlideShowWindow) => void)): void;
AddApiEventListener(EventName: 'SlideShowOnPrevious', callback: string | ((SlideShowWindow: Wpp.SlideShowWindow) => void)): void;
AddApiEventListener(EventName: 'WindowActivate', callback: string | ((Presentation: Wpp.Presentation, WIndow: Wpp.DocumentWindow) => void)): void;
AddApiEventListener(EventName: 'WindowSelectionChange', callback: string | ((Selection: Wpp.Selection) => void)): void;
RemoveApiEventListener(EventName: 'AfterLogin', callback?: string | (() => void)): void;
RemoveApiEventListener(EventName: 'AfterLogout', callback?: string | (() => void)): void;
RemoveApiEventListener(EventName: 'AfterPresentationOpen', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'AfterTaskPaneHidden', callback?: string | (() => void)): void;
RemoveApiEventListener(EventName: 'AfterTaskPaneShow', callback?: string | (() => void)): void;
RemoveApiEventListener(EventName: 'DocumentAfterPrint', callback?: string | ((Presentation: Wpp.Presentation, PrintoutPage: object) => void)): void;
RemoveApiEventListener(EventName: 'DocumentBeforeCopy', callback?: string | ((Presentation: Wpp.Presentation, type: number) => void)): void;
RemoveApiEventListener(EventName: 'DocumentBeforeNew', callback?: string | (() => void)): void;
RemoveApiEventListener(EventName: 'DocumentBeforeOpen', callback?: string | ((filePath: string) => void)): void;
RemoveApiEventListener(EventName: 'DocumentBeforePaste', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'DocumentRightsInfo', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'FileAfterSave', callback?: string | ((Presentation: Wpp.Presentation, dstFilePath: string, dstFormat: string) => void)): void;
RemoveApiEventListener(EventName: 'NewPresentation', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'PresentationBeforeClose', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'PresentationBeforePrint', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'PresentationBeforeSave', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'PresentationClose', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'PresentationCloseFinal', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'PresentationNewSlide', callback?: string | ((Slide: Wpp.Slide) => void)): void;
RemoveApiEventListener(EventName: 'PresentationOpen', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'PresentationPrint', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'PresentationSave', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'Quit', callback?: string | (() => void)): void;
RemoveApiEventListener(EventName: 'SlideSelectionChanged', callback?: string | ((SlideRange: Wpp.SlideRange) => void)): void;
RemoveApiEventListener(EventName: 'SlideShowBegin', callback?: string | ((SlideShowWindow: Wpp.SlideShowWindow) => void)): void;
RemoveApiEventListener(EventName: 'SlideShowEnd', callback?: string | ((Presentation: Wpp.Presentation) => void)): void;
RemoveApiEventListener(EventName: 'SlideShowNextClick', callback?: string | ((SlideShowWindow: Wpp.SlideShowWindow, Effect: Wpp.Effect) => void)): void;
RemoveApiEventListener(EventName: 'SlideShowNextSlide', callback?: string | ((SlideShowWindow: Wpp.SlideShowWindow) => void)): void;
RemoveApiEventListener(EventName: 'SlideShowOnNext', callback?: string | ((SlideShowWindow: Wpp.SlideShowWindow) => void)): void;
RemoveApiEventListener(EventName: 'SlideShowOnPrevious', callback?: string | ((SlideShowWindow: Wpp.SlideShowWindow) => void)): void;
RemoveApiEventListener(EventName: 'WindowActivate', callback?: string | ((Presentation: Wpp.Presentation, WIndow: Wpp.DocumentWindow) => void)): void;
RemoveApiEventListener(EventName: 'WindowSelectionChange', callback?: string | ((Selection: Wpp.Selection) => void)): void;
}
interface WppAddonRoot {
ApiEvent: WppApiEvent;
}
}