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
49ab2346
Commit
49ab2346
authored
Aug 17, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
210a22ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
49 deletions
+7
-49
HtmlFile/test/main.cpp
HtmlFile/test/main.cpp
+2
-49
HtmlFile/test/test.pro
HtmlFile/test/test.pro
+5
-0
No files found.
HtmlFile/test/main.cpp
View file @
49ab2346
...
...
@@ -105,55 +105,11 @@ protected:
int
main
(
int
argc
,
char
*
argv
[])
{
#if 0
std::vector<std::wstring> arFiles;
#ifdef WIN32
std::wstring sPath = NSFile::GetProcessDirectory() + L"/../../Internal/windows/Release/";
arFiles.push_back(L"file:///C:/Users/oleg.korshul/Desktop/original_message%20(5).html");
std::wstring sDstFolder = L"D:/test/Document";
#else
std::wstring sPath = NSFile::GetProcessDirectory() + L"/../../Internal/linux/Release/";
arFiles.push_back(L"/home/oleg/activex/test.html");
std::wstring sDstFolder = L"/home/oleg/activex/1/";
#endif
CHtmlFile
oFile
;
int
nResult
=
oFile
.
Convert
(
arFiles
,
sDstFolder
,
sPath
);
nResult
;
#else
#ifdef WIN32
std
::
wstring
sPath
=
NSFile
::
GetProcessDirectory
()
+
L"/../../Internal/windows/Release/"
;
//std::wstring sSrc = L"D:\\activex\\1\\1";
std
::
wstring
sSrc
=
L"
\\\\
192.168.3.208
\\
allusers
\\
Files
\\
HTML
\\
AllHTML
\\
embed.html"
;
std
::
wstring
sDstFolder
=
L"D:/test/Document"
;
#else
std
::
wstring
sPath
=
NSFile
::
GetProcessDirectory
()
+
L"/../../Internal/linux/Release/"
;
std
::
wstring
sSrc
=
L"/home/oleg/activex/37898EB"
;
std
::
wstring
sDstFolder
=
L"/home/oleg/activex/1/"
;
#endif
#if 1
CHtmlFile
oFile
;
int
nResult
=
oFile
.
ConvertMht
(
L"/home/oleg/activex/1/Яндекс.mht"
,
sDstFolder
,
sPath
);
//int nResult = oFile.ConvertMht(L"\\\\KIRILLOV8\\_Office\\MHT\\Problem_20091016_1927.mht", sDstFolder, sPath);
return
0
;
#endif
#if 0
CHtmlFile
oFile
;
std
::
wstring
sMetaInfo
;
//int nResult = oFile.ConvertEpub(sSrc, sMetaInfo, sDstFolder, sPath);
std::vector<std::wstring> arFiles;
arFiles.push_back(sSrc);
int nResult = oFile.Convert(arFiles, sDstFolder, sPath);
nResult;
int
nResult
=
oFile
.
ConvertEpub
(
L"D:/1"
,
sMetaInfo
,
L"D:/test/Document"
);
return
0
;
#else
int
nCountTC
=
1
;
...
...
@@ -170,9 +126,6 @@ int main(int argc, char *argv[])
while
(
0
!=
oCounter
.
GetCounter
())
NSThreads
::
Sleep
(
100
);
#endif
#endif
return
0
;
...
...
HtmlFile/test/test.pro
View file @
49ab2346
...
...
@@ -11,6 +11,8 @@ TARGET = test
CONFIG
+=
console
CONFIG
-=
app_bundle
CONFIG
-=
debug_and_release
debug_and_release_target
DEFINES
+=
HTMLFILE_USE_DYNAMIC_LIBRARY
DEFINES
+=
UNICODECONVERTER_USE_DYNAMIC_LIBRARY
...
...
@@ -65,6 +67,9 @@ win32 {
LIBS
+=
-
ladvapi32
\
-
luser32
\
-
lshell32
LIBS
+=
-
L
$$
PWD
/../../
build
/
bin
/
icu
/
win_64
/
-
licudt
LIBS
+=
-
L
$$
PWD
/../../
build
/
bin
/
icu
/
win_64
/
-
licuuc
}
SOURCES
+=
main
.
cpp
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