Skip to content

Commit f0d59ae

Browse files
Update to v22.2
1 parent 7f37ea8 commit f0d59ae

27 files changed

+3220
-720
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Android REST API to Process Presentation in Cloud
44
This repository contains Aspose.Slides Cloud SDK for Java source code. This SDK allows you to [process & manipulate PPT, PPTX, ODP, OTP](https://products.aspose.cloud/slides/android) using Aspose.slides Cloud REST APIs in your android applications.
55

6+
67
You may want to check out Aspose free [PPT to PDF](https://products.aspose.app/slides/conversion), [PPT to Word](https://products.aspose.app/slides/conversion/ppt-to-word), and [PPT to JPG](https://products.aspose.app/slides/conversion/ppt-to-jpg) converters because they are live implementations of popular conversion processes.
78

89
## Presentation Processing Features
@@ -18,13 +19,24 @@ You may want to check out Aspose free [PPT to PDF](https://products.aspose.app/s
1819

1920
**Microsoft PowerPoint:** PPT, PPTX, PPS, PPSX, PPTM, PPSM, POTX, POTM
2021
**OpenOffice:** ODP, OTP, FODP
22+
**Other**: PDF, PDF/A
2123

2224
## Save Presentation As
2325

24-
**Fixed Layout:** PDF, PDF/A, XPS
25-
**Images:** JPEG, PNG, BMP, TIFF, SVG
26+
**Fixed Layout:** XPS
27+
**Images:** JPEG, PNG, BMP, TIFF, GIF, SVG
2628
**Web:** HTML/HTML5
27-
**Other:** SWF (export whole presentations)
29+
**Other:** MPEG4, SWF (export whole presentations)
30+
31+
## Enhancements in Version 22.2
32+
* Added **Mpeg4** to the list of allowed values for **ExportFormat** type. You can now convert presentations to video.
33+
* New **HighlightShapeText** and **HighlightShapeRegex** methods.
34+
* New **DeleteUnusedLayoutSlides** and **DeleteUnusedLayoutSlides** methods.
35+
* New **ZoomFrame** and **ZoomObject** classes with a number of subclasses.
36+
* Added **TextFrameFormat** property to **Shape** class to support WordArt.
37+
* Added **XYSeries** class as a supercalss for **ScatterSeries** and **BubbleSeries** methods.
38+
* Added **None** to the list of allowed values for **TimeUnitType** enum type.
39+
* **Level** property of **Category** class is deprecated and will be removed after v22.4.
2840

2941
## Enhancements in Version 22.1
3042
* New **MathParagraph** property of **Portion** class allows to get and set math formulas. A set of **MathElement** subclasses allows to specify complex mathematical expressions.
@@ -61,7 +73,7 @@ allprojects {
6173
6274
dependencies {
6375
...
64-
implementation 'com.aspose:aspose-slides-cloud-android:21.9.0'
76+
implementation 'com.aspose:aspose-slides-cloud-android:22.2.0'
6577
implementation 'com.google.code.gson:gson:2.8.1'
6678
implementation 'com.squareup.okhttp:okhttp:2.7.5'
6779
implementation 'com.squareup.okhttp:logging-interceptor:2.7.5'

TestData/test.pptx

1 KB
Binary file not shown.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ allprojects {
4141
}
4242

4343
jar {
44-
baseName 'aspose-slides-cloud-android-22.1.0'
44+
baseName 'aspose-slides-cloud-android-22.2.0'
4545
}

src/main/java/com/aspose/slides/JSON.java

Lines changed: 92 additions & 603 deletions
Large diffs are not rendered by default.

src/main/java/com/aspose/slides/RuntimeTypeAdapterFactory.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ public static <T> RuntimeTypeAdapterFactory<T> of(Class<T> baseType, String type
162162
* typeFieldName} as the type field name. Type field names are case sensitive.
163163
*/
164164
public static <T> RuntimeTypeAdapterFactory<T> of(Class<T> baseType, String typeFieldName) {
165-
return new RuntimeTypeAdapterFactory<T>(baseType, typeFieldName, false);
165+
return new RuntimeTypeAdapterFactory<T>(baseType, typeFieldName, true);
166166
}
167167

168168
/**
169169
* Creates a new runtime type adapter for {@code baseType} using {@code "type"} as
170170
* the type field name.
171171
*/
172172
public static <T> RuntimeTypeAdapterFactory<T> of(Class<T> baseType) {
173-
return new RuntimeTypeAdapterFactory<T>(baseType, "type", false);
173+
return new RuntimeTypeAdapterFactory<T>(baseType, "type", true);
174174
}
175175

176176
/**
@@ -207,7 +207,6 @@ public <R> TypeAdapter<R> create(Gson gson, TypeToken<R> type) {
207207
if (type.getRawType() != baseType) {
208208
return null;
209209
}
210-
211210
final Map<String, TypeAdapter<?>> labelToDelegate
212211
= new LinkedHashMap<String, TypeAdapter<?>>();
213212
final Map<Class<?>, TypeAdapter<?>> subtypeToDelegate

src/main/java/com/aspose/slides/api/SlidesApi.java

Lines changed: 604 additions & 0 deletions
Large diffs are not rendered by default.

src/main/java/com/aspose/slides/model/Axis.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ public DisplayUnitEnum read(final JsonReader jsonReader) throws IOException {
181181
*/
182182
@JsonAdapter(BaseUnitScaleEnum.Adapter.class)
183183
public enum BaseUnitScaleEnum {
184+
NONE("None"),
185+
184186
DAYS("Days"),
185187

186188
MONTHS("Months"),
@@ -239,6 +241,8 @@ public BaseUnitScaleEnum read(final JsonReader jsonReader) throws IOException {
239241
*/
240242
@JsonAdapter(MajorUnitScaleEnum.Adapter.class)
241243
public enum MajorUnitScaleEnum {
244+
NONE("None"),
245+
242246
DAYS("Days"),
243247

244248
MONTHS("Months"),
@@ -351,6 +355,8 @@ public MajorTickMarkEnum read(final JsonReader jsonReader) throws IOException {
351355
*/
352356
@JsonAdapter(MinorUnitScaleEnum.Adapter.class)
353357
public enum MinorUnitScaleEnum {
358+
NONE("None"),
359+
354360
DAYS("Days"),
355361

356362
MONTHS("Months"),

src/main/java/com/aspose/slides/model/BubbleSeries.java

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
import com.aspose.slides.model.EffectFormat;
3333
import com.aspose.slides.model.FillFormat;
3434
import com.aspose.slides.model.LineFormat;
35-
import com.aspose.slides.model.Series;
3635
import com.aspose.slides.model.SeriesMarker;
36+
import com.aspose.slides.model.XYSeries;
3737
import com.google.gson.TypeAdapter;
3838
import com.google.gson.annotations.JsonAdapter;
3939
import com.google.gson.annotations.SerializedName;
@@ -52,10 +52,13 @@
5252
* A bubble series.
5353
*/
5454
@ApiModel(description = "A bubble series.")
55-
public class BubbleSeries extends Series {
55+
public class BubbleSeries extends XYSeries {
5656
@SerializedName(value = "dataPoints", alternate = { "DataPoints" })
5757
private List<BubbleChartDataPoint> dataPoints = null;
5858

59+
@SerializedName(value = "numberFormatOfBubbleSizes", alternate = { "NumberFormatOfBubbleSizes" })
60+
private String numberFormatOfBubbleSizes;
61+
5962

6063
public BubbleSeries() {
6164
super();
@@ -88,6 +91,24 @@ public void setDataPoints(List<BubbleChartDataPoint> dataPoints) {
8891
this.dataPoints = dataPoints;
8992
}
9093

94+
public BubbleSeries numberFormatOfBubbleSizes(String numberFormatOfBubbleSizes) {
95+
this.numberFormatOfBubbleSizes = numberFormatOfBubbleSizes;
96+
return this;
97+
}
98+
99+
/**
100+
* The number format for the series bubble sizes.
101+
* @return numberFormatOfBubbleSizes
102+
**/
103+
@ApiModelProperty(value = "The number format for the series bubble sizes.")
104+
public String getNumberFormatOfBubbleSizes() {
105+
return numberFormatOfBubbleSizes;
106+
}
107+
108+
public void setNumberFormatOfBubbleSizes(String numberFormatOfBubbleSizes) {
109+
this.numberFormatOfBubbleSizes = numberFormatOfBubbleSizes;
110+
}
111+
91112

92113
@Override
93114
public boolean equals(java.lang.Object o) {
@@ -98,12 +119,12 @@ public boolean equals(java.lang.Object o) {
98119
return false;
99120
}
100121
BubbleSeries bubbleSeries = (BubbleSeries) o;
101-
return true && Objects.equals(this.dataPoints, bubbleSeries.dataPoints) && super.equals(o);
122+
return true && Objects.equals(this.dataPoints, bubbleSeries.dataPoints) && Objects.equals(this.numberFormatOfBubbleSizes, bubbleSeries.numberFormatOfBubbleSizes) && super.equals(o);
102123
}
103124

104125
@Override
105126
public int hashCode() {
106-
return Objects.hash(dataPoints, super.hashCode());
127+
return Objects.hash(dataPoints, numberFormatOfBubbleSizes, super.hashCode());
107128
}
108129

109130

@@ -113,6 +134,7 @@ public String toString() {
113134
sb.append("class BubbleSeries {\n");
114135
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
115136
sb.append(" dataPoints: ").append(toIndentedString(dataPoints)).append("\n");
137+
sb.append(" numberFormatOfBubbleSizes: ").append(toIndentedString(numberFormatOfBubbleSizes)).append("\n");
116138
sb.append("}");
117139
return sb.toString();
118140
}

src/main/java/com/aspose/slides/model/ExportFormat.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ public enum ExportFormat {
9292

9393
FODP("Fodp"),
9494

95-
XAML("Xaml");
95+
XAML("Xaml"),
96+
97+
MPEG4("Mpeg4");
9698

9799
private String value;
98100

src/main/java/com/aspose/slides/model/OneValueSeries.java

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ public class OneValueSeries extends Series {
5656
@SerializedName(value = "dataPoints", alternate = { "DataPoints" })
5757
private List<OneValueChartDataPoint> dataPoints = null;
5858

59+
@SerializedName(value = "numberFormatOfValues", alternate = { "NumberFormatOfValues" })
60+
private String numberFormatOfValues;
61+
5962

6063
public OneValueSeries() {
6164
super();
@@ -88,6 +91,24 @@ public void setDataPoints(List<OneValueChartDataPoint> dataPoints) {
8891
this.dataPoints = dataPoints;
8992
}
9093

94+
public OneValueSeries numberFormatOfValues(String numberFormatOfValues) {
95+
this.numberFormatOfValues = numberFormatOfValues;
96+
return this;
97+
}
98+
99+
/**
100+
* The number format for the series values.
101+
* @return numberFormatOfValues
102+
**/
103+
@ApiModelProperty(value = "The number format for the series values.")
104+
public String getNumberFormatOfValues() {
105+
return numberFormatOfValues;
106+
}
107+
108+
public void setNumberFormatOfValues(String numberFormatOfValues) {
109+
this.numberFormatOfValues = numberFormatOfValues;
110+
}
111+
91112

92113
@Override
93114
public boolean equals(java.lang.Object o) {
@@ -98,12 +119,12 @@ public boolean equals(java.lang.Object o) {
98119
return false;
99120
}
100121
OneValueSeries oneValueSeries = (OneValueSeries) o;
101-
return true && Objects.equals(this.dataPoints, oneValueSeries.dataPoints) && super.equals(o);
122+
return true && Objects.equals(this.dataPoints, oneValueSeries.dataPoints) && Objects.equals(this.numberFormatOfValues, oneValueSeries.numberFormatOfValues) && super.equals(o);
102123
}
103124

104125
@Override
105126
public int hashCode() {
106-
return Objects.hash(dataPoints, super.hashCode());
127+
return Objects.hash(dataPoints, numberFormatOfValues, super.hashCode());
107128
}
108129

109130

@@ -113,6 +134,7 @@ public String toString() {
113134
sb.append("class OneValueSeries {\n");
114135
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
115136
sb.append(" dataPoints: ").append(toIndentedString(dataPoints)).append("\n");
137+
sb.append(" numberFormatOfValues: ").append(toIndentedString(numberFormatOfValues)).append("\n");
116138
sb.append("}");
117139
return sb.toString();
118140
}

src/main/java/com/aspose/slides/model/Save.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ public enum FormatEnum {
9999

100100
FODP("Fodp"),
101101

102-
XAML("Xaml");
102+
XAML("Xaml"),
103+
104+
MPEG4("Mpeg4");
103105

104106
private String value;
105107

src/main/java/com/aspose/slides/model/ScatterSeries.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
import com.aspose.slides.model.FillFormat;
3333
import com.aspose.slides.model.LineFormat;
3434
import com.aspose.slides.model.ScatterChartDataPoint;
35-
import com.aspose.slides.model.Series;
3635
import com.aspose.slides.model.SeriesMarker;
36+
import com.aspose.slides.model.XYSeries;
3737
import com.google.gson.TypeAdapter;
3838
import com.google.gson.annotations.JsonAdapter;
3939
import com.google.gson.annotations.SerializedName;
@@ -52,7 +52,7 @@
5252
* A scatter series
5353
*/
5454
@ApiModel(description = "A scatter series")
55-
public class ScatterSeries extends Series {
55+
public class ScatterSeries extends XYSeries {
5656
@SerializedName(value = "dataPoints", alternate = { "DataPoints" })
5757
private List<ScatterChartDataPoint> dataPoints = null;
5858

0 commit comments

Comments
 (0)