Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 68dd86334863e40c3c73075feb885b60d368ba39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*******************************************************************************
 * Copyright (c) 2000, 2019 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     Nikita Nemkin <nikita@nemkin.ru> - initial API and implementation
 *******************************************************************************/
package org.eclipse.swt.internal.ole.win32;

public class IFileDialog extends IUnknown {

public IFileDialog(long address) {
	super(address);
}

// IModalWindow

public int Show(long hwndOwner) {
	return COM.VtblCall(3, address, hwndOwner);
}

// IFileDialog

public int SetFileTypes(int cFileTypes, long [] rgFilterSpec) {
	return COM.VtblCall(4, address, cFileTypes, rgFilterSpec);
}

public int SetFileTypeIndex(int iFileType) {
	return COM.VtblCall(5, address, iFileType);
}

public int GetFileTypeIndex(int [] piFileType) {
	return COM.VtblCall(6, address, piFileType);
}

public int SetOptions(int fos) {
	return COM.VtblCall(9, address, fos);
}

public int GetOptions(int[] pfos) {
	return COM.VtblCall(10, address, pfos);
}

public int SetDefaultFolder(IShellItem psi) {
	return COM.VtblCall(11, address, psi.address);
}

public int SetFolder(IShellItem psi) {
	return COM.VtblCall(12, address, psi.address);
}

public int SetFileName(char [] pszName) {
	return COM.VtblCall(15, address, pszName);
}

public int SetTitle(char[] pszTitle) {
	return COM.VtblCall(17, address, pszTitle);
}

public int GetResult(long[] ppsi) {
	return COM.VtblCall(20, address, ppsi);
}

public int SetDefaultExtension(char[] pszDefaultExtension) {
	return COM.VtblCall(22, address, pszDefaultExtension);
}

public int ClearClientData() {
	return COM.VtblCall(25, address);
}

// IFileOpenDialog

public int GetResults(long [] ppenum) {
	return COM.VtblCall(27, address, ppenum);
}

}

Back to the top