Ejemplo n.º 1
0
 /**
  * Add a new child POIXMLDocumentPart
  *
  * @param pr the relationship of the child
  * @param part the child to add
  */
 private void AddRelation(PackageRelationship pr, POIXMLDocumentPart part)
 {
     if (relations.ContainsKey(pr.Id))
     {
         relations[pr.Id] = new RelationPart(pr, part);
     }
     else
     {
         relations.Add(pr.Id, new RelationPart(pr, part));
     }
     part.IncrementRelationCounter();
 }
Ejemplo n.º 2
0
 /**
  * Add a new child POIXMLDocumentPart
  *
  * @param part the child to add
  */
 public void AddRelation(String id, POIXMLDocumentPart part)
 {
     relations[id] = part;
     part.IncrementRelationCounter();
 }
Ejemplo n.º 3
0
 /**
  * Add a new child POIXMLDocumentPart
  *
  * @param part the child to add
  */
 public void AddRelation(String id, POIXMLDocumentPart part)
 {
     relations[id] = part;
     part.IncrementRelationCounter();
 }