1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477
| // Generated .IDL file (by the OLE/COM Object Viewer)
//
// typelib filename: <could not determine filename>
[
uuid(22996F69-B06F-4F22-A9D9-CD2D48C55362),
version(1.0),
custom(DE77BA64-517C-11D1-A2DA-0000F8773CE9, 100663657),
custom(DE77BA63-517C-11D1-A2DA-0000F8773CE9, 1181558890),
custom(DE77BA65-517C-11D1-A2DA-0000F8773CE9, "Created by MIDL version 6.00.0361 at Mon Jun 11 12:48:10 2007")
]
library OmniPage15
{
// TLib : // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
importlib("stdole2.tlb");
// Forward declare all types defined in this typelib
interface IApplication;
interface IProcess;
interface IProcessWF;
dispinterface _DOPProgress;
interface IExportTextFormats;
interface IExportTextFormat;
interface IOPLanguages;
interface IOPLanguage;
interface IImageFormats;
interface IImageFormat;
interface IWorkflows;
interface IWorkflow;
interface IOPScanner;
interface IOPProgress;
typedef [public]
__MIDL___MIDL_itf_OmniPage_0000_0001 OptionDlgPage;
typedef enum {
OP_ACCURACY_PAGE = 1,
OP_EXPORT_PAGE = 2,
OP_LANGUAGE_PAGE = 4,
OP_CONFIGURE_PAGE = 8,
OP_SCANNER_PAGE = 16,
OP_DIRECT_PAGE = 32,
OP_DIRECT_MINI_PAGE = 64,
OP_CHECK_REC_PAGE = 128,
OP_PAPERPORT_PAGE = 256,
OP_OPUSACCURACY_PAGE = 512,
OP_EXPORTCR_PAGE = 1024,
OP_KIMCHEE_LANG_PAGE = 2048,
OP_KIMCHEE_ACCU_PAGE = 4096,
OP_TABLE_PAGE = 8192
} __MIDL___MIDL_itf_OmniPage_0000_0001;
typedef [public]
tag_eZoning eZoning;
typedef enum {
OP_ZONE_DEFAULT = 0xffffffff,
OP_ZONE_MANUAL = 0,
OP_ZONE_AUTO = 1
} tag_eZoning;
typedef [public]
tag_eProofReadFlag eProofReadFlag;
typedef enum {
OP_CHECKREC_MODAL = 0xfffffffe,
OP_CHECKREC_DEFAULT = 0xffffffff,
OP_CHECKREC_OFF = 0,
OP_CHECKREC_CURRPAGE = 1,
OP_CHECKREC_ALLPAGES = 2
} tag_eProofReadFlag;
typedef [public]
__MIDL___MIDL_itf_OmniPage_0000_0002 OPOLE_ERROR;
typedef enum {
OPOLE_SUCCESS = 0,
OPOLE_INIT = 1,
OPOLE_INTERNAL = 2,
OPOLE_UNSAVEDFILE = 3,
OPOLE_NOFILENAME = 4,
OPOLE_DOCOPENFAILED = 5,
OPOLE_EMPTYDOC = 6,
OPOLE_DOCSAVEFAILED = 7,
OPOLE_IMGSOURCE = 8,
OPOLE_CREATENEWPAGE = 9,
OPOLE_INVALIDPARAM = 10,
OPOLE_IMAGESIZEERROR = 11,
OPOLE_PROCESSNOTCOMPLETE = 12,
OPOLE_ACTIONCANCELED = 13,
OPOLE_TTSNOTAVAIL = 14,
OPOLE_TTSDISABLED = 15,
OPOLE_OUTOFPAGERANGE = 16,
OPOLE_NOTEXT = 17,
OPOLE_IMAGECONVERSION = 18,
OPOLE_IMAGESAVECOLOR = 19,
OPOLE_NOTUILANGUAGE = 20,
OPOLE_BLANKPAGES = 21
} __MIDL___MIDL_itf_OmniPage_0000_0002;
typedef [public]
tagIMGSRC IMGSRC;
typedef enum {
IMGSRC_DISKFILE = 0,
IMGSRC_SCANNER = 1
} tagIMGSRC;
typedef [public]
tagINSERTMODE INSERTMODE;
typedef enum {
INSERT_LAST = 0,
INSERT_AFTERCURRENT = 1,
INSERT_BEFORECURRENT = 2,
INSERT_FIRST = 3
} tagINSERTMODE;
typedef [public]
tagRECMODE RECMODE;
typedef enum {
RM_PROCESSALL = 0,
RM_PROCESSNOTREC = 1
} tagRECMODE;
typedef [public]
tagLYTDESCR LYTDESCR;
typedef enum {
eLytFmtAuto = 0,
eLytFmtSingleColNoTbl = 1,
eLytFmtMultiColNoTbl = 2,
eLytFmtSingleColTbl = 3,
eLytFmtSpreadsheet = 4,
eLytFmtForm = 5,
eLytFmtCustom = 6,
eLytFmtTemplate = 7
} tagLYTDESCR;
typedef [public]
tagRETAINCOLOROPT RETAINCOLOROPT;
typedef enum {
eRetainCol_Off = 0,
eRetainCol_InvertedText = 1,
eRetainCol_On = 2
} tagRETAINCOLOROPT;
typedef [public]
tagEXPTRG EXPTRG;
typedef enum {
eExpUndefined = 0xffffffff,
eExpToDisk = 0,
eExpToMail = 1,
eExpToClipboard = 2
} tagEXPTRG;
typedef [public]
tagFMTLVL FMTLVL;
typedef enum {
eFmtLvlRemove = 0,
eFmtLvlIgnoreAll = 1,
eFmtLvlRFP = 2,
eFmtLvlTruePage = 3,
eFmtLvlRFC = 4,
eFmtLvlSpreadSheet = 5
} tagFMTLVL;
typedef [public]
tagEXPFILEOPT EXPFILEOPT;
typedef enum {
eExpOneFile = 0,
eExpSeparatePerPage = 1,
eExpSeparatePerBlank = 2
} tagEXPFILEOPT;
typedef [public]
tagIMGFILEOPT IMGFILEOPT;
typedef enum {
eImgExpMultiPage = 0,
eImgExpSinglePage = 1
} tagIMGFILEOPT;
typedef [public]
tagIMAGEFORMATTYPE IMAGEFORMATTYPE;
typedef enum {
eEnumInputFormats = 0,
eEnumOutputFormats = 1,
eEnumAllFormats = 2
} tagIMAGEFORMATTYPE;
typedef [public]
tagSCANRESOLUTION SCANRESOLUTION;
typedef enum {
eScnRes200dpi = 1,
eScnRes300dpi = 2
} tagSCANRESOLUTION;
typedef [public]
tagSCANMODE SCANMODE;
typedef enum {
eScnMode_Undef = 0xffffffff,
eScnMode_BW = 0,
eScnMode_Gray = 1,
eScnMode_Color = 2
} tagSCANMODE;
typedef [public]
tagPAPERSIZE PAPERSIZE;
typedef enum {
ps_UnassignedSize = 0,
ps_Letter = 1,
ps_A3 = 2,
ps_A4 = 4,
ps_A5 = 8,
ps_B4 = 16,
ps_B5 = 32,
ps_Legal = 64,
ps_DLetter = 128
} tagPAPERSIZE;
typedef [public]
tagORIENTATION ORIENTATION;
typedef enum {
eOrient_Portrait = 0,
eOrient_Landscape = 1
} tagORIENTATION;
typedef [public]
tagPROCESSTYPES PROGRESSTYPES;
typedef enum {
prog_LoadImages = 0,
prog_ScanImages = 1,
prog_Recognize = 2,
prog_SaveDocumentAs = 3,
prog_SaveDocument = 4,
prog_OpenDocument = 5,
prog_SaveImages = 6,
prog_ConvertImage = 7
} tagPROCESSTYPES;
[
odl,
uuid(3FE73DD6-D3CB-4224-8D70-2E8F0D0F7BBA),
dual,
oleautomation
]
interface IApplication : IDispatch {
[id(0x00000001), propget, helpstring("Name of application")]
HRESULT AppName([out, retval] BSTR* Name);
[id(0x00000002), propget, helpstring("Version information about OmniPage")]
HRESULT Version([out, retval] long* AppVersion);
[id(0x00000003), propget, helpstring("Application busy flag")]
HRESULT AppBusy([out, retval] VARIANT_BOOL* Busy);
[id(0x00000004), propget, helpstring("Application initialized")]
HRESULT AppInitialized([out, retval] VARIANT_BOOL* AppInit);
[id(0x00000005), helpstring("Initialize OmniPage for automation")]
HRESULT Login(
[in] BSTR Key,
[out, retval] IDispatch** IOCRProcess);
[id(0x00000006), propget, helpstring("Silent mode")]
HRESULT SilentMode([out, retval] VARIANT_BOOL* pValue);
[id(0x00000006), propput, helpstring("Silent mode")]
HRESULT SilentMode([in] VARIANT_BOOL pValue);
[id(0x00000007), propput, helpstring("Set the parent window of any UI elements")]
HRESULT ParentWindow(long rhs);
};
[
uuid(899BB9A8-C92B-4373-98C4-10E8AB297DCA)
]
coclass Application {
[default] interface IApplication;
};
[
odl,
uuid(DDD0CB9C-F207-4CC5-8207-30FE756F4511),
dual,
oleautomation
]
interface IProcess : IDispatch {
[id(0x00000001), propget, helpstring("property AutoSave")]
HRESULT AutoSave([out, retval] VARIANT_BOOL* AutoSave);
[id(0x00000001), propput, helpstring("property AutoSave")]
HRESULT AutoSave([in] VARIANT_BOOL AutoSave);
[id(0x00000002), helpstring("Create new OmniPage document")]
HRESULT CreateDocument([out, retval] long* Error);
[id(0x00000003), helpstring("Open an existing document or display Open dialog box of OmniPage")]
HRESULT OpenDocument(
[in] BSTR Filename,
[out, retval] long* Error);
[id(0x00000004), helpstring("Save the currently opened document")]
HRESULT SaveDocument(
[in] BSTR Filename,
[out, retval] long* Error);
[id(0x00000005), helpstring("Print images of current document")]
HRESULT PrintImages(
[in] short FirstPage,
[in] short LastPage,
[out, retval] long* Error);
[id(0x00000006), helpstring("Print text of current document")]
HRESULT PrintText(
[in] short FirstPage,
[in] short LastPage,
[out, retval] long* Error);
[id(0x00000007), propget, helpstring("Is TTS available")]
HRESULT TTSStatus([out, retval] VARIANT_BOOL* Avail);
[id(0x00000008), propget, helpstring("TTS enable state")]
HRESULT TTSEnabled([out, retval] VARIANT_BOOL* Enabled);
[id(0x00000008), propput, helpstring("TTS enable state")]
HRESULT TTSEnabled([in] VARIANT_BOOL Enabled);
[id(0x00000009), helpstring("ReadDocumentOut method")]
HRESULT ReadDocument(
[in] short Page,
[out, retval] long* Error);
[id(0x0000000a), helpstring("Stop Reading method")]
HRESULT StopReading([out, retval] long* Error);
[id(0x0000000b), propget, helpstring("Is the current document modified")]
HRESULT DocModifiedFlag([out, retval] VARIANT_BOOL* Modified);
[id(0x0000000c), propget, helpstring("Get number of pages in the current document")]
HRESULT PageCount([out, retval] long* Modified);
[id(0x00000014), helpstring("Add image filename to the list of images to load")]
HRESULT ImportImage(BSTR Filename);
[id(0x00000015), helpstring("Load specified image or images added to load list")]
HRESULT LoadImages(
[in] BSTR Filename,
[out, retval] long* Error);
[id(0x00000016), propget, helpstring("Get source of images")]
HRESULT ImageSource([out, retval] IMGSRC* IMGSRC);
[id(0x00000016), propput, helpstring("Get source of images")]
HRESULT ImageSource([in] IMGSRC IMGSRC);
[id(0x00000017), propget, helpstring("Get InsertPage property")]
HRESULT INSERTMODE([out, retval] INSERTMODE* insertpage);
[id(0x00000017), propput, helpstring("Get InsertPage property")]
HRESULT INSERTMODE([in] INSERTMODE insertpage);
[id(0x00000018)]
HRESULT StartAddImage(
[in] short w,
[in] short h,
[in] short bpp,
[in] short xres,
[in] short yres,
[in] short align,
[out, retval] long* pError);
[id(0x00000019)]
HRESULT AddImageData(
[in] short lineStart,
[in] short lineLen,
[in] VARIANT vSafeArray,
[in] short dataSize,
[out, retval] long* pError);
[id(0x0000001a)]
HRESULT StopAddImage([out, retval] long* Error);
[id(0x0000001e), propget, helpstring("Get Layout format")]
HRESULT LayoutDescription([out, retval] LYTDESCR* Layout);
[id(0x0000001e), propput, helpstring("Get Layout format")]
HRESULT LayoutDescription([in] LYTDESCR Layout);
[id(0x0000001f), propget, helpstring("Get template filename")]
HRESULT TemplateFilename([out, retval] BSTR* Filename);
[id(0x0000001f), propput, helpstring("Get template filename")]
HRESULT TemplateFilename([in] BSTR Filename);
[id(0x00000020), propget, helpstring("Get AutoZone property")]
HRESULT AutoZoneState([out, retval] VARIANT_BOOL* Value);
[id(0x00000020), propput, helpstring("Get AutoZone property")]
HRESULT AutoZoneState([in] VARIANT_BOOL Value);
[id(0x00000021), helpstring("Make interface visible to allow manual zoning")]
HRESULT ZoneImage(
[in] long Flag,
[out, retval] long* Error);
[id(0x00000028), propget, helpstring("Get rejection symbol")]
HRESULT RejectSymbol([out, retval] short* Reject);
[id(0x00000028), propput, helpstring("Get rejection symbol")]
HRESULT RejectSymbol([in] short Reject);
[id(0x00000029), propget, helpstring("Get user dictionary")]
HRESULT UserDictionary([out, retval] BSTR* UserDict);
[id(0x00000029), propput, helpstring("Get user dictionary")]
HRESULT UserDictionary([in] BSTR UserDict);
[id(0x0000002a), propget, helpstring("Get training file")]
HRESULT TrainingFile([out, retval] BSTR* Train);
[id(0x0000002a), propput, helpstring("Get training file")]
HRESULT TrainingFile([in] BSTR Train);
[id(0x0000002b), helpstring("Recognize specified pages of the current document")]
HRESULT Recognize(
[in] RECMODE Flag,
[out, retval] long* Error);
[id(0x0000002c), helpstring("Convert image to text file")]
HRESULT ProcessImage(
[in] BSTR ImageFilename,
[in] BSTR TextFilename,
[out, retval] long* Error);
[id(0x0000002d), propget, helpstring("Languages collection")]
HRESULT Languages([out, retval] IDispatch** Languages);
[id(0x00000032), propget, helpstring("Get automatic orientation setting")]
HRESULT AutoRotation([out, retval] VARIANT_BOOL* autoorient);
[id(0x00000032), propput, helpstring("Get automatic orientation setting")]
HRESULT AutoRotation([in] VARIANT_BOOL autoorient);
[id(0x00000033), propget, helpstring("Get Retain Colors setting")]
HRESULT RetainColor([out, retval] RETAINCOLOROPT* pValue);
[id(0x00000033), propput, helpstring("Get Retain Colors setting")]
HRESULT RetainColor([in] RETAINCOLOROPT pValue);
[id(0x00000034), propget, helpstring("Get automatic Proofread option")]
HRESULT AutoProof([out, retval] VARIANT_BOOL* pValue);
[id(0x00000034), propput, helpstring("Get automatic Proofread option")]
HRESULT AutoProof([in] VARIANT_BOOL pValue);
[id(0x00000035), helpstring("Proof-read OCR result")]
HRESULT Proof(
[in] eProofReadFlag Flag,
[out, retval] long* Error);
[id(0x0000003c), propget, helpstring("Export Target: file, mail, clipboard")]
HRESULT ExportTarget([out, retval] EXPTRG* pValue);
[id(0x0000003c), propput, helpstring("Export Target: file, mail, clipboard")]
HRESULT ExportTarget([in] EXPTRG pValue);
[id(0x0000003d), propget, helpstring("Export file format")]
HRESULT ExportTextFormat([out, retval] VARIANT* ConvID);
[id(0x0000003d), propput, helpstring("Export file format")]
HRESULT ExportTextFormat([in] VARIANT ConvID);
[id(0x0000003e), propget, helpstring("Export formatting level")]
HRESULT ExportFormattingLevel([out, retval] FMTLVL* pValue);
[id(0x0000003e), propput, helpstring("Export formatting level")]
HRESULT ExportFormattingLevel([in] FMTLVL pValue);
[id(0x0000003f), propget, helpstring("Page separation on export")]
HRESULT TextSeparation([out, retval] EXPFILEOPT* pValue);
[id(0x0000003f), propput, helpstring("Page separation on export")]
HRESULT TextSeparation([in] EXPFILEOPT pValue);
[id(0x00000040), propget, helpstring("Launch associated application on export")]
HRESULT LaunchOnExport([out, retval] VARIANT_BOOL* pValue);
[id(0x00000040), propput, helpstring("Launch associated application on export")]
HRESULT LaunchOnExport([in] VARIANT_BOOL pValue);
[id(0x00000041), propget, helpstring("Collection of output text formats")]
HRESULT ExportTextFormats([out, retval] IDispatch** pValue);
[id(0x00000042), helpstring("Save the currently opened document in the specified format")]
HRESULT ExportDocument(
[in] BSTR Filename,
[out, retval] long* Error);
[id(0x00000046), helpstring("Save images in the current document regarding to the settings")]
HRESULT ExportImageFiles(
[in] BSTR Filename,
[out, retval] long* Error);
[id(0x00000047), propget, helpstring("Get image file format")]
HRESULT ExportImageFormat([out, retval] VARIANT* FormatID);
[id(0x00000047), propput, helpstring("Get image file format")]
HRESULT ExportImageFormat([in] VARIANT FormatID);
[id(0x00000048), propget, helpstring("Get image separation option")]
HRESULT ImageSeparation([out, retval] IMGFILEOPT* pValue);
[id(0x00000048), propput, helpstring("Get image separation option")]
HRESULT ImageSeparation([in] IMGFILEOPT pValue);
[id(0x00000049), propget, helpstring("Collection of imagefile formats")]
HRESULT ImageFormats(
[in] IMAGEFORMATTYPE type,
[out, retval] IDispatch** pValue);
[id(0x00000050), helpstring("Load settings from the specified INI file")]
HRESULT LoadSettings(
[in] BSTR Filename,
[out, retval] long* pError);
[id(0x00000051), helpstring("Save settings into the specified INI file")]
HRESULT SaveSettings(
[in] BSTR Filename,
[out, retval] long* pError);
[id(0x00000052), helpstring("Invoke Settings window")]
HRESULT OptionsDialog([in] long Flag);
[id(0x0000005a), propget, helpstring("Get scanner support interface")]
HRESULT Scanner([out, retval] IDispatch** Scanner);
[id(0x0000005b), propget, helpstring("Get error description string")]
HRESULT LastError([out, retval] BSTR* ErrorString);
}; |
Partager