1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This file Contains Constants |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 _LIT(KEmptyString,""); |
|
20 _LIT(KFwdSlash,"\\"); |
|
21 _LIT(KBackSlash,"/"); |
|
22 _LIT(KTabSpace,"\t"); |
|
23 _LIT(KHexPrefix,"0x"); |
|
24 _LIT(KZero,"0"); |
|
25 _LIT(KZipFileExtn,".zip"); |
|
26 _LIT(KHtmlFileExtn,".html"); |
|
27 _LIT(KContentZipFile,"contents.zip"); |
|
28 _LIT(KCsstext_First,"<style>\n"); |
|
29 // temp string. if xml file and help tool chain is ready.it can be deleted. |
|
30 _LIT(KDefaultFeatureIdStringTemp,"-1"); |
|
31 _LIT(KDefaultFeatureIdString,"true-1"); |
|
32 _LIT(KTrue_StringtoAppend,"true_"); |
|
33 _LIT(KFalse_StringtoAppend,"false_"); |
|
34 _LIT(KFalseString,"false"); |
|
35 _LIT(KTrueString,"true"); |
|
36 |
|
37 _LIT(KtextFormat_true_a,"#true_%d_A,"); |
|
38 _LIT(KtextFormat_false,"#false_%d_A,#false_%d_B,#false_%d_L,"); |
|
39 |
|
40 _LIT(KtextFormat_true_b,"#true_%d_B,"); |
|
41 _LIT(KtextFormat_false_b,"#false_%d_B,"); |
|
42 |
|
43 _LIT(KtextFormat_true_l,"#true_%d_L,"); |
|
44 _LIT(KtextFormat_false_l,"#false_%d_L,"); |
|
45 |
|
46 _LIT(KtextFormat_lang_a,"#LANGUAGE_%d_A,"); |
|
47 _LIT(KtextFormat_lang_b,"#LANGUAGE_%d_B,"); |
|
48 _LIT(KtextFormat_lang_l,"#LANGUAGE_%d_L,"); |
|
49 _LIT(KtextFormat_lang_0a,"#LANGUAGE_0%d_A,"); |
|
50 _LIT(KtextFormat_lang_0b,"#LANGUAGE_0%d_B,"); |
|
51 _LIT(KtextFormat_lang_0l,"#LANGUAGE_0%d_L,"); |
|
52 |
|
53 _LIT(KDefaultFeatureId,"#true-1"); |
|
54 _LIT(KComma,","); |
|
55 _LIT(KCsstext_displayp_li,"{display:list-item;}\n"); |
|
56 _LIT(KCsstext_displayp_p,"{display:block;}\n"); |
|
57 _LIT(KCsstext_displayp_a,"{display:inline;}\n"); |
|
58 _LIT(KCsstext_displayp_n,"{display:none;}\n"); |
|
59 _LIT(KCsstext_Last,"</style>\n"); |
|
60 |
|
61 #ifdef FF_HELP_TUTORIAL_MERGE |
|
62 _LIT(KTutorialFileExtn,".tut"); |
|
63 #endif // FF_HELP_TUTORIAL_MERGE |
|
64 #ifndef __SERIES60_30__ |
|
65 _LIT(KFileUrlPrefix,"file:///"); |
|
66 const TInt KFileUrlPrefixLength = 8; |
|
67 #else |
|
68 _LIT(KFileUrlPrefix,"file://"); |
|
69 const TInt KFileUrlPrefixLength = 7; |
|
70 #endif |
|
71 |
|
72 const TInt KHexPrefixLength = 2; |
|
73 const TInt KHexUidLength = 8; |
|
74 const TInt KOffsetFromUidToContext = 11; |
|
75 |
|
76 const TInt KHighestPriority = 1; |
|
77 const TInt KLowestPriority = 20000; |
|
78 |
|
79 const TInt KMaxContextName = 30; |
|
80 |
|
81 //xhtml folder name |
|
82 //#define qtn_app_xhtml_folder_text ":\\resource\\xhtml\\" |
|
83 _LIT(KXhtmlFolder,":\\resource\\xhtml\\"); |
|
84 |
|
85 //masterkeywords.xml file name |
|
86 _LIT(KMasterKywdFile,"keywords.xml"); |
|
87 |
|
88 //mastermeta.xml file name |
|
89 _LIT(KMasterMetaFile,"index.xml"); |
|
90 |
|
91 //redirect.xml file name |
|
92 _LIT(KRedirectFile,"redirect.xml"); |
|
93 |
|
94 //meta.xml file name |
|
95 //#define qtn_app_meta_file_text "meta.xml" |
|
96 _LIT(KMetaFile,"meta.xml"); |
|
97 |
|
98 //index.xml file name |
|
99 //#define qtn_app_index_file_text "index.xml" |
|
100 _LIT(KIndexFile,"index.xml"); |
|
101 |
|
102 _LIT(KRomAppUidFile, "appuid.dat"); |
|
103 //Application name tag in meta.xml |
|
104 //#define qtn_app_application_name_tag_text "title" |
|
105 _LIT(KAppNameTag,"title"); |
|
106 |
|
107 _LIT(KPriorityTag, "priority"); |
|
108 |
|
109 _LIT(KFromTag, "from"); |
|
110 |
|
111 _LIT(KToTag, "to"); |
|
112 |
|
113 // toc1 drive information in master index.xml |
|
114 // |
|
115 _LIT( KDriveInfo, "drive"); |
|
116 |
|
117 // toc1 tag in master index.xml |
|
118 // |
|
119 _LIT( KAppFeatureIDTag,"FeatureID" ); |
|
120 |
|
121 //toc2title tag in index.xml |
|
122 //#define qtn_app_toc2title_name_tag_text "navtitle" |
|
123 _LIT(KTOC2NameTag,"navtitle"); |
|
124 |
|
125 //html page tag in index.xml |
|
126 //#define qtn_app_htmlpage_name_tag_text "href" |
|
127 _LIT(KHtmlPageTag,"href"); |
|
128 |
|
129 //#define qtn_app_compress_name_tag_text "compressed" |
|
130 _LIT(KCompressedTag,"compressed"); |
|
131 |
|
132 //#define qtn_app_compress_name_tag_value_text "true" |
|
133 _LIT(KCompressedTagText,"true"); |
|
134 |
|
135 //#define qtn_app_searchview_toc1title_tag_text "text" |
|
136 _LIT(KSearchViewTOC1Tag,"text"); |
|
137 //#define qtn_app_searchview_toc2title_tag_text "target" |
|
138 _LIT(KSearchViewTOC2Tag,"target"); |
|
139 //#define qtn_app_kywd_file_text "keywords.xml" |
|
140 _LIT(KKeywordsFile,"keywords.xml"); |
|
141 |
|
142 _LIT(KMasterSearchTag,"keyword"); |
|
143 |
|
144 _LIT(KMasterCollectionTag,"collection"); |
|
145 |
|
146 _LIT(KMasterCollection_idTag,"id"); |
|
147 |
|
148 // Begin runtime indexing schema |
|
149 |
|
150 const TInt KMaxIndexEntryExclude = 200; |
|
151 |
|
152 const TInt KMaxUidLength = 10; |
|
153 |
|
154 // sis install path |
|
155 // |
|
156 //_LIT( KInstallPath, "?:\\data\\"); |
|
157 _LIT( KInstallPath, ":\\resource\\xhtml\\"); |
|
158 |
|
159 // initial file's name |
|
160 // |
|
161 _LIT( KInitFileName, "helpinit.txt" ); |
|
162 |
|
163 // Index.xml version and encoding information |
|
164 // |
|
165 _LIT8( KIndexXMLVesion, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" ); |
|
166 |
|
167 // Collection ends |
|
168 // |
|
169 _LIT8( KIndexCollectEnd, "</collections>" ); |
|
170 |
|
171 // Begin of collection entry |
|
172 // |
|
173 _LIT8( KIndexXMLEntryBegin, " <collection "); |
|
174 |
|
175 // End of collection entry |
|
176 // |
|
177 _LIT8( KIndexXMLEntryEnd, "\"></collection>\r\n"); |
|
178 |
|
179 // Prefix of quotation mark |
|
180 // |
|
181 _LIT8( KIndexQuoteBegin, "=\""); |
|
182 |
|
183 // appendix of quotation mark |
|
184 // |
|
185 _LIT8( KIndexQuoteEnd, "\" "); |
|
186 |
|
187 |
|
188 _LIT( KMasterMetaTmpFile,"tmp.xml" ); |
|