00001 import "ocidl.idl";
00002 import "oaidl.idl";
00003
00024 [ uuid(B8E9B776-B403-445a-BDA0-0BAA324A8F88),
00025 version(1.0),
00026 helpstring("LightComp Tahiti 5.0 Type Library") ]
00027 library TahitiAutomation
00028 {
00029 importlib("stdole2.tlb");
00030
00031 interface tcomIApplication;
00032 interface tcomIViewObject;
00033
00042 [
00043 object,
00044 uuid(DEBC6794-7EA3-4e27-8D00-396B9C7D6B0F),
00045 dual,
00046 helpstring("Interface for word plugin"),
00047 pointer_default(unique)
00048 ]
00049 interface tcomIAddinEntry: IDispatch
00050 {
00055 [propget, id(1), helpstring("return Tahiti")] HRESULT Application([out, retval] IDispatch **ppTahiti);
00056
00061 [id(2), helpstring("run script")] HRESULT RunScript([in] IDispatch *pDocumentDisp, [in] BSTR script, [in] BSTR directory, [in] IDispatch *pPage, [in] IDispatch *pDomain);
00062 };
00063
00064
00070 [
00071 object,
00072 uuid(5014B614-9FA6-4abd-897C-0A974E273991),
00073 dual,
00074 oleautomation,
00075 nonextensible,
00076 helpstring("tcomIAttribute Interface"),
00077 pointer_default(unique)
00078 ]
00079 interface tcomIAttribute : IDispatch {
00084 [propget, id(1), helpstring("return name")] HRESULT Name([out, retval] BSTR *pbName);
00085
00090 [propget, id(2), helpstring("return value")] HRESULT Value([out, retval] BSTR *pbValue);
00091
00096 [propput, id(2), helpstring("set value")] HRESULT Value([in] BSTR bValue);
00097 }
00098
00104 [
00105 object,
00106 uuid(81B32863-AB45-4065-B628-0AE82BF731BD),
00107 dual,
00108 oleautomation,
00109 nonextensible,
00110 helpstring("tcomIAttributes Interface"),
00111 pointer_default(unique)
00112 ]
00113 interface tcomIAttributes : IDispatch {
00118 [propget, id(1), helpstring("attributes count")] HRESULT Count([out, retval] VARIANT * count);
00119
00126 [id(0xfffffffc), helpstring("attribute enumerator")] HRESULT _NewEnum([out, retval] IUnknown** ppEnum);
00127
00133 [id(2), helpstring("return item with given index")] HRESULT Item([in] VARIANT *pvaIndex, [out, retval] VARIANT *pvaItem);
00134
00140 [id(12), helpstring("Add attribute")] HRESULT AddAttribute([in] BSTR name, [in] BSTR value,[out, retval] tcomIAttribute **ppAttribute);
00141
00147 [id(13), helpstring("Remove attribute")] HRESULT RemoveAttribute([in] BSTR name);
00148
00154 [propget, id(14), helpstring("values")] HRESULT Values([out, retval] VARIANT * pArrayOut);
00155
00156 }
00157
00163 [
00164 object,
00165 uuid(E72785F5-1F02-4a4b-8993-D8D6DBF43FC2),
00166 dual,
00167 oleautomation,
00168 nonextensible,
00169 helpstring("Object Container Interface"),
00170 pointer_default(unique)
00171 ]
00172 interface tcomIViewObjectContainer: IDispatch {
00178 [propget, id(3), helpstring("attributes")] HRESULT Attributes([out, retval] tcomIAttributes **ppAttributes);
00179 }
00180
00186 [
00187 object,
00188 uuid(855D8E7A-0E04-44cf-A482-E7F77E9529FC),
00189 dual,
00190 oleautomation,
00191 nonextensible,
00192 helpstring("Object View Interface"),
00193 pointer_default(unique)
00194 ]
00195 interface tcomIObjectView: IDispatch {
00201 [propget, id(1), helpstring("modified")] HRESULT Modified([out, retval] VARIANT_BOOL *pModified);
00202
00208 [id(2), helpstring("save changes")] HRESULT Save();
00209
00217 [id(3), helpstring("close view")] HRESULT Close();
00218
00229 [id(4), helpstring("run script")] HRESULT RunScript([in] BSTR code, [in] BSTR workingDir, [in] int scriptType);
00230 };
00231
00237 [
00238 object,
00239 uuid(9E05A4D5-920C-42c5-A972-E4807BD020A2),
00240 dual,
00241 oleautomation,
00242 nonextensible,
00243 helpstring("View Object Interface"),
00244 pointer_default(unique)
00245 ]
00246 interface tcomIViewObject: IDispatch {
00251 [propget, id(1), helpstring("document")] HRESULT Parent([out, retval] tcomIViewObjectContainer **ppDocument);
00252
00260 [propget, id(2), helpstring("return mime-type")] HRESULT MimeType([out, retval] BSTR *pbName);
00261
00271 [id(3), helpstring("save this object")] HRESULT SaveAs([in] BSTR fileName, [in] VARIANT_BOOL bAppendExtension, [out, retval] BSTR *pbName);
00272 }
00273
00274
00281 [
00282 object,
00283 uuid(FBDA8954-AB84-417d-B1BC-966946864E02),
00284 dual,
00285 oleautomation,
00286 nonextensible,
00287 helpstring("Page Interface"),
00288 pointer_default(unique)
00289 ]
00290 interface tcomIPage: tcomIViewObject {
00299 [id(10), helpstring("return opened oobject")] HRESULT Open([out, retval] IDispatch **ppOvi);
00300
00305 [propget, id(11), helpstring("valid page")] HRESULT ValidData([out, retval] VARIANT_BOOL *pValidData);
00306
00312 [propget, id(12), helpstring("can revert")] HRESULT CanRevert([out, retval] VARIANT_BOOL *pValidData);
00313
00320 [id(13), helpstring("revert")] HRESULT Revert();
00321 }
00322
00329 [
00330 object,
00331 uuid(0E34B7EC-D0B1-4fb8-9B07-68A9649AE8C7),
00332 dual,
00333 oleautomation,
00334 nonextensible,
00335 helpstring("Pages Interface"),
00336 pointer_default(unique)
00337 ]
00338 interface tcomIPages: IDispatch {
00343 [propget, id(1), helpstring("page count")] HRESULT Count([out, retval] VARIANT * count);
00344
00349 [id(0xfffffffc), helpstring("document enumerator")] HRESULT _NewEnum([out, retval] IUnknown** ppEnum);
00350
00356 [id(2), helpstring("return item with given index")] HRESULT Item([in] VARIANT *pvaIndex, [out, retval] VARIANT *pvaItem);
00357 };
00358
00364 [
00365 object,
00366 uuid(299AF503-A24F-4cb9-B376-22F4B36B117C),
00367 dual,
00368 oleautomation,
00369 nonextensible,
00370 helpstring("Document Interface"),
00371 pointer_default(unique)
00372 ]
00373 interface tcomIDocument: tcomIViewObjectContainer {
00378 [propget, id(10), helpstring("repository")] HRESULT Repository([out, retval] IDispatch **ppRepository);
00379
00385 [id(11), helpstring("Add page")] HRESULT AddPage([in] BSTR filePath, [in] BSTR mimeType,[out, retval] tcomIPage **ppPage);
00386
00393 [propget, id(12), helpstring("property documents")] HRESULT Pages([out, retval] IDispatch **ppPages);
00394
00400 [id(13), helpstring("Commit document")] HRESULT Commit();
00401
00406 [propget, id(14), helpstring("return document ID")] HRESULT DocumentID([out, retval] VARIANT *pDocId);
00407
00408 };
00409
00416 [
00417 object,
00418 uuid(5BDF7BBC-D2EA-4c5a-8E10-A9881AFF6698),
00419 dual,
00420 oleautomation,
00421 nonextensible,
00422 helpstring("tcomIDocuments Interface"),
00423 pointer_default(unique)
00424 ]
00425 interface tcomIDocuments : IDispatch {
00430 [propget, id(1), helpstring("documents count")] HRESULT Count([out, retval] VARIANT * count);
00431
00436 [id(0xfffffffc), helpstring("document enumerator")] HRESULT _NewEnum([out, retval] IUnknown** ppEnum);
00437
00443 [id(2), helpstring("return item with given index")] HRESULT Item([in] VARIANT *pvaIndex, [out, retval] VARIANT *pvaItem);
00444 };
00445
00446
00447
00463 [
00464 object,
00465 uuid(37B73EB5-635F-4464-A9F3-FC9BE0D86590),
00466 dual,
00467 oleautomation,
00468 nonextensible,
00469 helpstring("Document Manager Interface"),
00470 pointer_default(unique)
00471 ]
00472 interface tcomIDocumentManagerComponent: IDispatch {
00477 [propget, id(1), helpstring("domain")] HRESULT Domain([out, retval] IDispatch **ppDomain);
00478
00492 [id(2), helpstring("Create Document")] HRESULT CreateDocument([in] BSTR documentType, [in] VARIANT_BOOL bEditAttributes, [out, retval] tcomIDocument **ppDocument);
00493
00500 [propget, id(3), helpstring("property documents")] HRESULT Documents([out, retval] IDispatch **pDocuments);
00501
00507 [id(4), helpstring("get document by id")] HRESULT GetDocumentById([in] VARIANT *docId, tcomIDocument **ppDocument);
00508
00513 [id(5), helpstring("delete document")] HRESULT RemoveDocument([in] VARIANT *docId);
00514 };
00515
00516
00522 [
00523 object,
00524 uuid(19E9198A-4A45-490a-9FE1-6AD32B9E8C75),
00525 dual,
00526 oleautomation,
00527 nonextensible,
00528 helpstring("Scan Job"),
00529 pointer_default(unique)
00530 ]
00531 interface tcomIScanJob: IDispatch {
00536 [propget, id(1), helpstring("id")] HRESULT Id([out, retval] BSTR *pId);
00537
00556 [id(2), helpstring("Export")] HRESULT Export([in] long type, [in] BSTR path, [in] long fileFormat,
00557 [in, optional] VARIANT *pFileName, [in, optional] VARIANT *pAppendIndex);
00558
00562 [id(3), helpstring("Delete")] HRESULT Delete();
00563 };
00564
00565
00579 [
00580 object,
00581 uuid(5EE5C6F5-074A-41c1-81D5-48AA25D711A4),
00582 dual,
00583 oleautomation,
00584 nonextensible,
00585 helpstring("Scanner Component Interface"),
00586 pointer_default(unique)
00587 ]
00588 interface tcomIScannerComponent: IDispatch {
00592 [id(1), helpstring("Create Job")] HRESULT CreateJob([out, retval] tcomIScanJob **ppScanJob);
00593
00597 [id(2), helpstring("Open Job")] HRESULT OpenJob([in] BSTR jobId, [out, retval] tcomIScanJob **ppScanJob);
00598
00602 [propget, id(3), helpstring("Return active job")] HRESULT ActiveJob([out, retval] tcomIScanJob **ppScanJob);
00603
00610 [id(4), helpstring("Scan")] HRESULT Scan([in, optional] VARIANT *profile);
00611 };
00612
00613
00624 [
00625 object,
00626 uuid(81B864B5-5BB4-4ec4-B3E0-64265E170F70),
00627 dual,
00628 oleautomation,
00629 nonextensible,
00630 helpstring("Document Input/Output Component"),
00631 pointer_default(unique)
00632 ]
00633 interface tcomIDocumentIOComponent: IDispatch {
00640 [id(1), helpstring("Create Document")] HRESULT CreateDocument([in] long parentWnd, [out, retval] IDispatch **ppDocument);
00641 };
00642
00643
00649 [
00650 object,
00651 uuid(5FCA0B91-C5A0-45be-AD30-B797C61982C4),
00652 dual,
00653 oleautomation,
00654 nonextensible,
00655 helpstring("DomainConfiguration Interface"),
00656 pointer_default(unique)
00657 ]
00658 interface tcomIDomainConfiguration: IDispatch {
00659
00665 [id(1), helpstring("return value")] HRESULT GetValue([in] VARIANT *name, [out, retval] VARIANT *value);
00666
00672 [id(2), helpstring("set value")] HRESULT SetValue([in] VARIANT *name, [in] VARIANT *value);
00673 };
00674
00680 [
00681 object,
00682 uuid(908463AA-641B-4f23-8BA1-9077AAC8B7B6),
00683 dual,
00684 oleautomation,
00685 nonextensible,
00686 helpstring("tcomIComponent Interface"),
00687 pointer_default(unique)
00688 ]
00689 interface tcomIComponent : IDispatch {
00694 [propget, id(1), helpstring("return name")] HRESULT Name([out, retval] BSTR *pbName);
00695
00704 [id(2), helpstring("return component specific interface")] HRESULT GetInterface([out, retval] IDispatch **ppDisp);
00705 };
00706
00707
00721 [
00722 object,
00723 uuid(B2D2FD25-1D43-4034-AA6D-D67656F6CB55),
00724 dual,
00725 oleautomation,
00726 nonextensible,
00727 helpstring("tcomIComponents Interface"),
00728 pointer_default(unique)
00729 ]
00730 interface tcomIComponents : IDispatch {
00735 [propget, id(1), helpstring("properities componets count")] HRESULT Count([out, retval] VARIANT * count);
00736
00741 [id(0xfffffffc), helpstring("component enumerator")] HRESULT _NewEnum([out, retval] IUnknown** ppEnum);
00742
00748 [id(2), helpstring("return item with given index")] HRESULT Item([in] VARIANT *pvaIndex, [out, retval] VARIANT *pvaItem);
00749 }
00750
00756 [
00757 object,
00758 uuid(554B86B2-5DBA-4584-9D52-CA59E3058E87),
00759 dual,
00760 oleautomation,
00761 nonextensible,
00762 helpstring("DomainConfiguration Interface"),
00763 pointer_default(unique)
00764 ]
00765 interface tcomISharedConfiguration: IDispatch {
00766
00772 [id(1), helpstring("return value")] HRESULT GetValue([in] VARIANT *name, [out, retval] VARIANT *value);
00773 };
00774
00780 [
00781 object,
00782 uuid(ED744F70-88EE-49ad-9C56-1ECB5E7C44AC),
00783 dual,
00784 oleautomation,
00785 nonextensible,
00786 helpstring("tcomISharedComponent Interface"),
00787 pointer_default(unique)
00788 ]
00789 interface tcomISharedComponent : IDispatch {
00794 [propget, id(1), helpstring("return name")] HRESULT Name([out, retval] BSTR *pbName);
00795
00804 [id(2), helpstring("return component specific interface")] HRESULT GetInterface([out, retval] IDispatch **ppDisp);
00805 };
00806
00819 [
00820 object,
00821 uuid(94907F27-6649-4a1b-B1F9-7C688070A992),
00822 dual,
00823 oleautomation,
00824 nonextensible,
00825 helpstring("tcomISharedComponents Interface"),
00826 pointer_default(unique)
00827 ]
00828 interface tcomISharedComponents : IDispatch {
00833 [propget, id(1), helpstring("properities componets count")] HRESULT Count([out, retval] VARIANT * count);
00834
00839 [id(0xfffffffc), helpstring("component enumerator")] HRESULT _NewEnum([out, retval] IUnknown** ppEnum);
00840
00846 [id(2), helpstring("return item with given index")] HRESULT Item([in] VARIANT *pvaIndex, [out, retval] VARIANT *pvaItem);
00847 }
00848
00854 [
00855 object,
00856 uuid(08C6ECEB-DB14-43ce-876E-D7C1E49F63F6),
00857 dual,
00858 oleautomation,
00859 nonextensible,
00860 helpstring("tcomIProfile Interface"),
00861 pointer_default(unique)
00862 ]
00863 interface tcomIProfile : IDispatch {
00868 [propget, helpstring("return id")] HRESULT Id([out, retval] BSTR *pbId);
00869
00874 [propget, helpstring("return name")] HRESULT Name([out, retval] BSTR *pbName);
00875
00880 [propget, helpstring("return visible status")] HRESULT Visible([out, retval] VARIANT_BOOL *pbVisible);
00881
00887 [helpstring("Activate this profile")] HRESULT Activate();
00888
00895 [helpstring("Activate this profile")] HRESULT Restore();
00896 };
00897
00898
00910 [
00911 object,
00912 uuid(0EFB0DC7-664E-41b1-BAED-025818825FB4),
00913 dual,
00914 oleautomation,
00915 nonextensible,
00916 helpstring("tcomIProfiles Interface"),
00917 pointer_default(unique)
00918 ]
00919 interface tcomIProfiles : IDispatch {
00924 [propget, id(1), helpstring("profiles count")] HRESULT Count([out, retval] VARIANT * count);
00925
00930 [id(0xfffffffc), helpstring("profile enumerator")] HRESULT _NewEnum([out, retval] IUnknown** ppEnum);
00931
00937 [id(2), helpstring("return item with given index")] HRESULT Item([in] VARIANT *pvaIndex, [out, retval] VARIANT *pvaItem);
00938
00945 [propget, helpstring("return active profile")] HRESULT Active([out, retval] IDispatch **ppProfile);
00946 }
00947
00948
00954 [
00955 object,
00956 uuid(9D3A1F9F-8D6A-485c-B03D-1542F723B29D),
00957 dual,
00958 oleautomation,
00959 nonextensible,
00960 helpstring("tcomIFrame Interface"),
00961 pointer_default(unique)
00962 ]
00963 interface tcomIFrame: IDispatch {
00967 [id(1), helpstring("Activate frame")] HRESULT Activate();
00975 [propget, helpstring("return/set visibility of frame")] HRESULT Visible([out, retval] VARIANT_BOOL *visible);
00976
00982 [propput, helpstring("return/set visibility of login dialog")] HRESULT Visible([in] VARIANT_BOOL visible);
00983
00991 [propget, helpstring("return profiles")] HRESULT Profiles([out, retval] tcomIProfiles **ppProfiles);
00992 }
00993
00994
01008 [
01009 object,
01010 uuid(A1865BA9-C27D-4294-B26B-1887B93D0153),
01011 dual,
01012 oleautomation,
01013 nonextensible,
01014 helpstring("tcomIDomain Interface"),
01015 pointer_default(unique)
01016 ]
01017 interface tcomIDomain: IDispatch {
01024 [propget, id(1), helpstring("return configuration")] HRESULT Configuration([out, retval] IDispatch **pDispConfig);
01025
01034 [propget, id(2), helpstring("return status")] HRESULT Status([out, retval] VARIANT *pStatus);
01035
01045 [id(3), helpstring("Deactivate")] HRESULT Deactivate();
01046
01060 [id(4), helpstring("Activate domain")] HRESULT Activate([in] VARIANT *userName, [in] VARIANT *password, [in] VARIANT *mode, [out,retval] VARIANT *status);
01061
01068 [propget, id(5), helpstring("property components")] HRESULT Components([out, retval] IDispatch **pComponents);
01069
01075 [propget, id(6), helpstring("property components")] HRESULT Application([out, retval] tcomIApplication **pApplication);
01076
01084 [propget, id(7), helpstring("return main frame")] HRESULT MainFrame([out, retval] IDispatch **ppFrame);
01085
01091 [propget, id(8), helpstring("return connected status")] HRESULT Connected([out, retval] VARIANT_BOOL *status);
01092
01098 [id(9), helpstring("connect domain to server")] HRESULT Connect([out, retval] VARIANT_BOOL *status);
01099
01106 [propget, id(10), helpstring("return name")] HRESULT Name([out, retval] BSTR *pName);
01107 };
01108
01122 [
01123 object,
01124 uuid(BA031138-2E75-4b50-AD4A-AE4EE3178149),
01125 dual,
01126 oleautomation,
01127 nonextensible,
01128 helpstring("tcomIDomains Interface"),
01129 pointer_default(unique)
01130 ]
01131 interface tcomIDomains : IDispatch {
01138 [propget, id(1), helpstring("properities domains count")] HRESULT Count([out, retval] VARIANT * count);
01139
01149 [id(2), helpstring("return item with given index")] HRESULT Item([in] VARIANT *index, [out, retval] VARIANT *pvaItem);
01150
01157 [id(3), helpstring("Select domain")] HRESULT SelectDomain([in] long parentWnd, [out, retval] VARIANT *pvaItem);
01158
01165 [id(0xfffffffc), helpstring("domain enumerator")] HRESULT _NewEnum([out, retval] IUnknown** ppEnum);
01166 };
01167
01173 [
01174 object,
01175 uuid(E93E0DF5-337A-4e99-BA37-B0D7F75D0C88),
01176 dual,
01177 oleautomation,
01178 nonextensible,
01179 helpstring("tcomILoginDialog Interface"),
01180 pointer_default(unique)
01181 ]
01182 interface tcomILoginDialog : IDispatch {
01190 [propget, helpstring("return/set visibility of login dialog")] HRESULT Visible([out, retval] VARIANT_BOOL *visible);
01191
01197 [propput, helpstring("return/set visibility of login dialog")] HRESULT Visible([in] VARIANT_BOOL visible);
01198
01205 [propput, helpstring("select domain")] HRESULT ActiveDomain([in] BSTR domainName);
01206 }
01207
01221 [
01222 object,
01223 uuid(3988A18E-60BC-4875-90E4-CD16CFD9BA0D),
01224 dual,
01225 nonextensible,
01226 helpstring("tcomIPackageOle Interface"),
01227 pointer_default(unique)
01228 ]
01229 interface tcomIPackageOle : IDispatch{
01237 [propget, id(1), helpstring("property document")] HRESULT Document([out, retval] IDispatch** pVal);
01238
01244 [propget, id(2), helpstring("property directory")] HRESULT Directory([out, retval] BSTR* pVal);
01245
01259 [propget, id(3), helpstring("property source")] HRESULT Source([out, retval] tcomIViewObject** pVal);
01260
01265 [propget, id(4), helpstring("domain")] HRESULT Domain([out, retval] tcomIDomain **ppDomain);
01266
01267 };
01268
01269
01270
01278 [
01279 object,
01280 uuid(A7003131-C75E-4523-9772-A4F1D44DBE65),
01281 dual,
01282 oleautomation,
01283 nonextensible,
01284 helpstring("tcomIApplication Interface"),
01285 pointer_default(unique)
01286 ]
01287 interface tcomIApplication : IDispatch {
01292 [propget, id(1), helpstring("method GetVersion")] HRESULT Version([out, retval] BSTR* version);
01293
01300 [propget, id(2), helpstring("property domains")] HRESULT Domains([out, retval] IDispatch **pDomains);
01301
01309 [propget, id(3), helpstring("property components")] HRESULT Components([out, retval] IDispatch **ppComponents);
01310
01316 [propget, id(4), helpstring("property configuration")] HRESULT Configuration([out, retval] IDispatch **ppConfiguration);
01317
01318
01324 [propget, id(5), helpstring("property login dialog")] HRESULT LoginDialog([out, retval] IDispatch **ppLoginDialog);
01325
01348 [id(6), helpstring("Message Box")] HRESULT MsgBox([in] tcomIFrame *pParentFrame,
01349 [in] long type, [in] BSTR message, [in] BSTR detail, [out, retval] VARIANT *pvaItem);
01350
01351 };
01352
01361 [
01362 uuid(43FA62AA-6A2A-4837-A7D6-1D71D6BD6066),
01363 helpstring("tcomIDocumentListener dispinterface")
01364 ]
01365 dispinterface tcomIDocumentListener
01366 {
01367 properties:
01368 methods:
01372 [id(110)] HRESULT OnDocumentSendSuccess([in] unsigned int docId);
01373
01377 [id(111)] HRESULT OnDocumentSendCancel([in] unsigned int docId);
01378
01382 [id(112)] HRESULT OnDocumentSendError([in] unsigned int docId,
01383 [in] BSTR errorMessage,
01384 [in] BSTR errorDetail);
01385 };
01386
01387
01396 [
01397 uuid(A8B796CA-6D50-4c7e-9C84-18984CAE5C87),
01398 helpstring("tcomIDomainListener dispinterface")
01399 ]
01400 dispinterface tcomIDomainListener {
01401 properties:
01402 methods:
01406 [id(100)] HRESULT OnDomainCreated([in] IDispatch *pDomain);
01407
01411 [id(101)] HRESULT OnDomainRemoved([in] IDispatch *pDomain);
01412
01416 [id(102)] HRESULT OnDomainStateChanged([in] IDispatch *pDomain);
01417
01421 [id(103)] HRESULT OnDomainConfigurationChanged([in] IDispatch *pDomain);
01422 };
01423
01424
01425 [
01426 uuid(7860A07D-B087-4AF7-ADF5-88403ADA0388),
01427 helpstring("TahitiAutom_Application Class")
01428 ]
01429 coclass Application
01430 {
01431 [default] interface tcomIApplication;
01432 [default,source] dispinterface tcomIDomainListener;
01433 };
01434
01435 };