mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 11:07:32 +08:00
Merge pull request #19684 from avonwyss/mfiles
mfiles: Added missing CLSID constants
This commit is contained in:
13
types/mfiles/index.d.ts
vendored
13
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;
|
||||
@@ -309,6 +311,11 @@ interface IClassGroups {
|
||||
Item(Index: number): IClassGroup;
|
||||
}
|
||||
|
||||
interface ICLSIDs {
|
||||
readonly PreviewerCtrl: string;
|
||||
readonly ShellListingCtrl: string;
|
||||
}
|
||||
|
||||
interface ICollection {
|
||||
readonly Count: number;
|
||||
readonly Events: IEvents;
|
||||
@@ -393,9 +400,9 @@ interface IDailyTrigger {
|
||||
DaysInterval: number;
|
||||
}
|
||||
|
||||
interface IDashboard {
|
||||
interface IDashboard<T> {
|
||||
AutoStopWithParent: boolean;
|
||||
readonly CustomData: any;
|
||||
readonly CustomData: T;
|
||||
readonly Events: IDashboardEvents;
|
||||
readonly IsPopupDashboard: boolean;
|
||||
readonly Parent: (IShellPaneContainer | IShellFrame | IVaultUI | IShellUI);
|
||||
@@ -6169,6 +6176,8 @@ declare namespace MFiles {
|
||||
const XMLSearchResult: { new(): IXMLSearchResult; };
|
||||
|
||||
const ApplicationPath: string;
|
||||
const CLSID: ICLSIDs;
|
||||
const CurrentApplicationPlatform: any;
|
||||
|
||||
function CreateInstance(name: string): any;
|
||||
function CreateObjectCLR(assemblyFile: string, className: string): any;
|
||||
|
||||
@@ -72,6 +72,10 @@ function setTheme(shellFrame: IShellFrame) {
|
||||
function OnNewShellUI(shellUI: IShellUI) {
|
||||
shellUI.Events.Register(MFiles.Event.NewShellFrame, newShellFrameHandler);
|
||||
shellUI.Events.Register(MFiles.Event.NewNormalShellFrame, newShellFrameHandler);
|
||||
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