The Design Notes C API
57
The Design Notes C API
In addition to the JavaScript API, the MMNotes shared library also exposes a C API that lets
other applications create Design Notes files. It is not necessary to call these C functions directly if
you use the MMNotes shared library in Dreamweaver because the JavaScript versions of the
functions call them.
This section contains descriptions of the functions, their arguments, and their return values. You
can find definitions for the functions and data types in the MMInfo.h file in the Extending/
c_files folder inside the Dreamweaver application folder.
void CloseNotesFile()
Description
This function closes the specified Design Notes file and saves any changes. If all key/value pairs
are removed from the Design Note file, Dreamweaver deletes it. Dreamweaver deletes the _notes
folder when the last Design Notes file is deleted.
Arguments
FileHandle
noteHandle
•
The
noteHandle
argument is the file handle that the
OpenNotesFile()
function returns.
Returns
Nothing.
BOOL FilePathToLocalURL()
Description
This function converts the specified local drive path to a file:// URL.
Arguments
const
char*
drivePath
,
char*
localURLBuf
,
int
localURLMaxLen
•
The
drivePath
argument is a string that contains the full drive path.
•
The
localURLBuf
argument is the buffer where the file:// URL is stored.
•
The
localURLMaxLen
argument is the maximum size of
localURLBuf
.
Returns
A Boolean value:
true
indicates the operation is successful;
false
otherwise. The
localURLBuf
argument receives the file:// URL value.
000_DW_API_Print.book Page 57 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...