Skip to content

Commit

Permalink
Forgot to use fields =)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozDark committed Dec 23, 2024
1 parent 088896d commit c5e41d3
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions ooxml/POIXMLRelation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public POIXMLRelation(String type, String rel, String defaultName, Type cls
_relation = rel;
_defaultName = defaultName;
_cls = cls;
CreatePartWithParent=createPartWithParent;
CreatePart=createPart;
CreateInstance=createInstance;
_createPartWithParent=createPartWithParent;
_createPart=createPart;
_createInstance=createInstance;
}

/**
Expand Down Expand Up @@ -183,21 +183,39 @@ public Type RelationClass
*
* @return An instance of the document part of this relation
*/
public Func<POIXMLDocumentPart, PackagePart, POIXMLDocumentPart> CreatePartWithParent { get; }
public Func<POIXMLDocumentPart, PackagePart, POIXMLDocumentPart> CreatePartWithParent
{
get
{
return _createPartWithParent;
}
}

/**
* Function to construct an instance of this relation type with package part provided
*
* @return An instance of the document part of this relation
*/
public Func<PackagePart, POIXMLDocumentPart> CreatePart { get; }
public Func<PackagePart, POIXMLDocumentPart> CreatePart
{
get
{
return _createPart;
}
}

/**
* Function to construct an instance of this relation type
*
* @return An instance of the document part of this relation
*/
public Func<POIXMLDocumentPart> CreateInstance { get; }
public Func<POIXMLDocumentPart> CreateInstance
{
get
{
return _createInstance;
}
}
}
}

Expand Down

0 comments on commit c5e41d3

Please sign in to comment.