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
1bd2c0b8
Commit
1bd2c0b8
authored
Jan 31, 2017
by
konovalovsergey
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.2.7' into develop
fix bug 33867
parents
82b0f4bc
765ca861
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
X2tConverter/src/ASCConverters.cpp
X2tConverter/src/ASCConverters.cpp
+7
-7
X2tConverter/src/ASCConverters.h
X2tConverter/src/ASCConverters.h
+1
-1
No files found.
X2tConverter/src/ASCConverters.cpp
View file @
1bd2c0b8
...
@@ -248,16 +248,16 @@ namespace NExtractTools
...
@@ -248,16 +248,16 @@ namespace NExtractTools
}
}
else
return
AVS_FILEUTILS_ERROR_CONVERT
;
}
else
return
AVS_FILEUTILS_ERROR_CONVERT
;
}
return
xlsx_dir2xlst_bin
(
sTempUnpackedXLSX
,
sTo
,
params
);
return
xlsx_dir2xlst_bin
(
sTempUnpackedXLSX
,
sTo
,
params
,
true
);
}
}
int
xlsx_dir2xlst_bin
(
const
std
::
wstring
&
sXlsxDir
,
const
std
::
wstring
&
sTo
,
InputParams
&
params
)
int
xlsx_dir2xlst_bin
(
const
std
::
wstring
&
sXlsxDir
,
const
std
::
wstring
&
sTo
,
InputParams
&
params
,
bool
bXmlOptions
)
{
{
// Save to file (from temp dir)
// Save to file (from temp dir)
BinXlsxRW
::
CXlsxSerializer
m_oCXlsxSerializer
;
BinXlsxRW
::
CXlsxSerializer
m_oCXlsxSerializer
;
m_oCXlsxSerializer
.
setFontDir
(
params
.
getFontPath
());
m_oCXlsxSerializer
.
setFontDir
(
params
.
getFontPath
());
return
m_oCXlsxSerializer
.
saveToFile
(
sTo
,
sXlsxDir
,
params
.
getXmlOptions
()
)
?
0
:
AVS_FILEUTILS_ERROR_CONVERT
;
return
m_oCXlsxSerializer
.
saveToFile
(
sTo
,
sXlsxDir
,
bXmlOptions
?
params
.
getXmlOptions
()
:
L""
)
?
0
:
AVS_FILEUTILS_ERROR_CONVERT
;
}
}
// xslx -> xslt
// xslx -> xslt
...
@@ -2053,11 +2053,11 @@ namespace NExtractTools
...
@@ -2053,11 +2053,11 @@ namespace NExtractTools
}
}
else
if
(
AVS_OFFICESTUDIO_FILE_OTHER_JSON
==
nFormatTo
)
else
if
(
AVS_OFFICESTUDIO_FILE_OTHER_JSON
==
nFormatTo
)
{
{
nRes
=
xlsx_dir2xlst_bin
(
sFrom
,
sTo
,
params
);
nRes
=
xlsx_dir2xlst_bin
(
sFrom
,
sTo
,
params
,
true
);
}
}
else
if
(
AVS_OFFICESTUDIO_FILE_CANVAS_SPREADSHEET
==
nFormatTo
)
else
if
(
AVS_OFFICESTUDIO_FILE_CANVAS_SPREADSHEET
==
nFormatTo
)
{
{
nRes
=
xlsx_dir2xlst_bin
(
sFrom
,
sTo
,
params
);
nRes
=
xlsx_dir2xlst_bin
(
sFrom
,
sTo
,
params
,
true
);
}
}
else
else
{
{
...
@@ -2065,9 +2065,9 @@ namespace NExtractTools
...
@@ -2065,9 +2065,9 @@ namespace NExtractTools
NSDirectory
::
CreateDirectory
(
sXlstDir
);
NSDirectory
::
CreateDirectory
(
sXlstDir
);
std
::
wstring
sTFile
=
sXlstDir
+
FILE_SEPARATOR_STR
+
_T
(
"Editor.bin"
);
std
::
wstring
sTFile
=
sXlstDir
+
FILE_SEPARATOR_STR
+
_T
(
"Editor.bin"
);
if
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV
==
nFormatTo
)
if
(
AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV
==
nFormatTo
)
nRes
=
xlsx_dir2xlst_bin
(
sFrom
,
sTFile
,
params
);
nRes
=
xlsx_dir2xlst_bin
(
sFrom
,
sTFile
,
params
,
false
);
else
else
nRes
=
xlsx_dir2xlst_bin
(
sFrom
,
sTFile
,
params
);
nRes
=
xlsx_dir2xlst_bin
(
sFrom
,
sTFile
,
params
,
true
);
if
(
SUCCEEDED_X2T
(
nRes
))
if
(
SUCCEEDED_X2T
(
nRes
))
{
{
nRes
=
fromXlstBin
(
sTFile
,
sTo
,
nFormatTo
,
sTemp
,
sThemeDir
,
bFromChanges
,
bPaid
,
params
);
nRes
=
fromXlstBin
(
sTFile
,
sTo
,
nFormatTo
,
sTemp
,
sThemeDir
,
bFromChanges
,
bPaid
,
params
);
...
...
X2tConverter/src/ASCConverters.h
View file @
1bd2c0b8
...
@@ -56,7 +56,7 @@ namespace NExtractTools
...
@@ -56,7 +56,7 @@ namespace NExtractTools
int
doct2docx
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
bool
bFromChanges
,
const
std
::
wstring
&
sThemeDir
,
InputParams
&
params
);
int
doct2docx
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
bool
bFromChanges
,
const
std
::
wstring
&
sThemeDir
,
InputParams
&
params
);
int
xlsx2xlst_bin
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
InputParams
&
params
);
int
xlsx2xlst_bin
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
InputParams
&
params
);
int
xlsx_dir2xlst_bin
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
InputParams
&
param
s
);
int
xlsx_dir2xlst_bin
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
InputParams
&
params
,
bool
bXmlOption
s
);
int
xlsx2xlst
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
InputParams
&
params
);
int
xlsx2xlst
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
InputParams
&
params
);
int
xlst_bin2xlsx
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
bool
bFromChanges
,
const
std
::
wstring
&
sThemeDir
,
InputParams
&
params
);
int
xlst_bin2xlsx
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sTo
,
const
std
::
wstring
&
sTemp
,
bool
bFromChanges
,
const
std
::
wstring
&
sThemeDir
,
InputParams
&
params
);
int
xlst_bin2xlsx_dir
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sToResult
,
const
std
::
wstring
&
sTo
,
bool
bFromChanges
,
const
std
::
wstring
&
sThemeDir
,
InputParams
&
params
);
int
xlst_bin2xlsx_dir
(
const
std
::
wstring
&
sFrom
,
const
std
::
wstring
&
sToResult
,
const
std
::
wstring
&
sTo
,
bool
bFromChanges
,
const
std
::
wstring
&
sThemeDir
,
InputParams
&
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