Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
903245e8
Commit
903245e8
authored
Feb 03, 2017
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed converter for iOS
parent
25ee9c3c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
46 deletions
+57
-46
ASCOfficeDocxFile2/Mac/ASCOfficeDocxFile2Lib.xcodeproj/project.pbxproj
...File2/Mac/ASCOfficeDocxFile2Lib.xcodeproj/project.pbxproj
+2
-0
ASCOfficePPTXFile/PPTXLib/Mac/PPTXFormatLib.xcodeproj/project.pbxproj
...XFile/PPTXLib/Mac/PPTXFormatLib.xcodeproj/project.pbxproj
+2
-0
ASCOfficeRtfFile/RtfFormatLib/Mac/RtfFormatLib.xcodeproj/project.pbxproj
...e/RtfFormatLib/Mac/RtfFormatLib.xcodeproj/project.pbxproj
+2
-0
ASCOfficeTxtFile/TxtXmlFormatLib/Mac/TxtXmlFormatLib/TxtXmlFormatLib.xcodeproj/project.pbxproj
...TxtXmlFormatLib/TxtXmlFormatLib.xcodeproj/project.pbxproj
+2
-0
Common/DocxFormat/Mac/DocxFormatLib.xcodeproj/project.pbxproj
...on/DocxFormat/Mac/DocxFormatLib.xcodeproj/project.pbxproj
+2
-0
X2tConverter/src/ASCConverters_ios.cpp
X2tConverter/src/ASCConverters_ios.cpp
+47
-46
No files found.
ASCOfficeDocxFile2/Mac/ASCOfficeDocxFile2Lib.xcodeproj/project.pbxproj
View file @
903245e8
...
@@ -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
=
(
...
...
ASCOfficePPTXFile/PPTXLib/Mac/PPTXFormatLib.xcodeproj/project.pbxproj
View file @
903245e8
...
@@ -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
=
(
...
...
ASCOfficeRtfFile/RtfFormatLib/Mac/RtfFormatLib.xcodeproj/project.pbxproj
View file @
903245e8
...
@@ -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)"
,
...
...
ASCOfficeTxtFile/TxtXmlFormatLib/Mac/TxtXmlFormatLib/TxtXmlFormatLib.xcodeproj/project.pbxproj
View file @
903245e8
...
@@ -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)"
,
...
...
Common/DocxFormat/Mac/DocxFormatLib.xcodeproj/project.pbxproj
View file @
903245e8
...
@@ -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
=
(
...
...
X2tConverter/src/ASCConverters_ios.cpp
View file @
903245e8
...
@@ -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
...
@@ -2016,47 +2016,48 @@ namespace NExtractTools
...
@@ -2016,47 +2016,48 @@ namespace NExtractTools
return
nRes
;
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
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
;
int
nRes
=
0
;
if
(
0
!=
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET
&
nFormatTo
)
&&
AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV
!=
nFormatTo
)
if
(
0
!=
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET
&
nFormatTo
)
&&
AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV
!=
nFormatTo
)
{
{
if
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLSX
==
nFormatTo
)
if
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLSX
==
nFormatTo
)
{
{
nRes
=
dir2zip
(
sFrom
,
sTo
);
nRes
=
dir2zip
(
sFrom
,
sTo
);
}
}
//else if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLS == nFormatTo)
//else if(AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLS == nFormatTo)
else
if
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET_ODS
==
nFormatTo
)
else
if
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET_ODS
==
nFormatTo
)
{
{
nRes
=
xlsx_dir2ods
(
sFrom
,
sTo
,
sTemp
,
params
);
nRes
=
xlsx_dir2ods
(
sFrom
,
sTo
,
sTemp
,
params
);
}
}
else
else
nRes
=
AVS_FILEUTILS_ERROR_CONVERT
;
nRes
=
AVS_FILEUTILS_ERROR_CONVERT
;
}
}
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
);
}
}
}
}
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment