1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIFilePicker extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 15; 33 34 public static final String NS_IFILEPICKER_IID_STR = 35 "c47de916-1dd1-11b2-8141-82507fa02b21"; 36 37 public static final nsID NS_IFILEPICKER_IID = 38 new nsID(NS_IFILEPICKER_IID_STR); 39 40 public nsIFilePicker(int address) { 41 super(address); 42 } 43 44 public static final int modeOpen = 0; 45 public static final int modeSave = 1; 46 public static final int modeGetFolder = 2; 47 public static final int modeOpenMultiple = 3; 48 public static final int returnOK = 0; 49 public static final int returnCancel = 1; 50 public static final int returnReplace = 2; 51 public static final int filterAll = 1; 52 public static final int filterHTML = 2; 53 public static final int filterText = 4; 54 public static final int filterImages = 8; 55 public static final int filterXML = 16; 56 public static final int filterXUL = 32; 57 public static final int filterApps = 64; 58 59 public int Init(int parent, char[] title, int mode) { 60 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), parent, title, mode); 61 } 62 63 public int AppendFilters(int filterMask) { 64 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), filterMask); 65 } 66 67 public int AppendFilter(char[] title, char[] filter) { 68 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), title, filter); 69 } 70 71 public int GetDefaultString(int [] aDefaultString) { 72 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aDefaultString); 73 } 74 75 public int SetDefaultString(char[] aDefaultString) { 76 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aDefaultString); 77 } 78 79 public int GetDefaultExtension(int [] aDefaultExtension) { 80 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aDefaultExtension); 81 } 82 83 public int SetDefaultExtension(char[] aDefaultExtension) { 84 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aDefaultExtension); 85 } 86 87 public int GetFilterIndex(int[] aFilterIndex) { 88 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aFilterIndex); 89 } 90 91 public int SetFilterIndex(int aFilterIndex) { 92 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aFilterIndex); 93 } 94 95 public int GetDisplayDirectory(int [] aDisplayDirectory) { 96 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aDisplayDirectory); 97 } 98 99 public int SetDisplayDirectory(int aDisplayDirectory) { 100 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), aDisplayDirectory); 101 } 102 103 public int GetFile(int [] aFile) { 104 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), aFile); 105 } 106 107 public int GetFileURL(int [] aFileURL) { 108 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), aFileURL); 109 } 110 111 public int GetFiles(int [] aFiles) { 112 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), aFiles); 113 } 114 115 public int Show(int _retval) { 116 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), _retval); 117 } 118 } 119 | Popular Tags |