Detailed Description
- See also:
- Class DropType,
Class URLTab, Class
SceneFileDropType, Class
ImageFileDropType, Class
ImportFileDropType, Class
ScriptFileDropType,
DropTypes.
- Description:
- This class is available in release 4.0 and later only.
This is an intermediate base class for drop content that comes in
the form of a module of filenames or URLS. This class maintains a
list of all its subclass singleton instances and provides utility
methods for finding an appropriate subclass instance, based on the
dropped filename, and for download URL modules.
- Data Members:
- protected:
static Tab<FileDropType*>
fileDropTypes;
The table of FileDropTypes.
static MSTR download_directory;
Cache for current default URL module download directory .
public
static URLTab
current_package;
Currently dropping URL module. Filled in by the active DropClipFormat in
its ParseDataObject() method .
#include <idraganddrop.h>
List of all
members.
Public Member Functions
|
|
FileDropType
() |
int |
TypeCode
() |
bool |
IsDropType
(int code) |
CoreExport
bool |
Load
(bool showProgress=true) |
virtual
bool |
CheckDropType
(MCHAR *filename) |
STDMETHODIMP |
GetData
(FORMATETC *pFormatetc, STGMEDIUM *pmedium) |
STDMETHODIMP |
GetDataHere
(FORMATETC *pFormatetc, STGMEDIUM *pmedium) |
STDMETHODIMP |
QueryGetData
(FORMATETC *pFormatetc) |
Static Public Member
Functions
|
static
void |
Init
() |
static
CoreExport FileDropType * |
FindDropType
(MCHAR *filename, IDataObject *pDataObject=NULL) |
static
CoreExport bool |
DownloadPackage
(URLTab &module,
MCHAR *szDirectory, HWND hwnd=NULL, bool showProgress=true) |
static
CoreExport MCHAR * |
GetDownloadDirectory
() |
static
CoreExport bool |
DownloadUrlToDisk
(HWND hwnd, MCHAR *szUrl, MCHAR *szPathname, DWORD flags=0) |
Static Public Attributes
|
static
CoreExport URLTab |
current_package |
Static Protected Member
Functions
|
static
CoreExport bool |
CheckForCachedFile
(MCHAR *filename) |
static
CoreExport bool |
IsInternetCachedFile
(const MCHAR *filename) |
static
CoreExport bool |
AppendUrlFilename
(const MCHAR *szUrl, MCHAR *szPathname, bool &is_URL) |
Static Protected
Attributes
|
static
CoreExport Tab
< FileDropType * > |
fileDropTypes |
static
CoreExport MSTR |
download_directory |
Constructor & Destructor Documentation
Member Function Documentation
static CoreExport bool CheckForCachedFile |
( |
MCHAR * |
filename |
) |
[static, protected] |
static CoreExport bool
IsInternetCachedFile |
( |
const MCHAR * |
filename |
) |
[static, protected] |
static CoreExport bool AppendUrlFilename |
( |
const MCHAR * |
szUrl, |
|
|
MCHAR * |
szPathname, |
|
|
bool & |
is_URL |
|
) |
|
[static, protected] |
static void Init |
( |
|
) |
[inline, static] |
int TypeCode |
( |
|
) |
[inline, virtual] |
bool IsDropType |
( |
int |
code |
) |
[inline, virtual] |
- Parameters:
- int code
The DropType
code.
- Default Implementation:
- { return code == TypeCode()
|| code == FILE_DROPTYPE; }
Reimplemented from DropType.
CoreExport bool Load |
( |
bool |
showProgress =
true |
) |
[virtual] |
static CoreExport FileDropType* FindDropType |
( |
MCHAR * |
filename, |
|
|
IDataObject * |
pDataObject =
NULL |
|
) |
|
[static] |
- Parameters:
- MCHAR* filename
The filename suffix.
IDataObject* pDataObject = NULL
A pointer to the IDataObject.
- Returns:
- The FileDropType that corresponds to
the filename suffix. This could be one of the following;
sceneFileDropType, imageFileDropType, importFileDropType,
dropScriptFileDropType.
virtual bool CheckDropType |
( |
MCHAR * |
filename |
) |
[inline, virtual] |
static CoreExport bool DownloadPackage |
( |
URLTab & |
module, |
|
|
MCHAR * |
szDirectory, |
|
|
HWND |
hwnd = NULL , |
|
|
bool |
showProgress =
true |
|
) |
|
[static] |
- Parameters:
- URLTab&
module
A reference to the local copies of the URL strings.
MCHAR* directory
The directory path string to download to.
HWND hwnd = NULL
A handle to the window. If this is set to NULL, the default 3ds Max
window is used.
bool showProgress = false
The download progress dialog can be displayed by passing true.
- Returns:
- TRUE if the download was successful, otherwise FALSE.
static CoreExport MCHAR*
GetDownloadDirectory |
( |
|
) |
[static] |
static CoreExport bool DownloadUrlToDisk |
( |
HWND |
hwnd, |
|
|
MCHAR * |
szUrl, |
|
|
MCHAR * |
szPathname, |
|
|
DWORD |
flags = 0 |
|
) |
|
[static] |
- Parameters:
- HWND hwnd = NULL
A handle to the window.
MCHAR* url
The URL string of the file to download.
MCHAR* fileName
The filename string of the URL to store on disk.
DWORD flags=0
Additional controls to the download behavior. Currently only one
flag is supported, DOWNLOADDLG_NOPLACE, which hides an
option in the progress dialog that allows the user to place (move)
a dropped object immediately after being dropped.
- Returns:
- TRUE if the download was successful, otherwise FALSE.
STDMETHODIMP GetData |
( |
FORMATETC * |
pFormatetc, |
|
|
STGMEDIUM * |
pmedium |
|
) |
|
[inline] |
STDMETHODIMP GetDataHere |
( |
FORMATETC * |
pFormatetc, |
|
|
STGMEDIUM * |
pmedium |
|
) |
|
[inline] |
STDMETHODIMP QueryGetData |
( |
FORMATETC * |
pFormatetc |
) |
[inline] |
Member Data Documentation
FileDropType FileDropType FileDropType
FileDropType FileDropType FileDropType FileDropType FileDropType
FileDropType FileDropType
FileDropType FileDropType FileDropType
FileDropType FileDropType FileDropType FileDropType FileDropType
FileDropType FileDropType