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
4c3d8ca0
Commit
4c3d8ca0
authored
Apr 12, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ad74a8ea
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1761 additions
and
0 deletions
+1761
-0
HtmlFile/HtmlFile.cpp
HtmlFile/HtmlFile.cpp
+9
-0
X2tConverter/test/batch_convert/x2t_test/main.cpp
X2tConverter/test/batch_convert/x2t_test/main.cpp
+11
-0
X2tConverter/test/batch_convert/x2t_test/mainwindow.cpp
X2tConverter/test/batch_convert/x2t_test/mainwindow.cpp
+1168
-0
X2tConverter/test/batch_convert/x2t_test/mainwindow.h
X2tConverter/test/batch_convert/x2t_test/mainwindow.h
+73
-0
X2tConverter/test/batch_convert/x2t_test/mainwindow.ui
X2tConverter/test/batch_convert/x2t_test/mainwindow.ui
+414
-0
X2tConverter/test/batch_convert/x2t_test/x2t_test.pro
X2tConverter/test/batch_convert/x2t_test/x2t_test.pro
+86
-0
No files found.
HtmlFile/HtmlFile.cpp
View file @
4c3d8ca0
...
...
@@ -104,6 +104,15 @@ static bool IsLinuxXVFB()
return
false
;
}
}
else
if
(
oNode
.
FromXmlFile
(
sProcess
+
L"converter/DoctRenderer.config"
))
{
XmlUtils
::
CXmlNodes
oNodes
;
if
(
oNode
.
GetNodes
(
L"htmlnoxvfb"
,
oNodes
))
{
if
(
oNodes
.
GetCount
()
==
1
)
return
false
;
}
}
return
true
;
}
...
...
X2tConverter/test/batch_convert/x2t_test/main.cpp
0 → 100644
View file @
4c3d8ca0
#include "mainwindow.h"
#include <QApplication>
int
main
(
int
argc
,
char
*
argv
[])
{
QApplication
a
(
argc
,
argv
);
MainWindow
w
;
w
.
show
();
return
a
.
exec
();
}
X2tConverter/test/batch_convert/x2t_test/mainwindow.cpp
0 → 100644
View file @
4c3d8ca0
This diff is collapsed.
Click to expand it.
X2tConverter/test/batch_convert/x2t_test/mainwindow.h
0 → 100644
View file @
4c3d8ca0
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QResizeEvent>
class
CInternalWorker
;
namespace
Ui
{
class
MainWindow
;
}
class
MainWindow
:
public
QMainWindow
{
Q_OBJECT
public:
explicit
MainWindow
(
QWidget
*
parent
=
0
);
~
MainWindow
();
public:
virtual
void
resizeEvent
(
QResizeEvent
*
event
);
void
send_onDirectoryChecked
();
void
send_onFileConverted
(
int
);
signals:
void
signal_onDirectoryChecked
();
void
signal_onFileConverted
(
int
);
public
slots
:
void
pushButtonDirectoryClicked
();
void
pushButtonConvertClicked
();
void
outputIndexChanged
(
int
value
);
void
stateChanged_DOCX
(
bool
);
void
stateChanged_DOC
(
bool
);
void
stateChanged_ODT
(
bool
);
void
stateChanged_RTF
(
bool
);
void
stateChanged_TXT
(
bool
);
void
stateChanged_HTML
(
bool
);
void
stateChanged_DOC_ALL
(
bool
);
void
stateChanged_PPTX
(
bool
);
void
stateChanged_PPT
(
bool
);
void
stateChanged_ODP
(
bool
);
void
stateChanged_PPT_ALL
(
bool
);
void
stateChanged_XLSX
(
bool
);
void
stateChanged_XLS
(
bool
);
void
stateChanged_ODS
(
bool
);
void
stateChanged_CSV
(
bool
);
void
stateChanged_XLS_ALL
(
bool
);
void
stateChanged_PDF
(
bool
);
void
stateChanged_XPS
(
bool
);
void
stateChanged_DJVU
(
bool
);
void
stateChanged_DJVU_ALL
(
bool
);
void
slot_onDirectoryChecked
();
void
slot_onFileConverted
(
int
);
private:
Ui
::
MainWindow
*
ui
;
CInternalWorker
*
m_pWorker
;
private:
void
CorrectCheckBoxes
();
};
#endif // MAINWINDOW_H
X2tConverter/test/batch_convert/x2t_test/mainwindow.ui
0 → 100644
View file @
4c3d8ca0
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
MainWindow
</class>
<widget
class=
"QMainWindow"
name=
"MainWindow"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
517
</width>
<height>
563
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
MainWindow
</string>
</property>
<widget
class=
"QWidget"
name=
"centralWidget"
>
<widget
class=
"QPushButton"
name=
"pushButtonDirectory"
>
<property
name=
"geometry"
>
<rect>
<x>
470
</x>
<y>
10
</y>
<width>
31
</width>
<height>
31
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
...
</string>
</property>
</widget>
<widget
class=
"QTextEdit"
name=
"textEditDirectory"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
10
</y>
<width>
451
</width>
<height>
31
</height>
</rect>
</property>
</widget>
<widget
class=
"QGroupBox"
name=
"groupBoxINPUT"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
50
</y>
<width>
491
</width>
<height>
251
</height>
</rect>
</property>
<property
name=
"title"
>
<string>
GroupBox
</string>
</property>
<widget
class=
"QCheckBox"
name=
"checkBoxDOC_ALL"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
220
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxTXT"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
150
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxDOC"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
60
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxHTML"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
180
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxODT"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
90
</y>
<width>
72
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxDOCX"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
30
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxRTF"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
120
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxPPTX"
>
<property
name=
"geometry"
>
<rect>
<x>
130
</x>
<y>
30
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxPPT"
>
<property
name=
"geometry"
>
<rect>
<x>
130
</x>
<y>
60
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxODP"
>
<property
name=
"geometry"
>
<rect>
<x>
130
</x>
<y>
90
</y>
<width>
72
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxPPT_ALL"
>
<property
name=
"geometry"
>
<rect>
<x>
130
</x>
<y>
220
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxXLSX"
>
<property
name=
"geometry"
>
<rect>
<x>
240
</x>
<y>
30
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxXLS"
>
<property
name=
"geometry"
>
<rect>
<x>
240
</x>
<y>
60
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxODS"
>
<property
name=
"geometry"
>
<rect>
<x>
240
</x>
<y>
90
</y>
<width>
72
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxCSV"
>
<property
name=
"geometry"
>
<rect>
<x>
240
</x>
<y>
120
</y>
<width>
72
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxXLS_ALL"
>
<property
name=
"geometry"
>
<rect>
<x>
240
</x>
<y>
220
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxPDF"
>
<property
name=
"geometry"
>
<rect>
<x>
370
</x>
<y>
30
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxXPS"
>
<property
name=
"geometry"
>
<rect>
<x>
370
</x>
<y>
60
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxDJVU"
>
<property
name=
"geometry"
>
<rect>
<x>
370
</x>
<y>
90
</y>
<width>
72
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
<widget
class=
"QCheckBox"
name=
"checkBoxDJVU_ALL"
>
<property
name=
"geometry"
>
<rect>
<x>
370
</x>
<y>
220
</y>
<width>
72
</width>
<height>
19
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
CheckBox
</string>
</property>
</widget>
</widget>
<widget
class=
"QGroupBox"
name=
"groupBoxOUTPUT"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
310
</y>
<width>
491
</width>
<height>
81
</height>
</rect>
</property>
<property
name=
"title"
>
<string>
GroupBox
</string>
</property>
<widget
class=
"QLabel"
name=
"labelOutput"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
30
</y>
<width>
47
</width>
<height>
13
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
TextLabel
</string>
</property>
</widget>
<widget
class=
"QComboBox"
name=
"comboBoxOUTPUT"
>
<property
name=
"geometry"
>
<rect>
<x>
80
</x>
<y>
30
</y>
<width>
72
</width>
<height>
22
</height>
</rect>
</property>
</widget>
<widget
class=
"QSpinBox"
name=
"spinBoxThreads"
>
<property
name=
"geometry"
>
<rect>
<x>
240
</x>
<y>
30
</y>
<width>
43
</width>
<height>
22
</height>
</rect>
</property>
</widget>
<widget
class=
"QLabel"
name=
"labelThreads"
>
<property
name=
"geometry"
>
<rect>
<x>
170
</x>
<y>
30
</y>
<width>
47
</width>
<height>
13
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
TextLabel
</string>
</property>
</widget>
</widget>
<widget
class=
"QPushButton"
name=
"pushButtonConvert"
>
<property
name=
"geometry"
>
<rect>
<x>
210
</x>
<y>
400
</y>
<width>
80
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
PushButton
</string>
</property>
</widget>
<widget
class=
"QProgressBar"
name=
"progressBar"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
430
</y>
<width>
491
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"value"
>
<number>
24
</number>
</property>
</widget>
<widget
class=
"QTextEdit"
name=
"textEdit"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
460
</y>
<width>
491
</width>
<height>
81
</height>
</rect>
</property>
</widget>
</widget>
<widget
class=
"QStatusBar"
name=
"statusBar"
/>
</widget>
<layoutdefault
spacing=
"6"
margin=
"11"
/>
<resources/>
<connections/>
</ui>
X2tConverter/test/batch_convert/x2t_test/x2t_test.pro
0 → 100644
View file @
4c3d8ca0
#-------------------------------------------------
#
#
Project
created
by
QtCreator
2017
-
04
-
12
T11
:
12
:
01
#
#-------------------------------------------------
QT
+=
core
gui
greaterThan
(
QT_MAJOR_VERSION
,
4
)
:
QT
+=
widgets
TARGET
=
x2t_test
TEMPLATE
=
app
CONFIG
+=
c
++
11
CORE_ROOT_DIR
=
$$
PWD
/../../../../../
core
PWD_ROOT_DIR
=
$$
PWD
include
(
$$
CORE_ROOT_DIR
/
Common
/
base
.
pri
)
INCLUDEPATH
+=
\
$$
CORE_ROOT_DIR
/
DesktopEditor
/
agg
-
2.4
/
include
\
$$
CORE_ROOT_DIR
/
DesktopEditor
/
freetype
-
2.5
.
2
/
include
DESTDIR
=
$$
PWD
/
build
DEFINES
+=
\
UNICODE
\
_UNICODE
LIBS
+=
-
L
$$
CORE_BUILDS_LIBRARIES_PATH
-
lgraphics
-
lOfficeUtils
-
lUnicodeConverter
#
The
following
define
makes
your
compiler
emit
warnings
if
you
use
#
any
feature
of
Qt
which
as
been
marked
as
deprecated
(
the
exact
warnings
#
depend
on
your
compiler
).
Please
consult
the
documentation
of
the
#
deprecated
API
in
order
to
know
how
to
port
your
code
away
from
it
.
DEFINES
+=
QT_DEPRECATED_WARNINGS
#
You
can
also
make
your
code
fail
to
compile
if
you
use
deprecated
APIs
.
#
In
order
to
do
so
,
uncomment
the
following
line
.
#
You
can
also
select
to
disable
deprecated
APIs
only
up
to
a
certain
version
of
Qt
.
#
DEFINES
+=
QT_DISABLE_DEPRECATED_BEFORE
=
0
x060000
#
disables
all
the
APIs
deprecated
before
Qt
6.0
.
0
SOURCES
+=
\
$$
CORE_ROOT_DIR
/
Common
/
OfficeFileFormatChecker2
.
cpp
\
$$
CORE_ROOT_DIR
/
Common
/
3
dParty
/
pole
/
pole
.
cpp
\
main
.
cpp
\
mainwindow
.
cpp
HEADERS
+=
mainwindow
.
h
FORMS
+=
mainwindow
.
ui
core_windows
{
LIBS
+=
-
lwininet
\
-
ldnsapi
\
-
lversion
\
-
lmsimg32
\
-
lws2_32
\
-
lusp10
\
-
lpsapi
\
-
ldbghelp
\
-
lwinmm
\
-
lshlwapi
\
-
lkernel32
\
-
lgdi32
\
-
lwinspool
\
-
lcomdlg32
\
-
ladvapi32
\
-
lshell32
\
-
lole32
\
-
loleaut32
\
-
luser32
\
-
luuid
\
-
lodbc32
\
-
lodbccp32
\
-
ldelayimp
\
-
lcredui
\
-
lnetapi32
\
-
lcomctl32
\
-
lrpcrt4
\
-
ldwmapi
\
-
lOpenGL32
QMAKE_LFLAGS_WINDOWS
=
/
SUBSYSTEM
:
WINDOWS
,
5.02
}
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