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
6d83c2fc
Commit
6d83c2fc
authored
Aug 29, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 33013
parent
f79fb37b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
3 deletions
+38
-3
X2tConverter/src/ASCConverters.cpp
X2tConverter/src/ASCConverters.cpp
+38
-3
No files found.
X2tConverter/src/ASCConverters.cpp
View file @
6d83c2fc
...
...
@@ -84,7 +84,20 @@ namespace NExtractTools
COfficeUtils
oCOfficeUtils
(
NULL
);
if
(
S_OK
!=
oCOfficeUtils
.
ExtractToDirectory
(
sFrom
,
sTempUnpackedDOCX
,
NULL
,
0
))
return
AVS_FILEUTILS_ERROR_CONVERT
;
{
//check crypt
COfficeFileFormatChecker
OfficeFileFormatChecker
;
if
(
OfficeFileFormatChecker
.
isOfficeFile
(
sFrom
))
{
if
(
OfficeFileFormatChecker
.
nFileType
==
AVS_OFFICESTUDIO_FILE_OTHER_MS_OFFCRYPTO
)
return
mscrypt2oot_bin
(
sFrom
,
sTo
,
sTemp
,
params
);
else
{
//вместо docx другой формат!!
}
}
else
return
AVS_FILEUTILS_ERROR_CONVERT
;
}
return
docx_dir2doct_bin
(
sTempUnpackedDOCX
,
sTo
,
params
);
}
...
...
@@ -202,7 +215,19 @@ namespace NExtractTools
COfficeUtils
oCOfficeUtils
(
NULL
);
if
(
S_OK
!=
oCOfficeUtils
.
ExtractToDirectory
(
sFrom
,
sTempUnpackedXLSX
,
NULL
,
0
))
return
AVS_FILEUTILS_ERROR_CONVERT
;
{
//check crypt
COfficeFileFormatChecker
OfficeFileFormatChecker
;
if
(
OfficeFileFormatChecker
.
isOfficeFile
(
sFrom
))
{
if
(
OfficeFileFormatChecker
.
nFileType
==
AVS_OFFICESTUDIO_FILE_OTHER_MS_OFFCRYPTO
)
return
mscrypt2oot_bin
(
sFrom
,
sTo
,
sTemp
,
params
);
else
{
//вместо xlsx другой формат!!
}
}
else
return
AVS_FILEUTILS_ERROR_CONVERT
;
}
return
xlsx_dir2xlst_bin
(
sTempUnpackedXLSX
,
sTo
,
params
);
}
...
...
@@ -313,7 +338,17 @@ namespace NExtractTools
// unzip pptx to folder
COfficeUtils
oCOfficeUtils
(
NULL
);
if
(
S_OK
!=
oCOfficeUtils
.
ExtractToDirectory
(
sFrom
,
sTempUnpackedPPTX
,
NULL
,
0
))
return
AVS_FILEUTILS_ERROR_CONVERT
;
{
//check crypt
COfficeFileFormatChecker
OfficeFileFormatChecker
;
if
(
OfficeFileFormatChecker
.
isOfficeFile
(
sFrom
))
{
if
(
OfficeFileFormatChecker
.
nFileType
==
AVS_OFFICESTUDIO_FILE_OTHER_MS_OFFCRYPTO
)
return
mscrypt2oot_bin
(
sFrom
,
sTo
,
sTemp
,
params
);
//вместо pptx другой формат!!
}
else
return
AVS_FILEUTILS_ERROR_CONVERT
;
}
return
pptx_dir2pptt_bin
(
sTempUnpackedPPTX
,
sTo
,
params
);
}
...
...
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