-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathZtConfigBasic.cls
99 lines (69 loc) · 3.7 KB
/
ZtConfigBasic.cls
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
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "ZtConfigBasic"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' Class ZtConfigBasic.
' It preserves basic configuration informations and methods to read them from ZtConfig.xml.
' It distributes these informations and work to the other ZtConfigBasic... classes.
'
' Zotero Tools.
' This software is under Revised ('New') BSD license.
' Copyright © 2019, Olaf Ahrens. All rights reserved.
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' Private variables.
Private pvtCharacters As ZtConfigBasicCharacters
Private pvtMacro As ZtConfigBasicMacro
Private pvtPatterns As ZtConfigBasicPatterns
Private pvtRegPieces As ZtConfigBasicRegPieces
Private pvtWord As ZtConfigBasicWord
Private pvtZotero As ZtConfigBasicZotero
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' Constructor.
Private Sub Class_Initialize()
Set pvtMacro = New ZtConfigBasicMacro
Set pvtWord = New ZtConfigBasicWord
Set pvtZotero = New ZtConfigBasicZotero
Set pvtCharacters = New ZtConfigBasicCharacters
Set pvtPatterns = New ZtConfigBasicPatterns
Set pvtRegPieces = New ZtConfigBasicRegPieces
End Sub
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' Friend/Public procedures and properties.
' All members that should be callable by CallByName procedure must be public.
Friend Sub Initialize(ByVal valConfig As ZtConfig, ByVal valXml As MSXML2.DOMDocument60)
pvtMacro.Initialize valConfig, valXml
pvtWord.Initialize valConfig, valXml
pvtZotero.Initialize valConfig, valXml
pvtCharacters.Initialize valConfig, valXml
pvtPatterns.Initialize valConfig, valXml
pvtRegPieces.Initialize valConfig, valXml
End Sub
Public Property Get Characters() As ZtConfigBasicCharacters
Set Characters = pvtCharacters
End Property
Public Property Get Macro() As ZtConfigBasicMacro
Set Macro = pvtMacro
End Property
Public Property Get Patterns() As ZtConfigBasicPatterns
Set Patterns = pvtPatterns
End Property
Public Property Get RegPieces() As ZtConfigBasicRegPieces
Set RegPieces = pvtRegPieces
End Property
Public Property Get Word() As ZtConfigBasicWord
Set Word = pvtWord
End Property
Public Property Get Zotero() As ZtConfigBasicZotero
Set Zotero = pvtZotero
End Property
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *