private void handleImportMappings ( RtfImportMappings importMappings ) { Iterator it = importMappings . getFontMappings ( ) . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { String fontNr = ( String ) it . next ( ) ; this . importMgr . importFont ( fontNr , ( String ) importMappings . getFontMappings ( ) . get ( fontNr ) ) ; } it = importMappings . getColorMappings ( ) . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { String colorNr = ( String ) it . next ( ) ; this . importMgr . importColor ( colorNr , ( Color ) importMappings . getColorMappings ( ) . get ( colorNr ) ) ; } it = importMappings . getListMappings ( ) . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { String listNr = ( String ) it . next ( ) ; this . importMgr . importList ( listNr , ( String ) importMappings . getListMappings ( ) . get ( listNr ) ) ; } it = importMappings . getStylesheetListMappings ( ) . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { String stylesheetListNr = ( String ) it . next ( ) ; this . importMgr . importStylesheetList ( stylesheetListNr , ( List ) importMappings . getStylesheetListMappings ( ) . get ( stylesheetListNr ) ) ; } }
Imports the mappings defined in the RtfImportMappings into the RtfImportHeader of this RtfParser2 .