Commit 6aa68f1 1 parent e9852e8 commit 6aa68f1 Copy full SHA for 6aa68f1
File tree 2 files changed +16
-0
lines changed
DesktopEditor/doctrenderer
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -475,6 +475,13 @@ namespace NSDoctRenderer
475
475
*/
476
476
void SetPropertyW (const wchar_t * param, const wchar_t * value);
477
477
478
+ /* *
479
+ * GetProperty method.
480
+ * @param param The parameter name in the Unicode format, the value is always --argument.
481
+ * @return int value for property
482
+ */
483
+ int GetPropertyInt (const wchar_t * param);
484
+
478
485
/* *
479
486
* Writes data to the log file. It is used for logs in JS code.
480
487
* @param path The path to the file where all the logs will be written.
Original file line number Diff line number Diff line change @@ -1596,6 +1596,15 @@ namespace NSDoctRenderer
1596
1596
return this ->SetProperty (sA .c_str (), value);
1597
1597
}
1598
1598
1599
+ int CDocBuilder::GetPropertyInt (const wchar_t * param)
1600
+ {
1601
+ std::wstring sParam = std::wstring (param);
1602
+ std::string sParamA = U_TO_UTF8 (sParam );
1603
+ if (" --save-use-only-names" == sParamA )
1604
+ return m_pInternal->m_bIsServerSafeVersion ? 1 : 0 ;
1605
+ return -1 ;
1606
+ }
1607
+
1599
1608
void CDocBuilder::Initialize (const wchar_t * directory)
1600
1609
{
1601
1610
std::wstring sDirectory = L" " ;
You can’t perform that action at this time.
0 commit comments