csxhelp/HelpEngine/src/CSXHHTMLContentParser.cpp
changeset 1 27f5851bd5a5
parent 0 1f04cf54edd8
child 5 d06b1526f62c
equal deleted inserted replaced
0:1f04cf54edd8 1:27f5851bd5a5
   239     iIndexing->AppendLocale( masterFile );
   239     iIndexing->AppendLocale( masterFile );
   240     masterFile.Append( KMasterMetaFile );
   240     masterFile.Append( KMasterMetaFile );
   241     if(BaflUtils::FileExists( FileSession,masterFile ) )
   241     if(BaflUtils::FileExists( FileSession,masterFile ) )
   242         {
   242         {
   243 #ifdef _DEBUG
   243 #ifdef _DEBUG
   244         RDebug::Print(_L("index exist begin to parse!    %c"), aDrive );
   244         RDebug::Print(_L("index exist begin to parse!    %c"), TUint( aDrive ) );
   245 #endif
   245 #endif
   246         CCSXHXMLParseHandler_MasterMetaFile* masterMetaHandler = 
   246         CCSXHXMLParseHandler_MasterMetaFile* masterMetaHandler = 
   247         CCSXHXMLParseHandler_MasterMetaFile::NewL(iCoeEnv);
   247         CCSXHXMLParseHandler_MasterMetaFile::NewL(iCoeEnv);
   248         masterMetaHandler->SetDataBasePtr(aDataBase);
   248         masterMetaHandler->SetDataBasePtr(aDataBase);
   249         masterMetaHandler->SetHtmlContentParserPtr(this);
   249         masterMetaHandler->SetHtmlContentParserPtr(this);
   354             	{            
   354             	{            
   355             	if(!IsAppUIdPresentAlready(entry.iName))
   355             	if(!IsAppUIdPresentAlready(entry.iName))
   356 					{
   356 					{
   357 		            CCSXHHtmlTOC1* CategoryObj = CCSXHHtmlTOC1::NewL(
   357 		            CCSXHHtmlTOC1* CategoryObj = CCSXHHtmlTOC1::NewL(
   358 		                                        XMLParser->GetApplicationName(),entry.iName,aDrive);
   358 		                                        XMLParser->GetApplicationName(),entry.iName,aDrive);
       
   359 		            if ( !CategoryObj )
       
   360 		                {
       
   361 		                continue;
       
   362 		                }
   359 		            iIndexing->RuntimeGenerateIndexL( *CategoryObj, XMLParser->GetFeatureIds() );
   363 		            iIndexing->RuntimeGenerateIndexL( *CategoryObj, XMLParser->GetFeatureIds() );
   360 		            if(CategoryObj && aDataBase->GetMainTopics()->InsertChild(CategoryObj,EFalse))
   364 		            if(CategoryObj && aDataBase->GetMainTopics()->InsertChild(CategoryObj,EFalse))
   361 		            	iHtmlTOC1List.Append(CategoryObj);//Keep a local copy*/ 
   365 		            	iHtmlTOC1List.Append(CategoryObj);//Keep a local copy*/ 
   362 					else
   366 					else
   363 						{
   367 						{