Mercurial > projects > dwt-linux
annotate dwt/internal/mozilla/nsIFilePicker_1_8.d @ 348:9a4d7706df52
Test Update to fix linux XPCOM interface issues
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Fri, 31 Oct 2008 21:46:44 -0700 |
parents | 8198e6052012 |
children |
rev | line source |
---|---|
344 | 1 module dwt.internal.mozilla.nsIFilePicker_1_8; |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsID; | |
5 import dwt.internal.mozilla.nsISupports; | |
6 import dwt.internal.mozilla.nsILocalFile; | |
7 import dwt.internal.mozilla.nsIFileURL; | |
8 import dwt.internal.mozilla.nsIDOMWindow; | |
9 import dwt.internal.mozilla.nsISimpleEnumerator; | |
10 import dwt.internal.mozilla.nsStringAPI; | |
11 | |
12 const char[] NS_IFILEPICKER_IID_STR = "80faf095-c807-4558-a2cc-185ed70754ea"; | |
13 | |
14 const nsIID NS_IFILEPICKER_IID= | |
15 {0x80faf095, 0xc807, 0x4558, | |
16 [ 0xa2, 0xcc, 0x18, 0x5e, 0xd7, 0x07, 0x54, 0xea ]}; | |
17 | |
18 //extern(System) | |
19 interface nsIFilePicker_1_8 : nsISupports { | |
20 | |
21 static const char[] IID_STR = NS_IFILEPICKER_IID_STR; | |
22 static const nsIID IID = NS_IFILEPICKER_IID; | |
23 | |
24 enum { modeOpen = 0 }; | |
25 enum { modeSave = 1 }; | |
26 enum { modeGetFolder = 2 }; | |
27 enum { modeOpenMultiple = 3 }; | |
28 enum { returnOK = 0 }; | |
29 enum { returnCancel = 1 }; | |
30 enum { returnReplace = 2 }; | |
31 enum { filterAll = 1 }; | |
32 enum { filterHTML = 2 }; | |
33 enum { filterText = 4 }; | |
34 enum { filterImages = 8 }; | |
35 enum { filterXML = 16 }; | |
36 enum { filterXUL = 32 }; | |
37 enum { filterApps = 64 }; | |
38 | |
348
9a4d7706df52
Test Update to fix linux XPCOM interface issues
John Reimer <terminal.node@gmail.com>
parents:
344
diff
changeset
|
39 extern(System): |
344 | 40 nsresult Init(nsIDOMWindow parent, nsAString * title, PRInt16 mode); |
41 nsresult AppendFilters(PRInt32 filterMask); | |
42 nsresult AppendFilter(nsAString * title, nsAString * filter); | |
43 nsresult GetDefaultString(nsAString * aDefaultString); | |
44 nsresult SetDefaultString(nsAString * aDefaultString); | |
45 nsresult GetDefaultExtension(nsAString * aDefaultExtension); | |
46 nsresult SetDefaultExtension(nsAString * aDefaultExtension); | |
47 nsresult GetFilterIndex(PRInt32 *aFilterIndex); | |
48 nsresult SetFilterIndex(PRInt32 aFilterIndex); | |
49 nsresult GetDisplayDirectory(nsILocalFile *aDisplayDirectory); | |
50 nsresult SetDisplayDirectory(nsILocalFile aDisplayDirectory); | |
51 nsresult GetFile(nsILocalFile *aFile); | |
52 nsresult GetFileURL(nsIFileURL *aFileURL); | |
53 nsresult GetFiles(nsISimpleEnumerator *aFiles); | |
54 nsresult Show(PRInt16 *_retval); | |
55 | |
56 } |