Skip to content

Commit cb768a1

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents c93e8b2 + 984daf9 commit cb768a1

File tree

8 files changed

+379
-3
lines changed

8 files changed

+379
-3
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ This repository contains Aspose.Words Cloud SDK for Swift source code. This SDK
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 25.5
17+
18+
- Added data models support for classes 'CommentRangeStart', 'CommentRangeEnd'.
19+
- Added data models support for classes 'FormFieldCheckboxLink', 'FormFieldDropDownLink', 'FormFieldTextInputLink'.
20+
21+
1622
## Enhancements in Version 25.4
1723

1824
- Added 'AttachmentsEmbeddingMode' property for PdfSaveOptionsData class.
@@ -385,7 +391,7 @@ Add link to this repository as dependency to your Package.swift:
385391

386392
dependencies: [
387393
// Dependencies declare other packages that this package depends on.
388-
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git", from: "25.4")
394+
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git", from: "25.5")
389395
],
390396
targets: [
391397
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -403,7 +409,7 @@ targets: [
403409
Add link to git repository as dependency to your Podfile:
404410

405411
```ruby
406-
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '25.4'
412+
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '25.5'
407413
```
408414

409415
## Getting Started

Sources/AsposeWordsCloud/Api/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,6 @@ public class Configuration : Codable {
187187

188188
// Returns SDK version for using in statistics headers
189189
public func getSdkVersion() -> String {
190-
return "25.4";
190+
return "25.5";
191191
}
192192
}

Sources/AsposeWordsCloud/Api/ObjectSerializer.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class ObjectSerializer {
6767
"Comment, _": Comment.self,
6868
"CommentInsert, _": CommentInsert.self,
6969
"CommentLink, _": CommentLink.self,
70+
"CommentRangeEnd, _": CommentRangeEnd.self,
71+
"CommentRangeStart, _": CommentRangeStart.self,
7072
"CommentResponse, _": CommentResponse.self,
7173
"CommentsCollection, _": CommentsCollection.self,
7274
"CommentsResponse, _": CommentsResponse.self,
@@ -143,11 +145,14 @@ class ObjectSerializer {
143145
"FootnotesStatData, _": FootnotesStatData.self,
144146
"FootnoteUpdate, _": FootnoteUpdate.self,
145147
"FormFieldCheckbox, _": FormFieldCheckbox.self,
148+
"FormFieldCheckboxLink, _": FormFieldCheckboxLink.self,
146149
"FormFieldCollection, _": FormFieldCollection.self,
147150
"FormFieldDropDown, _": FormFieldDropDown.self,
151+
"FormFieldDropDownLink, _": FormFieldDropDownLink.self,
148152
"FormFieldResponse, _": FormFieldResponse.self,
149153
"FormFieldsResponse, _": FormFieldsResponse.self,
150154
"FormFieldTextInput, _": FormFieldTextInput.self,
155+
"FormFieldTextInputLink, _": FormFieldTextInputLink.self,
151156
"GifSaveOptionsData, _": GifSaveOptionsData.self,
152157
"HeaderFooter, _": HeaderFooter.self,
153158
"HeaderFooterLink, _": HeaderFooterLink.self,
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="CommentRangeEnd.swift">
4+
* Copyright (c) 2025 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
import Foundation
29+
30+
// Comment range end link.
31+
public class CommentRangeEnd : NodeLink {
32+
// Field of commentLink. Comment range end link.
33+
private var _commentLink : CommentLink? = nil;
34+
35+
public var commentLink : CommentLink? {
36+
get {
37+
return self._commentLink;
38+
}
39+
set {
40+
self._commentLink = newValue;
41+
}
42+
}
43+
44+
private enum CodingKeys: String, CodingKey {
45+
case commentLink = "CommentLink";
46+
case invalidCodingKey;
47+
}
48+
49+
public override init() {
50+
super.init();
51+
}
52+
53+
public required init(from json: [String: Any]) throws {
54+
try super.init(from: json);
55+
if let raw_commentLink = json["CommentLink"] as? [String: Any] {
56+
self.commentLink = try ObjectSerializer.deserialize(type: CommentLink.self, from: raw_commentLink);
57+
}
58+
59+
}
60+
61+
public required init(from decoder: Decoder) throws {
62+
try super.init(from: decoder);
63+
let container = try decoder.container(keyedBy: CodingKeys.self);
64+
self.commentLink = try container.decodeIfPresent(CommentLink.self, forKey: .commentLink);
65+
}
66+
67+
public override func encode(to encoder: Encoder) throws {
68+
try super.encode(to: encoder);
69+
var container = encoder.container(keyedBy: CodingKeys.self);
70+
if (self.commentLink != nil) {
71+
try container.encode(self.commentLink, forKey: .commentLink);
72+
}
73+
}
74+
75+
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
76+
}
77+
78+
public override func validate() throws {
79+
try super.validate();
80+
try self.commentLink?.validate();
81+
82+
}
83+
84+
// Sets commentLink. Gets or sets the link to comment.
85+
public func setCommentLink(commentLink : CommentLink?) -> CommentRangeEnd {
86+
self.commentLink = commentLink;
87+
return self;
88+
}
89+
90+
// Gets commentLink. Gets or sets the link to comment.
91+
public func getCommentLink() -> CommentLink? {
92+
return self.commentLink;
93+
}
94+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="CommentRangeStart.swift">
4+
* Copyright (c) 2025 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
import Foundation
29+
30+
// Comment range start link.
31+
public class CommentRangeStart : NodeLink {
32+
// Field of commentLink. Comment range start link.
33+
private var _commentLink : CommentLink? = nil;
34+
35+
public var commentLink : CommentLink? {
36+
get {
37+
return self._commentLink;
38+
}
39+
set {
40+
self._commentLink = newValue;
41+
}
42+
}
43+
44+
private enum CodingKeys: String, CodingKey {
45+
case commentLink = "CommentLink";
46+
case invalidCodingKey;
47+
}
48+
49+
public override init() {
50+
super.init();
51+
}
52+
53+
public required init(from json: [String: Any]) throws {
54+
try super.init(from: json);
55+
if let raw_commentLink = json["CommentLink"] as? [String: Any] {
56+
self.commentLink = try ObjectSerializer.deserialize(type: CommentLink.self, from: raw_commentLink);
57+
}
58+
59+
}
60+
61+
public required init(from decoder: Decoder) throws {
62+
try super.init(from: decoder);
63+
let container = try decoder.container(keyedBy: CodingKeys.self);
64+
self.commentLink = try container.decodeIfPresent(CommentLink.self, forKey: .commentLink);
65+
}
66+
67+
public override func encode(to encoder: Encoder) throws {
68+
try super.encode(to: encoder);
69+
var container = encoder.container(keyedBy: CodingKeys.self);
70+
if (self.commentLink != nil) {
71+
try container.encode(self.commentLink, forKey: .commentLink);
72+
}
73+
}
74+
75+
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
76+
}
77+
78+
public override func validate() throws {
79+
try super.validate();
80+
try self.commentLink?.validate();
81+
82+
}
83+
84+
// Sets commentLink. Gets or sets the link to comment.
85+
public func setCommentLink(commentLink : CommentLink?) -> CommentRangeStart {
86+
self.commentLink = commentLink;
87+
return self;
88+
}
89+
90+
// Gets commentLink. Gets or sets the link to comment.
91+
public func getCommentLink() -> CommentLink? {
92+
return self.commentLink;
93+
}
94+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="FormFieldCheckboxLink.swift">
4+
* Copyright (c) 2025 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
import Foundation
29+
30+
// Link to FormField checkbox element.
31+
public class FormFieldCheckboxLink : NodeLink {
32+
private enum CodingKeys: String, CodingKey {
33+
case invalidCodingKey;
34+
}
35+
36+
public override init() {
37+
super.init();
38+
}
39+
40+
public required init(from json: [String: Any]) throws {
41+
try super.init(from: json);
42+
}
43+
44+
public required init(from decoder: Decoder) throws {
45+
try super.init(from: decoder);
46+
}
47+
48+
public override func encode(to encoder: Encoder) throws {
49+
try super.encode(to: encoder);
50+
}
51+
52+
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
53+
}
54+
55+
public override func validate() throws {
56+
try super.validate();
57+
}
58+
59+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="FormFieldDropDownLink.swift">
4+
* Copyright (c) 2025 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
import Foundation
29+
30+
// Link to FormField DropDown element.
31+
public class FormFieldDropDownLink : NodeLink {
32+
private enum CodingKeys: String, CodingKey {
33+
case invalidCodingKey;
34+
}
35+
36+
public override init() {
37+
super.init();
38+
}
39+
40+
public required init(from json: [String: Any]) throws {
41+
try super.init(from: json);
42+
}
43+
44+
public required init(from decoder: Decoder) throws {
45+
try super.init(from: decoder);
46+
}
47+
48+
public override func encode(to encoder: Encoder) throws {
49+
try super.encode(to: encoder);
50+
}
51+
52+
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
53+
}
54+
55+
public override func validate() throws {
56+
try super.validate();
57+
}
58+
59+
}

0 commit comments

Comments
 (0)