Gsf.OutfileOpenPkg¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | Gsf.Outfile (2), Gsf.Output (18), GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new(sink) | 
| add_extern_rel(target, content_type) | |
| relate(parent, type) | |
| set_content_type(content_type) | |
| set_sink(sink) | 
Virtual Methods¶
| Inherited: | Gsf.Output (3), GObject.Object (7) | 
|---|
Properties¶
| Inherited: | Gsf.Output (6) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| content-type | str | r/w/co | The content type stored in the root [Content_Types].xml file | 
| is-dir | bool | r/w/co | Can the outfile have children | 
| sink | Gsf.Outfile | r/w/co | The Gsf.Outputthat stores the Open Package content | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Fields¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Gsf.OutfileOpenPkg(**kwargs)¶
- Bases: - Gsf.Outfile- Abstract: - No - 
classmethod new(sink)¶
- Parameters: - sink ( - Gsf.Outfile) –- Gsf.Outfile- Returns: - a - Gsf.Outfilethat the caller is responsible for.- Return type: - Gsf.Outfile- Convenience routine to create a - Gsf.OutfileOpenPkginside sink.
 - 
add_extern_rel(target, content_type)¶
- Parameters: - Returns: - The id of the relation. The string is managed by the parent and should not be changed or freed by the caller. - Return type: - Add an external relation to self. 
 - 
relate(parent, type)¶
- Parameters: - parent (Gsf.OutfileOpenPkg) –Gsf.OutfileOpenPkg
- type (str) – target type
 - Returns: - the relID which the caller does not own but will live as long as parent. - Return type: - Create a relationship between self and parent of type. 
- parent (
 - 
set_sink(sink)¶
- Parameters: - sink ( - Gsf.Output) –- Gsf.Output- Assigns a - Gsf.Output(sink) to store the package into.
 
- 
classmethod 
Property Details¶
- 
Gsf.OutfileOpenPkg.props.content_type¶
- Name: - content-type- Type: - str- Default Value: - ''- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The content type stored in the root [Content_Types].xml file 
- 
Gsf.OutfileOpenPkg.props.is_dir¶
- Name: - is-dir- Type: - bool- Default Value: - False- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- Can the outfile have children 
- 
Gsf.OutfileOpenPkg.props.sink¶
- Name: - sink- Type: - Gsf.Outfile- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The - Gsf.Outputthat stores the Open Package content