Ejemplo n.º 1
0
 /**
  * Imports the mappings defined in the RtfImportMappings into the
  * RtfImportHeader of this RtfParser.
  *
  * @param importMappings The RtfImportMappings to import.
  */
 private void HandleImportMappings(RtfImportMappings importMappings)
 {
     foreach (String fontNr in importMappings.GetFontMappings().Keys)
     {
         this.importHeader.ImportFont(fontNr, (String)importMappings.GetFontMappings()[fontNr]);
     }
     foreach (String colorNr in importMappings.GetColorMappings().Keys)
     {
         this.importHeader.ImportColor(colorNr, (Color)importMappings.GetColorMappings()[colorNr]);
     }
 }
Ejemplo n.º 2
0
 /**
 * Imports the mappings defined in the RtfImportMappings into the
 * RtfImportHeader of this RtfParser.
 *
 * @param importMappings The RtfImportMappings to import.
 */
 private void HandleImportMappings(RtfImportMappings importMappings)
 {
     foreach (String fontNr in importMappings.GetFontMappings().Keys) {
         this.importHeader.ImportFont(fontNr, (String) importMappings.GetFontMappings()[fontNr]);
     }
     foreach (String colorNr in importMappings.GetColorMappings().Keys) {
         this.importHeader.ImportColor(colorNr, (Color) importMappings.GetColorMappings()[colorNr]);
     }
 }