/** * Imports the mappings defined in the RtfImportMappings into the * RtfImportHeader of this RtfParser2. * * @param importMappings * The RtfImportMappings to import. */ private void HandleImportMappings(RtfImportMappings importMappings) { foreach (String fontNr in importMappings.GetFontMappings().Keys) { this.importMgr.ImportFont(fontNr, (String) importMappings.GetFontMappings()[fontNr]); } foreach (String colorNr in importMappings.GetColorMappings().Keys) { this.importMgr.ImportColor(colorNr, (Color) importMappings.GetColorMappings()[colorNr]); } foreach (String listNr in importMappings.GetListMappings().Keys) { this.importMgr.ImportList(listNr, (String)importMappings.GetListMappings()[listNr]); } foreach (String stylesheetListNr in importMappings.GetStylesheetListMappings().Keys) { this.importMgr.ImportStylesheetList(stylesheetListNr, (Legacy.Text.List) importMappings.GetStylesheetListMappings()[stylesheetListNr]); } }