Commit 903245e8 authored by Alexey.Musinov's avatar Alexey.Musinov

fixed converter for iOS

parent 25ee9c3c
...@@ -378,6 +378,7 @@ ...@@ -378,6 +378,7 @@
MAC, MAC,
unix, unix,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
...@@ -414,6 +415,7 @@ ...@@ -414,6 +415,7 @@
MAC, MAC,
unix, unix,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
......
...@@ -2288,6 +2288,7 @@ ...@@ -2288,6 +2288,7 @@
DONT_WRITE_EMBEDDED_FONTS, DONT_WRITE_EMBEDDED_FONTS,
CXIMAGE_DONT_DECLARE_TCHAR, CXIMAGE_DONT_DECLARE_TCHAR,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
...@@ -2329,6 +2330,7 @@ ...@@ -2329,6 +2330,7 @@
DONT_WRITE_EMBEDDED_FONTS, DONT_WRITE_EMBEDDED_FONTS,
CXIMAGE_DONT_DECLARE_TCHAR, CXIMAGE_DONT_DECLARE_TCHAR,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
......
...@@ -546,6 +546,7 @@ ...@@ -546,6 +546,7 @@
USE_LITE_READER, USE_LITE_READER,
PPT_DEF, PPT_DEF,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
...@@ -577,6 +578,7 @@ ...@@ -577,6 +578,7 @@
USE_LITE_READER, USE_LITE_READER,
PPT_DEF, PPT_DEF,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
......
...@@ -295,6 +295,7 @@ ...@@ -295,6 +295,7 @@
MAC, MAC,
unix, unix,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
...@@ -325,6 +326,7 @@ ...@@ -325,6 +326,7 @@
MAC, MAC,
unix, unix,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
......
...@@ -1317,6 +1317,7 @@ ...@@ -1317,6 +1317,7 @@
MAC, MAC,
unix, unix,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
...@@ -1356,6 +1357,7 @@ ...@@ -1356,6 +1357,7 @@
MAC, MAC,
unix, unix,
_IOS, _IOS,
DONT_WRITE_EMBEDDED_FONTS,
); );
GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
......
...@@ -226,16 +226,16 @@ namespace NExtractTools ...@@ -226,16 +226,16 @@ namespace NExtractTools
} }
else return AVS_FILEUTILS_ERROR_CONVERT; } else return AVS_FILEUTILS_ERROR_CONVERT; }
return xlsx_dir2xlst_bin(sTempUnpackedXLSX, sTo, params); return xlsx_dir2xlst_bin(sTempUnpackedXLSX, sTo, params, true);
} }
int xlsx_dir2xlst_bin (const std::wstring &sXlsxDir, const std::wstring &sTo, InputParams& params) int xlsx_dir2xlst_bin (const std::wstring &sXlsxDir, const std::wstring &sTo, InputParams& params, bool bXmlOptions)
{ {
// Save to file (from temp dir) // Save to file (from temp dir)
BinXlsxRW::CXlsxSerializer m_oCXlsxSerializer; BinXlsxRW::CXlsxSerializer m_oCXlsxSerializer;
m_oCXlsxSerializer.setFontDir(params.getFontPath()); m_oCXlsxSerializer.setFontDir(params.getFontPath());
return m_oCXlsxSerializer.saveToFile (sTo, sXlsxDir, params.getXmlOptions()) ? 0 : AVS_FILEUTILS_ERROR_CONVERT; return m_oCXlsxSerializer.saveToFile (sTo, sXlsxDir, bXmlOptions ? params.getXmlOptions() : L"") ? 0 : AVS_FILEUTILS_ERROR_CONVERT;
} }
// xslx -> xslt // xslx -> xslt
...@@ -2035,21 +2035,21 @@ namespace NExtractTools ...@@ -2035,21 +2035,21 @@ namespace NExtractTools
} }
else if(AVS_OFFICESTUDIO_FILE_OTHER_JSON == nFormatTo) else if(AVS_OFFICESTUDIO_FILE_OTHER_JSON == nFormatTo)
{ {
nRes = xlsx_dir2xlst_bin(sFrom, sTo, params); nRes = xlsx_dir2xlst_bin(sFrom, sTo, params, true);
} }
else if(AVS_OFFICESTUDIO_FILE_CANVAS_SPREADSHEET == nFormatTo) else if(AVS_OFFICESTUDIO_FILE_CANVAS_SPREADSHEET == nFormatTo)
{ {
nRes = xlsx_dir2xlst_bin(sFrom, sTo, params); nRes = xlsx_dir2xlst_bin(sFrom, sTo, params, true);
} }
else else
{ {
std::wstring sXlstDir = sTemp + FILE_SEPARATOR_STR + L"xlst_unpacked"; std::wstring sXlstDir = sTemp + FILE_SEPARATOR_STR + _T("xlst_unpacked");
NSDirectory::CreateDirectory(sXlstDir); NSDirectory::CreateDirectory(sXlstDir);
std::wstring sTFile = sXlstDir + FILE_SEPARATOR_STR + L"Editor.bin"; std::wstring sTFile = sXlstDir + FILE_SEPARATOR_STR + _T("Editor.bin");
if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV == nFormatTo) if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV == nFormatTo)
nRes = xlsx_dir2xlst_bin(sFrom, sTFile, params); nRes = xlsx_dir2xlst_bin(sFrom, sTFile, params, false);
else else
nRes = xlsx_dir2xlst_bin(sFrom, sTFile, params); nRes = xlsx_dir2xlst_bin(sFrom, sTFile, params, true);
if(SUCCEEDED_X2T(nRes)) if(SUCCEEDED_X2T(nRes))
{ {
nRes = fromXlstBin(sTFile, sTo, nFormatTo, sTemp, sThemeDir, bFromChanges, bPaid, params); nRes = fromXlstBin(sTFile, sTo, nFormatTo, sTemp, sThemeDir, bFromChanges, bPaid, params);
...@@ -2057,6 +2057,7 @@ namespace NExtractTools ...@@ -2057,6 +2057,7 @@ namespace NExtractTools
} }
return nRes; return nRes;
} }
int fromXlstBin(const std::wstring &sFrom, const std::wstring &sTo, int nFormatTo, const std::wstring &sTemp, const std::wstring &sThemeDir, bool bFromChanges, bool bPaid, InputParams& params) int fromXlstBin(const std::wstring &sFrom, const std::wstring &sTo, int nFormatTo, const std::wstring &sTemp, const std::wstring &sThemeDir, bool bFromChanges, bool bPaid, InputParams& params)
{ {
int nRes = 0; int nRes = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment