-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathZtConfigUserStylePreset.cls
92 lines (62 loc) · 3.54 KB
/
ZtConfigUserStylePreset.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
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "ZtConfigUserStylePreset"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' Class ZtConfigUserBackwardLinking.
' It preserves a part of the user configuration informations and methods to read them from ZtConfig.xml.
' It is not part of ZtConfigUser because its informations are read only once.
'
' Zotero Tools.
' This software is under Revised ('New') BSD license.
' Copyright © 2019, Olaf Ahrens. All rights reserved.
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' Private variables.
Private pvtName As String
Private pvtCitationGroupStyle As String
Private pvtPunctuationStyle As String
Private pvtCitationStyle As String
Private pvtResolveCitationStyle As String
Private pvtReferenceStyle As String
Private pvtBackwardLinkingStyle As String
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' Friend/Public procedures and properties.
Friend Sub Initialize(ByVal valConfig As ZtConfig, ByVal valNode As MSXML2.IXMLDOMNode)
pvtCitationGroupStyle = valConfig.ResolveTextElement(valNode.SelectSingleNode("citationGroupStyle"))
pvtPunctuationStyle = valConfig.ResolveTextElement(valNode.SelectSingleNode("punctuationStyle"))
pvtCitationStyle = valConfig.ResolveTextElement(valNode.SelectSingleNode("citationStyle"))
pvtResolveCitationStyle = valConfig.ResolveTextElement(valNode.SelectSingleNode("resolveCitationStyle"))
pvtReferenceStyle = valConfig.ResolveTextElement(valNode.SelectSingleNode("referenceStyle"))
pvtBackwardLinkingStyle = valConfig.ResolveTextElement(valNode.SelectSingleNode("backwardLinkingStyle"))
pvtName = valConfig.ResolveTextElement(valNode.Attributes.getNamedItem("name"))
End Sub
Friend Property Get Name() As String
Name = pvtName
End Property
Friend Property Get CitationGroupStyle() As String
CitationGroupStyle = pvtCitationGroupStyle
End Property
Friend Property Get PunctuationStyle() As String
PunctuationStyle = pvtPunctuationStyle
End Property
Friend Property Get CitationStyle() As String
CitationStyle = pvtCitationStyle
End Property
Friend Property Get ResolveCitationStyle() As String
ResolveCitationStyle = pvtResolveCitationStyle
End Property
Friend Property Get ReferenceStyle() As String
ReferenceStyle = pvtReferenceStyle
End Property
Friend Property Get BackwardLinkingStyle() As String
BackwardLinkingStyle = pvtBackwardLinkingStyle
End Property
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *