mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
mfiles: Added support for application platform property
This commit is contained in:
3
types/mfiles/index.d.ts
vendored
3
types/mfiles/index.d.ts
vendored
@@ -3,6 +3,8 @@
|
||||
// Definitions by: Arsène von Wyss <https://github.com/avonwyss>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare const MFExtApplicationPlatformWeb: any;
|
||||
|
||||
interface IAccessControlEntry {
|
||||
ChangePermissionsPermission: MFiles.MFPermission;
|
||||
EditPermission: MFiles.MFPermission;
|
||||
@@ -6175,6 +6177,7 @@ declare namespace MFiles {
|
||||
|
||||
const ApplicationPath: string;
|
||||
const CLSID: ICLSIDs;
|
||||
const CurrentApplicationPlatform: any;
|
||||
|
||||
function CreateInstance(name: string): any;
|
||||
function CreateObjectCLR(assemblyFile: string, className: string): any;
|
||||
|
||||
@@ -72,7 +72,10 @@ function setTheme(shellFrame: IShellFrame) {
|
||||
function OnNewShellUI(shellUI: IShellUI) {
|
||||
shellUI.Events.Register(MFiles.Event.NewShellFrame, newShellFrameHandler);
|
||||
shellUI.Events.Register(MFiles.Event.NewNormalShellFrame, newShellFrameHandler);
|
||||
const html = `<object classid='clsid:${MFiles.CLSID.ShellListingCtrl}' style='width: 400px; height: 300px;'> </object>`;
|
||||
if (MFiles.CurrentApplicationPlatform !== MFExtApplicationPlatformWeb) {
|
||||
// We are not executing on the web, AxtiveX is available
|
||||
const html = `<object classid='clsid:${MFiles.CLSID.ShellListingCtrl}' style='width: 400px; height: 300px;'> </object>`;
|
||||
}
|
||||
}
|
||||
|
||||
function newShellFrameHandler(shellFrame: IShellFrame) {
|
||||
|
||||
Reference in New Issue
Block a user