csxhelp/HelpEngine/inc/csxhconstants.h
changeset 0 1f04cf54edd8
child 5 d06b1526f62c
equal deleted inserted replaced
-1:000000000000 0:1f04cf54edd8
       
     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 
       
    74 //xhtml folder name
       
    75 //#define	qtn_app_xhtml_folder_text ":\\resource\\xhtml\\"
       
    76 _LIT(KXhtmlFolder,":\\resource\\xhtml\\"); 
       
    77 
       
    78 //masterkeywords.xml file name
       
    79 _LIT(KMasterKywdFile,"keywords.xml"); 
       
    80 
       
    81 //mastermeta.xml file name
       
    82 _LIT(KMasterMetaFile,"index.xml"); 
       
    83 
       
    84 //meta.xml file name
       
    85 //#define	qtn_app_meta_file_text "meta.xml"
       
    86 _LIT(KMetaFile,"meta.xml"); 
       
    87 
       
    88 //index.xml file name
       
    89 //#define	qtn_app_index_file_text	"index.xml"
       
    90 _LIT(KIndexFile,"index.xml"); 
       
    91 
       
    92 //Application name tag in meta.xml
       
    93 //#define	qtn_app_application_name_tag_text "title"
       
    94 _LIT(KAppNameTag,"title"); 
       
    95 
       
    96 // toc1 drive information in master index.xml
       
    97 //
       
    98 _LIT( KDriveInfo, "drive");
       
    99 
       
   100 // toc1 tag in master index.xml
       
   101 // 
       
   102 _LIT( KAppFeatureIDTag,"FeatureID" );
       
   103 
       
   104 //toc2title tag in index.xml
       
   105 //#define	qtn_app_toc2title_name_tag_text	"navtitle"
       
   106 _LIT(KTOC2NameTag,"navtitle"); 
       
   107 
       
   108 //html page tag in index.xml
       
   109 //#define	qtn_app_htmlpage_name_tag_text "href"
       
   110 _LIT(KHtmlPageTag,"href"); 
       
   111 
       
   112 //#define	qtn_app_compress_name_tag_text "compressed"
       
   113 _LIT(KCompressedTag,"compressed"); 
       
   114 
       
   115 //#define	qtn_app_compress_name_tag_value_text "true"
       
   116 _LIT(KCompressedTagText,"true"); 
       
   117 
       
   118 //#define qtn_app_searchview_toc1title_tag_text "text"
       
   119 _LIT(KSearchViewTOC1Tag,"text"); 
       
   120 //#define qtn_app_searchview_toc2title_tag_text "target"
       
   121 _LIT(KSearchViewTOC2Tag,"target"); 
       
   122 //#define qtn_app_kywd_file_text "keywords.xml"
       
   123 _LIT(KKeywordsFile,"keywords.xml"); 
       
   124 
       
   125 _LIT(KMasterSearchTag,"keyword"); 
       
   126 
       
   127 _LIT(KMasterCollectionTag,"collection"); 
       
   128 
       
   129 _LIT(KMasterCollection_idTag,"id"); 
       
   130 
       
   131 // Begin runtime indexing schema
       
   132 
       
   133 const TInt KMaxIndexEntryExclude = 200;
       
   134 
       
   135 const TInt KMaxUidLength = 10;
       
   136 
       
   137 // sis install path
       
   138 //
       
   139 //_LIT( KInstallPath, "?:\\data\\");
       
   140 _LIT( KInstallPath, ":\\resource\\xhtml\\");
       
   141 
       
   142 // initial file's name
       
   143 //
       
   144 _LIT( KInitFileName, "helpinit.txt" );
       
   145 
       
   146 // Index.xml version and encoding information
       
   147 //
       
   148 _LIT8( KIndexXMLVesion, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" );
       
   149 
       
   150 // Collection ends
       
   151 //
       
   152 _LIT8( KIndexCollectEnd, "</collections>" );
       
   153 
       
   154 // Begin of collection entry
       
   155 //
       
   156 _LIT8( KIndexXMLEntryBegin, "  <collection ");
       
   157 
       
   158 // End of collection entry
       
   159 //
       
   160 _LIT8( KIndexXMLEntryEnd, "\"></collection>\r\n");
       
   161 
       
   162 // Prefix of quotation mark
       
   163 //
       
   164 _LIT8( KIndexQuoteBegin, "=\"");
       
   165 
       
   166 // appendix of quotation mark
       
   167 //
       
   168 _LIT8( KIndexQuoteEnd, "\" ");
       
   169 
       
   170 
       
   171 _LIT( KMasterMetaTmpFile,"tmp.xml" );