LowCodeSaveOptionsProviderOfAssembling class
LowCodeSaveOptionsProviderOfAssembling class
Implementation to provide save options which save split parts to files
and the path of resultant file are named as(it may contains directories):
LowCodeSaveOptionsProviderOfAssembling.path_header
+LowCodeSaveOptionsProviderOfAssembling.sheet_prefix
+SheetIndex(or SheetName)
+LowCodeSaveOptionsProviderOfAssembling.split_part_prefix
+SplitPartIndex+LowCodeSaveOptionsProviderOfAssembling.path_tail
.
Inheritance: LowCodeSaveOptionsProviderOfAssembling
The LowCodeSaveOptionsProviderOfAssembling type exposes the following members:
Constructors
Constructor | Description |
---|---|
__init__(self) | Constructs a new instance of LowCodeSaveOptionsProviderOfAssembling |
Properties
Property | Description |
---|---|
path_header | Header part(before added content of sheet and split part) of file path. |
path_tail | Tailing part(after sequence numbers) of file path. It should include extension of file name. |
use_sheet_name | Whether builds the file path with sheet name instead of sheet index. Default value is false. |
sheet_prefix | Prefix for the index of worksheet. |
split_part_prefix | Prefix for the index of split part. |
sheet_index_offset | Offset of sheet’s index between what used in file path and its actual value( SplitPartInfo.sheet_index ). |
split_part_index_offset | Offset of split part’s index between what used in file path and its actual value( SplitPartInfo.part_index ). |
build_path_with_sheet_always | Whether add sheet index or name to file path always. Default value is false, that is, when there is only one sheet, the sheet index(or name) and corresponding prefix will not be added to the file path. |
build_path_with_split_part_always | Whether add split part index to file path always. Default value is false, that is, when there is only one split part, the split part index and corresponding prefix will not be added to the file path. |
save_options_template | The template for creating instance of save options in LowCodeSaveOptionsProviderOfAssembling.get_save_options . |
Methods
Method | Description |
---|---|
get_save_options(self, part) | Gets the save options from which to get the output settings for currently split part. |
finish(self, part) |