Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla/nsIFilePicker_1_8.d @ 344:8198e6052012
more fixups:
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Mon, 27 Oct 2008 22:41:01 -0700 |
parents | |
children | 9a4d7706df52 |
comparison
equal
deleted
inserted
replaced
343:96243e3ebcf0 | 344:8198e6052012 |
---|---|
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 | |
39 nsresult Init(nsIDOMWindow parent, nsAString * title, PRInt16 mode); | |
40 nsresult AppendFilters(PRInt32 filterMask); | |
41 nsresult AppendFilter(nsAString * title, nsAString * filter); | |
42 nsresult GetDefaultString(nsAString * aDefaultString); | |
43 nsresult SetDefaultString(nsAString * aDefaultString); | |
44 nsresult GetDefaultExtension(nsAString * aDefaultExtension); | |
45 nsresult SetDefaultExtension(nsAString * aDefaultExtension); | |
46 nsresult GetFilterIndex(PRInt32 *aFilterIndex); | |
47 nsresult SetFilterIndex(PRInt32 aFilterIndex); | |
48 nsresult GetDisplayDirectory(nsILocalFile *aDisplayDirectory); | |
49 nsresult SetDisplayDirectory(nsILocalFile aDisplayDirectory); | |
50 nsresult GetFile(nsILocalFile *aFile); | |
51 nsresult GetFileURL(nsIFileURL *aFileURL); | |
52 nsresult GetFiles(nsISimpleEnumerator *aFiles); | |
53 nsresult Show(PRInt16 *_retval); | |
54 | |
55 } |