Produced by Araxis Merge on Thu Oct 16 22:30:02 2008 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.2\WebWorks\ePublisher Pro\Formats\WebWorks Help 5.0\Files\wwhelp\wwhimpl\common\scripts | controls.js | Thu Mar 20 16:22:26 2008 UTC |
2 | C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\WebWorks Help 5.0\Files\wwhelp\wwhimpl\common\scripts | controls.js | Mon Oct 13 05:51:54 2008 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 1950 |
Changed | 2 | 4 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | All differences in whitespace within lines are ignored |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | // Copyrig ht (c) 200 0-2003 Qua dralay Cor poration. All right s reserved . | 1 | // Copyrig ht (c) 200 0-2003 Qua dralay Cor poration. All right s reserved . | |||
2 | // | 2 | // | |||
3 | 3 | |||||
4 | function WWHControl Entry_Obje ct(ParamCo ntrolName, | 4 | function WWHControl Entry_Obje ct(ParamCo ntrolName, | |||
5 | bParamE nabled, | 5 | bParamE nabled, | |||
6 | bParamS tatus, | 6 | bParamS tatus, | |||
7 | ParamLa bel, | 7 | ParamLa bel, | |||
8 | ParamIc onEnabled, | 8 | ParamIc onEnabled, | |||
9 | ParamIc onDisabled , | 9 | ParamIc onDisabled , | |||
10 | ParamAn chorMethod , | 10 | ParamAn chorMethod , | |||
11 | ParamFr ameName) | 11 | ParamFr ameName) | |||
12 | { | 12 | { | |||
13 | this.mCo ntrolName = ParamCo ntrolName; | 13 | this.mCo ntrolName = ParamCo ntrolName; | |||
14 | this.mbE nabled = bParamE nabled; | 14 | this.mbE nabled = bParamE nabled; | |||
15 | this.mbS tatus = bParamS tatus; | 15 | this.mbS tatus = bParamS tatus; | |||
16 | this.mLa bel = ParamLa bel; | 16 | this.mLa bel = ParamLa bel; | |||
17 | this.mIc onEnabled = ParamIc onEnabled; | 17 | this.mIc onEnabled = ParamIc onEnabled; | |||
18 | this.mIc onDisabled = ParamIc onDisabled ; | 18 | this.mIc onDisabled = ParamIc onDisabled ; | |||
19 | this.mAn chorMethod = ParamAn chorMethod ; | 19 | this.mAn chorMethod = ParamAn chorMethod ; | |||
20 | this.mFr ameName = ParamFr ameName; | 20 | this.mFr ameName = ParamFr ameName; | |||
21 | 21 | |||||
22 | this.fSe tStatus = WWHContro lEntry_Set Status; | 22 | this.fSe tStatus = WWHContro lEntry_Set Status; | |||
23 | this.fGe tIconURL = WWHContro lEntry_Get IconURL; | 23 | this.fGe tIconURL = WWHContro lEntry_Get IconURL; | |||
24 | this.fGe tHTML = WWHContro lEntry_Get HTML; | 24 | this.fGe tHTML = WWHContro lEntry_Get HTML; | |||
25 | this.fGe tLabel = WWHContro lEntry_Get Label; | 25 | this.fGe tLabel = WWHContro lEntry_Get Label; | |||
26 | this.fUp dateIcon = WWHContro lEntry_Upd ateIcon; | 26 | this.fUp dateIcon = WWHContro lEntry_Upd ateIcon; | |||
27 | } | 27 | } | |||
28 | 28 | |||||
29 | function WWHControl Entry_SetS tatus(bPar amStatus) | 29 | function WWHControl Entry_SetS tatus(bPar amStatus) | |||
30 | { | 30 | { | |||
31 | if (this .mbEnabled ) | 31 | if (this .mbEnabled ) | |||
32 | { | 32 | { | |||
33 | this.m bStatus = bParamStat us; | 33 | this.m bStatus = bParamStat us; | |||
34 | } | 34 | } | |||
35 | else | 35 | else | |||
36 | { | 36 | { | |||
37 | this.m bStatus = false; | 37 | this.m bStatus = false; | |||
38 | } | 38 | } | |||
39 | } | 39 | } | |||
40 | 40 | |||||
41 | function WWHControl Entry_GetI conURL() | 41 | function WWHControl Entry_GetI conURL() | |||
42 | { | 42 | { | |||
43 | var Var IconURL = ""; | 43 | var Var IconURL = ""; | |||
44 | 44 | |||||
45 | 45 | |||||
46 | if (this .mbEnabled ) | 46 | if (this .mbEnabled ) | |||
47 | { | 47 | { | |||
48 | // Cre ate absolu te path to icon | 48 | // Cre ate absolu te path to icon | |||
49 | // | 49 | // | |||
50 | VarIco nURL += WW HFrame.WWH Help.mHelp URLPrefix; | 50 | VarIco nURL += WW HFrame.WWH Help.mHelp URLPrefix; | |||
51 | VarIco nURL += "w whelp/wwhi mpl/common /images/"; | 51 | VarIco nURL += "w whelp/wwhi mpl/common /images/"; | |||
52 | 52 | |||||
53 | // Det ermine whi ch icon to return | 53 | // Det ermine whi ch icon to return | |||
54 | // | 54 | // | |||
55 | if (th is.mbStatu s) | 55 | if (th is.mbStatu s) | |||
56 | { | 56 | { | |||
57 | VarI conURL += this.mIcon Enabled; | 57 | VarI conURL += this.mIcon Enabled; | |||
58 | } | 58 | } | |||
59 | else | 59 | else | |||
60 | { | 60 | { | |||
61 | VarI conURL += this.mIcon Disabled; | 61 | VarI conURL += this.mIcon Disabled; | |||
62 | } | 62 | } | |||
63 | } | 63 | } | |||
64 | 64 | |||||
65 | return V arIconURL; | 65 | return V arIconURL; | |||
66 | } | 66 | } | |||
67 | 67 | |||||
68 | function WWHControl Entry_GetH TML() | 68 | function WWHControl Entry_GetH TML() | |||
69 | { | 69 | { | |||
70 | var Var HTML = ""; | 70 | var Var HTML = ""; | |||
71 | var Var StyleAttri bute; | 71 | var Var StyleAttri bute; | |||
72 | var Var Label; | 72 | var Var Label; | |||
73 | 73 | |||||
74 | 74 | |||||
75 | // Set s tyle attri bute to in sure small image hei ght | 75 | // Set s tyle attri bute to in sure small image hei ght | |||
76 | // | 76 | // | |||
77 | VarStyle Attribute = " style= \"font-siz e: 1px; li ne-height: 1px;\""; | 77 | VarStyle Attribute = " style= \"font-siz e: 1px; li ne-height: 1px;\""; | |||
78 | 78 | |||||
79 | if (this .mbEnabled ) | 79 | if (this .mbEnabled ) | |||
80 | { | 80 | { | |||
81 | // Set label | 81 | // Set label | |||
82 | // | 82 | // | |||
83 | VarLab el = this. mLabel; | 83 | VarLab el = this. mLabel; | |||
84 | if (WW HFrame.WWH Help.mbAcc essible) | 84 | if (WW HFrame.WWH Help.mbAcc essible) | |||
85 | { | 85 | { | |||
86 | if ( ! this.mb Status) | 86 | if ( ! this.mb Status) | |||
87 | { | 87 | { | |||
88 | Va rLabel = W WHStringUt ilities_Fo rmatMessag e(WWHFrame .WWHHelp.m Messages.m Accessibil ityDisable dNavigatio nButton, t his.mLabel ); | 88 | Va rLabel = W WHStringUt ilities_Fo rmatMessag e(WWHFrame .WWHHelp.m Messages.m Accessibil ityDisable dNavigatio nButton, t his.mLabel ); | |||
89 | Va rLabel = W WHStringUt ilities_Es capeHTML(V arLabel); | 89 | Va rLabel = W WHStringUt ilities_Es capeHTML(V arLabel); | |||
90 | } | 90 | } | |||
91 | } | 91 | } | |||
92 | VarLab el = WWHSt ringUtilit ies_Escape HTML(VarLa bel); | 92 | VarLab el = WWHSt ringUtilit ies_Escape HTML(VarLa bel); | |||
93 | 93 | |||||
94 | // Dis play contr ol | 94 | // Dis play contr ol | |||
95 | // | 95 | // | |||
96 | VarHTM L += " <t d width=\" 23\">"; | 96 | VarHTM L += " <t d width=\" 23\">"; | |||
97 | VarHTM L += "<div " + VarSty leAttribut e + ">"; | 97 | VarHTM L += "<div " + VarSty leAttribut e + ">"; | |||
98 | VarHTM L += "<a n ame=\"" + this.mCont rolName + "\" href=\ "javascrip t:WWHFrame .WWHContro ls." + thi s.mAnchorM ethod + "( );\" title =\"" + Var Label + "\ ">"; | 98 | VarHTM L += "<a n ame=\"" + this.mCont rolName + "\" href=\ "javascrip t:WWHFrame .WWHContro ls." + thi s.mAnchorM ethod + "( );\" title =\"" + Var Label + "\ ">"; | |||
99 | VarHTM L += "<img name=\"" + this.mCo ntrolName + "\" alt= \"" + VarL abel + "\" border=\" 0\" src=\" " + this.f GetIconURL () + "\" w idth=\"23\ " height=\ "21\">"; | 99 | VarHTM L += "<img name=\"" + this.mCo ntrolName + "\" alt= \"" + VarL abel + "\" border=\" 0\" src=\" " + this.f GetIconURL () + "\" w idth=\"23\ " height=\ "21\">"; | |||
100 | VarHTM L += "</a> "; | 100 | VarHTM L += "</a> "; | |||
101 | VarHTM L +=" </di v>"; | 101 | VarHTM L +=" </di v>"; | |||
102 | VarHTM L += "</td >\n"; | 102 | VarHTM L += "</td >\n"; | |||
103 | } | 103 | } | |||
104 | 104 | |||||
105 | return V arHTML; | 105 | return V arHTML; | |||
106 | } | 106 | } | |||
107 | 107 | |||||
108 | function WWHControl Entry_GetL abel() | 108 | function WWHControl Entry_GetL abel() | |||
109 | { | 109 | { | |||
110 | var Var Label = "" ; | 110 | var Var Label = "" ; | |||
111 | 111 | |||||
112 | 112 | |||||
113 | if (this .mbEnabled ) | 113 | if (this .mbEnabled ) | |||
114 | { | 114 | { | |||
115 | // Set label | 115 | // Set label | |||
116 | // | 116 | // | |||
117 | VarLab el = this. mLabel; | 117 | VarLab el = this. mLabel; | |||
118 | } | 118 | } | |||
119 | 119 | |||||
120 | return V arLabel; | 120 | return V arLabel; | |||
121 | } | 121 | } | |||
122 | 122 | |||||
123 | function WWHControl Entry_Upda teIcon() | 123 | function WWHControl Entry_Upda teIcon() | |||
124 | { | 124 | { | |||
125 | var Var ControlDoc ument; | 125 | var Var ControlDoc ument; | |||
126 | 126 | |||||
127 | 127 | |||||
128 | if (this .mbEnabled ) | 128 | if (this .mbEnabled ) | |||
129 | { | 129 | { | |||
130 | // Acc ess contro l document | 130 | // Acc ess contro l document | |||
131 | // | 131 | // | |||
132 | VarCon trolDocume nt = eval( WWHFrame.W WHHelp.fGe tFrameRefe rence(this .mFrameNam e) + ".doc ument"); | 132 | VarCon trolDocume nt = eval( WWHFrame.W WHHelp.fGe tFrameRefe rence(this .mFrameNam e) + ".doc ument"); | |||
133 | 133 | |||||
134 | // Upd ate icon | 134 | // Upd ate icon | |||
135 | // | 135 | // | |||
136 | VarCon trolDocume nt.images[ this.mCont rolName].s rc = this. fGetIconUR L(); | 136 | VarCon trolDocume nt.images[ this.mCont rolName].s rc = this. fGetIconUR L(); | |||
137 | } | 137 | } | |||
138 | } | 138 | } | |||
139 | 139 | |||||
140 | function WWHControl Entries_Ob ject() | 140 | function WWHControl Entries_Ob ject() | |||
141 | { | 141 | { | |||
142 | } | 142 | } | |||
143 | 143 | |||||
144 | function WWHControl s_Object() | 144 | function WWHControl s_Object() | |||
145 | { | 145 | { | |||
146 | this.mCo ntrols = new WW HControlEn tries_Obje ct(); | 146 | this.mCo ntrols = new WW HControlEn tries_Obje ct(); | |||
147 | this.mSy ncPrevNext = new Ar ray(null, null, null ); | 147 | this.mSy ncPrevNext = new Ar ray(null, null, null ); | |||
148 | this.mFo cusedFrame = ""; | 148 | this.mFo cusedFrame = ""; | |||
149 | this.mFo cusedAncho r = ""; | 149 | this.mFo cusedAncho r = ""; | |||
150 | 150 | |||||
151 | this.fRe loadContro ls = WWHContr ols_Reload Controls; | 151 | this.fRe loadContro ls = WWHContr ols_Reload Controls; | |||
152 | this.fCo ntrolsLoad ed = WWHContr ols_Contro lsLoaded; | 152 | this.fCo ntrolsLoad ed = WWHContr ols_Contro lsLoaded; | |||
153 | this.fAd dControl = WWHContr ols_AddCon trol; | 153 | this.fAd dControl = WWHContr ols_AddCon trol; | |||
154 | this.fGe tControl = WWHContr ols_GetCon trol; | 154 | this.fGe tControl = WWHContr ols_GetCon trol; | |||
155 | this.fIn itialize = WWHContr ols_Initia lize; | 155 | this.fIn itialize = WWHContr ols_Initia lize; | |||
156 | this.fSa nsNavigati on = WWHContr ols_SansNa vigation; | 156 | this.fSa nsNavigati on = WWHContr ols_SansNa vigation; | |||
157 | this.fCa nSyncTOC = WWHContr ols_CanSyn cTOC; | 157 | this.fCa nSyncTOC = WWHContr ols_CanSyn cTOC; | |||
158 | this.fTo pSpacerHTM L = WWHContr ols_TopSpa cerHTML; | 158 | this.fTo pSpacerHTM L = WWHContr ols_TopSpa cerHTML; | |||
159 | this.fLe ftHTML = WWHContr ols_LeftHT ML; | 159 | this.fLe ftHTML = WWHContr ols_LeftHT ML; | |||
160 | this.fRi ghtHTML = WWHContr ols_RightH TML; | 160 | this.fRi ghtHTML = WWHContr ols_RightH TML; | |||
161 | this.fLe ftFrameTit le = WWHContr ols_LeftFr ameTitle; | 161 | this.fLe ftFrameTit le = WWHContr ols_LeftFr ameTitle; | |||
162 | this.fRi ghtFrameTi tle = WWHContr ols_RightF rameTitle; | 162 | this.fRi ghtFrameTi tle = WWHContr ols_RightF rameTitle; | |||
163 | this.fUp dateHREF = WWHContr ols_Update HREF; | 163 | this.fUp dateHREF = WWHContr ols_Update HREF; | |||
164 | this.fRe cordFocus = WWHContr ols_Record Focus; | 164 | this.fRe cordFocus = WWHContr ols_Record Focus; | |||
165 | this.fRe storeFocus = WWHContr ols_Restor eFocus; | 165 | this.fRe storeFocus = WWHContr ols_Restor eFocus; | |||
166 | this.fSw itchToNavi gation = WWHContr ols_Switch ToNavigati on; | 166 | this.fSw itchToNavi gation = WWHContr ols_Switch ToNavigati on; | |||
167 | this.fHa sPDFLink = WWHContr ols_HasPDF Link; | 167 | this.fHa sPDFLink = WWHContr ols_HasPDF Link; | |||
168 | this.fCl ickedShowN avigation = WWHContr ols_Clicke dShowNavig ation; | 168 | this.fCl ickedShowN avigation = WWHContr ols_Clicke dShowNavig ation; | |||
169 | this.fCl ickedSyncT OC = WWHContr ols_Clicke dSyncTOC; | 169 | this.fCl ickedSyncT OC = WWHContr ols_Clicke dSyncTOC; | |||
170 | this.fCl ickedPrevi ous = WWHContr ols_Clicke dPrevious; | 170 | this.fCl ickedPrevi ous = WWHContr ols_Clicke dPrevious; | |||
171 | this.fCl ickedNext = WWHContr ols_Clicke dNext; | 171 | this.fCl ickedNext = WWHContr ols_Clicke dNext; | |||
172 | this.fCl ickedPDF = WWHContr ols_Clicke dPDF; | 172 | this.fCl ickedPDF = WWHContr ols_Clicke dPDF; | |||
173 | this.fCl ickedRelat edTopics = WWHContr ols_Clicke dRelatedTo pics; | 173 | this.fCl ickedRelat edTopics = WWHContr ols_Clicke dRelatedTo pics; | |||
174 | this.fCl ickedEmail = WWHContr ols_Clicke dEmail; | 174 | this.fCl ickedEmail = WWHContr ols_Clicke dEmail; | |||
175 | this.fCl ickedPrint = WWHContr ols_Clicke dPrint; | 175 | this.fCl ickedPrint = WWHContr ols_Clicke dPrint; | |||
176 | this.fCl ickedBookm ark = WWHContr ols_Clicke dBookmark; | 176 | this.fCl ickedBookm ark = WWHContr ols_Clicke dBookmark; | |||
177 | this.fSh owNavigati on = WWHContr ols_ShowNa vigation; | 177 | this.fSh owNavigati on = WWHContr ols_ShowNa vigation; | |||
178 | this.fSy ncTOC = WWHContr ols_SyncTO C; | 178 | this.fSy ncTOC = WWHContr ols_SyncTO C; | |||
179 | this.fPr evious = WWHContr ols_Previo us; | 179 | this.fPr evious = WWHContr ols_Previo us; | |||
180 | this.fNe xt = WWHContr ols_Next; | 180 | this.fNe xt = WWHContr ols_Next; | |||
181 | this.fPD F = WWHContr ols_PDF; | 181 | this.fPD F = WWHContr ols_PDF; | |||
182 | this.fRe latedTopic s = WWHContr ols_Relate dTopics; | 182 | this.fRe latedTopic s = WWHContr ols_Relate dTopics; | |||
183 | this.fEm ail = WWHContr ols_Email; | 183 | this.fEm ail = WWHContr ols_Email; | |||
184 | this.fPr int = WWHContr ols_Print; | 184 | this.fPr int = WWHContr ols_Print; | |||
185 | this.fBo okmark = WWHContr ols_Bookma rk; | 185 | this.fBo okmark = WWHContr ols_Bookma rk; | |||
186 | this.fBo okmarkData = WWHContr ols_Bookma rkData; | 186 | this.fBo okmarkData = WWHContr ols_Bookma rkData; | |||
187 | this.fBo okmarkLink = WWHContr ols_Bookma rkLink; | 187 | this.fBo okmarkLink = WWHContr ols_Bookma rkLink; | |||
188 | this.fPr ocessAcces sKey = WWHContr ols_Proces sAccessKey ; | 188 | this.fPr ocessAcces sKey = WWHContr ols_Proces sAccessKey ; | |||
189 | } | 189 | } | |||
190 | 190 | |||||
191 | function WWHControl s_ReloadCo ntrols() | 191 | function WWHControl s_ReloadCo ntrols() | |||
192 | { | 192 | { | |||
193 | // Load the left f rame it it will casc ade and lo ad the oth er frames | 193 | // Load the left f rame it it will casc ade and lo ad the oth er frames | |||
194 | // | 194 | // | |||
195 | WWHFrame .WWHHelp.f ReplaceLoc ation("WWH ControlsLe ftFrame", WWHFrame.W WHHelp.mHe lpURLPrefi x + "wwhel p/wwhimpl/ common/htm l/controll .htm"); | 195 | WWHFrame .WWHHelp.f ReplaceLoc ation("WWH ControlsLe ftFrame", WWHFrame.W WHHelp.mHe lpURLPrefi x + "wwhel p/wwhimpl/ common/htm l/controll .htm"); | |||
196 | } | 196 | } | |||
197 | 197 | |||||
198 | function WWHControl s_Controls Loaded(Par amDescript ion) | 198 | function WWHControl s_Controls Loaded(Par amDescript ion) | |||
199 | { | 199 | { | |||
200 | if (Para mDescripti on == "lef t") | 200 | if (Para mDescripti on == "lef t") | |||
201 | { | 201 | { | |||
202 | WWHFra me.WWHHelp .fReplaceL ocation("W WHControls RightFrame ", WWHFram e.WWHHelp. mHelpURLPr efix + "ww help/wwhim pl/common/ html/contr olr.htm"); | 202 | WWHFra me.WWHHelp .fReplaceL ocation("W WHControls RightFrame ", WWHFram e.WWHHelp. mHelpURLPr efix + "ww help/wwhim pl/common/ html/contr olr.htm"); | |||
203 | } | 203 | } | |||
204 | else if (ParamDesc ription == "right") | 204 | else if (ParamDesc ription == "right") | |||
205 | { | 205 | { | |||
206 | WWHFra me.WWHHelp .fReplaceL ocation("W WHTitleFra me", WWHFr ame.WWHHel p.mHelpURL Prefix + " wwhelp/wwh impl/commo n/html/tit le.htm"); | 206 | WWHFra me.WWHHelp .fReplaceL ocation("W WHTitleFra me", WWHFr ame.WWHHel p.mHelpURL Prefix + " wwhelp/wwh impl/commo n/html/tit le.htm"); | |||
207 | } | 207 | } | |||
208 | else // (ParamDes cription = = "title") | 208 | else // (ParamDes cription = = "title") | |||
209 | { | 209 | { | |||
210 | if ( ! WWHFrame. WWHHelp.mb Initialize d) | 210 | if ( ! WWHFrame. WWHHelp.mb Initialize d) | |||
211 | { | 211 | { | |||
212 | // A ll control frames ar e now load ed | 212 | // A ll control frames ar e now load ed | |||
213 | // | 213 | // | |||
214 | WWHF rame.WWHHe lp.fInitSt age(5); | 214 | WWHF rame.WWHHe lp.fInitSt age(5); | |||
215 | } | 215 | } | |||
216 | else | 216 | else | |||
217 | { | 217 | { | |||
218 | // R estore pre vious focu s | 218 | // R estore pre vious focu s | |||
219 | // | 219 | // | |||
220 | this .fRestoreF ocus(); | 220 | this .fRestoreF ocus(); | |||
221 | } | 221 | } | |||
222 | } | 222 | } | |||
223 | } | 223 | } | |||
224 | 224 | |||||
225 | function WWHControl s_AddContr ol(ParamCo ntrolName, | 225 | function WWHControl s_AddContr ol(ParamCo ntrolName, | |||
226 | bParamE nabled, | 226 | bParamE nabled, | |||
227 | bParamS tatus, | 227 | bParamS tatus, | |||
228 | ParamLa bel, | 228 | ParamLa bel, | |||
229 | ParamIc onEnabled, | 229 | ParamIc onEnabled, | |||
230 | ParamIc onDisabled , | 230 | ParamIc onDisabled , | |||
231 | ParamAn chorMethod , | 231 | ParamAn chorMethod , | |||
232 | ParamFr ameName) | 232 | ParamFr ameName) | |||
233 | { | 233 | { | |||
234 | var Var ControlEnt ry; | 234 | var Var ControlEnt ry; | |||
235 | 235 | |||||
236 | 236 | |||||
237 | VarContr olEntry = new WWHCon trolEntry_ Object(Par amControlN ame, | 237 | VarContr olEntry = new WWHCon trolEntry_ Object(Par amControlN ame, | |||
238 | bPa ramEnabled , | 238 | bPa ramEnabled , | |||
239 | bPa ramStatus, | 239 | bPa ramStatus, | |||
240 | Par amLabel, | 240 | Par amLabel, | |||
241 | Par amIconEnab led, | 241 | Par amIconEnab led, | |||
242 | Par amIconDisa bled, | 242 | Par amIconDisa bled, | |||
243 | Par amAnchorMe thod, | 243 | Par amAnchorMe thod, | |||
244 | Par amFrameNam e); | 244 | Par amFrameNam e); | |||
245 | 245 | |||||
246 | this.mCo ntrols[Par amControlN ame + "~"] = VarCont rolEntry; | 246 | this.mCo ntrols[Par amControlN ame + "~"] = VarCont rolEntry; | |||
247 | } | 247 | } | |||
248 | 248 | |||||
249 | function WWHControl s_GetContr ol(ParamCo ntrolName) | 249 | function WWHControl s_GetContr ol(ParamCo ntrolName) | |||
250 | { | 250 | { | |||
251 | var Var ControlEnt ry; | 251 | var Var ControlEnt ry; | |||
252 | 252 | |||||
253 | 253 | |||||
254 | VarContr olEntry = this.mCont rols[Param ControlNam e + "~"]; | 254 | VarContr olEntry = this.mCont rols[Param ControlNam e + "~"]; | |||
255 | if (type of(VarCont rolEntry) == "undefi ned") | 255 | if (type of(VarCont rolEntry) == "undefi ned") | |||
256 | { | 256 | { | |||
257 | VarCon trolEntry = null; | 257 | VarCon trolEntry = null; | |||
258 | } | 258 | } | |||
259 | 259 | |||||
260 | return V arControlE ntry; | 260 | return V arControlE ntry; | |||
261 | } | 261 | } | |||
262 | 262 | |||||
263 | function WWHControl s_Initiali ze() | 263 | function WWHControl s_Initiali ze() | |||
264 | { | 264 | { | |||
265 | var Var Settings; | 265 | var Var Settings; | |||
266 | var Var DocumentFr ame; | 266 | var Var DocumentFr ame; | |||
267 | 267 | |||||
268 | 268 | |||||
269 | // Acces s settings | 269 | // Acces s settings | |||
270 | // | 270 | // | |||
271 | VarSetti ngs = WWHF rame.WWHHe lp.mSettin gs; | 271 | VarSetti ngs = WWHF rame.WWHHe lp.mSettin gs; | |||
272 | 272 | |||||
273 | // Confi rm Sync TO C can be e nabled | 273 | // Confi rm Sync TO C can be e nabled | |||
274 | // | 274 | // | |||
275 | if (this .fSansNavi gation()) | 275 | if (this .fSansNavi gation()) | |||
276 | { | 276 | { | |||
277 | VarSet tings.mbSy ncContents Enabled = false; | 277 | VarSet tings.mbSy ncContents Enabled = false; | |||
278 | } | 278 | } | |||
279 | 279 | |||||
280 | // Confi rm E-mail can be ena bled | 280 | // Confi rm E-mail can be ena bled | |||
281 | // | 281 | // | |||
282 | if (VarS ettings.mb EmailEnabl ed) | 282 | if (VarS ettings.mb EmailEnabl ed) | |||
283 | { | 283 | { | |||
284 | VarSet tings.mbEm ailEnabled = ((typeo f(VarSetti ngs.mEmail Address) = = "string" ) && | 284 | VarSet tings.mbEm ailEnabled = ((typeo f(VarSetti ngs.mEmail Address) = = "string" ) && | |||
285 | (VarSe ttings.mEm ailAddress .length > 0)); | 285 | (VarSe ttings.mEm ailAddress .length > 0)); | |||
286 | } | 286 | } | |||
287 | 287 | |||||
288 | // Confi rm Print c an be enab led | 288 | // Confi rm Print c an be enab led | |||
289 | // | 289 | // | |||
290 | if (VarS ettings.mb PrintEnabl ed) | 290 | if (VarS ettings.mb PrintEnabl ed) | |||
291 | { | 291 | { | |||
292 | VarDoc umentFrame = eval(WW HFrame.WWH Help.fGetF rameRefere nce("WWHTi tleFrame") ); | 292 | VarDoc umentFrame = eval(WW HFrame.WWH Help.fGetF rameRefere nce("WWHTi tleFrame") ); | |||
293 | VarSet tings.mbPr intEnabled = ((typeo f(VarDocum entFrame.f ocus) != " undefined" ) && | 293 | VarSet tings.mbPr intEnabled = ((typeo f(VarDocum entFrame.f ocus) != " undefined" ) && | |||
294 | (typeo f(VarDocum entFrame.p rint) != " undefined" )) | 294 | (typeo f(VarDocum entFrame.p rint) != " undefined" )) | |||
295 | } | 295 | } | |||
296 | 296 | |||||
297 | // Creat e control entries | 297 | // Creat e control entries | |||
298 | // | 298 | // | |||
299 | this.fAd dControl(" WWHFrameSe tIcon", th is.fSansNa vigation() , this.fSa nsNavigati on(), | 299 | this.fAd dControl(" WWHFrameSe tIcon", th is.fSansNa vigation() , this.fSa nsNavigati on(), | |||
300 | W WHFrame.WW HHelp.mMes sages.mSho wNavigatio nIconLabel , | 300 | W WHFrame.WW HHelp.mMes sages.mSho wNavigatio nIconLabel , | |||
301 | " shownav.gi f", "shown av.gif", " fClickedSh owNavigati on", "WWHC ontrolsLef tFrame"); | 301 | " shownav.gi f", "shown av.gif", " fClickedSh owNavigati on", "WWHC ontrolsLef tFrame"); | |||
302 | this.fAd dControl(" WWHSyncTOC Icon", Var Settings.m bSyncConte ntsEnabled , false, | 302 | this.fAd dControl(" WWHSyncTOC Icon", Var Settings.m bSyncConte ntsEnabled , false, | |||
303 | W WHFrame.WW HHelp.mMes sages.mSyn cIconLabel , | 303 | W WHFrame.WW HHelp.mMes sages.mSyn cIconLabel , | |||
304 | " sync.gif", "syncx.gi f", "fClic kedSyncTOC ", "WWHCon trolsLeftF rame"); | 304 | " sync.gif", "syncx.gi f", "fClic kedSyncTOC ", "WWHCon trolsLeftF rame"); | |||
305 | this.fAd dControl(" WWHPrevIco n", VarSet tings.mbPr evEnabled, false, | 305 | this.fAd dControl(" WWHPrevIco n", VarSet tings.mbPr evEnabled, false, | |||
306 | W WHFrame.WW HHelp.mMes sages.mPre vIconLabel , | 306 | W WHFrame.WW HHelp.mMes sages.mPre vIconLabel , | |||
307 | " prev.gif", "prevx.gi f", "fClic kedPreviou s", "WWHCo ntrolsLeft Frame"); | 307 | " prev.gif", "prevx.gi f", "fClic kedPreviou s", "WWHCo ntrolsLeft Frame"); | |||
308 | this.fAd dControl(" WWHNextIco n", VarSet tings.mbNe xtEnabled, false, | 308 | this.fAd dControl(" WWHNextIco n", VarSet tings.mbNe xtEnabled, false, | |||
309 | W WHFrame.WW HHelp.mMes sages.mNex tIconLabel , | 309 | W WHFrame.WW HHelp.mMes sages.mNex tIconLabel , | |||
310 | " next.gif", "nextx.gi f", "fClic kedNext", "WWHContro lsLeftFram e"); | 310 | " next.gif", "nextx.gi f", "fClic kedNext", "WWHContro lsLeftFram e"); | |||
311 | this.fAd dControl(" WWHPDFIcon ", VarSett ings.mbPDF Enabled, f alse, | 311 | this.fAd dControl(" WWHPDFIcon ", VarSett ings.mbPDF Enabled, f alse, | |||
312 | W WHFrame.WW HHelp.mMes sages.mPDF IconLabel, | 312 | W WHFrame.WW HHelp.mMes sages.mPDF IconLabel, | |||
313 | " pdf.gif", "pdfx.gif" , "fClicke dPDF", "WW HControlsR ightFrame" ); | 313 | " pdf.gif", "pdfx.gif" , "fClicke dPDF", "WW HControlsR ightFrame" ); | |||
314 | this.fAd dControl(" WWHRelated TopicsIcon ", VarSett ings.mbRel atedTopics Enabled, f alse, | 314 | this.fAd dControl(" WWHRelated TopicsIcon ", VarSett ings.mbRel atedTopics Enabled, f alse, | |||
315 | W WHFrame.WW HHelp.mMes sages.mRel atedTopics IconLabel, | 315 | W WHFrame.WW HHelp.mMes sages.mRel atedTopics IconLabel, | |||
316 | " related.gi f", "relat edx.gif", "fClickedR elatedTopi cs", "WWHC ontrolsRig htFrame"); | 316 | " related.gi f", "relat edx.gif", "fClickedR elatedTopi cs", "WWHC ontrolsRig htFrame"); | |||
317 | this.fAd dControl(" WWHEmailIc on", VarSe ttings.mbE mailEnable d, false, | 317 | this.fAd dControl(" WWHEmailIc on", VarSe ttings.mbE mailEnable d, false, | |||
318 | W WHFrame.WW HHelp.mMes sages.mEma ilIconLabe l, | 318 | W WHFrame.WW HHelp.mMes sages.mEma ilIconLabe l, | |||
319 | " email.gif" , "emailx. gif", "fCl ickedEmail ", "WWHCon trolsRight Frame"); | 319 | " email.gif" , "emailx. gif", "fCl ickedEmail ", "WWHCon trolsRight Frame"); | |||
320 | this.fAd dControl(" WWHPrintIc on", VarSe ttings.mbP rintEnable d, false, | 320 | this.fAd dControl(" WWHPrintIc on", VarSe ttings.mbP rintEnable d, false, | |||
321 | W WHFrame.WW HHelp.mMes sages.mPri ntIconLabe l, | 321 | W WHFrame.WW HHelp.mMes sages.mPri ntIconLabe l, | |||
322 | " print.gif" , "printx. gif", "fCl ickedPrint ", "WWHCon trolsRight Frame"); | 322 | " print.gif" , "printx. gif", "fCl ickedPrint ", "WWHCon trolsRight Frame"); | |||
323 | this.fAd dControl(" WWHBookmar kIcon", Va rSettings. mbBookmark Enabled, f alse, | 323 | this.fAd dControl(" WWHBookmar kIcon", Va rSettings. mbBookmark Enabled, f alse, | |||
324 | W WHFrame.WW HHelp.mMes sages.mBoo kmarkIconL abel, | 324 | W WHFrame.WW HHelp.mMes sages.mBoo kmarkIconL abel, | |||
325 | " bkmark.gif ", "bkmark x.gif", "f ClickedBoo kmark", "W WHControls RightFrame "); | 325 | " bkmark.gif ", "bkmark x.gif", "f ClickedBoo kmark", "W WHControls RightFrame "); | |||
326 | 326 | |||||
327 | // Load control fr ames | 327 | // Load control fr ames | |||
328 | // | 328 | // | |||
329 | this.fRe loadContro ls(); | 329 | this.fRe loadContro ls(); | |||
330 | } | 330 | } | |||
331 | 331 | |||||
332 | function WWHControl s_SansNavi gation() | 332 | function WWHControl s_SansNavi gation() | |||
333 | { | 333 | { | |||
334 | var bSa nsNavigati on = false ; | 334 | var bSa nsNavigati on = false ; | |||
335 | 335 | |||||
336 | 336 | |||||
337 | if (WWHF rame.WWHHe lp.fSingle Topic()) | 337 | if (WWHF rame.WWHHe lp.fSingle Topic()) | |||
338 | { | 338 | { | |||
339 | bSansN avigation = true; | 339 | bSansN avigation = true; | |||
340 | } | 340 | } | |||
341 | 341 | |||||
342 | return b SansNaviga tion; | 342 | return b SansNaviga tion; | |||
343 | } | 343 | } | |||
344 | 344 | |||||
345 | function WWHControl s_CanSyncT OC() | 345 | function WWHControl s_CanSyncT OC() | |||
346 | { | 346 | { | |||
347 | var bVa rCanSyncTO C = false; | 347 | var bVa rCanSyncTO C = false; | |||
348 | 348 | |||||
349 | 349 | |||||
350 | if (this .mSyncPrev Next[0] != null) | 350 | if (this .mSyncPrev Next[0] != null) | |||
351 | { | 351 | { | |||
352 | bVarCa nSyncTOC = true; | 352 | bVarCa nSyncTOC = true; | |||
353 | } | 353 | } | |||
354 | 354 | |||||
355 | return b VarCanSync TOC; | 355 | return b VarCanSync TOC; | |||
356 | } | 356 | } | |||
357 | 357 | |||||
358 | function WWHControl s_TopSpace rHTML() | 358 | function WWHControl s_TopSpace rHTML() | |||
359 | { | 359 | { | |||
360 | var Var HTML = ""; | 360 | var Var HTML = ""; | |||
361 | var Var StyleAttri bute; | 361 | var Var StyleAttri bute; | |||
362 | 362 | |||||
363 | // Set s tyle attri bute to in sure small image hei ght | 363 | // Set s tyle attri bute to in sure small image hei ght | |||
364 | // | 364 | // | |||
365 | VarStyle Attribute = " style= \"font-siz e: 1px; li ne-height: 1px;\""; | 365 | VarStyle Attribute = " style= \"font-siz e: 1px; li ne-height: 1px;\""; | |||
366 | 366 | |||||
367 | VarHTML += "<table border=\" 0\" cellsp acing=\"0\ " cellpadd ing=\"0\"> \n"; | 367 | VarHTML += "<table border=\" 0\" cellsp acing=\"0\ " cellpadd ing=\"0\"> \n"; | |||
368 | VarHTML += " <tr>\ n"; | 368 | VarHTML += " <tr>\ n"; | |||
369 | VarHTML += " <td> <div" + Va rStyleAttr ibute + "> <img src=\ "" + WWHFr ame.WWHHel p.mHelpURL Prefix + " wwhelp/wwh impl/commo n/images/s pc_tb_t.gi f" + "\" a lt=\"\"></ div></td>\ n"; | 369 | VarHTML += " <td> <div" + Va rStyleAttr ibute + "> <img src=\ "" + WWHFr ame.WWHHel p.mHelpURL Prefix + " wwhelp/wwh impl/commo n/images/s pc_tb_t.gi f" + "\" a lt=\"\"></ div></td>\ n"; | |||
370 | VarHTML += " </tr> \n"; | 370 | VarHTML += " </tr> \n"; | |||
371 | VarHTML += "</tabl e>\n"; | 371 | VarHTML += "</tabl e>\n"; | |||
372 | 372 | |||||
373 | return V arHTML; | 373 | return V arHTML; | |||
374 | } | 374 | } | |||
375 | 375 | |||||
376 | function WWHControl s_LeftHTML () | 376 | function WWHControl s_LeftHTML () | |||
377 | { | 377 | { | |||
378 | var Var HTML = ""; | 378 | var Var HTML = ""; | |||
379 | var Var EnabledCon trols; | 379 | var Var EnabledCon trols; | |||
380 | var Var Control; | 380 | var Var Control; | |||
381 | var Var MaxIndex; | 381 | var Var MaxIndex; | |||
382 | var Var Index; | 382 | var Var Index; | |||
383 | 383 | |||||
384 | // Confi rm user di d not relo ad the fra meset | 384 | // Confi rm user di d not relo ad the fra meset | |||
385 | // | 385 | // | |||
386 | if (this .fGetContr ol("WWHFra meSetIcon" ) != null) | 386 | if (this .fGetContr ol("WWHFra meSetIcon" ) != null) | |||
387 | { | 387 | { | |||
388 | // Det ermine act ive contro ls | 388 | // Det ermine act ive contro ls | |||
389 | // | 389 | // | |||
390 | VarEna bledContro ls = new A rray(); | 390 | VarEna bledContro ls = new A rray(); | |||
391 | VarCon trol = thi s.fGetCont rol("WWHFr ameSetIcon "); | 391 | VarCon trol = thi s.fGetCont rol("WWHFr ameSetIcon "); | |||
392 | if (Va rControl.m bEnabled) | 392 | if (Va rControl.m bEnabled) | |||
393 | { | 393 | { | |||
394 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | 394 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | |||
395 | } | 395 | } | |||
396 | VarCon trol = thi s.fGetCont rol("WWHSy ncTOCIcon" ); | 396 | VarCon trol = thi s.fGetCont rol("WWHSy ncTOCIcon" ); | |||
397 | if (Va rControl.m bEnabled) | 397 | if (Va rControl.m bEnabled) | |||
398 | { | 398 | { | |||
399 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | 399 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | |||
400 | } | 400 | } | |||
401 | VarCon trol = thi s.fGetCont rol("WWHPr evIcon"); | 401 | VarCon trol = thi s.fGetCont rol("WWHPr evIcon"); | |||
402 | if (Va rControl.m bEnabled) | 402 | if (Va rControl.m bEnabled) | |||
403 | { | 403 | { | |||
404 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | 404 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | |||
405 | } | 405 | } | |||
406 | VarCon trol = thi s.fGetCont rol("WWHNe xtIcon"); | 406 | VarCon trol = thi s.fGetCont rol("WWHNe xtIcon"); | |||
407 | if (Va rControl.m bEnabled) | 407 | if (Va rControl.m bEnabled) | |||
408 | { | 408 | { | |||
409 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | 409 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | |||
410 | } | 410 | } | |||
411 | 411 | |||||
412 | // Emi t HTML for controls | 412 | // Emi t HTML for controls | |||
413 | // | 413 | // | |||
414 | VarHTM L += this. fTopSpacer HTML(); | 414 | VarHTM L += this. fTopSpacer HTML(); | |||
415 | if (Va rEnabledCo ntrols.len gth > 0) | 415 | if (Va rEnabledCo ntrols.len gth > 0) | |||
416 | { | 416 | { | |||
417 | VarH TML += "<t able borde r=\"0\" ce llspacing= \"0\" cell padding=\" 0\">\n"; | 417 | VarH TML += "<t able borde r=\"0\" ce llspacing= \"0\" cell padding=\" 0\">\n"; | |||
418 | VarH TML += " < tr>\n"; | 418 | VarH TML += " < tr>\n"; | |||
419 | 419 | |||||
420 | VarH TML += " <td><div>< img src=\" " + WWHFra me.WWHHelp .mHelpURLP refix + "w whelp/wwhi mpl/common /images/sp c_tb_l.gif " + "\" al t=\"\"></d iv></td>\n "; | 420 | VarH TML += " <td><div>< img src=\" " + WWHFra me.WWHHelp .mHelpURLP refix + "w whelp/wwhi mpl/common /images/sp c_tb_l.gif " + "\" al t=\"\"></d iv></td>\n "; | |||
421 | for (VarMaxInd ex = VarEn abledContr ols.length , VarIndex = 0 ; Var Index < Va rMaxIndex ; VarIndex ++) | 421 | for (VarMaxInd ex = VarEn abledContr ols.length , VarIndex = 0 ; Var Index < Va rMaxIndex ; VarIndex ++) | |||
422 | { | 422 | { | |||
423 | Va rHTML += V arEnabledC ontrols[Va rIndex].fG etHTML(); | 423 | Va rHTML += V arEnabledC ontrols[Va rIndex].fG etHTML(); | |||
424 | if ((VarInde x + 1) < V arMaxIndex ) | 424 | if ((VarInde x + 1) < V arMaxIndex ) | |||
425 | { | 425 | { | |||
426 | VarHTML += " <td><d iv><img sr c=\"" + WW HFrame.WWH Help.mHelp URLPrefix + "wwhelp/ wwhimpl/co mmon/image s/spc_tb_m .gif" + "\ " alt=\"\" ></div></t d>\n"; | 426 | VarHTML += " <td><d iv><img sr c=\"" + WW HFrame.WWH Help.mHelp URLPrefix + "wwhelp/ wwhimpl/co mmon/image s/spc_tb_m .gif" + "\ " alt=\"\" ></div></t d>\n"; | |||
427 | } | 427 | } | |||
428 | } | 428 | } | |||
429 | 429 | |||||
430 | VarH TML += " < /tr>\n"; | 430 | VarH TML += " < /tr>\n"; | |||
431 | VarH TML += "</ table>\n"; | 431 | VarH TML += "</ table>\n"; | |||
432 | } | 432 | } | |||
433 | } | 433 | } | |||
434 | 434 | |||||
435 | return V arHTML; | 435 | return V arHTML; | |||
436 | } | 436 | } | |||
437 | 437 | |||||
438 | function WWHControl s_RightHTM L() | 438 | function WWHControl s_RightHTM L() | |||
439 | { | 439 | { | |||
440 | var Var HTML = ""; | 440 | var Var HTML = ""; | |||
441 | var Var EnabledCon trols; | 441 | var Var EnabledCon trols; | |||
442 | var Var Control; | 442 | var Var Control; | |||
443 | var Var MaxIndex; | 443 | var Var MaxIndex; | |||
444 | var Var Index; | 444 | var Var Index; | |||
445 | 445 | |||||
446 | // Confi rm user di d not relo ad the fra meset | 446 | // Confi rm user di d not relo ad the fra meset | |||
447 | // | 447 | // | |||
448 | if (this .fGetContr ol("WWHRel atedTopics Icon") != null) | 448 | if (this .fGetContr ol("WWHRel atedTopics Icon") != null) | |||
449 | { | 449 | { | |||
450 | // Det ermine act ive contro ls | 450 | // Det ermine act ive contro ls | |||
451 | // | 451 | // | |||
452 | VarEna bledContro ls = new A rray(); | 452 | VarEna bledContro ls = new A rray(); | |||
453 | VarCon trol = thi s.fGetCont rol("WWHPD FIcon"); | 453 | VarCon trol = thi s.fGetCont rol("WWHPD FIcon"); | |||
454 | if (Va rControl.m bEnabled) | 454 | if (Va rControl.m bEnabled) | |||
455 | { | 455 | { | |||
456 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | 456 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | |||
457 | } | 457 | } | |||
458 | VarCon trol = thi s.fGetCont rol("WWHRe latedTopic sIcon"); | 458 | VarCon trol = thi s.fGetCont rol("WWHRe latedTopic sIcon"); | |||
459 | if (Va rControl.m bEnabled) | 459 | if (Va rControl.m bEnabled) | |||
460 | { | 460 | { | |||
461 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | 461 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | |||
462 | } | 462 | } | |||
463 | VarCon trol = thi s.fGetCont rol("WWHEm ailIcon"); | 463 | VarCon trol = thi s.fGetCont rol("WWHEm ailIcon"); | |||
464 | if (Va rControl.m bEnabled) | 464 | if (Va rControl.m bEnabled) | |||
465 | { | 465 | { | |||
466 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | 466 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | |||
467 | } | 467 | } | |||
468 | VarCon trol = thi s.fGetCont rol("WWHPr intIcon"); | 468 | VarCon trol = thi s.fGetCont rol("WWHPr intIcon"); | |||
469 | if (Va rControl.m bEnabled) | 469 | if (Va rControl.m bEnabled) | |||
470 | { | 470 | { | |||
471 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | 471 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | |||
472 | } | 472 | } | |||
473 | VarCon trol = thi s.fGetCont rol("WWHBo okmarkIcon "); | 473 | VarCon trol = thi s.fGetCont rol("WWHBo okmarkIcon "); | |||
474 | if (Va rControl.m bEnabled) | 474 | if (Va rControl.m bEnabled) | |||
475 | { | 475 | { | |||
476 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | 476 | VarE nabledCont rols[VarEn abledContr ols.length ] = VarCon trol; | |||
477 | } | 477 | } | |||
478 | 478 | |||||
479 | // Emi t HTML for controls | 479 | // Emi t HTML for controls | |||
480 | // | 480 | // | |||
481 | VarHTM L += this. fTopSpacer HTML(); | 481 | VarHTM L += this. fTopSpacer HTML(); | |||
482 | if (Va rEnabledCo ntrols.len gth > 0) | 482 | if (Va rEnabledCo ntrols.len gth > 0) | |||
483 | { | 483 | { | |||
484 | VarH TML += "<t able borde r=\"0\" ce llspacing= \"0\" cell padding=\" 0\">\n"; | 484 | VarH TML += "<t able borde r=\"0\" ce llspacing= \"0\" cell padding=\" 0\">\n"; | |||
485 | VarH TML += " < tr>\n"; | 485 | VarH TML += " < tr>\n"; | |||
486 | 486 | |||||
487 | for (VarMaxInd ex = VarEn abledContr ols.length , VarIndex = 0 ; Var Index < Va rMaxIndex ; VarIndex ++) | 487 | for (VarMaxInd ex = VarEn abledContr ols.length , VarIndex = 0 ; Var Index < Va rMaxIndex ; VarIndex ++) | |||
488 | { | 488 | { | |||
489 | Va rHTML += V arEnabledC ontrols[Va rIndex].fG etHTML(); | 489 | Va rHTML += V arEnabledC ontrols[Va rIndex].fG etHTML(); | |||
490 | if ((VarInde x + 1) < V arMaxIndex ) | 490 | if ((VarInde x + 1) < V arMaxIndex ) | |||
491 | { | 491 | { | |||
492 | VarHTML += " <td><d iv><img sr c=\"" + WW HFrame.WWH Help.mHelp URLPrefix + "wwhelp/ wwhimpl/co mmon/image s/spc_tb_m .gif" + "\ " alt=\"\" ></div></t d>\n"; | 492 | VarHTML += " <td><d iv><img sr c=\"" + WW HFrame.WWH Help.mHelp URLPrefix + "wwhelp/ wwhimpl/co mmon/image s/spc_tb_m .gif" + "\ " alt=\"\" ></div></t d>\n"; | |||
493 | } | 493 | } | |||
494 | } | 494 | } | |||
495 | VarH TML += " <td><div>< img src=\" " + WWHFra me.WWHHelp .mHelpURLP refix + "w whelp/wwhi mpl/common /images/sp c_tb_r.gif " + "\" al t=\"\"></d iv></td>\n "; | 495 | VarH TML += " <td><div>< img src=\" " + WWHFra me.WWHHelp .mHelpURLP refix + "w whelp/wwhi mpl/common /images/sp c_tb_r.gif " + "\" al t=\"\"></d iv></td>\n "; | |||
496 | 496 | |||||
497 | VarH TML += " < /tr>\n"; | 497 | VarH TML += " < /tr>\n"; | |||
498 | VarH TML += "</ table>\n"; | 498 | VarH TML += "</ table>\n"; | |||
499 | } | 499 | } | |||
500 | } | 500 | } | |||
501 | 501 | |||||
502 | return V arHTML; | 502 | return V arHTML; | |||
503 | } | 503 | } | |||
504 | 504 | |||||
505 | function WWHControl s_LeftFram eTitle() | 505 | function WWHControl s_LeftFram eTitle() | |||
506 | { | 506 | { | |||
507 | var Var Title = "" ; | 507 | var Var Title = "" ; | |||
508 | 508 | |||||
509 | 509 | |||||
510 | if (this .fGetContr ol("WWHFra meSetIcon" ).fGetLabe l().length > 0) | 510 | if (this .fGetContr ol("WWHFra meSetIcon" ).fGetLabe l().length > 0) | |||
511 | { | 511 | { | |||
512 | if (Va rTitle.len gth > 0) | 512 | if (Va rTitle.len gth > 0) | |||
513 | { | 513 | { | |||
514 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | 514 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | |||
515 | } | 515 | } | |||
516 | VarTit le += this .fGetContr ol("WWHFra meSetIcon" ).fGetLabe l(); | 516 | VarTit le += this .fGetContr ol("WWHFra meSetIcon" ).fGetLabe l(); | |||
517 | } | 517 | } | |||
518 | 518 | |||||
519 | if (this .fGetContr ol("WWHSyn cTOCIcon") .fGetLabel ().length > 0) | 519 | if (this .fGetContr ol("WWHSyn cTOCIcon") .fGetLabel ().length > 0) | |||
520 | { | 520 | { | |||
521 | if (Va rTitle.len gth > 0) | 521 | if (Va rTitle.len gth > 0) | |||
522 | { | 522 | { | |||
523 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | 523 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | |||
524 | } | 524 | } | |||
525 | VarTit le += this .fGetContr ol("WWHSyn cTOCIcon") .fGetLabel (); | 525 | VarTit le += this .fGetContr ol("WWHSyn cTOCIcon") .fGetLabel (); | |||
526 | } | 526 | } | |||
527 | 527 | |||||
528 | if (this .fGetContr ol("WWHPre vIcon").fG etLabel(). length > 0 ) | 528 | if (this .fGetContr ol("WWHPre vIcon").fG etLabel(). length > 0 ) | |||
529 | { | 529 | { | |||
530 | if (Va rTitle.len gth > 0) | 530 | if (Va rTitle.len gth > 0) | |||
531 | { | 531 | { | |||
532 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | 532 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | |||
533 | } | 533 | } | |||
534 | VarTit le += this .fGetContr ol("WWHPre vIcon").fG etLabel(); | 534 | VarTit le += this .fGetContr ol("WWHPre vIcon").fG etLabel(); | |||
535 | } | 535 | } | |||
536 | 536 | |||||
537 | if (this .fGetContr ol("WWHNex tIcon").fG etLabel(). length > 0 ) | 537 | if (this .fGetContr ol("WWHNex tIcon").fG etLabel(). length > 0 ) | |||
538 | { | 538 | { | |||
539 | if (Va rTitle.len gth > 0) | 539 | if (Va rTitle.len gth > 0) | |||
540 | { | 540 | { | |||
541 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | 541 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | |||
542 | } | 542 | } | |||
543 | VarTit le += this .fGetContr ol("WWHNex tIcon").fG etLabel(); | 543 | VarTit le += this .fGetContr ol("WWHNex tIcon").fG etLabel(); | |||
544 | } | 544 | } | |||
545 | 545 | |||||
546 | return V arTitle; | 546 | return V arTitle; | |||
547 | } | 547 | } | |||
548 | 548 | |||||
549 | function WWHControl s_RightFra meTitle() | 549 | function WWHControl s_RightFra meTitle() | |||
550 | { | 550 | { | |||
551 | var Var Title = "" ; | 551 | var Var Title = "" ; | |||
552 | 552 | |||||
553 | 553 | |||||
554 | if (this .fGetContr ol("WWHPDF Icon").fGe tLabel().l ength > 0) | 554 | if (this .fGetContr ol("WWHPDF Icon").fGe tLabel().l ength > 0) | |||
555 | { | 555 | { | |||
556 | if (Va rTitle.len gth > 0) | 556 | if (Va rTitle.len gth > 0) | |||
557 | { | 557 | { | |||
558 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | 558 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | |||
559 | } | 559 | } | |||
560 | VarTit le += this .fGetContr ol("WWHPDF Icon").fGe tLabel(); | 560 | VarTit le += this .fGetContr ol("WWHPDF Icon").fGe tLabel(); | |||
561 | } | 561 | } | |||
562 | 562 | |||||
563 | if (this .fGetContr ol("WWHRel atedTopics Icon").fGe tLabel().l ength > 0) | 563 | if (this .fGetContr ol("WWHRel atedTopics Icon").fGe tLabel().l ength > 0) | |||
564 | { | 564 | { | |||
565 | if (Va rTitle.len gth > 0) | 565 | if (Va rTitle.len gth > 0) | |||
566 | { | 566 | { | |||
567 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | 567 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | |||
568 | } | 568 | } | |||
569 | VarTit le += this .fGetContr ol("WWHRel atedTopics Icon").fGe tLabel(); | 569 | VarTit le += this .fGetContr ol("WWHRel atedTopics Icon").fGe tLabel(); | |||
570 | } | 570 | } | |||
571 | 571 | |||||
572 | if (this .fGetContr ol("WWHEma ilIcon").f GetLabel() .length > 0) | 572 | if (this .fGetContr ol("WWHEma ilIcon").f GetLabel() .length > 0) | |||
573 | { | 573 | { | |||
574 | if (Va rTitle.len gth > 0) | 574 | if (Va rTitle.len gth > 0) | |||
575 | { | 575 | { | |||
576 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | 576 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | |||
577 | } | 577 | } | |||
578 | VarTit le += this .fGetContr ol("WWHEma ilIcon").f GetLabel() ; | 578 | VarTit le += this .fGetContr ol("WWHEma ilIcon").f GetLabel() ; | |||
579 | } | 579 | } | |||
580 | 580 | |||||
581 | if (this .fGetContr ol("WWHPri ntIcon").f GetLabel() .length > 0) | 581 | if (this .fGetContr ol("WWHPri ntIcon").f GetLabel() .length > 0) | |||
582 | { | 582 | { | |||
583 | if (Va rTitle.len gth > 0) | 583 | if (Va rTitle.len gth > 0) | |||
584 | { | 584 | { | |||
585 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | 585 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | |||
586 | } | 586 | } | |||
587 | VarTit le += this .fGetContr ol("WWHPri ntIcon").f GetLabel() ; | 587 | VarTit le += this .fGetContr ol("WWHPri ntIcon").f GetLabel() ; | |||
588 | } | 588 | } | |||
589 | 589 | |||||
590 | if (this .fGetContr ol("WWHBoo kmarkIcon" ).fGetLabe l().length > 0) | 590 | if (this .fGetContr ol("WWHBoo kmarkIcon" ).fGetLabe l().length > 0) | |||
591 | { | 591 | { | |||
592 | if (Va rTitle.len gth > 0) | 592 | if (Va rTitle.len gth > 0) | |||
593 | { | 593 | { | |||
594 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | 594 | VarT itle += WW HFrame.WWH Help.mMess ages.mAcce ssibilityL istSeparat or + " "; | |||
595 | } | 595 | } | |||
596 | VarTit le += this .fGetContr ol("WWHBoo kmarkIcon" ).fGetLabe l(); | 596 | VarTit le += this .fGetContr ol("WWHBoo kmarkIcon" ).fGetLabe l(); | |||
597 | } | 597 | } | |||
598 | 598 | |||||
599 | return V arTitle; | 599 | return V arTitle; | |||
600 | } | 600 | } | |||
601 | 601 | |||||
602 | function WWHControl s_UpdateHR EF(ParamHR EF) | 602 | function WWHControl s_UpdateHR EF(ParamHR EF) | |||
603 | { | 603 | { | |||
604 | // Updat e sync/pre v/next arr ay | 604 | // Updat e sync/pre v/next arr ay | |||
605 | // | 605 | // | |||
606 | this.mSy ncPrevNext = WWHFram e.WWHHelp. fGetSyncPr evNext(Par amHREF); | 606 | this.mSy ncPrevNext = WWHFram e.WWHHelp. fGetSyncPr evNext(Par amHREF); | |||
607 | 607 | |||||
608 | // Updat e status | 608 | // Updat e status | |||
609 | // | 609 | // | |||
610 | this.fGe tControl(" WWHFrameSe tIcon").fS etStatus(t his.fSansN avigation( )); | 610 | this.fGe tControl(" WWHFrameSe tIcon").fS etStatus(t his.fSansN avigation( )); | |||
611 | this.fGe tControl(" WWHSyncTOC Icon").fSe tStatus(th is.fCanSyn cTOC()); | 611 | this.fGe tControl(" WWHSyncTOC Icon").fSe tStatus(th is.fCanSyn cTOC()); | |||
612 | this.fGe tControl(" WWHPrevIco n").fSetSt atus(this. mSyncPrevN ext[1] != null); | 612 | this.fGe tControl(" WWHPrevIco n").fSetSt atus(this. mSyncPrevN ext[1] != null); | |||
613 | this.fGe tControl(" WWHNextIco n").fSetSt atus(this. mSyncPrevN ext[2] != null); | 613 | this.fGe tControl(" WWHNextIco n").fSetSt atus(this. mSyncPrevN ext[2] != null); | |||
614 | this.fGe tControl(" WWHPDFIcon ").fSetSta tus(this.f HasPDFLink ()); | 614 | this.fGe tControl(" WWHPDFIcon ").fSetSta tus(this.f HasPDFLink ()); | |||
615 | this.fGe tControl(" WWHRelated TopicsIcon ").fSetSta tus(WWHFra me.WWHRela tedTopics. fHasRelate dTopics()) ; | 615 | this.fGe tControl(" WWHRelated TopicsIcon ").fSetSta tus(WWHFra me.WWHRela tedTopics. fHasRelate dTopics()) ; | |||
616 | this.fGe tControl(" WWHEmailIc on").fSetS tatus(this .fCanSyncT OC()); | 616 | this.fGe tControl(" WWHEmailIc on").fSetS tatus(this .fCanSyncT OC()); | |||
617 | this.fGe tControl(" WWHPrintIc on").fSetS tatus(this .fCanSyncT OC()); | 617 | this.fGe tControl(" WWHPrintIc on").fSetS tatus(this .fCanSyncT OC()); | |||
618 | this.fGe tControl(" WWHBookmar kIcon").fS etStatus(t his.fCanSy ncTOC()); | 618 | this.fGe tControl(" WWHBookmar kIcon").fS etStatus(t his.fCanSy ncTOC()); | |||
619 | 619 | |||||
620 | // Updat e controls | 620 | // Updat e controls | |||
621 | // | 621 | // | |||
622 | if (WWHF rame.WWHHe lp.mbAcces sible) | 622 | if (WWHF rame.WWHHe lp.mbAcces sible) | |||
623 | { | 623 | { | |||
624 | // Rel oad contro l frames | 624 | // Rel oad contro l frames | |||
625 | // | 625 | // | |||
626 | this.f ReloadCont rols(); | 626 | this.f ReloadCont rols(); | |||
627 | } | 627 | } | |||
628 | else | 628 | else | |||
629 | { | 629 | { | |||
630 | // Upd ate icons in place | 630 | // Upd ate icons in place | |||
631 | // | 631 | // | |||
632 | this.f GetControl ("WWHFrame SetIcon"). fUpdateIco n(); | 632 | this.f GetControl ("WWHFrame SetIcon"). fUpdateIco n(); | |||
633 | this.f GetControl ("WWHSyncT OCIcon").f UpdateIcon (); | 633 | this.f GetControl ("WWHSyncT OCIcon").f UpdateIcon (); | |||
634 | this.f GetControl ("WWHPrevI con").fUpd ateIcon(); | 634 | this.f GetControl ("WWHPrevI con").fUpd ateIcon(); | |||
635 | this.f GetControl ("WWHNextI con").fUpd ateIcon(); | 635 | this.f GetControl ("WWHNextI con").fUpd ateIcon(); | |||
636 | this.f GetControl ("WWHPDFIc on").fUpda teIcon(); | 636 | this.f GetControl ("WWHPDFIc on").fUpda teIcon(); | |||
637 | this.f GetControl ("WWHRelat edTopicsIc on").fUpda teIcon(); | 637 | this.f GetControl ("WWHRelat edTopicsIc on").fUpda teIcon(); | |||
638 | this.f GetControl ("WWHEmail Icon").fUp dateIcon() ; | 638 | this.f GetControl ("WWHEmail Icon").fUp dateIcon() ; | |||
639 | this.f GetControl ("WWHPrint Icon").fUp dateIcon() ; | 639 | this.f GetControl ("WWHPrint Icon").fUp dateIcon() ; | |||
640 | this.f GetControl ("WWHBookm arkIcon"). fUpdateIco n(); | 640 | this.f GetControl ("WWHBookm arkIcon"). fUpdateIco n(); | |||
641 | 641 | |||||
642 | // Res tore previ ous focus | 642 | // Res tore previ ous focus | |||
643 | // | 643 | // | |||
644 | this.f RestoreFoc us(); | 644 | this.f RestoreFoc us(); | |||
645 | } | 645 | } | |||
646 | } | 646 | } | |||
647 | 647 | |||||
648 | function WWHControl s_RecordFo cus(ParamF rameName, | 648 | function WWHControl s_RecordFo cus(ParamF rameName, | |||
649 | ParamA nchorName) | 649 | ParamA nchorName) | |||
650 | { | 650 | { | |||
651 | this.mFo cusedFrame = ParamF rameName; | 651 | this.mFo cusedFrame = ParamF rameName; | |||
652 | this.mFo cusedAncho r = ParamA nchorName; | 652 | this.mFo cusedAncho r = ParamA nchorName; | |||
653 | } | 653 | } | |||
654 | 654 | |||||
655 | function WWHControl s_RestoreF ocus() | 655 | function WWHControl s_RestoreF ocus() | |||
656 | { | 656 | { | |||
657 | if ((thi s.mFocused Frame.leng th > 0) && | 657 | if ((thi s.mFocused Frame.leng th > 0) && | |||
658 | (thi s.mFocused Anchor.len gth > 0)) | 658 | (thi s.mFocused Anchor.len gth > 0)) | |||
659 | { | 659 | { | |||
660 | WWHFra me.WWHHelp .fFocus(th is.mFocuse dFrame, th is.mFocuse dAnchor); | 660 | WWHFra me.WWHHelp .fFocus(th is.mFocuse dFrame, th is.mFocuse dAnchor); | |||
661 | } | 661 | } | |||
662 | 662 | |||||
663 | this.mFo cusedFrame = ""; | 663 | this.mFo cusedFrame = ""; | |||
664 | this.mFo cusedAncho r = ""; | 664 | this.mFo cusedAncho r = ""; | |||
665 | } | 665 | } | |||
666 | 666 | |||||
667 | function WWHControl s_SwitchTo Navigation (ParamTabN ame) | 667 | function WWHControl s_SwitchTo Navigation (ParamTabN ame) | |||
668 | { | 668 | { | |||
669 | var Var DocumentFr ame; | 669 | var Var DocumentFr ame; | |||
670 | var Var DocumentUR L; | 670 | var Var DocumentUR L; | |||
671 | var Var SwitchURL; | 671 | var Var SwitchURL; | |||
672 | 672 | |||||
673 | 673 | |||||
674 | // Switc h to navig ation | 674 | // Switc h to navig ation | |||
675 | // | 675 | // | |||
676 | VarDocum entFrame = eval(WWHF rame.WWHHe lp.fGetFra meReferenc e("WWHDocu mentFrame" )); | 676 | VarDocum entFrame = eval(WWHF rame.WWHHe lp.fGetFra meReferenc e("WWHDocu mentFrame" )); | |||
677 | VarDocum entURL = W WHFrame.WW HBrowser.f NormalizeU RL(VarDocu mentFrame. location.h ref); | 677 | VarDocum entURL = W WHFrame.WW HBrowser.f NormalizeU RL(VarDocu mentFrame. location.h ref); | |||
678 | VarDocum entURL = W WHFrame.WW HHelp.fGet BookFileHR EF(VarDocu mentURL); | 678 | VarDocum entURL = W WHFrame.WW HHelp.fGet BookFileHR EF(VarDocu mentURL); | |||
679 | VarSwitchU RL = WWHFrame.W WHHelp.mHe lpURLPrefi x + "/wwhelp/w whimpl/com mon/html/s witch.htm? href=" + WWHFrame.W WHBrowser. fRestoreEs capedSpace s( VarDocumen tURL ) ; | 679 |
VarSwitchU
RL
=
WWHFrame.W
WHHelp.mHe
lpURLPrefi
x
+
"/wwhelp/w
whimpl/com
mon/html/s
witch.htm?
href="
+
|
|||
680 | if (WWHF rame.WWHHe lp.mbAcces sible) | 680 | if (WWHF rame.WWHHe lp.mbAcces sible) | |||
681 | { | 681 | { | |||
682 | VarSwi tchURL += "&accessib le=true"; | 682 | VarSwi tchURL += "&accessib le=true"; | |||
683 | } | 683 | } | |||
684 | if ((typ eof(ParamT abName) != "undefine d") && | 684 | if ((typ eof(ParamT abName) != "undefine d") && | |||
685 | (Par amTabName != null)) | 685 | (Par amTabName != null)) | |||
686 | { | 686 | { | |||
687 | VarSwi tchURL += "&tab=" + ParamTabNa me; | 687 | VarSwi tchURL += "&tab=" + ParamTabNa me; | |||
688 | } | 688 | } | |||
689 | WWHFrame .WWHSwitch .fExec(fal se, VarSwi tchURL); | 689 | WWHFrame .WWHSwitch .fExec(fal se, VarSwi tchURL); | |||
690 | } | 690 | } | |||
691 | 691 | |||||
692 | function WWHControl s_HasPDFLi nk() | 692 | function WWHControl s_HasPDFLi nk() | |||
693 | { | 693 | { | |||
694 | var Var HasPDFLink = false; | 694 | var Var HasPDFLink = false; | |||
695 | var Var DocumentFr ame; | 695 | var Var DocumentFr ame; | |||
696 | 696 | |||||
697 | VarDocum entFrame = eval(WWHF rame.WWHHe lp.fGetFra meReferenc e("WWHDocu mentFrame" )); | 697 | VarDocum entFrame = eval(WWHF rame.WWHHe lp.fGetFra meReferenc e("WWHDocu mentFrame" )); | |||
698 | VarHasPD FLink = (( typeof Var DocumentFr ame.WWHPDF Link) == " function") ; | 698 | VarHasPD FLink = (( typeof Var DocumentFr ame.WWHPDF Link) == " function") ; | |||
699 | 699 | |||||
700 | return V arHasPDFLi nk; | 700 | return V arHasPDFLi nk; | |||
701 | } | 701 | } | |||
702 | 702 | |||||
703 | function WWHControl s_ClickedS howNavigat ion() | 703 | function WWHControl s_ClickedS howNavigat ion() | |||
704 | { | 704 | { | |||
705 | this.fSh owNavigati on(); | 705 | this.fSh owNavigati on(); | |||
706 | } | 706 | } | |||
707 | 707 | |||||
708 | function WWHControl s_ClickedS yncTOC() | 708 | function WWHControl s_ClickedS yncTOC() | |||
709 | { | 709 | { | |||
710 | this.fSy ncTOC(true ); | 710 | this.fSy ncTOC(true ); | |||
711 | } | 711 | } | |||
712 | 712 | |||||
713 | function WWHControl s_ClickedP revious() | 713 | function WWHControl s_ClickedP revious() | |||
714 | { | 714 | { | |||
715 | // Recor d focused icon | 715 | // Recor d focused icon | |||
716 | // | 716 | // | |||
717 | this.fRe cordFocus( "WWHContro lsLeftFram e", "WWHPr evIcon"); | 717 | this.fRe cordFocus( "WWHContro lsLeftFram e", "WWHPr evIcon"); | |||
718 | 718 | |||||
719 | this.fPr evious(); | 719 | this.fPr evious(); | |||
720 | } | 720 | } | |||
721 | 721 | |||||
722 | function WWHControl s_ClickedN ext() | 722 | function WWHControl s_ClickedN ext() | |||
723 | { | 723 | { | |||
724 | // Recor d focused icon | 724 | // Recor d focused icon | |||
725 | // | 725 | // | |||
726 | this.fRe cordFocus( "WWHContro lsLeftFram e", "WWHNe xtIcon"); | 726 | this.fRe cordFocus( "WWHContro lsLeftFram e", "WWHNe xtIcon"); | |||
727 | 727 | |||||
728 | this.fNe xt(); | 728 | this.fNe xt(); | |||
729 | } | 729 | } | |||
730 | 730 | |||||
731 | function WWHControl s_ClickedP DF() | 731 | function WWHControl s_ClickedP DF() | |||
732 | { | 732 | { | |||
733 | this.fPD F(); | 733 | this.fPD F(); | |||
734 | } | 734 | } | |||
735 | 735 | |||||
736 | function WWHControl s_ClickedR elatedTopi cs() | 736 | function WWHControl s_ClickedR elatedTopi cs() | |||
737 | { | 737 | { | |||
738 | this.fRe latedTopic s(); | 738 | this.fRe latedTopic s(); | |||
739 | } | 739 | } | |||
740 | 740 | |||||
741 | function WWHControl s_ClickedE mail() | 741 | function WWHControl s_ClickedE mail() | |||
742 | { | 742 | { | |||
743 | this.fEm ail(); | 743 | this.fEm ail(); | |||
744 | } | 744 | } | |||
745 | 745 | |||||
746 | function WWHControl s_ClickedP rint() | 746 | function WWHControl s_ClickedP rint() | |||
747 | { | 747 | { | |||
748 | this.fPr int(); | 748 | this.fPr int(); | |||
749 | } | 749 | } | |||
750 | 750 | |||||
751 | function WWHControl s_ClickedB ookmark() | 751 | function WWHControl s_ClickedB ookmark() | |||
752 | { | 752 | { | |||
753 | this.fBo okmark(); | 753 | this.fBo okmark(); | |||
754 | } | 754 | } | |||
755 | 755 | |||||
756 | function WWHControl s_ShowNavi gation() | 756 | function WWHControl s_ShowNavi gation() | |||
757 | { | 757 | { | |||
758 | var Var DocumentFr ame; | 758 | var Var DocumentFr ame; | |||
759 | var Var DocumentUR L; | 759 | var Var DocumentUR L; | |||
760 | 760 | |||||
761 | 761 | |||||
762 | if (WWHF rame.WWHHa ndler.fIsR eady()) | 762 | if (WWHF rame.WWHHa ndler.fIsR eady()) | |||
763 | { | 763 | { | |||
764 | this.f SwitchToNa vigation() ; | 764 | this.f SwitchToNa vigation() ; | |||
765 | } | 765 | } | |||
766 | } | 766 | } | |||
767 | 767 | |||||
768 | function WWHControl s_SyncTOC( bParamRepo rtError) | 768 | function WWHControl s_SyncTOC( bParamRepo rtError) | |||
769 | { | 769 | { | |||
770 | if (this .fCanSyncT OC()) | 770 | if (this .fCanSyncT OC()) | |||
771 | { | 771 | { | |||
772 | if (WW HFrame.WWH Handler.fI sReady()) | 772 | if (WW HFrame.WWH Handler.fI sReady()) | |||
773 | { | 773 | { | |||
774 | WWHF rame.WWHHe lp.fSyncTO C(this.mSy ncPrevNext [0], bPara mReportErr or); | 774 | WWHF rame.WWHHe lp.fSyncTO C(this.mSy ncPrevNext [0], bPara mReportErr or); | |||
775 | } | 775 | } | |||
776 | } | 776 | } | |||
777 | } | 777 | } | |||
778 | 778 | |||||
779 | function WWHControl s_Previous () | 779 | function WWHControl s_Previous () | |||
780 | { | 780 | { | |||
781 | if (this .mSyncPrev Next[1] != null) | 781 | if (this .mSyncPrev Next[1] != null) | |||
782 | { | 782 | { | |||
783 | WWHFra me.WWHHelp .fSetDocum entHREF(th is.mSyncPr evNext[1], false); | 783 | WWHFra me.WWHHelp .fSetDocum entHREF(th is.mSyncPr evNext[1], false); | |||
784 | } | 784 | } | |||
785 | } | 785 | } | |||
786 | 786 | |||||
787 | function WWHControl s_Next() | 787 | function WWHControl s_Next() | |||
788 | { | 788 | { | |||
789 | if (this .mSyncPrev Next[2] != null) | 789 | if (this .mSyncPrev Next[2] != null) | |||
790 | { | 790 | { | |||
791 | WWHFra me.WWHHelp .fSetDocum entHREF(th is.mSyncPr evNext[2], false); | 791 | WWHFra me.WWHHelp .fSetDocum entHREF(th is.mSyncPr evNext[2], false); | |||
792 | } | 792 | } | |||
793 | } | 793 | } | |||
794 | 794 | |||||
795 | function WWHControl s_PDF() | 795 | function WWHControl s_PDF() | |||
796 | { | 796 | { | |||
797 | var Var DocumentFr ame; | 797 | var Var DocumentFr ame; | |||
798 | var Var DocumentUR L; | 798 | var Var DocumentUR L; | |||
799 | var Var DocumentPa rentURL; | 799 | var Var DocumentPa rentURL; | |||
800 | var Var PDFLink; | 800 | var Var PDFLink; | |||
801 | var Var PDFURL; | 801 | var Var PDFURL; | |||
802 | 802 | |||||
803 | VarDocum entFrame = eval(WWHF rame.WWHHe lp.fGetFra meReferenc e("WWHDocu mentFrame" )); | 803 | VarDocum entFrame = eval(WWHF rame.WWHHe lp.fGetFra meReferenc e("WWHDocu mentFrame" )); | |||
804 | if ((typ eof VarDoc umentFrame .WWHPDFLin k) == "fun ction") | 804 | if ((typ eof VarDoc umentFrame .WWHPDFLin k) == "fun ction") | |||
805 | { | 805 | { | |||
806 | VarInd ex = VarDo cumentFram e.location .href.last IndexOf("/ "); | 806 | VarInd ex = VarDo cumentFram e.location .href.last IndexOf("/ "); | |||
807 | VarDoc umentParen tURL = Var DocumentFr ame.locati on.href.su bstring(0, VarIndex) ; | 807 | VarDoc umentParen tURL = Var DocumentFr ame.locati on.href.su bstring(0, VarIndex) ; | |||
808 | VarPDF Link = Var DocumentFr ame.WWHPDF Link(); | 808 | VarPDF Link = Var DocumentFr ame.WWHPDF Link(); | |||
809 | VarPDF URL = VarD ocumentPar entURL + " /" + VarPD FLink; | 809 | VarPDF URL = VarD ocumentPar entURL + " /" + VarPD FLink; | |||
810 | 810 | |||||
811 | WWHFra me.WWHHelp .fSetLocat ion("WWHDo cumentFram e", VarPDF URL); | 811 | WWHFra me.WWHHelp .fSetLocat ion("WWHDo cumentFram e", VarPDF URL); | |||
812 | } | 812 | } | |||
813 | } | 813 | } | |||
814 | 814 | |||||
815 | function WWHControl s_RelatedT opics() | 815 | function WWHControl s_RelatedT opics() | |||
816 | { | 816 | { | |||
817 | var Var DocumentFr ame; | 817 | var Var DocumentFr ame; | |||
818 | var Var DocumentUR L; | 818 | var Var DocumentUR L; | |||
819 | 819 | |||||
820 | 820 | |||||
821 | if (WWHF rame.WWHRe latedTopic s.fHasRela tedTopics( )) | 821 | if (WWHF rame.WWHRe latedTopic s.fHasRela tedTopics( )) | |||
822 | { | 822 | { | |||
823 | if (WW HFrame.WWH Browser.mb SupportsPo pups) | 823 | if (WW HFrame.WWH Browser.mb SupportsPo pups) | |||
824 | { | 824 | { | |||
825 | WWHF rame.WWHRe latedTopic s.fShow(); | 825 | WWHF rame.WWHRe latedTopic s.fShow(); | |||
826 | } | 826 | } | |||
827 | else | 827 | else | |||
828 | { | 828 | { | |||
829 | VarD ocumentFra me = eval( WWHFrame.W WHHelp.fGe tFrameRefe rence("WWH DocumentFr ame")); | 829 | VarD ocumentFra me = eval( WWHFrame.W WHHelp.fGe tFrameRefe rence("WWH DocumentFr ame")); | |||
830 | 830 | |||||
831 | VarD ocumentURL = WWHFram e.WWHBrows er.fNormal izeURL(Var DocumentFr ame.locati on.href); | 831 | VarD ocumentURL = WWHFram e.WWHBrows er.fNormal izeURL(Var DocumentFr ame.locati on.href); | |||
832 | VarD ocumentURL = WWHStri ngUtilitie s_GetURLFi lePathOnly (VarDocume ntURL); | 832 | VarD ocumentURL = WWHStri ngUtilitie s_GetURLFi lePathOnly (VarDocume ntURL); | |||
833 | 833 | |||||
834 | WWHF rame.WWHHe lp.fSetLoc ation("WWH DocumentFr ame", VarD ocumentURL + "#WWHRe latedTopic s"); | 834 | WWHF rame.WWHHe lp.fSetLoc ation("WWH DocumentFr ame", VarD ocumentURL + "#WWHRe latedTopic s"); | |||
835 | } | 835 | } | |||
836 | } | 836 | } | |||
837 | } | 837 | } | |||
838 | 838 | |||||
839 | function WWHControl s_Email() | 839 | function WWHControl s_Email() | |||
840 | { | 840 | { | |||
841 | var Var Location; | 841 | var Var Location; | |||
842 | var Var Message; | 842 | var Var Message; | |||
843 | var Var MailTo; | 843 | var Var MailTo; | |||
844 | 844 | |||||
845 | 845 | |||||
846 | if (this .fCanSyncT OC()) | 846 | if (this .fCanSyncT OC()) | |||
847 | { | 847 | { | |||
848 | VarLoc ation = es cape(this. mSyncPrevN ext[0]); | 848 | VarLoc ation = es cape(this. mSyncPrevN ext[0]); | |||
849 | VarMes sage = "Fe edback: " + VarLocat ion; | 849 | VarMes sage = "Fe edback: " + VarLocat ion; | |||
850 | VarMai lTo = "mai lto:" + WW HFrame.WWH Help.mSett ings.mEmai lAddress + "?subject =" + VarMe ssage + "& body=" + V arMessage; | 850 | VarMai lTo = "mai lto:" + WW HFrame.WWH Help.mSett ings.mEmai lAddress + "?subject =" + VarMe ssage + "& body=" + V arMessage; | |||
851 | 851 | |||||
852 | WWHFra me.WWHHelp .fSetLocat ion("WWHDo cumentFram e", VarMai lTo); | 852 | WWHFra me.WWHHelp .fSetLocat ion("WWHDo cumentFram e", VarMai lTo); | |||
853 | } | 853 | } | |||
854 | } | 854 | } | |||
855 | 855 | |||||
856 | function WWHControl s_Print() | 856 | function WWHControl s_Print() | |||
857 | { | 857 | { | |||
858 | var Var DocumentFr ame; | 858 | var Var DocumentFr ame; | |||
859 | 859 | |||||
860 | 860 | |||||
861 | if (this .fCanSyncT OC()) | 861 | if (this .fCanSyncT OC()) | |||
862 | { | 862 | { | |||
863 | VarDoc umentFrame = eval(WW HFrame.WWH Help.fGetF rameRefere nce("WWHDo cumentFram e")); | 863 | VarDoc umentFrame = eval(WW HFrame.WWH Help.fGetF rameRefere nce("WWHDo cumentFram e")); | |||
864 | 864 | |||||
865 | VarDoc umentFrame .focus(); | 865 | VarDoc umentFrame .focus(); | |||
866 | VarDoc umentFrame .print(); | 866 | VarDoc umentFrame .print(); | |||
867 | } | 867 | } | |||
868 | } | 868 | } | |||
869 | 869 | |||||
870 | function WWHControl s_Bookmark () | 870 | function WWHControl s_Bookmark () | |||
871 | { | 871 | { | |||
872 | var Boo kmarkData; | 872 | var Boo kmarkData; | |||
873 | var Var Window; | 873 | var Var Window; | |||
874 | 874 | |||||
875 | 875 | |||||
876 | if (this .fCanSyncT OC()) | 876 | if (this .fCanSyncT OC()) | |||
877 | { | 877 | { | |||
878 | Bookma rkData = t his.fBookm arkData(); | 878 | Bookma rkData = t his.fBookm arkData(); | |||
879 | if ((B ookmarkDat a[0] != nu ll) && | 879 | if ((B ookmarkDat a[0] != nu ll) && | |||
880 | (B ookmarkDat a[1] != nu ll)) | 880 | (B ookmarkDat a[1] != nu ll)) | |||
881 | { | 881 | { | |||
882 | // A ll browser s now use the "windo w with boo kmark link " approach | 882 | // A ll browser s now use the "windo w with boo kmark link " approach | |||
883 | // I E 7.0 secu rity forbi ds "window .external. AddFavorit e()" on th e local ma chine | 883 | // I E 7.0 secu rity forbi ds "window .external. AddFavorit e()" on th e local ma chine | |||
884 | // | 884 | // | |||
885 | VarW indow = wi ndow.open( WWHFrame.W WHHelp.mHe lpURLPrefi x + "wwhel p/wwhimpl/ common/htm l/bookmark .htm", "WW HBookmarkL inkWindow" , "width=4 00,height= 20"); | 885 | VarW indow = wi ndow.open( WWHFrame.W WHHelp.mHe lpURLPrefi x + "wwhel p/wwhimpl/ common/htm l/bookmark .htm", "WW HBookmarkL inkWindow" , "width=4 00,height= 20"); | |||
886 | VarW indow.focu s(); | 886 | VarW indow.focu s(); | |||
887 | } | 887 | } | |||
888 | } | 888 | } | |||
889 | } | 889 | } | |||
890 | 890 | |||||
891 | function WWHControl s_Bookmark Data() | 891 | function WWHControl s_Bookmark Data() | |||
892 | { | 892 | { | |||
893 | var Boo kmarkData = new Arra y(null, nu ll); | 893 | var Boo kmarkData = new Arra y(null, nu ll); | |||
894 | var Doc umentURL; | 894 | var Doc umentURL; | |||
895 | var Doc umentTitle ; | 895 | var Doc umentTitle ; | |||
896 | var Var Quote; | 896 | var Var Quote; | |||
897 | var Doc umentBookm arkURL; | 897 | var Doc umentBookm arkURL; | |||
898 | 898 | |||||
899 | 899 | |||||
900 | if (this .fCanSyncT OC()) | 900 | if (this .fCanSyncT OC()) | |||
901 | { | 901 | { | |||
902 | // Det ermine boo kmark link | 902 | // Det ermine boo kmark link | |||
903 | // | 903 | // | |||
904 | Docume ntURL = WW HFrame.WWH Help.fGetB ookFileHRE F(this.mSy ncPrevNext [0]); | 904 | Docume ntURL = WW HFrame.WWH Help.fGetB ookFileHRE F(this.mSy ncPrevNext [0]); | |||
905 | if (Do cumentURL != null) | 905 | if (Do cumentURL != null) | |||
906 | { | 906 | { | |||
907 | Docu mentTitle = WWHFrame .WWHHelp.f HREFToTitl e(this.mSy ncPrevNext [0]); | 907 | Docu mentTitle = WWHFrame .WWHHelp.f HREFToTitl e(this.mSy ncPrevNext [0]); | |||
908 | 908 | |||||
909 | if ( WWHFrame.W WHBrowser. mBrowser = = 1) // S horthand f or Netscap e | 909 | if ( WWHFrame.W WHBrowser. mBrowser = = 1) // S horthand f or Netscap e | |||
910 | { | 910 | { | |||
911 | Va rQuote = " ""; | 911 | Va rQuote = " ""; | |||
912 | } | 912 | } | |||
913 | else | 913 | else | |||
914 | { | 914 | { | |||
915 | Va rQuote = " %22"; | 915 | Va rQuote = " %22"; | |||
916 | } | 916 | } | |||
917 | 917 | |||||
918 | DocumentBo okmarkURL = WWHFrame.W WHHelp.mHe lpURLPrefi x + "wwhelp/ww himpl/api. htm?href=" + WWHFrame.W WHBrowser. fRestoreEs capedSpace s( DocumentUR L ) ; | 918 |
DocumentBo
okmarkURL
=
WWHFrame.W
WHHelp.mHe
lpURLPrefi
x
+
"wwhelp/ww
himpl/api.
htm?href="
+
|
|||
919 | if ( this.fSans Navigation ()) | 919 | if ( this.fSans Navigation ()) | |||
920 | { | 920 | { | |||
921 | Do cumentBook markURL += "&single= true" | 921 | Do cumentBook markURL += "&single= true" | |||
922 | } | 922 | } | |||
923 | 923 | |||||
924 | // S et bookmar k data | 924 | // S et bookmar k data | |||
925 | // | 925 | // | |||
926 | Book markData[0 ] = Docume ntTitle; | 926 | Book markData[0 ] = Docume ntTitle; | |||
927 | Book markData[1 ] = Docume ntBookmark URL; | 927 | Book markData[1 ] = Docume ntBookmark URL; | |||
928 | } | 928 | } | |||
929 | } | 929 | } | |||
930 | 930 | |||||
931 | return B ookmarkDat a; | 931 | return B ookmarkDat a; | |||
932 | } | 932 | } | |||
933 | 933 | |||||
934 | function WWHControl s_Bookmark Link() | 934 | function WWHControl s_Bookmark Link() | |||
935 | { | 935 | { | |||
936 | var Boo kmarkLink = ""; | 936 | var Boo kmarkLink = ""; | |||
937 | var Boo kmarkData = this.fBo okmarkData (); | 937 | var Boo kmarkData = this.fBo okmarkData (); | |||
938 | 938 | |||||
939 | 939 | |||||
940 | if ((Boo kmarkData[ 0] != null ) && | 940 | if ((Boo kmarkData[ 0] != null ) && | |||
941 | (Boo kmarkData[ 1] != null )) | 941 | (Boo kmarkData[ 1] != null )) | |||
942 | { | 942 | { | |||
943 | Bookma rkLink = " <a href=\" " + Bookma rkData[1] + "\">" + BookmarkDa ta[0] + "< /a>"; | 943 | Bookma rkLink = " <a href=\" " + Bookma rkData[1] + "\">" + BookmarkDa ta[0] + "< /a>"; | |||
944 | } | 944 | } | |||
945 | 945 | |||||
946 | return B ookmarkLin k; | 946 | return B ookmarkLin k; | |||
947 | } | 947 | } | |||
948 | 948 | |||||
949 | function WWHControl s_ProcessA ccessKey(P aramAccess Key) | 949 | function WWHControl s_ProcessA ccessKey(P aramAccess Key) | |||
950 | { | 950 | { | |||
951 | switch ( ParamAcces sKey) | 951 | switch ( ParamAcces sKey) | |||
952 | { | 952 | { | |||
953 | case 4 : | 953 | case 4 : | |||
954 | this .fClickedP revious(); | 954 | this .fClickedP revious(); | |||
955 | brea k; | 955 | brea k; | |||
956 | 956 | |||||
957 | case 5 : | 957 | case 5 : | |||
958 | this .fClickedN ext(); | 958 | this .fClickedN ext(); | |||
959 | brea k; | 959 | brea k; | |||
960 | 960 | |||||
961 | case 6 : | 961 | case 6 : | |||
962 | this .fClickedR elatedTopi cs(); | 962 | this .fClickedR elatedTopi cs(); | |||
963 | brea k; | 963 | brea k; | |||
964 | 964 | |||||
965 | case 7 : | 965 | case 7 : | |||
966 | this .fClickedE mail(); | 966 | this .fClickedE mail(); | |||
967 | brea k; | 967 | brea k; | |||
968 | 968 | |||||
969 | case 8 : | 969 | case 8 : | |||
970 | this .fClickedP rint(); | 970 | this .fClickedP rint(); | |||
971 | brea k; | 971 | brea k; | |||
972 | 972 | |||||
973 | case 9 : | 973 | case 9 : | |||
974 | this .fClickedB ookmark(); | 974 | this .fClickedB ookmark(); | |||
975 | brea k; | 975 | brea k; | |||
976 | } | 976 | } | |||
977 | } | 977 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2007 Araxis Ltd (www.araxis.com). All rights reserved.