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
6705045d
Commit
6705045d
authored
May 18, 2017
by
Sergey Konovalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add param m_sTempDir
parent
533bc2c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
X2tConverter/src/ASCConverters.cpp
X2tConverter/src/ASCConverters.cpp
+16
-4
X2tConverter/src/cextracttools.h
X2tConverter/src/cextracttools.h
+5
-0
No files found.
X2tConverter/src/ASCConverters.cpp
View file @
6705045d
...
...
@@ -2550,9 +2550,18 @@ namespace NExtractTools
if
(
NULL
!=
oInputParams
.
m_oMailMergeSend
)
oMailMerge
=
oInputParams
.
m_oMailMergeSend
;
std
::
wstring
sTempDir
=
NSDirectory
::
GetFolderPath
(
sFileFrom
)
+
FILE_SEPARATOR_STR
+
_T
(
"Temp"
);
NSDirectory
::
CreateDirectory
(
sTempDir
);
bool
bExternalTempDir
=
false
;
std
::
wstring
sTempDir
;
if
(
NULL
!=
oInputParams
.
m_sTempDir
)
{
bExternalTempDir
=
true
;
sTempDir
=
*
oInputParams
.
m_sTempDir
;
}
else
{
sTempDir
=
NSDirectory
::
GetFolderPath
(
sFileFrom
)
+
FILE_SEPARATOR_STR
+
_T
(
"Temp"
);
NSDirectory
::
CreateDirectory
(
sTempDir
);
}
if
(
sTempDir
.
empty
())
{
std
::
cerr
<<
"Couldn't create temp folder"
<<
std
::
endl
;
...
...
@@ -2795,7 +2804,10 @@ namespace NExtractTools
}
// delete temp dir
NSDirectory
::
DeleteDirectory
(
sTempDir
);
if
(
!
bExternalTempDir
)
{
NSDirectory
::
DeleteDirectory
(
sTempDir
);
}
//clean up v8
NSDoctRenderer
::
CDocBuilder
::
Dispose
();
...
...
X2tConverter/src/cextracttools.h
View file @
6705045d
...
...
@@ -345,6 +345,7 @@ namespace NExtractTools
int
*
m_nDoctParams
;
std
::
wstring
*
m_sHtmlFileInternalPath
;
std
::
wstring
*
m_sPassword
;
std
::
wstring
*
m_sTempDir
;
//output params
mutable
bool
m_bOutputConvertCorrupted
;
public:
...
...
@@ -369,6 +370,7 @@ namespace NExtractTools
m_nDoctParams
=
NULL
;
m_sHtmlFileInternalPath
=
NULL
;
m_sPassword
=
NULL
;
m_sTempDir
=
NULL
;
m_bOutputConvertCorrupted
=
false
;
}
...
...
@@ -393,6 +395,7 @@ namespace NExtractTools
RELEASEOBJECT
(
m_nDoctParams
);
RELEASEOBJECT
(
m_sHtmlFileInternalPath
);
RELEASEOBJECT
(
m_sPassword
);
RELEASEOBJECT
(
m_sTempDir
);
}
bool
FromXmlFile
(
const
std
::
wstring
&
sFilename
)
...
...
@@ -479,6 +482,8 @@ namespace NExtractTools
m_sHtmlFileInternalPath
=
new
std
::
wstring
(
sValue
);
else
if
(
_T
(
"m_sPassword"
)
==
sName
)
m_sPassword
=
new
std
::
wstring
(
sValue
);
else
if
(
_T
(
"m_sTempDir"
)
==
sName
)
m_sTempDir
=
new
std
::
wstring
(
sValue
);
}
else
if
(
_T
(
"m_nCsvDelimiterChar"
)
==
sName
)
{
...
...
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