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
f79fb37b
Commit
f79fb37b
authored
Aug 29, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x2tConverter - font path now from inputParams
parent
3fc3f715
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
318 additions
and
324 deletions
+318
-324
X2tConverter/src/ASCConverters.cpp
X2tConverter/src/ASCConverters.cpp
+199
-205
X2tConverter/src/ASCConverters.h
X2tConverter/src/ASCConverters.h
+66
-66
X2tConverter/src/cextracttools.cpp
X2tConverter/src/cextracttools.cpp
+4
-4
X2tConverter/src/cextracttools.h
X2tConverter/src/cextracttools.h
+6
-3
X2tConverter/src/main.cpp
X2tConverter/src/main.cpp
+43
-46
No files found.
X2tConverter/src/ASCConverters.cpp
View file @
f79fb37b
This diff is collapsed.
Click to expand it.
X2tConverter/src/ASCConverters.h
View file @
f79fb37b
This diff is collapsed.
Click to expand it.
X2tConverter/src/cextracttools.cpp
View file @
f79fb37b
...
...
@@ -243,7 +243,7 @@ namespace NExtractTools
return
oBuilder
.
GetData
();
}
std
::
wstring
getDoctXml
(
NSDoctRenderer
::
DoctRendererFormat
::
FormatFile
eFromType
,
NSDoctRenderer
::
DoctRendererFormat
::
FormatFile
eToType
,
const
std
::
wstring
&
sTFileDir
,
const
std
::
wstring
&
sPdfBinFile
,
const
std
::
wstring
&
s
FontPath
,
const
std
::
wstring
&
s
ImagesDirectory
,
const
std
::
wstring
&
sTFileDir
,
const
std
::
wstring
&
sPdfBinFile
,
const
std
::
wstring
&
sImagesDirectory
,
const
std
::
wstring
&
sThemeDir
,
int
nTopIndex
,
const
std
::
wstring
&
sMailMerge
,
const
InputParams
&
params
)
{
NSStringUtils
::
CStringBuilder
oBuilder
;
...
...
@@ -256,7 +256,7 @@ namespace NExtractTools
oBuilder
.
WriteString
(
_T
(
"</SrcFilePath><DstFilePath>"
));
oBuilder
.
WriteEncodeXmlString
(
sPdfBinFile
.
c_str
());
oBuilder
.
WriteString
(
_T
(
"</DstFilePath><FontsDirectory>"
));
oBuilder
.
WriteEncodeXmlString
(
sFontPath
.
c_str
());
oBuilder
.
WriteEncodeXmlString
(
params
.
getFontPath
()
.
c_str
());
oBuilder
.
WriteString
(
_T
(
"</FontsDirectory><ImagesDirectory>"
));
oBuilder
.
WriteEncodeXmlString
(
sImagesDirectory
.
c_str
());
oBuilder
.
WriteString
(
_T
(
"</ImagesDirectory><ThemesDirectory>"
));
...
...
@@ -296,7 +296,7 @@ namespace NExtractTools
oBuilder
.
WriteString
(
_T
(
"</Settings>"
));
return
oBuilder
.
GetData
();
}
int
apply_changes
(
const
std
::
wstring
&
sBinFrom
,
const
std
::
wstring
&
sToResult
,
NSDoctRenderer
::
DoctRendererFormat
::
FormatFile
eType
,
const
std
::
wstring
&
s
FontDir
,
const
std
::
wstring
&
s
ThemeDir
,
std
::
wstring
&
sBinTo
,
const
InputParams
&
params
)
int
apply_changes
(
const
std
::
wstring
&
sBinFrom
,
const
std
::
wstring
&
sToResult
,
NSDoctRenderer
::
DoctRendererFormat
::
FormatFile
eType
,
const
std
::
wstring
&
sThemeDir
,
std
::
wstring
&
sBinTo
,
const
InputParams
&
params
)
{
int
nRes
=
0
;
std
::
wstring
sBinDir
=
FileSystem
::
Directory
::
GetFolderPath
(
sBinFrom
);
...
...
@@ -310,7 +310,7 @@ namespace NExtractTools
int
nChangeIndex
=
-
1
;
while
(
true
)
{
std
::
wstring
sXml
=
getDoctXml
(
eType
,
eType
,
sBinDir
,
sBinTo
,
s
FontDir
,
s
ImagesDirectory
,
sThemeDir
,
nChangeIndex
,
_T
(
""
),
params
);
std
::
wstring
sXml
=
getDoctXml
(
eType
,
eType
,
sBinDir
,
sBinTo
,
sImagesDirectory
,
sThemeDir
,
nChangeIndex
,
_T
(
""
),
params
);
std
::
wstring
sResult
;
oDoctRenderer
.
Execute
(
sXml
,
sResult
);
bool
bContinue
=
false
;
...
...
X2tConverter/src/cextracttools.h
View file @
f79fb37b
...
...
@@ -389,7 +389,10 @@ namespace NExtractTools
{
return
(
NULL
!=
m_sPassword
)
?
(
*
m_sPassword
)
:
L""
;
}
std
::
wstring
getFontPath
()
const
{
return
(
NULL
!=
m_sFontDir
)
?
(
*
m_sFontDir
)
:
L""
;
}
std
::
wstring
getXmlOptions
()
{
CString
sRes
;
...
...
@@ -782,8 +785,8 @@ namespace NExtractTools
}
std
::
wstring
getMailMergeXml
(
const
std
::
wstring
&
sJsonPath
,
int
nRecordFrom
,
int
nRecordTo
,
const
std
::
wstring
&
sField
);
std
::
wstring
getDoctXml
(
NSDoctRenderer
::
DoctRendererFormat
::
FormatFile
eFromType
,
NSDoctRenderer
::
DoctRendererFormat
::
FormatFile
eToType
,
const
std
::
wstring
&
sTFileDir
,
const
std
::
wstring
&
sPdfBinFile
,
const
std
::
wstring
&
s
FontPath
,
const
std
::
wstring
&
s
ImagesDirectory
,
const
std
::
wstring
&
sTFileDir
,
const
std
::
wstring
&
sPdfBinFile
,
const
std
::
wstring
&
sImagesDirectory
,
const
std
::
wstring
&
sThemeDir
,
int
nTopIndex
,
const
std
::
wstring
&
sMailMerge
,
const
InputParams
&
params
);
int
apply_changes
(
const
std
::
wstring
&
sBinFrom
,
const
std
::
wstring
&
sToResult
,
NSDoctRenderer
::
DoctRendererFormat
::
FormatFile
eType
,
const
std
::
wstring
&
s
FontDir
,
const
std
::
wstring
&
s
ThemeDir
,
std
::
wstring
&
sBinTo
,
const
InputParams
&
params
);
int
apply_changes
(
const
std
::
wstring
&
sBinFrom
,
const
std
::
wstring
&
sToResult
,
NSDoctRenderer
::
DoctRendererFormat
::
FormatFile
eType
,
const
std
::
wstring
&
sThemeDir
,
std
::
wstring
&
sBinTo
,
const
InputParams
&
params
);
}
#endif // CEXTRACTTOOLS_H
X2tConverter/src/main.cpp
View file @
f79fb37b
This diff is collapsed.
Click to expand it.
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