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
0265162c
Commit
0265162c
authored
Jan 16, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9be4d6ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
43 deletions
+4
-43
Common/DocxFormat/Source/Base/Base.h
Common/DocxFormat/Source/Base/Base.h
+1
-1
X2tConverter/src/ASCConverters.cpp
X2tConverter/src/ASCConverters.cpp
+3
-42
No files found.
Common/DocxFormat/Source/Base/Base.h
View file @
0265162c
...
...
@@ -43,7 +43,7 @@
#define __T(x) L##x
#if defined(_WIN32) || defined (_WIN64)
#include <
WTYPES
.H>
#include <
TCHAR
.H>
// windows-stype separator for paths i.e. 'c:\home\documents\file.ext'
#ifndef FILE_SEPARATOR
...
...
X2tConverter/src/ASCConverters.cpp
View file @
0265162c
...
...
@@ -357,21 +357,9 @@ namespace NExtractTools
if
(
pptx_file
)
{
#if defined(_WIN32) || defined (_WIN64)
BSTR
bstrFontPath
=
SysAllocString
(
params
.
getFontPath
().
c_str
());
BSTR
bstrTempUnpackedPPTX
=
SysAllocString
(
sFrom
.
c_str
());
BSTR
bstrTo
=
SysAllocString
(
sTo
.
c_str
());
pptx_file
->
SetFontDir
(
bstrFontPath
);
nRes
=
(
S_OK
==
pptx_file
->
OpenFileToPPTY
(
bstrTempUnpackedPPTX
,
bstrTo
))
?
nRes
:
AVS_FILEUTILS_ERROR_CONVERT
;
SysFreeString
(
bstrFontPath
);
SysFreeString
(
bstrTempUnpackedPPTX
);
SysFreeString
(
bstrTo
);
#else
pptx_file
->
SetFontDir
(
params
.
getFontPath
());
nRes
=
(
S_OK
==
pptx_file
->
OpenFileToPPTY
(
sFrom
,
sTo
))
?
nRes
:
AVS_FILEUTILS_ERROR_CONVERT
;
#endif
delete
pptx_file
;
}
...
...
@@ -429,24 +417,9 @@ namespace NExtractTools
if
(
pptx_file
)
{
#if defined(_WIN32) || defined (_WIN64)
BSTR
bstrFontPath
=
SysAllocString
(
params
.
getFontPath
().
c_str
());
BSTR
bstrTargetBin
=
SysAllocString
(
sTargetBin
.
c_str
());
BSTR
bstrResultPptxDir
=
SysAllocString
(
sTo
.
c_str
());
BSTR
bstrThemeDir
=
SysAllocString
(
sThemeDir
.
c_str
());
pptx_file
->
SetFontDir
(
bstrFontPath
);
nRes
=
(
S_OK
==
pptx_file
->
ConvertPPTYToPPTX
(
bstrTargetBin
,
bstrResultPptxDir
,
bstrThemeDir
))
?
nRes
:
AVS_FILEUTILS_ERROR_CONVERT
;
SysFreeString
(
bstrFontPath
);
SysFreeString
(
bstrTargetBin
);
SysFreeString
(
bstrResultPptxDir
);
SysFreeString
(
bstrThemeDir
);
#else
pptx_file
->
SetFontDir
(
params
.
getFontPath
());
nRes
=
(
S_OK
==
pptx_file
->
ConvertPPTYToPPTX
(
sTargetBin
,
sTo
,
sThemeDir
))
?
nRes
:
AVS_FILEUTILS_ERROR_CONVERT
;
#endif
delete
pptx_file
;
}
//удаляем EditorWithChanges, потому что он не в Temp
...
...
@@ -881,21 +854,9 @@ namespace NExtractTools
if
(
pptx_file
)
{
#if defined(_WIN32) || defined (_WIN64)
BSTR
bstrFontPath
=
SysAllocString
(
params
.
getFontPath
().
c_str
());
BSTR
bstrTempUnpackedPPTX
=
SysAllocString
(
sTempUnpackedPPTX
.
c_str
());
BSTR
bstrTo
=
SysAllocString
(
sTo
.
c_str
());
pptx_file
->
SetFontDir
(
bstrFontPath
);
nRes
=
(
S_OK
==
pptx_file
->
OpenFileToPPTY
(
bstrTempUnpackedPPTX
,
bstrTo
))
?
nRes
:
AVS_FILEUTILS_ERROR_CONVERT
;
SysFreeString
(
bstrFontPath
);
SysFreeString
(
bstrTempUnpackedPPTX
);
SysFreeString
(
bstrTo
);
#else
pptx_file
->
SetFontDir
(
params
.
getFontPath
());
nRes
=
(
S_OK
==
pptx_file
->
OpenFileToPPTY
(
sTempUnpackedPPTX
,
sTo
))
?
nRes
:
AVS_FILEUTILS_ERROR_CONVERT
;
#endif
delete
pptx_file
;
}
...
...
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