Skip to content

Commit e2543b1

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents afdaa16 + 1866b33 commit e2543b1

File tree

5 files changed

+80
-1
lines changed

5 files changed

+80
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/w
1717
- Read & write access to Document Object Model.
1818
- Thread safe
1919

20+
## Enhancements in Version 25.2
21+
22+
- Added 'IdPrefix' property for HtmlFixedSaveOptionsData and SvgSaveOptionsData class.
23+
24+
2025
## Enhancements in Version 24.12
2126

2227
- Added 'RenderChoiceFormFieldBorder' property for PdfSaveOptionsData class.

include/aspose_words_cloud/models/html_fixed_save_options_data.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,23 @@ namespace aspose::words::cloud::models {
143143
ASPOSE_WORDS_CLOUD_EXPORT virtual void setFontFormat(std::shared_ptr< aspose::words::cloud::models::HtmlFixedSaveOptionsData::FontFormat > value);
144144

145145

146+
/// <summary>
147+
/// Gets or sets a prefix that is prepended to all generated element IDs in the output document.
148+
/// Default value is null and no prefix is prepended.
149+
/// If the prefix is specified, it can contain only letters, digits, underscores, and hyphens,
150+
/// and must start with a letter.
151+
/// </summary>
152+
ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< std::wstring > getIdPrefix() const;
153+
154+
/// <summary>
155+
/// Gets or sets a prefix that is prepended to all generated element IDs in the output document.
156+
/// Default value is null and no prefix is prepended.
157+
/// If the prefix is specified, it can contain only letters, digits, underscores, and hyphens,
158+
/// and must start with a letter.
159+
/// </summary>
160+
ASPOSE_WORDS_CLOUD_EXPORT virtual void setIdPrefix(std::shared_ptr< std::wstring > value);
161+
162+
146163
/// <summary>
147164
/// Gets or sets the horizontal alignment of pages in the HTML document.
148165
/// The default value is HtmlFixedHorizontalPageAlignment.Center.
@@ -251,6 +268,7 @@ namespace aspose::words::cloud::models {
251268
std::shared_ptr< bool > m_ExportEmbeddedImages;
252269
std::shared_ptr< bool > m_ExportFormFields;
253270
std::shared_ptr< aspose::words::cloud::models::HtmlFixedSaveOptionsData::FontFormat > m_FontFormat;
271+
std::shared_ptr< std::wstring > m_IdPrefix;
254272
std::shared_ptr< aspose::words::cloud::models::HtmlFixedSaveOptionsData::PageHorizontalAlignment > m_PageHorizontalAlignment;
255273
std::shared_ptr< double > m_PageMargins;
256274
std::shared_ptr< std::wstring > m_ResourcesFolder;

include/aspose_words_cloud/models/svg_save_options_data.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,23 @@ namespace aspose::words::cloud::models {
7676
ASPOSE_WORDS_CLOUD_EXPORT virtual void setFitToViewPort(std::shared_ptr< bool > value);
7777

7878

79+
/// <summary>
80+
/// Gets or sets specifies a prefix that is prepended to all generated element IDs in the output document.
81+
/// Default value is null and no prefix is prepended.
82+
/// If the prefix is specified, it can contain only letters, digits, underscores, and hyphens,
83+
/// and must start with a letter.
84+
/// </summary>
85+
ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< std::wstring > getIdPrefix() const;
86+
87+
/// <summary>
88+
/// Gets or sets specifies a prefix that is prepended to all generated element IDs in the output document.
89+
/// Default value is null and no prefix is prepended.
90+
/// If the prefix is specified, it can contain only letters, digits, underscores, and hyphens,
91+
/// and must start with a letter.
92+
/// </summary>
93+
ASPOSE_WORDS_CLOUD_EXPORT virtual void setIdPrefix(std::shared_ptr< std::wstring > value);
94+
95+
7996
/// <summary>
8097
/// Gets or sets a value in pixels per inch that limits resolution of exported raster images.
8198
/// If the value of this property is non-zero, it limits resolution of exported raster images.
@@ -145,6 +162,7 @@ namespace aspose::words::cloud::models {
145162
protected:
146163
std::shared_ptr< bool > m_ExportEmbeddedImages;
147164
std::shared_ptr< bool > m_FitToViewPort;
165+
std::shared_ptr< std::wstring > m_IdPrefix;
148166
std::shared_ptr< int32_t > m_MaxImageResolution;
149167
std::shared_ptr< std::wstring > m_ResourcesFolder;
150168
std::shared_ptr< std::wstring > m_ResourcesFolderAlias;

src/api_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ namespace aspose::words::cloud {
168168

169169
::httplib::Headers headers;
170170
headers.emplace("Authorization", m_AccessToken);
171-
headers.emplace("x-aspose-client-version", "25.1");
171+
headers.emplace("x-aspose-client-version", "25.2");
172172
headers.emplace("x-aspose-client", "C++ SDK");
173173

174174
for (auto& pair : httpRequest->getHeaders()) {

src/models.cpp

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11091,6 +11091,9 @@ namespace aspose::words::cloud::models {
1109111091
if (this->m_FontFormat) {
1109211092
json["FontFormat"] = htmlFixedSaveOptionsDataFontFormatToString(*(this->m_FontFormat));
1109311093
}
11094+
if (this->m_IdPrefix) {
11095+
json["IdPrefix"] = convertUtf16(*(this->m_IdPrefix));
11096+
}
1109411097
if (this->m_PageHorizontalAlignment) {
1109511098
json["PageHorizontalAlignment"] = htmlFixedSaveOptionsDataPageHorizontalAlignmentToString(*(this->m_PageHorizontalAlignment));
1109611099
}
@@ -11156,6 +11159,11 @@ namespace aspose::words::cloud::models {
1115611159
htmlFixedSaveOptionsDataFontFormatFromString(json["FontFormat"].get< std::string >())
1115711160
);
1115811161
}
11162+
if (json.contains("IdPrefix") && !json["IdPrefix"].is_null()) {
11163+
this->m_IdPrefix = std::make_shared< std::wstring >(
11164+
convertUtf8( json["IdPrefix"].get< std::string >() )
11165+
);
11166+
}
1115911167
if (json.contains("PageHorizontalAlignment") && !json["PageHorizontalAlignment"].is_null()) {
1116011168
this->m_PageHorizontalAlignment = std::make_shared< aspose::words::cloud::models::HtmlFixedSaveOptionsData::PageHorizontalAlignment >(
1116111169
htmlFixedSaveOptionsDataPageHorizontalAlignmentFromString(json["PageHorizontalAlignment"].get< std::string >())
@@ -11284,6 +11292,17 @@ namespace aspose::words::cloud::models {
1128411292
}
1128511293

1128611294

11295+
std::shared_ptr< std::wstring > HtmlFixedSaveOptionsData::getIdPrefix() const
11296+
{
11297+
return this->m_IdPrefix;
11298+
}
11299+
11300+
void HtmlFixedSaveOptionsData::setIdPrefix(std::shared_ptr< std::wstring > value)
11301+
{
11302+
this->m_IdPrefix = value;
11303+
}
11304+
11305+
1128711306
std::shared_ptr< aspose::words::cloud::models::HtmlFixedSaveOptionsData::PageHorizontalAlignment > HtmlFixedSaveOptionsData::getPageHorizontalAlignment() const
1128811307
{
1128911308
return this->m_PageHorizontalAlignment;
@@ -27238,6 +27257,9 @@ namespace aspose::words::cloud::models {
2723827257
if (this->m_FitToViewPort) {
2723927258
json["FitToViewPort"] = *(this->m_FitToViewPort);
2724027259
}
27260+
if (this->m_IdPrefix) {
27261+
json["IdPrefix"] = convertUtf16(*(this->m_IdPrefix));
27262+
}
2724127263
if (this->m_MaxImageResolution) {
2724227264
json["MaxImageResolution"] = *(this->m_MaxImageResolution);
2724327265
}
@@ -27272,6 +27294,11 @@ namespace aspose::words::cloud::models {
2727227294
json["FitToViewPort"].get< bool >()
2727327295
);
2727427296
}
27297+
if (json.contains("IdPrefix") && !json["IdPrefix"].is_null()) {
27298+
this->m_IdPrefix = std::make_shared< std::wstring >(
27299+
convertUtf8( json["IdPrefix"].get< std::string >() )
27300+
);
27301+
}
2727527302
if (json.contains("MaxImageResolution") && !json["MaxImageResolution"].is_null()) {
2727627303
this->m_MaxImageResolution = std::make_shared< int32_t >(
2727727304
json["MaxImageResolution"].get< int32_t >()
@@ -27335,6 +27362,17 @@ namespace aspose::words::cloud::models {
2733527362
}
2733627363

2733727364

27365+
std::shared_ptr< std::wstring > SvgSaveOptionsData::getIdPrefix() const
27366+
{
27367+
return this->m_IdPrefix;
27368+
}
27369+
27370+
void SvgSaveOptionsData::setIdPrefix(std::shared_ptr< std::wstring > value)
27371+
{
27372+
this->m_IdPrefix = value;
27373+
}
27374+
27375+
2733827376
std::shared_ptr< int32_t > SvgSaveOptionsData::getMaxImageResolution() const
2733927377
{
2734027378
return this->m_MaxImageResolution;

0 commit comments

Comments
 (0)