incentro-adf-msoffice-module
Version:
Office module for Alfresco Apps Development Framework. Edit with MS Office
31 lines (30 loc) • 1.14 kB
TypeScript
/**
* OfficeActionsService uses the Alfresco Office Services link to open documents.
*/
export declare class OfficeActionsService {
DEFAULT_TIMEOUT: number;
timeout: any;
userAgent: string;
messages: {
'WINDOWS_MAC_ONLY': string;
'TIMEOUT': string;
};
/**
*
* @param entry NodeEntry
* @param ecmHost
* @param timeout (optional) in ms if it is 0 the timeout will not be set at all.
* @param messages (optional) {'WINDOWS_MAC_ONLY', 'TIMEOUT'} Translated strings
* @param openByMimeType (optional) boolean representing whether the correct protocol is chosen by the mimetype. false if not set.
*/
editOnline(entry: any, ecmHost: any, timeout?: any, messages?: any, openByMimeType?: any): void;
private updateMessages;
private triggerEditOnlineAosByExtension;
private triggerEditOnlineAosByMimeType;
private checkSupportedOSAndLaunch;
private launchMsOfficeProtocolHandler;
isWin(): boolean;
isMac(): boolean;
static getProtocolForFileExtension(fileExtension: any): any;
static getProtocolForMimeType(mimeType: any): any;
}