/**
  * Initialize the object.
  *
  * @param importFonts true to import the fonts into the FontFactory, false do not load fonts
  *
  * @since 2.0.8
  */
 private void Init(bool importFonts)
 {
     fontMap = new Hashtable();
     if (this.rtfParser != null)
     {
         this.importHeader = this.rtfParser.GetImportManager();
     }
     this.SetToDefaults();
     if (importFonts)
     {
         ImportSystemFonts();
     }
 }
Example #2
0
 public override void SetParser(RtfParser parser)
 {
     this.rtfParser    = parser;
     this.importHeader = parser.GetImportManager();
     this.SetToDefaults();
 }
Example #3
0
 public RtfDestinationListTable(RtfParser parser) : base(parser)
 {
     this.importHeader = parser.GetImportManager();
 }
 public RtfDestinationStylesheetTable(RtfParser parser, String type) : base(parser)
 {
     this.importHeader = parser.GetImportManager();
     this.type         = type;
 }
Example #5
0
 public override void SetParser(RtfParser parser)
 {
     RtfParser     = parser;
     _importHeader = parser.GetImportManager();
 }
 public override void SetParser(RtfParser parser)
 {
     this.rtfParser = parser;
     colorMap = new Hashtable();
     this.colorNr = 0;
     this.importHeader = parser.GetImportManager();
     this.SetToDefaults();
 }
 /**
 * Constructs a new RtfColorTableParser.
 *
 * @param importHeader The RtfImportHeader to add the color mappings to.
 */
 public RtfDestinationColorTable(RtfParser parser)
     : base(parser)
 {
     colorMap = new Hashtable();
     this.colorNr = 0;
     this.importHeader = parser.GetImportManager();
     this.SetToDefaults();
 }