Skip to content

Commit 3f07702

Browse files
committed
2023-08-19 : There are 10 files that was modified in the project. Respectively are LICENSE, api_cells.go, configuration.go, and so on. There are 7 files that was added in the project. Respectively are odel_digital_signature.go, odel_image_or_print_options.go, odel_protect_workbook_requst.go, and so on.
1 parent 3c22f22 commit 3f07702

17 files changed

+449
-50
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Aspose Pty Ltd
3+
Copyright (c) 2023 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

api_cells.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28399,6 +28399,32 @@ func (a *CellsApiService) PostUnlock(data *PostUnlockRequest) (FilesResult, *htt
2839928399
return localVarReturnValue, localVarHttpResponse, err
2840028400
}
2840128401

28402+
func (a *CellsApiService) PostLock(data *PostLockRequest) (FilesResult, *http.Response, error) {
28403+
var (
28404+
localVarReturnValue FilesResult
28405+
)
28406+
28407+
r, err := data.CreateRequestData(a.client)
28408+
if err != nil {
28409+
return localVarReturnValue, nil, err
28410+
}
28411+
28412+
localVarHttpResponse, err := a.client.callAPI(r)
28413+
if err != nil || localVarHttpResponse == nil {
28414+
return localVarReturnValue, localVarHttpResponse, err
28415+
}
28416+
defer localVarHttpResponse.Body.Close()
28417+
if localVarHttpResponse.StatusCode >= 300 {
28418+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
28419+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
28420+
}
28421+
if err = json.NewDecoder(localVarHttpResponse.Body).Decode(&localVarReturnValue); err != nil {
28422+
return localVarReturnValue, localVarHttpResponse, err
28423+
}
28424+
28425+
return localVarReturnValue, localVarHttpResponse, err
28426+
}
28427+
2840228428
func (a *CellsApiService) PostProtect(data *PostProtectRequest) (FilesResult, *http.Response, error) {
2840328429
var (
2840428430
localVarReturnValue FilesResult

configuration.go

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1-
/*
2-
* Copyright (c) 2022 Aspose.Cells Cloud
3-
* Permission is hereby granted, free of charge, to any person obtaining a copy
4-
* of this software and associated documentation files (the "Software"), to deal
5-
* in the Software without restriction, including without limitation the rights
6-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7-
* copies of the Software, and to permit persons to whom the Software is
8-
* furnished to do so, subject to the following conditions:
9-
*
10-
* The above copyright notice and this permission notice shall be included in all
11-
* copies or substantial portions of the Software.
12-
*
13-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19-
* SOFTWARE.
20-
*
21-
*/
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="configuration.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
2225

2326
package asposecellscloud
2427

@@ -103,7 +106,7 @@ func NewConfiguration(clientId string, clientSecret string, basePath string, ver
103106
cfg.BasePath = cfg.BasePath[0 : len(cfg.BasePath)-5]
104107
cfg.Version = "v1.1"
105108
}
106-
109+
107110
if version != "" {
108111
cfg.Version = version
109112
}

model_digital_signature.go

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="DigitalSignature.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type DigitalSignature struct {
29+
30+
Comments string `json:"Comments,omitempty" xml:"Comments"`
31+
SignTime string `json:"SignTime,omitempty" xml:"SignTime"`
32+
Id string `json:"Id,omitempty" xml:"Id"`
33+
Password string `json:"Password,omitempty" xml:"Password"`
34+
Image []int64 `json:"Image,omitempty" xml:"Image"`
35+
ProviderId string `json:"ProviderId,omitempty" xml:"ProviderId"`
36+
IsValid bool `json:"IsValid,omitempty" xml:"IsValid"`
37+
XAdESType string `json:"XAdESType,omitempty" xml:"XAdESType"`
38+
}

model_html_save_options.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ type HtmlSaveOptions struct {
3636
SortNames bool `json:"SortNames,omitempty" xml:"SortNames"`
3737
ValidateMergedAreas bool `json:"ValidateMergedAreas,omitempty" xml:"ValidateMergedAreas"`
3838

39+
ExportPageHeaders bool `json:"ExportPageHeaders,omitempty" xml:"ExportPageHeaders"`
40+
ExportPageFooters bool `json:"ExportPageFooters,omitempty" xml:"ExportPageFooters"`
41+
ExportRowColumnHeadings bool `json:"ExportRowColumnHeadings,omitempty" xml:"ExportRowColumnHeadings"`
42+
ShowAllSheets bool `json:"ShowAllSheets,omitempty" xml:"ShowAllSheets"`
43+
ImageOptions *ImageOrPrintOptions `json:"ImageOptions,omitempty" xml:"ImageOptions"`
3944
SaveAsSingleFile bool `json:"SaveAsSingleFile,omitempty" xml:"SaveAsSingleFile"`
4045
ExportHiddenWorksheet bool `json:"ExportHiddenWorksheet,omitempty" xml:"ExportHiddenWorksheet"`
4146
ExportGridLines bool `json:"ExportGridLines,omitempty" xml:"ExportGridLines"`

model_image_or_print_options.go

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="ImageOrPrintOptions.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type ImageOrPrintOptions struct {
29+
30+
TextCrossType string `json:"TextCrossType,omitempty" xml:"TextCrossType"`
31+
GridlineType string `json:"GridlineType,omitempty" xml:"GridlineType"`
32+
OutputBlankPageWhenNothingToPrint bool `json:"OutputBlankPageWhenNothingToPrint,omitempty" xml:"OutputBlankPageWhenNothingToPrint"`
33+
CheckWorkbookDefaultFont bool `json:"CheckWorkbookDefaultFont,omitempty" xml:"CheckWorkbookDefaultFont"`
34+
DefaultFont string `json:"DefaultFont,omitempty" xml:"DefaultFont"`
35+
IsOptimized bool `json:"IsOptimized,omitempty" xml:"IsOptimized"`
36+
PageCount int64 `json:"PageCount,omitempty" xml:"PageCount"`
37+
PageIndex int64 `json:"PageIndex,omitempty" xml:"PageIndex"`
38+
IsFontSubstitutionCharGranularity bool `json:"IsFontSubstitutionCharGranularity,omitempty" xml:"IsFontSubstitutionCharGranularity"`
39+
Transparent bool `json:"Transparent,omitempty" xml:"Transparent"`
40+
OnlyArea bool `json:"OnlyArea,omitempty" xml:"OnlyArea"`
41+
SVGFitToViewPort bool `json:"SVGFitToViewPort,omitempty" xml:"SVGFitToViewPort"`
42+
EmbededImageNameInSvg string `json:"EmbededImageNameInSvg,omitempty" xml:"EmbededImageNameInSvg"`
43+
AllColumnsInOnePagePerSheet bool `json:"AllColumnsInOnePagePerSheet,omitempty" xml:"AllColumnsInOnePagePerSheet"`
44+
PrintWithStatusDialog bool `json:"PrintWithStatusDialog,omitempty" xml:"PrintWithStatusDialog"`
45+
HorizontalResolution int64 `json:"HorizontalResolution,omitempty" xml:"HorizontalResolution"`
46+
VerticalResolution int64 `json:"VerticalResolution,omitempty" xml:"VerticalResolution"`
47+
DefaultEditLanguage string `json:"DefaultEditLanguage,omitempty" xml:"DefaultEditLanguage"`
48+
TiffColorDepth string `json:"TiffColorDepth,omitempty" xml:"TiffColorDepth"`
49+
TiffCompression string `json:"TiffCompression,omitempty" xml:"TiffCompression"`
50+
PrintingPage string `json:"PrintingPage,omitempty" xml:"PrintingPage"`
51+
Quality int64 `json:"Quality,omitempty" xml:"Quality"`
52+
ImageType string `json:"ImageType,omitempty" xml:"ImageType"`
53+
OnePagePerSheet bool `json:"OnePagePerSheet,omitempty" xml:"OnePagePerSheet"`
54+
TiffBinarizationMethod string `json:"TiffBinarizationMethod,omitempty" xml:"TiffBinarizationMethod"`
55+
}

model_ooxml_save_options.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ type OoxmlSaveOptions struct {
3737
ValidateMergedAreas bool `json:"ValidateMergedAreas,omitempty" xml:"ValidateMergedAreas"`
3838

3939
ExportCellName bool `json:"ExportCellName,omitempty" xml:"ExportCellName"`
40+
UpdateZoom bool `json:"UpdateZoom,omitempty" xml:"UpdateZoom"`
41+
EnableZip64 bool `json:"EnableZip64,omitempty" xml:"EnableZip64"`
42+
EmbedOoxmlAsOleObject bool `json:"EmbedOoxmlAsOleObject,omitempty" xml:"EmbedOoxmlAsOleObject"`
43+
CompressionType string `json:"CompressionType,omitempty" xml:"CompressionType"`
4044
}

model_pdf_save_options.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ type PdfSaveOptions struct {
3636
SortNames bool `json:"SortNames,omitempty" xml:"SortNames"`
3737
ValidateMergedAreas bool `json:"ValidateMergedAreas,omitempty" xml:"ValidateMergedAreas"`
3838

39+
DisplayDocTitle bool `json:"DisplayDocTitle,omitempty" xml:"DisplayDocTitle"`
40+
ExportDocumentStructure bool `json:"ExportDocumentStructure,omitempty" xml:"ExportDocumentStructure"`
41+
EmfRenderSetting string `json:"EmfRenderSetting,omitempty" xml:"EmfRenderSetting"`
42+
CustomPropertiesExport string `json:"CustomPropertiesExport,omitempty" xml:"CustomPropertiesExport"`
43+
OptimizationType string `json:"OptimizationType,omitempty" xml:"OptimizationType"`
44+
Producer string `json:"Producer,omitempty" xml:"Producer"`
45+
PdfCompression string `json:"PdfCompression,omitempty" xml:"PdfCompression"`
46+
FontEncoding string `json:"FontEncoding,omitempty" xml:"FontEncoding"`
47+
Watermark *RenderingWatermark `json:"Watermark,omitempty" xml:"Watermark"`
3948
CalculateFormula bool `json:"CalculateFormula,omitempty" xml:"CalculateFormula"`
4049
CheckFontCompatibility bool `json:"CheckFontCompatibility,omitempty" xml:"CheckFontCompatibility"`
4150
Compliance string `json:"Compliance,omitempty" xml:"Compliance"`

model_protect_workbook_requst.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="ProtectWorkbookRequst.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type ProtectWorkbookRequst struct {
29+
30+
AwaysOpenOnlyReady bool `json:"AwaysOpenOnlyReady,omitempty" xml:"AwaysOpenOnlyReady"`
31+
EncryptWithPassword string `json:"EncryptWithPassword,omitempty" xml:"EncryptWithPassword"`
32+
ProtectCurrentSheet *Protection `json:"ProtectCurrentSheet,omitempty" xml:"ProtectCurrentSheet"`
33+
ProtectWorkbookStructure string `json:"ProtectWorkbookStructure,omitempty" xml:"ProtectWorkbookStructure"`
34+
DigitalSignature *DigitalSignature `json:"DigitalSignature,omitempty" xml:"DigitalSignature"`
35+
MarkAsFinal bool `json:"MarkAsFinal,omitempty" xml:"MarkAsFinal"`
36+
}

model_protection.go

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="Protection.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type Protection struct {
29+
30+
AllowDeletingColumn bool `json:"AllowDeletingColumn,omitempty" xml:"AllowDeletingColumn"`
31+
AllowDeletingRow bool `json:"AllowDeletingRow,omitempty" xml:"AllowDeletingRow"`
32+
AllowFiltering bool `json:"AllowFiltering,omitempty" xml:"AllowFiltering"`
33+
AllowFormattingCell bool `json:"AllowFormattingCell,omitempty" xml:"AllowFormattingCell"`
34+
AllowFormattingColumn bool `json:"AllowFormattingColumn,omitempty" xml:"AllowFormattingColumn"`
35+
AllowFormattingRow bool `json:"AllowFormattingRow,omitempty" xml:"AllowFormattingRow"`
36+
AllowInsertingColumn bool `json:"AllowInsertingColumn,omitempty" xml:"AllowInsertingColumn"`
37+
AllowInsertingHyperlink bool `json:"AllowInsertingHyperlink,omitempty" xml:"AllowInsertingHyperlink"`
38+
AllowInsertingRow bool `json:"AllowInsertingRow,omitempty" xml:"AllowInsertingRow"`
39+
AllowSorting bool `json:"AllowSorting,omitempty" xml:"AllowSorting"`
40+
AllowUsingPivotTable bool `json:"AllowUsingPivotTable,omitempty" xml:"AllowUsingPivotTable"`
41+
AllowEditingContent bool `json:"AllowEditingContent,omitempty" xml:"AllowEditingContent"`
42+
AllowEditingObject bool `json:"AllowEditingObject,omitempty" xml:"AllowEditingObject"`
43+
AllowEditingScenario bool `json:"AllowEditingScenario,omitempty" xml:"AllowEditingScenario"`
44+
Password string `json:"Password,omitempty" xml:"Password"`
45+
AllowSelectingLockedCell bool `json:"AllowSelectingLockedCell,omitempty" xml:"AllowSelectingLockedCell"`
46+
AllowSelectingUnlockedCell bool `json:"AllowSelectingUnlockedCell,omitempty" xml:"AllowSelectingUnlockedCell"`
47+
}

0 commit comments

Comments
 (0)