IAddinExports.h 994 B

12345678910111213141516171819
  1. #pragma once
  2. #include "DittoDefines.h"
  3. #include "IClip.h"
  4. #include <vector>
  5. extern "C"
  6. {
  7. //DittoAddin returns infor about your addin, version, display name
  8. bool __declspec(dllexport) DittoAddin(const CDittoInfo &DittoInfo, CDittoAddinInfo &info);
  9. //Supported functions returns a list of available functions your addin supports based on the type passed in
  10. //For each of the functions you must have an exported function that matches the returned function name
  11. //CDittoInfo contains info about ditto. Included language code, to support multiple languages return the correct string based off of the language code currently used in ditto (//http://www.loc.gov/standards/iso639-2/php/code_list.php)
  12. bool __declspec(dllexport) SupportedFunctions(const CDittoInfo &DittoInfo, FunctionType type, std::vector<CFunction> &Functions);
  13. //Each exported functions must follow the following format
  14. bool __declspec(dllexport) ConvertPathToHtmlImageTag(const CDittoInfo &DittoInfo, IClip *pClip);
  15. }