-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotesembeddedobject.go
More file actions
129 lines (103 loc) · 4.98 KB
/
notesembeddedobject.go
File metadata and controls
129 lines (103 loc) · 4.98 KB
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
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_NOTESEMBEDDEDOBJECT_CLASS.html */
package domigo
import (
ole "github.com/go-ole/go-ole"
)
type NotesEmbeddedObjectEmbedType = Long
const (
NOTESEMBEDDEDOBJECT_EMBED_ATTACHMENT NotesEmbeddedObjectEmbedType = 1454
NOTESEMBEDDEDOBJECT_EMBED_OBJECT NotesEmbeddedObjectEmbedType = 1453
NOTESEMBEDDEDOBJECT_EMBED_OBJECTLINK NotesEmbeddedObjectEmbedType = 1452
)
type NotesEmbeddedObject struct {
NotesStruct
}
func newNotesEmbeddedObject(dispatchPtr *ole.IDispatch) NotesEmbeddedObject {
return NotesEmbeddedObject{newNotesStruct(dispatchPtr)}
}
/* --------------------------------- Properties --------------------------------- */
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_CLASS_PROPERTY.html */
func (e NotesEmbeddedObject) Class() (String, error) {
return getComProperty[String](e, "Class")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_FILECREATED_PROPERTY.html */
func (e NotesEmbeddedObject) FileCreated() (String, error) {
return getComProperty[String](e, "FileCreated")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_FILEENCODING_PROPERTY.html */
func (e NotesEmbeddedObject) FileEncoding() (Integer, error) {
return getComProperty[Integer](e, "FileEncoding")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_FILEMODIFIED_PROPERTY.html */
func (e NotesEmbeddedObject) FileModified() (String, error) {
return getComProperty[String](e, "FileModified")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_FILESIZE_PROPERTY.html */
func (e NotesEmbeddedObject) FileSize() (Long, error) {
return getComProperty[Long](e, "FileSize")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_FITBELOWFIELDS_PROPERTY_EMBEDDEDOBJ.html */
func (e NotesEmbeddedObject) FitBelowFields() (Boolean, error) {
return getComProperty[Boolean](e, "FitBelowFields")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_FITBELOWFIELDS_PROPERTY_EMBEDDEDOBJ.html */
func (e NotesEmbeddedObject) SetFitBelowFields(v Boolean) error {
return putComProperty(e, "FitBelowFields", v)
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_FITTOWINDOW_PROPERTY_EMBEDDEDOBJ.html */
func (e NotesEmbeddedObject) FitToWindow() (Boolean, error) {
return getComProperty[Boolean](e, "FitToWindow")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_FITTOWINDOW_PROPERTY_EMBEDDEDOBJ.html */
func (e NotesEmbeddedObject) SetFitToWindow(v Boolean) error {
return putComProperty(e, "FitToWindow", v)
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_NAME_PROPERTY_OBJECT.html */
func (e NotesEmbeddedObject) Name() (String, error) {
return getComProperty[String](e, "Name")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_OBJECT_PROPERTY.html */
func (e NotesEmbeddedObject) Object() (Variant, error) {
return getComProperty[Variant](e, "Object")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_PARENT_PROPERTY_OBJECT.html */
func (e NotesEmbeddedObject) Parent() (NotesRichTextItem, error) {
return getComObjectProperty(e, newNotesRichTextItem, "Parent")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_RUNREADONLY_PROPERTY_EMBEDDEDOBJ.html */
func (e NotesEmbeddedObject) RunReadOnly() (Boolean, error) {
return getComProperty[Boolean](e, "RunReadOnly")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_RUNREADONLY_PROPERTY_EMBEDDEDOBJ.html */
func (e NotesEmbeddedObject) SetRunReadOnly(v Boolean) error {
return putComProperty(e, "RunReadOnly", v)
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_SOURCE_PROPERTY.html */
func (e NotesEmbeddedObject) Source() (String, error) {
return getComProperty[String](e, "Source")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_TYPE_PROPERTY_OBJECT.html */
func (e NotesEmbeddedObject) Type() (NotesEmbeddedObjectEmbedType, error) {
return getComProperty[NotesEmbeddedObjectEmbedType](e, "Type")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_VERBS_PROPERTY.html */
func (e NotesEmbeddedObject) Verbs() ([]String, error) {
return getComArrayProperty[String](e, "Verbs")
}
/* --------------------------------- Methods ------------------------------------ */
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_ACTIVATE_METHOD.html */
func (e NotesEmbeddedObject) Activate(show Boolean) (*ole.IDispatch, error) {
return e.com().CallObjectMethod("Activate", show)
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_DOVERB_METHOD.html */
func (e NotesEmbeddedObject) DoVerb(verb String) (Variant, error) {
return callComMethod[Variant](e, "DoVerb", verb)
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_EXTRACTFILE_METHOD.html */
func (e NotesEmbeddedObject) ExtractFile(path String) error {
return callComVoidMethod(e, "ExtractFile", path)
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_REMOVE_METHOD_OBJECT.html */
func (e NotesEmbeddedObject) Remove() error {
return callComVoidMethod(e, "Remove")
}