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
c046776b
Commit
c046776b
authored
Nov 27, 2017
by
Sergey Konovalov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v5.0.5' into develop
# Conflicts: # X2tConverter/src/cextracttools.h
parents
055a0257
875717ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
X2tConverter/src/ASCConverters.cpp
X2tConverter/src/ASCConverters.cpp
+4
-4
X2tConverter/src/cextracttools.h
X2tConverter/src/cextracttools.h
+16
-0
X2tConverter/src/main.cpp
X2tConverter/src/main.cpp
+1
-0
No files found.
X2tConverter/src/ASCConverters.cpp
View file @
c046776b
...
@@ -2553,7 +2553,7 @@ namespace NExtractTools
...
@@ -2553,7 +2553,7 @@ namespace NExtractTools
}
}
int
oox2mscrypt
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
InputParams
&
params
)
int
oox2mscrypt
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
InputParams
&
params
)
{
{
std
::
wstring
password
=
params
.
get
Password
();
std
::
wstring
password
=
params
.
getSave
Password
();
ECMACryptFile
cryptReader
;
ECMACryptFile
cryptReader
;
...
@@ -2987,7 +2987,7 @@ namespace NExtractTools
...
@@ -2987,7 +2987,7 @@ namespace NExtractTools
{
{
if
(
AVS_OFFICESTUDIO_FILE_DOCUMENT_DOCX
==
nFormatTo
)
if
(
AVS_OFFICESTUDIO_FILE_DOCUMENT_DOCX
==
nFormatTo
)
{
{
if
(
params
.
hasPassword
())
if
(
params
.
has
Save
Password
())
{
{
std
::
wstring
sToMscrypt
=
sTemp
+
FILE_SEPARATOR_STR
+
_T
(
"tomscrypt.docx"
);
std
::
wstring
sToMscrypt
=
sTemp
+
FILE_SEPARATOR_STR
+
_T
(
"tomscrypt.docx"
);
nRes
=
dir2zip
(
sFrom
,
sToMscrypt
);
nRes
=
dir2zip
(
sFrom
,
sToMscrypt
);
...
@@ -3199,7 +3199,7 @@ namespace NExtractTools
...
@@ -3199,7 +3199,7 @@ namespace NExtractTools
{
{
if
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLSX
==
nFormatTo
)
if
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLSX
==
nFormatTo
)
{
{
if
(
params
.
hasPassword
())
if
(
params
.
has
Save
Password
())
{
{
std
::
wstring
sToMscrypt
=
sTemp
+
FILE_SEPARATOR_STR
+
_T
(
"tomscrypt.xlsx"
);
std
::
wstring
sToMscrypt
=
sTemp
+
FILE_SEPARATOR_STR
+
_T
(
"tomscrypt.xlsx"
);
nRes
=
dir2zip
(
sFrom
,
sToMscrypt
);
nRes
=
dir2zip
(
sFrom
,
sToMscrypt
);
...
@@ -3386,7 +3386,7 @@ namespace NExtractTools
...
@@ -3386,7 +3386,7 @@ namespace NExtractTools
{
{
if
(
AVS_OFFICESTUDIO_FILE_PRESENTATION_PPTX
==
nFormatTo
)
if
(
AVS_OFFICESTUDIO_FILE_PRESENTATION_PPTX
==
nFormatTo
)
{
{
if
(
params
.
hasPassword
())
if
(
params
.
has
Save
Password
())
{
{
std
::
wstring
sToMscrypt
=
sTemp
+
FILE_SEPARATOR_STR
+
_T
(
"tomscrypt.pptx"
);
std
::
wstring
sToMscrypt
=
sTemp
+
FILE_SEPARATOR_STR
+
_T
(
"tomscrypt.pptx"
);
nRes
=
dir2zip
(
sFrom
,
sToMscrypt
);
nRes
=
dir2zip
(
sFrom
,
sToMscrypt
);
...
...
X2tConverter/src/cextracttools.h
View file @
c046776b
...
@@ -382,6 +382,7 @@ namespace NExtractTools
...
@@ -382,6 +382,7 @@ namespace NExtractTools
int
*
m_nDoctParams
;
int
*
m_nDoctParams
;
std
::
wstring
*
m_sHtmlFileInternalPath
;
std
::
wstring
*
m_sHtmlFileInternalPath
;
std
::
wstring
*
m_sPassword
;
std
::
wstring
*
m_sPassword
;
std
::
wstring
*
m_sSavePassword
;
std
::
wstring
*
m_sTempDir
;
std
::
wstring
*
m_sTempDir
;
bool
*
m_bIsNoBase64
;
bool
*
m_bIsNoBase64
;
//output params
//output params
...
@@ -408,6 +409,7 @@ namespace NExtractTools
...
@@ -408,6 +409,7 @@ namespace NExtractTools
m_nDoctParams
=
NULL
;
m_nDoctParams
=
NULL
;
m_sHtmlFileInternalPath
=
NULL
;
m_sHtmlFileInternalPath
=
NULL
;
m_sPassword
=
NULL
;
m_sPassword
=
NULL
;
m_sSavePassword
=
NULL
;
m_sTempDir
=
NULL
;
m_sTempDir
=
NULL
;
m_bIsNoBase64
=
NULL
;
m_bIsNoBase64
=
NULL
;
...
@@ -434,6 +436,7 @@ namespace NExtractTools
...
@@ -434,6 +436,7 @@ namespace NExtractTools
RELEASEOBJECT
(
m_nDoctParams
);
RELEASEOBJECT
(
m_nDoctParams
);
RELEASEOBJECT
(
m_sHtmlFileInternalPath
);
RELEASEOBJECT
(
m_sHtmlFileInternalPath
);
RELEASEOBJECT
(
m_sPassword
);
RELEASEOBJECT
(
m_sPassword
);
RELEASEOBJECT
(
m_sSavePassword
);
RELEASEOBJECT
(
m_sTempDir
);
RELEASEOBJECT
(
m_sTempDir
);
RELEASEOBJECT
(
m_bIsNoBase64
);
RELEASEOBJECT
(
m_bIsNoBase64
);
}
}
...
@@ -575,6 +578,11 @@ namespace NExtractTools
...
@@ -575,6 +578,11 @@ namespace NExtractTools
RELEASEOBJECT
(
m_sPassword
);
RELEASEOBJECT
(
m_sPassword
);
m_sPassword
=
new
std
::
wstring
(
sValue
);
m_sPassword
=
new
std
::
wstring
(
sValue
);
}
}
else
if
(
_T
(
"m_sSavePassword"
)
==
sName
)
{
RELEASEOBJECT
(
m_sSavePassword
);
m_sSavePassword
=
new
std
::
wstring
(
sValue
);
}
else
if
(
_T
(
"m_sTempDir"
)
==
sName
)
else
if
(
_T
(
"m_sTempDir"
)
==
sName
)
{
{
RELEASEOBJECT
(
m_sTempDir
);
RELEASEOBJECT
(
m_sTempDir
);
...
@@ -608,6 +616,14 @@ namespace NExtractTools
...
@@ -608,6 +616,14 @@ namespace NExtractTools
std
::
wstring
getPassword
()
const
std
::
wstring
getPassword
()
const
{
{
return
(
NULL
!=
m_sPassword
)
?
(
*
m_sPassword
)
:
L""
;
return
(
NULL
!=
m_sPassword
)
?
(
*
m_sPassword
)
:
L""
;
}
bool
hasSavePassword
()
const
{
return
NULL
!=
m_sSavePassword
;
}
std
::
wstring
getSavePassword
()
const
{
return
(
NULL
!=
m_sSavePassword
)
?
(
*
m_sSavePassword
)
:
L""
;
}
}
std
::
wstring
getFontPath
()
const
std
::
wstring
getFontPath
()
const
{
{
...
...
X2tConverter/src/main.cpp
View file @
c046776b
...
@@ -154,6 +154,7 @@ static std::wstring utf8_to_unicode(const char *src)
...
@@ -154,6 +154,7 @@ static std::wstring utf8_to_unicode(const char *src)
if
(
argc
>
4
)
if
(
argc
>
4
)
{
{
oInputParams
.
m_sPassword
=
new
std
::
wstring
(
sArg4
);
oInputParams
.
m_sPassword
=
new
std
::
wstring
(
sArg4
);
oInputParams
.
m_sSavePassword
=
new
std
::
wstring
(
sArg4
);
}
}
result
=
NExtractTools
::
fromInputParams
(
oInputParams
);
result
=
NExtractTools
::
fromInputParams
(
oInputParams
);
}
}
...
...
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