home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 1997-1998, Tall Tree Software Co.
- *
- * This code is provided AS-IS, with no warranty expressed or implied.
- * in no way shall Tall Tree Software Co. be held liable for damages
- * brought about by the use of this software.
- */
-
- #ifndef Project_Scanners_h
- #define Project_Scanners_h
-
- /*
- This header file declares all the objects you need if you are going to
- write a project-scanner DLL plug-in for DocJet. Detailed instructions on
- how to write one of these DLL's can be found in the on-line help. To get
- to it, open the table of contents (the "Contents" tab of the search
- window), open the "DocJet Plug-Ins" book, and double click the "Project
- File Scanner DLL's" topic underneath it.
-
- The main thing you need to do is write a function that conforms to this
- interface:
-
- extern "C" DLLEXPORT void ScanProject( const char *filename,
- FileReportFunction onFileFound );
-
- It should search through filename, looking for potential source files
- within it, then call onFileFound for each of them.
-
- You also need to have a resource script with two string table entries
- that look something like this:
-
- STRINGTABLE DISCARDABLE
- BEGIN
- IDS_EXTENSIONS "*.mak;makefile"
- IDS_NAME "Makefile-based project"
- END
-
- Where IDS_EXTENSIONS is defined to 1001 and IDS_NAME is defined to 1002.
-
- As with all plug-in DLL's, it should be compiled with the "Multithreaded
- DLL" code-generation flag.
-
- */
-
- typedef void (*FileReportFunction)( const char *foundFile );
-
- #ifndef DLLEXPORT
- #define DLLEXPORT _declspec(dllexport)
- #define DLLIMPORT _declspec(dllimport)
- #endif
-
- #define PROJECT_ICON_RESOURCE_ID 1000
- #define PROJECT_EXTENSIONS_RESOURCE_ID 1001
- #define PROJECT_NAME_RESOURCE_ID 1002
-
- #endif
-