diff --git a/ASCOfficeDocxFile2/Mac/ASCOfficeDocxFile2Lib.xcodeproj/project.pbxproj b/ASCOfficeDocxFile2/Mac/ASCOfficeDocxFile2Lib.xcodeproj/project.pbxproj index 9ae2a44ff7..7ac128ea0a 100644 --- a/ASCOfficeDocxFile2/Mac/ASCOfficeDocxFile2Lib.xcodeproj/project.pbxproj +++ b/ASCOfficeDocxFile2/Mac/ASCOfficeDocxFile2Lib.xcodeproj/project.pbxproj @@ -378,6 +378,7 @@ MAC, unix, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; HEADER_SEARCH_PATHS = ( @@ -414,6 +415,7 @@ MAC, unix, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; HEADER_SEARCH_PATHS = ( diff --git a/ASCOfficePPTXFile/PPTXLib/Mac/PPTXFormatLib.xcodeproj/project.pbxproj b/ASCOfficePPTXFile/PPTXLib/Mac/PPTXFormatLib.xcodeproj/project.pbxproj index d9468028d1..4342262d5d 100644 --- a/ASCOfficePPTXFile/PPTXLib/Mac/PPTXFormatLib.xcodeproj/project.pbxproj +++ b/ASCOfficePPTXFile/PPTXLib/Mac/PPTXFormatLib.xcodeproj/project.pbxproj @@ -2288,6 +2288,7 @@ DONT_WRITE_EMBEDDED_FONTS, CXIMAGE_DONT_DECLARE_TCHAR, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; HEADER_SEARCH_PATHS = ( @@ -2329,6 +2330,7 @@ DONT_WRITE_EMBEDDED_FONTS, CXIMAGE_DONT_DECLARE_TCHAR, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; HEADER_SEARCH_PATHS = ( diff --git a/ASCOfficeRtfFile/RtfFormatLib/Mac/RtfFormatLib.xcodeproj/project.pbxproj b/ASCOfficeRtfFile/RtfFormatLib/Mac/RtfFormatLib.xcodeproj/project.pbxproj index 143d607a01..2bfbc14675 100644 --- a/ASCOfficeRtfFile/RtfFormatLib/Mac/RtfFormatLib.xcodeproj/project.pbxproj +++ b/ASCOfficeRtfFile/RtfFormatLib/Mac/RtfFormatLib.xcodeproj/project.pbxproj @@ -546,6 +546,7 @@ USE_LITE_READER, PPT_DEF, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -577,6 +578,7 @@ USE_LITE_READER, PPT_DEF, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); HEADER_SEARCH_PATHS = ( "$(inherited)", diff --git a/ASCOfficeTxtFile/TxtXmlFormatLib/Mac/TxtXmlFormatLib/TxtXmlFormatLib.xcodeproj/project.pbxproj b/ASCOfficeTxtFile/TxtXmlFormatLib/Mac/TxtXmlFormatLib/TxtXmlFormatLib.xcodeproj/project.pbxproj index 05381c2f76..1be5822c57 100644 --- a/ASCOfficeTxtFile/TxtXmlFormatLib/Mac/TxtXmlFormatLib/TxtXmlFormatLib.xcodeproj/project.pbxproj +++ b/ASCOfficeTxtFile/TxtXmlFormatLib/Mac/TxtXmlFormatLib/TxtXmlFormatLib.xcodeproj/project.pbxproj @@ -295,6 +295,7 @@ MAC, unix, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -325,6 +326,7 @@ MAC, unix, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); HEADER_SEARCH_PATHS = ( "$(inherited)", diff --git a/Common/DocxFormat/Mac/DocxFormatLib.xcodeproj/project.pbxproj b/Common/DocxFormat/Mac/DocxFormatLib.xcodeproj/project.pbxproj index a0115ae69e..fe2f566d99 100644 --- a/Common/DocxFormat/Mac/DocxFormatLib.xcodeproj/project.pbxproj +++ b/Common/DocxFormat/Mac/DocxFormatLib.xcodeproj/project.pbxproj @@ -1317,6 +1317,7 @@ MAC, unix, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; HEADER_SEARCH_PATHS = ( @@ -1356,6 +1357,7 @@ MAC, unix, _IOS, + DONT_WRITE_EMBEDDED_FONTS, ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; HEADER_SEARCH_PATHS = ( diff --git a/X2tConverter/src/ASCConverters_ios.cpp b/X2tConverter/src/ASCConverters_ios.cpp index f43dd2c37d..26775b9830 100644 --- a/X2tConverter/src/ASCConverters_ios.cpp +++ b/X2tConverter/src/ASCConverters_ios.cpp @@ -226,16 +226,16 @@ namespace NExtractTools } 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) BinXlsxRW::CXlsxSerializer m_oCXlsxSerializer; - + 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 @@ -2016,47 +2016,48 @@ namespace NExtractTools return nRes; } - int fromXlsxDir(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; - if(0 != (AVS_OFFICESTUDIO_FILE_SPREADSHEET & nFormatTo) && AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV != nFormatTo) - { - if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLSX == nFormatTo) - { - nRes = dir2zip(sFrom, sTo); - } - //else if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLS == nFormatTo) - else if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_ODS == nFormatTo) - { - nRes = xlsx_dir2ods(sFrom, sTo, sTemp, params); - } - else - nRes = AVS_FILEUTILS_ERROR_CONVERT; - } - else if(AVS_OFFICESTUDIO_FILE_OTHER_JSON == nFormatTo) - { - nRes = xlsx_dir2xlst_bin(sFrom, sTo, params); - } - else if(AVS_OFFICESTUDIO_FILE_CANVAS_SPREADSHEET == nFormatTo) - { - nRes = xlsx_dir2xlst_bin(sFrom, sTo, params); - } - else - { - std::wstring sXlstDir = sTemp + FILE_SEPARATOR_STR + L"xlst_unpacked"; - NSDirectory::CreateDirectory(sXlstDir); - std::wstring sTFile = sXlstDir + FILE_SEPARATOR_STR + L"Editor.bin"; - if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV == nFormatTo) - nRes = xlsx_dir2xlst_bin(sFrom, sTFile, params); - else - nRes = xlsx_dir2xlst_bin(sFrom, sTFile, params); - if(SUCCEEDED_X2T(nRes)) - { - nRes = fromXlstBin(sTFile, sTo, nFormatTo, sTemp, sThemeDir, bFromChanges, bPaid, params); - } - } - return nRes; - } + int fromXlsxDir(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; + if(0 != (AVS_OFFICESTUDIO_FILE_SPREADSHEET & nFormatTo) && AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV != nFormatTo) + { + if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLSX == nFormatTo) + { + nRes = dir2zip(sFrom, sTo); + } + //else if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLS == nFormatTo) + else if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_ODS == nFormatTo) + { + nRes = xlsx_dir2ods(sFrom, sTo, sTemp, params); + } + else + nRes = AVS_FILEUTILS_ERROR_CONVERT; + } + else if(AVS_OFFICESTUDIO_FILE_OTHER_JSON == nFormatTo) + { + nRes = xlsx_dir2xlst_bin(sFrom, sTo, params, true); + } + else if(AVS_OFFICESTUDIO_FILE_CANVAS_SPREADSHEET == nFormatTo) + { + nRes = xlsx_dir2xlst_bin(sFrom, sTo, params, true); + } + else + { + std::wstring sXlstDir = sTemp + FILE_SEPARATOR_STR + _T("xlst_unpacked"); + NSDirectory::CreateDirectory(sXlstDir); + std::wstring sTFile = sXlstDir + FILE_SEPARATOR_STR + _T("Editor.bin"); + if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV == nFormatTo) + nRes = xlsx_dir2xlst_bin(sFrom, sTFile, params, false); + else + nRes = xlsx_dir2xlst_bin(sFrom, sTFile, params, true); + if(SUCCEEDED_X2T(nRes)) + { + nRes = fromXlstBin(sTFile, sTo, nFormatTo, sTemp, sThemeDir, bFromChanges, bPaid, params); + } + } + 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 nRes = 0;