1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 uuid(580411ED
-80EC
-4834-BA1F
-2EB07A49C80B
),
13 helpstring("LibreOffice SharePoint Client Support Type Library v.0.1")
17 // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
18 importlib
("stdole2.tlb");
20 // Forward declare all types defined in this typelib
21 interface IOWSNewDocument
;
22 interface IOWSNewDocument2
;
23 interface IOWSNewDocument3
;
27 uuid(7B678CDE
-D71C
-4954-ACC7
-A92A96BF70DB
),
28 helpstring("IOWSNewDocument Interface"),
32 interface IOWSNewDocument
: IDispatch
{
34 HRESULT CreateNewDocument
(
35 [in] BSTR bstrTemplateLocation
,
36 [in] BSTR bstrDefaultSaveLocation
,
37 [out, retval] VARIANT_BOOL* pbResult
);
40 [in] BSTR bstrDocumentLocation
,
41 [in, optional] VARIANT varProgID
,
42 [out, retval] VARIANT_BOOL* pbResult
);
47 uuid(470D72F8
-C6E2
-40D1
-B844
-4FF73DB69EC5
),
48 helpstring("IOWSNewDocument2 Interface"),
52 interface IOWSNewDocument2
: IOWSNewDocument
{
55 [in] BSTR bstrDocumentLocation
,
56 [in, optional] VARIANT varProgID
,
57 [out, retval] VARIANT_BOOL* pbResult
);
59 HRESULT ViewDocument2
(
60 [in] IDispatch
* pdisp
,
61 [in] BSTR bstrDocumentLocation
,
62 [in, optional] VARIANT varProgID
,
63 [out, retval] VARIANT_BOOL* pbResult
);
65 HRESULT EditDocument2
(
66 [in] IDispatch
* pdisp
,
67 [in] BSTR bstrDocumentLocation
,
68 [in, optional] VARIANT varProgID
,
69 [out, retval] VARIANT_BOOL* pbResult
);
71 HRESULT CreateNewDocument2
(
72 [in] IDispatch
* pdisp
,
73 [in] BSTR bstrTemplateLocation
,
74 [in] BSTR bstrDefaultSaveLocation
,
75 [out, retval] VARIANT_BOOL* pbResult
);
77 HRESULT PromptedOnLastOpen
([out, retval] VARIANT_BOOL* pbResult
);
82 uuid(4D144CA3
-2336-4E15
-A7D1
-A4B151D07CC7
),
83 helpstring("IOWSNewDocument3 Interface"),
87 interface IOWSNewDocument3
: IOWSNewDocument2
{
89 HRESULT ViewDocument3
(
90 [in] IDispatch
* pdisp
,
91 [in] BSTR bstrDocumentLocation
,
93 [in, optional] VARIANT varProgID
,
94 [out, retval] VARIANT_BOOL* pbResult
);
96 HRESULT CheckinDocument
(
97 [in] BSTR bstrDocumentLocation
,
99 [in] BSTR CheckinComment
,
100 [in, defaultvalue(FALSE
)] VARIANT_BOOL bKeepCheckout
,
101 [out, retval] VARIANT_BOOL* pbResult
);
103 HRESULT DiscardLocalCheckout
(
104 [in] BSTR bstrDocumentLocationRaw
,
105 [out, retval] VARIANT_BOOL* pbResult
);
115 [in, optional] VARIANT varProgID
);
117 HRESULT CheckoutDocumentPrompt
(
118 [in] BSTR bstrDocumentLocationRaw
,
119 [in] VARIANT_BOOL fEditAfterCheckout
,
120 [in, optional] VARIANT varProgID
,
121 [out, retval] VARIANT_BOOL* pbResult
);
123 HRESULT EditDocument3
(
124 [in] IDispatch
* pdisp
,
125 [in] BSTR bstrDocumentLocation
,
126 [in] VARIANT_BOOL fUseLocalCopy
,
127 [in, optional] VARIANT varProgID
,
128 [out, retval] VARIANT_BOOL* pbResult
);
131 [in] BSTR bstrProviderId
,
132 [in] BSTR bstrBlogUrl
,
133 [in] BSTR bstrBlogName
);
137 uuid(4AD14812
-2807-48B1
-A27F
-BA836D874E45
),
138 helpstring("COMOpenDocuments Class")
140 coclass COMOpenDocuments
{
141 [default] interface IOWSNewDocument
;
142 interface IOWSNewDocument2
;
143 interface IOWSNewDocument3
;
147 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */