summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CHURLAUD <olivier@churlaud.com>2016-07-21 21:05:54 (GMT)
committerOlivier CHURLAUD <olivier@churlaud.com>2016-07-21 21:05:54 (GMT)
commit3b608a66c94b61975b29c5665fafe01d6f7b5b9e (patch)
tree15c31bb176992a66f2873687ae2eb27765c44e59
parentef6f5ebc3b7063abdf8328777d17fd1d2482982d (diff)
Preview functions again.
I added again the okularXXX.desktop Correct the mess done by review 126193
-rw-r--r--generators/chm/CMakeLists.txt2
-rw-r--r--generators/chm/okularChm.desktop66
-rw-r--r--generators/comicbook/CMakeLists.txt2
-rw-r--r--generators/comicbook/okularComicbook.desktop66
-rw-r--r--generators/djvu/CMakeLists.txt2
-rw-r--r--generators/djvu/okularDjvu.desktop66
-rw-r--r--generators/dvi/CMakeLists.txt2
-rw-r--r--generators/dvi/okularDvi.desktop66
-rw-r--r--generators/epub/CMakeLists.txt2
-rw-r--r--generators/epub/okularEPub.desktop66
-rw-r--r--generators/fax/CMakeLists.txt2
-rw-r--r--generators/fax/okularFax.desktop66
-rw-r--r--generators/fictionbook/CMakeLists.txt2
-rw-r--r--generators/fictionbook/okularFb.desktop66
-rw-r--r--generators/kimgio/CMakeLists.txt2
-rw-r--r--generators/kimgio/okularKimgio.desktop66
-rw-r--r--generators/mobipocket/CMakeLists.txt2
-rw-r--r--generators/mobipocket/okularMobi.desktop66
-rw-r--r--generators/ooo/CMakeLists.txt2
-rw-r--r--generators/ooo/okularOoo.desktop66
-rw-r--r--generators/plucker/CMakeLists.txt2
-rw-r--r--generators/plucker/okularPlucker.desktop66
-rw-r--r--generators/poppler/CMakeLists.txt2
-rw-r--r--generators/poppler/okularPoppler.desktop66
-rw-r--r--generators/tiff/CMakeLists.txt2
-rw-r--r--generators/tiff/okularTiff.desktop66
-rw-r--r--generators/txt/CMakeLists.txt2
-rw-r--r--generators/txt/okularTxt.desktop66
-rw-r--r--generators/xps/CMakeLists.txt2
-rw-r--r--generators/xps/okularXps.desktop66
-rw-r--r--part.cpp7
31 files changed, 1010 insertions, 17 deletions
diff --git a/generators/chm/CMakeLists.txt b/generators/chm/CMakeLists.txt
index 8ccd00b..05a7997 100644
--- a/generators/chm/CMakeLists.txt
+++ b/generators/chm/CMakeLists.txt
@@ -23,6 +23,6 @@ okular_add_generator(okularGenerator_chmlib ${okularGenerator_chmlib_SRCS})
target_link_libraries(okularGenerator_chmlib okularcore ${CHM_LIBRARY} KF5::KHtml)
########### install files ###############
-
+install( FILES okularChm.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_chm.desktop org.kde.mobile.okular_chm.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/chm/okularChm.desktop b/generators/chm/okularChm.desktop
new file mode 100644
index 0000000..ed42bc2
--- /dev/null
+++ b/generators/chm/okularChm.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/x-chm;
diff --git a/generators/comicbook/CMakeLists.txt b/generators/comicbook/CMakeLists.txt
index e4741b7..fd3f98d 100644
--- a/generators/comicbook/CMakeLists.txt
+++ b/generators/comicbook/CMakeLists.txt
@@ -22,6 +22,6 @@ if (UNIX)
endif (UNIX)
########### install files ###############
-
+install( FILES okularComicbook.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_comicbook.desktop org.kde.mobile.okular_comicbook.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/comicbook/okularComicbook.desktop b/generators/comicbook/okularComicbook.desktop
new file mode 100644
index 0000000..1dded78
--- /dev/null
+++ b/generators/comicbook/okularComicbook.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/x-cbz;application/x-cbr;application/x-cbt;
diff --git a/generators/djvu/CMakeLists.txt b/generators/djvu/CMakeLists.txt
index 6120505..36c0450 100644
--- a/generators/djvu/CMakeLists.txt
+++ b/generators/djvu/CMakeLists.txt
@@ -18,7 +18,7 @@ okular_add_generator(okularGenerator_djvu ${okularGenerator_djvu_SRCS})
target_link_libraries(okularGenerator_djvu okularcore ${DJVULIBRE_LIBRARY} KF5::I18n)
########### install files ###############
-
+install( FILES okularDjvu.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_djvu.desktop org.kde.mobile.okular_djvu.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/djvu/okularDjvu.desktop b/generators/djvu/okularDjvu.desktop
new file mode 100644
index 0000000..1c2fd43
--- /dev/null
+++ b/generators/djvu/okularDjvu.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=image/vnd.djvu;
diff --git a/generators/dvi/CMakeLists.txt b/generators/dvi/CMakeLists.txt
index 801e507..74112d0 100644
--- a/generators/dvi/CMakeLists.txt
+++ b/generators/dvi/CMakeLists.txt
@@ -55,6 +55,6 @@ endif (FREETYPE_FOUND)
########### install files ###############
-
+install( FILES okularDvi.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_dvi.desktop org.kde.mobile.okular_dvi.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/dvi/okularDvi.desktop b/generators/dvi/okularDvi.desktop
new file mode 100644
index 0000000..5c7d3a9
--- /dev/null
+++ b/generators/dvi/okularDvi.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/x-dvi;application/x-gzdvi;application/x-bzdvi;
diff --git a/generators/epub/CMakeLists.txt b/generators/epub/CMakeLists.txt
index 8539b99..3f40b94 100644
--- a/generators/epub/CMakeLists.txt
+++ b/generators/epub/CMakeLists.txt
@@ -19,5 +19,5 @@ okular_add_generator(okularGenerator_epub ${okularGenerator_epub_PART_SRCS})
target_link_libraries(okularGenerator_epub okularcore ${EPUB_LIBRARIES} KF5::I18n Qt5::Widgets Qt5::Xml)
########### install files ###############
-
+install( FILES okularEPub.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_epub.desktop org.kde.mobile.okular_epub.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/epub/okularEPub.desktop b/generators/epub/okularEPub.desktop
new file mode 100644
index 0000000..2da8c90
--- /dev/null
+++ b/generators/epub/okularEPub.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/epub+zip;
diff --git a/generators/fax/CMakeLists.txt b/generators/fax/CMakeLists.txt
index 058f1c9..e682fb6 100644
--- a/generators/fax/CMakeLists.txt
+++ b/generators/fax/CMakeLists.txt
@@ -12,5 +12,5 @@ okular_add_generator(okularGenerator_fax ${okularGenerator_fax_PART_SRCS})
target_link_libraries(okularGenerator_fax okularcore KF5::I18n Qt5::Xml)
########### install files ###############
-
+install( FILES okularFax.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_fax.desktop org.kde.mobile.okular_fax.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/fax/okularFax.desktop b/generators/fax/okularFax.desktop
new file mode 100644
index 0000000..8b86b91
--- /dev/null
+++ b/generators/fax/okularFax.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=image/fax-g3;image/g3fax;
diff --git a/generators/fictionbook/CMakeLists.txt b/generators/fictionbook/CMakeLists.txt
index 453530a..f2ceaae 100644
--- a/generators/fictionbook/CMakeLists.txt
+++ b/generators/fictionbook/CMakeLists.txt
@@ -18,7 +18,7 @@ okular_add_generator(okularGenerator_fb ${okularGenerator_fb_PART_SRCS})
target_link_libraries(okularGenerator_fb okularcore KF5::Archive KF5::I18n KF5::KIOCore Qt5::Xml)
########### install files ###############
-
+install( FILES okularFb.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_fb.desktop org.kde.mobile.okular_fb.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
ecm_install_icons(ICONS 16-apps-okular-fb2.png 32-apps-okular-fb2.png 48-apps-okular-fb2.png DESTINATION ${KDE_INSTALL_DATADIR}/okular/icons THEME hicolor)
diff --git a/generators/fictionbook/okularFb.desktop b/generators/fictionbook/okularFb.desktop
new file mode 100644
index 0000000..998b224
--- /dev/null
+++ b/generators/fictionbook/okularFb.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/x-fictionbook+xml;
diff --git a/generators/kimgio/CMakeLists.txt b/generators/kimgio/CMakeLists.txt
index fe5ec52..9ac7aeb 100644
--- a/generators/kimgio/CMakeLists.txt
+++ b/generators/kimgio/CMakeLists.txt
@@ -16,5 +16,5 @@ target_compile_definitions(kimgiotest PRIVATE -DGENERATOR_PATH="$<TARGET_FILE:ok
########### install files ###############
-
+install( FILES okularKimgio.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_kimgio.desktop org.kde.mobile.okular_kimgio.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/kimgio/okularKimgio.desktop b/generators/kimgio/okularKimgio.desktop
new file mode 100644
index 0000000..983c300
--- /dev/null
+++ b/generators/kimgio/okularKimgio.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=image/bmp;image/x-dds;image/x-eps;image/x-exr;image/gif;image/x-hdr;image/x-ico;image/jp2;image/jpeg;video/x-mng;image/x-portable-bitmap;image/x-pcx;image/x-portable-graymap;image/png;image/x-portable-pixmap;image/x-psd;image/x-rgb;image/x-tga;image/tiff;image/x-xbitmap;image/x-xcf;image/x-xpixmap;image/x-gzeps;image/x-bzeps;
diff --git a/generators/mobipocket/CMakeLists.txt b/generators/mobipocket/CMakeLists.txt
index 141ba0d..83adf81 100644
--- a/generators/mobipocket/CMakeLists.txt
+++ b/generators/mobipocket/CMakeLists.txt
@@ -13,5 +13,5 @@ okular_add_generator(okularGenerator_mobi ${okularGenerator_mobi_PART_SRCS})
target_link_libraries(okularGenerator_mobi okularcore ${QMOBIPOCKET_LIBRARIES} KF5::I18n Qt5::Gui)
########### install files ###############
-
+install( FILES okularMobi.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_mobi.desktop org.kde.mobile.okular_mobi.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/mobipocket/okularMobi.desktop b/generators/mobipocket/okularMobi.desktop
new file mode 100644
index 0000000..5a50a33
--- /dev/null
+++ b/generators/mobipocket/okularMobi.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/x-mobipocket-ebook;
diff --git a/generators/ooo/CMakeLists.txt b/generators/ooo/CMakeLists.txt
index 57404a8..1b894b2 100644
--- a/generators/ooo/CMakeLists.txt
+++ b/generators/ooo/CMakeLists.txt
@@ -33,6 +33,6 @@ if (Qca-qt5_FOUND)
endif ()
########### install files ###############
-
+install( FILES okularOoo.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_ooo.desktop org.kde.mobile.okular_ooo.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/ooo/okularOoo.desktop b/generators/ooo/okularOoo.desktop
new file mode 100644
index 0000000..f319c8c
--- /dev/null
+++ b/generators/ooo/okularOoo.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/vnd.oasis.opendocument.text;
diff --git a/generators/plucker/CMakeLists.txt b/generators/plucker/CMakeLists.txt
index b87146b..fde51dd 100644
--- a/generators/plucker/CMakeLists.txt
+++ b/generators/plucker/CMakeLists.txt
@@ -25,5 +25,5 @@ okular_add_generator(okularGenerator_plucker ${okularGenerator_plucker_SRCS} ${q
target_link_libraries(okularGenerator_plucker okularcore KF5::KIOCore KF5::I18n ${MATH_LIB} ${JPEG_LIBRARY} ${ZLIB_LIBRARY})
########### install files ###############
-
+install( FILES okularPlucker.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_plucker.desktop org.kde.mobile.okular_plucker.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/plucker/okularPlucker.desktop b/generators/plucker/okularPlucker.desktop
new file mode 100644
index 0000000..17c5704
--- /dev/null
+++ b/generators/plucker/okularPlucker.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/prs.plucker;
diff --git a/generators/poppler/CMakeLists.txt b/generators/poppler/CMakeLists.txt
index bc0eaef..08ee1a0 100644
--- a/generators/poppler/CMakeLists.txt
+++ b/generators/poppler/CMakeLists.txt
@@ -45,6 +45,6 @@ okular_add_generator(okularGenerator_poppler ${okularGenerator_poppler_PART_SRCS
target_link_libraries(okularGenerator_poppler okularcore KF5::I18n KF5::Completion Poppler::Qt5 Qt5::Xml)
########### install files ###############
-
+install( FILES okularPoppler.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_pdf.desktop org.kde.mobile.okular_pdf.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/poppler/okularPoppler.desktop b/generators/poppler/okularPoppler.desktop
new file mode 100644
index 0000000..a1ef1d8
--- /dev/null
+++ b/generators/poppler/okularPoppler.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/x-pdf;application/pdf;application/x-gzpdf;application/x-bzpdf;application/x-wwf;
diff --git a/generators/tiff/CMakeLists.txt b/generators/tiff/CMakeLists.txt
index 84ae45a..31349ec 100644
--- a/generators/tiff/CMakeLists.txt
+++ b/generators/tiff/CMakeLists.txt
@@ -14,5 +14,5 @@ okular_add_generator(okularGenerator_tiff ${okularGenerator_tiff_SRCS})
target_link_libraries(okularGenerator_tiff okularcore ${TIFF_LIBRARIES} KF5::I18n)
########### install files ###############
-
+install( FILES okularTiff.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_tiff.desktop org.kde.mobile.okular_tiff.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/tiff/okularTiff.desktop b/generators/tiff/okularTiff.desktop
new file mode 100644
index 0000000..cfc2b39
--- /dev/null
+++ b/generators/tiff/okularTiff.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=image/tiff;
diff --git a/generators/txt/CMakeLists.txt b/generators/txt/CMakeLists.txt
index ad79abe..ac332cf 100644
--- a/generators/txt/CMakeLists.txt
+++ b/generators/txt/CMakeLists.txt
@@ -17,5 +17,5 @@ okular_add_generator(okularGenerator_txt ${okularGenerator_txt_SRCS})
target_link_libraries(okularGenerator_txt okularcore Qt5::Core KF5::I18n)
########### install files ###############
-
+install( FILES okularTxt.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_txt.desktop org.kde.mobile.okular_txt.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/txt/okularTxt.desktop b/generators/txt/okularTxt.desktop
new file mode 100644
index 0000000..e9dda9f
--- /dev/null
+++ b/generators/txt/okularTxt.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=text/plain;
diff --git a/generators/xps/CMakeLists.txt b/generators/xps/CMakeLists.txt
index 0b0f36c..32e24d0 100644
--- a/generators/xps/CMakeLists.txt
+++ b/generators/xps/CMakeLists.txt
@@ -14,6 +14,6 @@ okular_add_generator(okularGenerator_xps ${okularGenerator_xps_SRCS})
target_link_libraries(okularGenerator_xps okularcore KF5::Archive KF5::I18n KF5::KIOCore Qt5::PrintSupport Qt5::Xml)
########### install files ###############
-
+install( FILES okularXps.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_xps.desktop org.kde.mobile.okular_xps.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
diff --git a/generators/xps/okularXps.desktop b/generators/xps/okularXps.desktop
new file mode 100644
index 0000000..2e5a2c4
--- /dev/null
+++ b/generators/xps/okularXps.desktop
@@ -0,0 +1,66 @@
+[Desktop Entry]
+Icon=okular
+Name=Okular
+Name[ar]=اوكلار
+Name[ast]=Okular
+Name[bg]=Okular
+Name[bs]=Okular
+Name[ca]=Okular
+Name[ca@valencia]=Okular
+Name[cs]=Okular
+Name[da]=Okular
+Name[de]=Okular
+Name[el]=Okular
+Name[en_GB]=Okular
+Name[eo]=Okular
+Name[es]=Okular
+Name[et]=Okular
+Name[eu]=Okular
+Name[fi]=Okular
+Name[fr]=Okular
+Name[ga]=Okular
+Name[gl]=Okular
+Name[hne]=ओकुलर
+Name[hr]=Okular
+Name[hu]=Okular
+Name[ia]=Okular
+Name[is]=Okular
+Name[it]=Okular
+Name[ja]=Okular
+Name[kk]=Okular
+Name[km]=Okular
+Name[ko]=Okular
+Name[ku]=Okular
+Name[lt]=Okular
+Name[lv]=Okular
+Name[mr]=ओक्युलर
+Name[nb]=Okular
+Name[nds]=Okular
+Name[nl]=Okular
+Name[nn]=Okular
+Name[pa]=ਓਕੁਲਾਰ
+Name[pl]=Okular
+Name[pt]=Okular
+Name[pt_BR]=Okular
+Name[ro]=Okular
+Name[ru]=Okular
+Name[si]=Okular
+Name[sk]=Okular
+Name[sl]=Okular
+Name[sq]=Okular
+Name[sr]=Окулар
+Name[sr@ijekavian]=Окулар
+Name[sr@ijekavianlatin]=Okular
+Name[sr@latin]=Okular
+Name[sv]=Okular
+Name[th]=โอกูลาร์
+Name[tr]=Okular
+Name[ug]=Okular
+Name[uk]=Okular
+Name[x-test]=xxOkularxx
+Name[zh_CN]=Okular
+Name[zh_TW]=文件檢視_Okular
+X-KDE-ServiceTypes=KParts/ReadOnlyPart
+X-KDE-Library=okularpart
+Type=Service
+MimeType=application/oxps;application/vnd.ms-xpsdocument;
diff --git a/part.cpp b/part.cpp
index a0770d1..05cd57a 100644
--- a/part.cpp
+++ b/part.cpp
@@ -68,6 +68,8 @@
#include <KXMLGUIClient>
#include <KXMLGUIFactory>
+#include <KPrintPreview>
+
#if 0
#include <knewstuff2/engine.h>
#endif
@@ -2459,7 +2461,7 @@ void Part::slotPrintPreview()
// Native printing supports KPrintPreview, Postscript needs to use FilePrinterPreview
if ( m_document->printingSupport() == Okular::Document::NativePrinting )
{
- QPrintPreviewDialog previewdlg( &printer, widget() );
+ KPrintPreview previewdlg( &printer, widget() );
setupPrint( printer );
doPrint( printer );
previewdlg.exec();
@@ -2534,8 +2536,9 @@ void Part::slotShowMenu(const Okular::Page *page, const QPoint &point)
popup->addAction( m_nextBookmark );
reallyShow = true;
}
+
+#pragma message("KF5 Port: Albert says: I have not ported this as i don't see it does anything")
/*
- //Albert says: I have not ported this as i don't see it does anything
if ( d->mouseOnRect ) // and rect->objectType() == ObjectRect::Image ...
{
m_popup->insertItem( SmallIcon("document-save"), i18n("Save Image..."), 4 );