Qt 4.8
Classes | Macros | Typedefs | Enumerations | Functions
qfiledialog_win_p.h File Reference
#include <objbase.h>

Go to the source code of this file.

Classes

struct  qt_BROWSEINFO
 
struct  qt_COMDLG_FILTERSPEC
 
struct  qt_ITEMIDLIST
 
struct  qt_PROPERTYKEY
 
struct  qt_SHITEMID
 

Macros

#define BFFM_ENABLEOK   (WM_USER + 101)
 
#define BFFM_INITIALIZED   1
 
#define BFFM_SELCHANGED   2
 
#define BFFM_SETSELECTION   (WM_USER + 103)
 
#define BFFM_SETSTATUSTEXT   (WM_USER + 104)
 
#define BIF_BROWSEFORCOMPUTER   0x1000
 
#define BIF_BROWSEFORPRINTER   0x2000
 
#define BIF_BROWSEINCLUDEFILES   0x4000
 
#define BIF_BROWSEINCLUDEURLS   0x0080
 
#define BIF_DONTGOBELOWDOMAIN   0x0002
 
#define BIF_EDITBOX   0x0010
 
#define BIF_NEWDIALOGSTYLE   0x0040
 
#define BIF_NONEWFOLDERBUTTON   0x0200
 
#define BIF_NOTRANSLATETARGETS   0x0400
 
#define BIF_RETURNFSANCESTORS   0x0008
 
#define BIF_RETURNONLYFSDIRS   0x0001
 
#define BIF_SHAREABLE   0x8000
 
#define BIF_STATUSTEXT   0x0004
 
#define BIF_UAHINT   0x0100
 
#define BIF_VALIDATE   0x0020
 
#define FOS_ALLNONSTORAGEITEMS   0x80
 
#define FOS_ALLOWMULTISELECT   0x200
 
#define FOS_CREATEPROMPT   0x2000
 
#define FOS_DEFAULTNOMINIMODE   0x20000000
 
#define FOS_DONTADDTORECENT   0x2000000
 
#define FOS_FILEMUSTEXIST   0x1000
 
#define FOS_FORCEFILESYSTEM   0x40
 
#define FOS_FORCEPREVIEWPANEON   0x40000000
 
#define FOS_FORCESHOWHIDDEN   0x10000000
 
#define FOS_HIDEMRUPLACES   0x20000
 
#define FOS_HIDEPINNEDPLACES   0x40000
 
#define FOS_NOCHANGEDIR   0x8
 
#define FOS_NODEREFERENCELINKS   0x100000
 
#define FOS_NOREADONLYRETURN   0x8000
 
#define FOS_NOTESTFILECREATE   0x10000
 
#define FOS_NOVALIDATE   0x100
 
#define FOS_OVERWRITEPROMPT   0x2
 
#define FOS_PATHMUSTEXIST   0x800
 
#define FOS_PICKFOLDERS   0x20
 
#define FOS_SHAREAWARE   0x4000
 
#define FOS_STRICTFILETYPES   0x4
 
#define GPS_BESTEFFORT   0x00000040
 
#define GPS_DEFAULT   0x00000000
 
#define GPS_DELAYCREATION   0x00000020
 
#define GPS_FASTPROPERTIESONLY   0x00000008
 
#define GPS_HANDLERPROPERTIESONLY   0x00000001
 
#define GPS_MASK_VALID   0x0000007F
 
#define GPS_OPENSLOWITEM   0x00000010
 
#define GPS_READWRITE   0x00000002
 
#define GPS_TEMPORARY   0x00000004
 

Typedefs

typedef int(QT_WIN_CALLBACKBFFCALLBACK) (HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData)
 
typedef FDE_SHAREVIOLATION_RESPONSE FDE_OVERWRITE_RESPONSE
 
typedef int GETPROPERTYSTOREFLAGS
 
typedef const qt_ITEMIDLISTqt_LPCITEMIDLIST
 
typedef struct qt_ITEMIDLISTqt_LPITEMIDLIST
 
typedef struct qt_SHITEMIDqt_LPSHITEMID
 

Enumerations

enum  FDAP { FDAP_BOTTOM = 0x00000000, FDAP_TOP = 0x00000001 }
 
enum  FDE_SHAREVIOLATION_RESPONSE { FDESVR_DEFAULT = 0x00000000, FDESVR_ACCEPT = 0x00000001, FDESVR_REFUSE = 0x00000002 }
 
enum  SIATTRIBFLAGS { SIATTRIBFLAGS_AND = 0x1, SIATTRIBFLAGS_OR = 0x2, SIATTRIBFLAGS_APPCOMPAT = 0x3, SIATTRIBFLAGS_MASK = 0x3 }
 
enum  SIGDN {
  SIGDN_NORMALDISPLAY = 0x00000000, SIGDN_PARENTRELATIVEPARSING = 0x80018001, SIGDN_PARENTRELATIVEFORADDRESSBAR = 0x8001c001, SIGDN_DESKTOPABSOLUTEPARSING = 0x80028000,
  SIGDN_PARENTRELATIVEEDITING = 0x80031001, SIGDN_DESKTOPABSOLUTEEDITING = 0x8004c000, SIGDN_FILESYSPATH = 0x80058000, SIGDN_URL = 0x80068000
}
 

Functions

 DECLARE_INTERFACE (IFileDialogEvents)
 
 DECLARE_INTERFACE_ (IShellItem, IUnknown)
 
 DECLARE_INTERFACE_ (IShellItemFilter, IUnknown)
 
 DECLARE_INTERFACE_ (IEnumShellItems, IUnknown)
 
 DECLARE_INTERFACE_ (IShellItemArray, IUnknown)
 
 DECLARE_INTERFACE_ (IModalWindow, IUnknown)
 
 DECLARE_INTERFACE_ (IFileDialog, IModalWindow)
 
 DECLARE_INTERFACE_ (IFileDialogEvents, IUnknown)
 
 DECLARE_INTERFACE_ (IFileOpenDialog, IFileDialog)
 

Macro Definition Documentation

◆ BFFM_ENABLEOK

#define BFFM_ENABLEOK   (WM_USER + 101)

Definition at line 89 of file qfiledialog_win_p.h.

Referenced by winGetExistDirCallbackProc().

◆ BFFM_INITIALIZED

#define BFFM_INITIALIZED   1

Definition at line 87 of file qfiledialog_win_p.h.

Referenced by winGetExistDirCallbackProc().

◆ BFFM_SELCHANGED

#define BFFM_SELCHANGED   2

Definition at line 88 of file qfiledialog_win_p.h.

Referenced by winGetExistDirCallbackProc().

◆ BFFM_SETSELECTION

#define BFFM_SETSELECTION   (WM_USER + 103)

Definition at line 90 of file qfiledialog_win_p.h.

Referenced by winGetExistDirCallbackProc().

◆ BFFM_SETSTATUSTEXT

#define BFFM_SETSTATUSTEXT   (WM_USER + 104)

Definition at line 91 of file qfiledialog_win_p.h.

Referenced by winGetExistDirCallbackProc().

◆ BIF_BROWSEFORCOMPUTER

#define BIF_BROWSEFORCOMPUTER   0x1000

Definition at line 105 of file qfiledialog_win_p.h.

◆ BIF_BROWSEFORPRINTER

#define BIF_BROWSEFORPRINTER   0x2000

Definition at line 106 of file qfiledialog_win_p.h.

◆ BIF_BROWSEINCLUDEFILES

#define BIF_BROWSEINCLUDEFILES   0x4000

Definition at line 107 of file qfiledialog_win_p.h.

◆ BIF_BROWSEINCLUDEURLS

#define BIF_BROWSEINCLUDEURLS   0x0080

Definition at line 101 of file qfiledialog_win_p.h.

◆ BIF_DONTGOBELOWDOMAIN

#define BIF_DONTGOBELOWDOMAIN   0x0002

Definition at line 95 of file qfiledialog_win_p.h.

◆ BIF_EDITBOX

#define BIF_EDITBOX   0x0010

Definition at line 98 of file qfiledialog_win_p.h.

◆ BIF_NEWDIALOGSTYLE

#define BIF_NEWDIALOGSTYLE   0x0040

Definition at line 100 of file qfiledialog_win_p.h.

Referenced by qt_win_get_existing_directory().

◆ BIF_NONEWFOLDERBUTTON

#define BIF_NONEWFOLDERBUTTON   0x0200

Definition at line 103 of file qfiledialog_win_p.h.

◆ BIF_NOTRANSLATETARGETS

#define BIF_NOTRANSLATETARGETS   0x0400

Definition at line 104 of file qfiledialog_win_p.h.

◆ BIF_RETURNFSANCESTORS

#define BIF_RETURNFSANCESTORS   0x0008

Definition at line 97 of file qfiledialog_win_p.h.

◆ BIF_RETURNONLYFSDIRS

#define BIF_RETURNONLYFSDIRS   0x0001

Definition at line 94 of file qfiledialog_win_p.h.

Referenced by qt_win_get_existing_directory().

◆ BIF_SHAREABLE

#define BIF_SHAREABLE   0x8000

Definition at line 108 of file qfiledialog_win_p.h.

◆ BIF_STATUSTEXT

#define BIF_STATUSTEXT   0x0004

Definition at line 96 of file qfiledialog_win_p.h.

Referenced by qt_win_get_existing_directory().

◆ BIF_UAHINT

#define BIF_UAHINT   0x0100

Definition at line 102 of file qfiledialog_win_p.h.

◆ BIF_VALIDATE

#define BIF_VALIDATE   0x0020

Definition at line 99 of file qfiledialog_win_p.h.

◆ FOS_ALLNONSTORAGEITEMS

#define FOS_ALLNONSTORAGEITEMS   0x80

Definition at line 57 of file qfiledialog_win_p.h.

◆ FOS_ALLOWMULTISELECT

#define FOS_ALLOWMULTISELECT   0x200

Definition at line 59 of file qfiledialog_win_p.h.

Referenced by qt_win_get_save_file_name().

◆ FOS_CREATEPROMPT

#define FOS_CREATEPROMPT   0x2000

Definition at line 62 of file qfiledialog_win_p.h.

◆ FOS_DEFAULTNOMINIMODE

#define FOS_DEFAULTNOMINIMODE   0x20000000

Definition at line 71 of file qfiledialog_win_p.h.

◆ FOS_DONTADDTORECENT

#define FOS_DONTADDTORECENT   0x2000000

Definition at line 69 of file qfiledialog_win_p.h.

◆ FOS_FILEMUSTEXIST

#define FOS_FILEMUSTEXIST   0x1000

Definition at line 61 of file qfiledialog_win_p.h.

Referenced by qt_win_get_save_file_name().

◆ FOS_FORCEFILESYSTEM

#define FOS_FORCEFILESYSTEM   0x40

Definition at line 56 of file qfiledialog_win_p.h.

Referenced by qt_win_get_save_file_name().

◆ FOS_FORCEPREVIEWPANEON

#define FOS_FORCEPREVIEWPANEON   0x40000000

Definition at line 72 of file qfiledialog_win_p.h.

◆ FOS_FORCESHOWHIDDEN

#define FOS_FORCESHOWHIDDEN   0x10000000

Definition at line 70 of file qfiledialog_win_p.h.

◆ FOS_HIDEMRUPLACES

#define FOS_HIDEMRUPLACES   0x20000

Definition at line 66 of file qfiledialog_win_p.h.

◆ FOS_HIDEPINNEDPLACES

#define FOS_HIDEPINNEDPLACES   0x40000

Definition at line 67 of file qfiledialog_win_p.h.

◆ FOS_NOCHANGEDIR

#define FOS_NOCHANGEDIR   0x8

Definition at line 54 of file qfiledialog_win_p.h.

Referenced by qt_win_get_save_file_name().

◆ FOS_NODEREFERENCELINKS

#define FOS_NODEREFERENCELINKS   0x100000

Definition at line 68 of file qfiledialog_win_p.h.

◆ FOS_NOREADONLYRETURN

#define FOS_NOREADONLYRETURN   0x8000

Definition at line 64 of file qfiledialog_win_p.h.

◆ FOS_NOTESTFILECREATE

#define FOS_NOTESTFILECREATE   0x10000

Definition at line 65 of file qfiledialog_win_p.h.

◆ FOS_NOVALIDATE

#define FOS_NOVALIDATE   0x100

Definition at line 58 of file qfiledialog_win_p.h.

◆ FOS_OVERWRITEPROMPT

#define FOS_OVERWRITEPROMPT   0x2

Definition at line 52 of file qfiledialog_win_p.h.

Referenced by qt_win_get_save_file_name().

◆ FOS_PATHMUSTEXIST

#define FOS_PATHMUSTEXIST   0x800

Definition at line 60 of file qfiledialog_win_p.h.

Referenced by qt_win_get_save_file_name().

◆ FOS_PICKFOLDERS

#define FOS_PICKFOLDERS   0x20

Definition at line 55 of file qfiledialog_win_p.h.

Referenced by qt_win_get_save_file_name().

◆ FOS_SHAREAWARE

#define FOS_SHAREAWARE   0x4000

Definition at line 63 of file qfiledialog_win_p.h.

◆ FOS_STRICTFILETYPES

#define FOS_STRICTFILETYPES   0x4

Definition at line 53 of file qfiledialog_win_p.h.

◆ GPS_BESTEFFORT

#define GPS_BESTEFFORT   0x00000040

Definition at line 82 of file qfiledialog_win_p.h.

◆ GPS_DEFAULT

#define GPS_DEFAULT   0x00000000

Definition at line 75 of file qfiledialog_win_p.h.

◆ GPS_DELAYCREATION

#define GPS_DELAYCREATION   0x00000020

Definition at line 81 of file qfiledialog_win_p.h.

◆ GPS_FASTPROPERTIESONLY

#define GPS_FASTPROPERTIESONLY   0x00000008

Definition at line 79 of file qfiledialog_win_p.h.

◆ GPS_HANDLERPROPERTIESONLY

#define GPS_HANDLERPROPERTIESONLY   0x00000001

Definition at line 76 of file qfiledialog_win_p.h.

◆ GPS_MASK_VALID

#define GPS_MASK_VALID   0x0000007F

Definition at line 83 of file qfiledialog_win_p.h.

◆ GPS_OPENSLOWITEM

#define GPS_OPENSLOWITEM   0x00000010

Definition at line 80 of file qfiledialog_win_p.h.

◆ GPS_READWRITE

#define GPS_READWRITE   0x00000002

Definition at line 77 of file qfiledialog_win_p.h.

◆ GPS_TEMPORARY

#define GPS_TEMPORARY   0x00000004

Definition at line 78 of file qfiledialog_win_p.h.

Typedef Documentation

◆ BFFCALLBACK

typedef int(QT_WIN_CALLBACK* BFFCALLBACK) (HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData)

Definition at line 85 of file qfiledialog_win_p.h.

◆ FDE_OVERWRITE_RESPONSE

Definition at line 136 of file qfiledialog_win_p.h.

◆ GETPROPERTYSTOREFLAGS

typedef int GETPROPERTYSTOREFLAGS

Definition at line 74 of file qfiledialog_win_p.h.

◆ qt_LPCITEMIDLIST

Definition at line 155 of file qfiledialog_win_p.h.

◆ qt_LPITEMIDLIST

typedef struct qt_ITEMIDLIST * qt_LPITEMIDLIST

◆ qt_LPSHITEMID

typedef struct qt_SHITEMID * qt_LPSHITEMID

Enumeration Type Documentation

◆ FDAP

enum FDAP
Enumerator
FDAP_BOTTOM 
FDAP_TOP 

Definition at line 127 of file qfiledialog_win_p.h.

127  {
128  FDAP_BOTTOM = 0x00000000,
129  FDAP_TOP = 0x00000001
130 } FDAP;

◆ FDE_SHAREVIOLATION_RESPONSE

Enumerator
FDESVR_DEFAULT 
FDESVR_ACCEPT 
FDESVR_REFUSE 

Definition at line 131 of file qfiledialog_win_p.h.

131  {
132  FDESVR_DEFAULT = 0x00000000,
133  FDESVR_ACCEPT = 0x00000001,
134  FDESVR_REFUSE = 0x00000002
FDE_SHAREVIOLATION_RESPONSE

◆ SIATTRIBFLAGS

Enumerator
SIATTRIBFLAGS_AND 
SIATTRIBFLAGS_OR 
SIATTRIBFLAGS_APPCOMPAT 
SIATTRIBFLAGS_MASK 

Definition at line 111 of file qfiledialog_win_p.h.

◆ SIGDN

enum SIGDN
Enumerator
SIGDN_NORMALDISPLAY 
SIGDN_PARENTRELATIVEPARSING 
SIGDN_PARENTRELATIVEFORADDRESSBAR 
SIGDN_DESKTOPABSOLUTEPARSING 
SIGDN_PARENTRELATIVEEDITING 
SIGDN_DESKTOPABSOLUTEEDITING 
SIGDN_FILESYSPATH 
SIGDN_URL 

Definition at line 117 of file qfiledialog_win_p.h.

Function Documentation

◆ DECLARE_INTERFACE()

DECLARE_INTERFACE ( IFileDialogEvents  )

◆ DECLARE_INTERFACE_() [1/8]

DECLARE_INTERFACE_ ( IShellItem  ,
IUnknown   
)

Definition at line 168 of file qfiledialog_win_p.h.

169 {
170  STDMETHOD(BindToHandler)(THIS_ IBindCtx *pbc, REFGUID bhid, REFIID riid, void **ppv) PURE;
171  STDMETHOD(GetParent)(THIS_ IShellItem **ppsi) PURE;
172  STDMETHOD(GetDisplayName)(THIS_ SIGDN sigdnName, LPWSTR *ppszName) PURE;
173  STDMETHOD(GetAttributes)(THIS_ ULONG sfgaoMask, ULONG *psfgaoAttribs) PURE;
174  STDMETHOD(Compare)(THIS_ IShellItem *psi, DWORD hint, int *piOrder) PURE;
175 };
Definition: quuid.h:52

◆ DECLARE_INTERFACE_() [2/8]

DECLARE_INTERFACE_ ( IShellItemFilter  ,
IUnknown   
)

Definition at line 176 of file qfiledialog_win_p.h.

177 {
178  STDMETHOD(IncludeItem)(THIS_ IShellItem *psi) PURE;
179  STDMETHOD(GetEnumFlagsForItem)(THIS_ IShellItem *psi, DWORD *pgrfFlags) PURE;
180 };

◆ DECLARE_INTERFACE_() [3/8]

DECLARE_INTERFACE_ ( IEnumShellItems  ,
IUnknown   
)

Definition at line 181 of file qfiledialog_win_p.h.

182 {
183  STDMETHOD(Next)(THIS_ ULONG celt, IShellItem **rgelt, ULONG *pceltFetched) PURE;
184  STDMETHOD(Skip)(THIS_ ULONG celt) PURE;
185  STDMETHOD(Reset)(THIS_) PURE;
186  STDMETHOD(Clone)(THIS_ IEnumShellItems **ppenum) PURE;
187 };

◆ DECLARE_INTERFACE_() [4/8]

DECLARE_INTERFACE_ ( IShellItemArray  ,
IUnknown   
)

Definition at line 188 of file qfiledialog_win_p.h.

189 {
190  STDMETHOD(BindToHandler)(THIS_ IBindCtx *pbc, REFGUID rbhid, REFIID riid, void **ppvOut) PURE;
191  STDMETHOD(GetPropertyStore)(THIS_ GETPROPERTYSTOREFLAGS flags, REFIID riid, void **ppv) PURE;
192  STDMETHOD(GetPropertyDescriptionList)(THIS_ const qt_PROPERTYKEY *keyType, REFIID riid, void **ppv) PURE;
193  STDMETHOD(GetAttributes)(THIS_ SIATTRIBFLAGS dwAttribFlags, ULONG sfgaoMask, ULONG *psfgaoAttribs) PURE;
194  STDMETHOD(GetCount)(THIS_ DWORD *pdwNumItems) PURE;
195  STDMETHOD(GetItemAt)(THIS_ DWORD dwIndex, IShellItem **ppsi) PURE;
196  STDMETHOD(EnumItems)(THIS_ IEnumShellItems **ppenumShellItems) PURE;
197 };
Definition: quuid.h:52
int GETPROPERTYSTOREFLAGS
SIATTRIBFLAGS

◆ DECLARE_INTERFACE_() [5/8]

DECLARE_INTERFACE_ ( IModalWindow  ,
IUnknown   
)

Definition at line 198 of file qfiledialog_win_p.h.

199 {
200  STDMETHOD(Show)(THIS_ HWND hwndParent) PURE;
201 };

◆ DECLARE_INTERFACE_() [6/8]

DECLARE_INTERFACE_ ( IFileDialog  ,
IModalWindow   
)

Definition at line 202 of file qfiledialog_win_p.h.

203 {
204  STDMETHOD(SetFileTypes)(THIS_ UINT cFileTypes, const qt_COMDLG_FILTERSPEC *rgFilterSpec) PURE;
205  STDMETHOD(SetFileTypeIndex)(THIS_ UINT iFileType) PURE;
206  STDMETHOD(GetFileTypeIndex)(THIS_ UINT *piFileType) PURE;
207  STDMETHOD(Advise)(THIS_ IFileDialogEvents *pfde, DWORD *pdwCookie) PURE;
208  STDMETHOD(Unadvise)(THIS_ DWORD dwCookie) PURE;
209  STDMETHOD(SetOptions)(THIS_ DWORD fos) PURE;
210  STDMETHOD(GetOptions)(THIS_ DWORD *pfos) PURE;
211  STDMETHOD(SetDefaultFolder)(THIS_ IShellItem *psi) PURE;
212  STDMETHOD(SetFolder)(THIS_ IShellItem *psi) PURE;
213  STDMETHOD(GetFolder)(THIS_ IShellItem **ppsi) PURE;
214  STDMETHOD(GetCurrentSelection)(THIS_ IShellItem **ppsi) PURE;
215  STDMETHOD(SetFileName)(THIS_ LPCWSTR pszName) PURE;
216  STDMETHOD(GetFileName)(THIS_ LPWSTR *pszName) PURE;
217  STDMETHOD(SetTitle)(THIS_ LPCWSTR pszTitle) PURE;
218  STDMETHOD(SetOkButtonLabel)(THIS_ LPCWSTR pszText) PURE;
219  STDMETHOD(SetFileNameLabel)(THIS_ LPCWSTR pszLabel) PURE;
220  STDMETHOD(GetResult)(THIS_ IShellItem **ppsi) PURE;
221  STDMETHOD(AddPlace)(THIS_ IShellItem *psi, FDAP fdap) PURE;
222  STDMETHOD(SetDefaultExtension)(THIS_ LPCWSTR pszDefaultExtension) PURE;
223  STDMETHOD(Close)(THIS_ HRESULT hr) PURE;
224  STDMETHOD(SetClientGuid)(THIS_ REFGUID guid) PURE;
225  STDMETHOD(ClearClientData)(THIS_) PURE;
226  STDMETHOD(SetFilter)(THIS_ IShellItemFilter *pFilter) PURE;
227 };
Definition: quuid.h:52
long HRESULT

◆ DECLARE_INTERFACE_() [7/8]

DECLARE_INTERFACE_ ( IFileDialogEvents  ,
IUnknown   
)

Definition at line 228 of file qfiledialog_win_p.h.

229 {
230  STDMETHOD(OnFileOk)(THIS_ IFileDialog *pfd) PURE;
231  STDMETHOD(OnFolderChanging)(THIS_ IFileDialog *pfd, IShellItem *psiFolder) PURE;
232  STDMETHOD(OnFolderChange)(THIS_ IFileDialog *pfd) PURE;
233  STDMETHOD(OnSelectionChange)(THIS_ IFileDialog *pfd) PURE;
234  STDMETHOD(OnShareViolation)(THIS_ IFileDialog *pfd, IShellItem *psi, FDE_SHAREVIOLATION_RESPONSE *pResponse) PURE;
235  STDMETHOD(OnTypeChange)(THIS_ IFileDialog *pfd) PURE;
236  STDMETHOD(OnOverwrite)(THIS_ IFileDialog *pfd, IShellItem *psi, FDE_OVERWRITE_RESPONSE *pResponse) PURE;
237 };
FDE_SHAREVIOLATION_RESPONSE

◆ DECLARE_INTERFACE_() [8/8]

DECLARE_INTERFACE_ ( IFileOpenDialog  ,
IFileDialog   
)

Definition at line 238 of file qfiledialog_win_p.h.

239 {
240  STDMETHOD(GetResults)(THIS_ IShellItemArray **ppenum) PURE;
241  STDMETHOD(GetSelectedItems)(THIS_ IShellItemArray **ppsai) PURE;
242 };