mfiles: Added missing CLSID constants

This commit is contained in:
Arsène von Wyss
2017-09-12 00:55:04 +02:00
parent e3579da485
commit 3916519640
2 changed files with 9 additions and 2 deletions

View File

@@ -309,6 +309,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 +398,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 +6174,7 @@ declare namespace MFiles {
const XMLSearchResult: { new(): IXMLSearchResult; };
const ApplicationPath: string;
const CLSID: ICLSIDs;
function CreateInstance(name: string): any;
function CreateObjectCLR(assemblyFile: string, className: string): any;

View File

@@ -72,6 +72,7 @@ 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>`;
}
function newShellFrameHandler(shellFrame: IShellFrame) {