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
dc4f7e64
Commit
dc4f7e64
authored
Sep 28, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error open MsCrypto xlsx, pptx
parent
61712d64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
X2tConverter/src/ASCConverters.cpp
X2tConverter/src/ASCConverters.cpp
+1
-0
X2tConverter/src/cextracttools.h
X2tConverter/src/cextracttools.h
+5
-6
No files found.
X2tConverter/src/ASCConverters.cpp
View file @
dc4f7e64
...
...
@@ -1390,6 +1390,7 @@ namespace NExtractTools
if
(
OfficeFileFormatChecker
.
isOfficeFile
(
sResultDecryptFile
))
{
params
.
changeFormatFrom
(
OfficeFileFormatChecker
.
nFileType
);
switch
(
OfficeFileFormatChecker
.
nFileType
)
{
case
AVS_OFFICESTUDIO_FILE_DOCUMENT_DOCX
:
...
...
X2tConverter/src/cextracttools.h
View file @
dc4f7e64
...
...
@@ -442,13 +442,12 @@ namespace NExtractTools
FileFormatChecker
.
nFileType
!=
AVS_OFFICESTUDIO_FILE_UNKNOWN
)
{
nFormatFrom
=
FileFormatChecker
.
nFileType
;
*
m_nFormatFrom
=
nFormatFrom
;
changeFormatFrom
(
nFormatFrom
)
;
}
}
eRes
=
processDownloadFile
();
if
(
TCD_AUTO
!=
eRes
)
return
eRes
;
processInnerFormats
();
if
(
NULL
!=
m_oMailMergeSend
)
eRes
=
TCD_MAILMERGE
;
...
...
@@ -595,17 +594,17 @@ namespace NExtractTools
}
return
nRes
;
}
void
processInnerFormats
(
)
void
changeFormatFrom
(
int
formatFrom
)
{
*
m_nFormatFrom
=
formatFrom
;
int
toFormat
=
*
m_nFormatTo
;
int
formatFrom
=
*
m_nFormatFrom
;
if
(
AVS_OFFICESTUDIO_FILE_CANVAS
==
toFormat
)
{
if
(
AVS_OFFICESTUDIO_FILE_TEAMLAB_XLSY
==
formatFrom
||
0
!=
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET
&
formatFrom
))
{
toFormat
=
AVS_OFFICESTUDIO_FILE_CANVAS_SPREADSHEET
;
}
else
if
(
AVS_OFFICESTUDIO_FILE_TEAMLAB_PPTY
==
formatFrom
||
0
!=
(
AVS_OFFICESTUDIO_FILE_PRESENTATION
&
formatFrom
))
{
toFormat
=
AVS_OFFICESTUDIO_FILE_CANVAS_PRESENTATION
;
}
else
{
}
else
if
(
AVS_OFFICESTUDIO_FILE_TEAMLAB_DOCY
==
formatFrom
||
0
!=
(
AVS_OFFICESTUDIO_FILE_DOCUMENT
&
formatFrom
))
{
toFormat
=
AVS_OFFICESTUDIO_FILE_CANVAS_WORD
;
}
}
else
if
(
AVS_OFFICESTUDIO_FILE_OTHER_TEAMLAB_INNER
==
toFormat
)
{
...
...
@@ -613,7 +612,7 @@ namespace NExtractTools
toFormat
=
AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLSX
;
}
else
if
(
AVS_OFFICESTUDIO_FILE_CANVAS_PRESENTATION
==
formatFrom
||
AVS_OFFICESTUDIO_FILE_TEAMLAB_PPTY
==
formatFrom
||
0
!=
(
AVS_OFFICESTUDIO_FILE_PRESENTATION
&
formatFrom
))
{
toFormat
=
AVS_OFFICESTUDIO_FILE_PRESENTATION_PPTX
;
}
else
{
}
else
if
(
AVS_OFFICESTUDIO_FILE_CANVAS_WORD
==
formatFrom
||
AVS_OFFICESTUDIO_FILE_TEAMLAB_DOCY
==
formatFrom
||
0
!=
(
AVS_OFFICESTUDIO_FILE_DOCUMENT
&
formatFrom
))
{
toFormat
=
AVS_OFFICESTUDIO_FILE_DOCUMENT_DOCX
;
}
size_t
nIndex
=
m_sFileTo
->
rfind
(
'.'
);
...
...
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