├── core ├── synctex │ ├── synctex_parser_version.txt │ ├── patches │ │ ├── series │ │ ├── 00-disable-SYNCTEX_INLINE.diff │ │ ├── 12-omit-no-file-warning.diff │ │ ├── 16-use-windows-ansi-api-path-find.diff │ │ └── 10-fix-typo.diff │ └── synctex_parser_local.h ├── script │ ├── builtin.qrc │ ├── js_global.cpp │ ├── js_spell.cpp │ ├── js_global_p.h │ ├── js_spell_p.h │ ├── js_console_p.h │ ├── js_display.cpp │ ├── executor_js_p.h │ ├── js_ocg_p.h │ ├── js_display_p.h │ ├── js_util_p.h │ ├── js_fullscreen.cpp │ ├── js_ocg.cpp │ └── js_fullscreen_p.h ├── debug.cpp ├── debug_p.h ├── textdocumentsettings.ui ├── utils_p.h ├── sourcereference_p.h ├── view_p.h ├── chooseenginedialog_p.h ├── scripter.h └── pagecontroller_p.h ├── part ├── CMakeLists.txt ├── data │ ├── help.png │ ├── key.png │ ├── note.png │ ├── star.png │ ├── circle.png │ ├── comment.png │ ├── cross.png │ ├── insert.png │ ├── pushpin.png │ ├── uparrow.png │ ├── checkmark.png │ ├── paperclip.png │ ├── paragraph.png │ ├── tool-note.png │ ├── tool_note.png │ ├── newparagraph.png │ ├── rightarrow.png │ ├── rightpointer.png │ ├── sources │ │ ├── key.svgz │ │ ├── cross.svgz │ │ ├── help.svgz │ │ ├── note.svgz │ │ ├── star.svgz │ │ ├── circle.svgz │ │ ├── comment.svgz │ │ ├── insert.svgz │ │ ├── uparrow.svgz │ │ ├── checkmark.svgz │ │ ├── paragraph.svgz │ │ ├── rightarrow.svgz │ │ ├── newparagraph.svgz │ │ ├── rightpointer.svgz │ │ ├── upleftarrow.svgz │ │ ├── tool-ink-okular.svgz │ │ ├── tool-base-okular.svgz │ │ ├── tool-line-okular.svgz │ │ ├── tool-note-okular.svgz │ │ ├── tool-stamp-okular.svgz │ │ ├── tool-ellipse-okular.svgz │ │ ├── tool-polygon-okular.svgz │ │ ├── tool-highlighter-okular.svgz │ │ ├── tool-note-inline-okular.svgz │ │ ├── tool-underline-okular.svgz │ │ ├── tool-ink-okular-colorizable.svgz │ │ ├── tool-note-okular-colorizable.svgz │ │ ├── tool-highlighter-okular-colorizable.svgz │ │ ├── tool-note-inline-okular-colorizable.svgz │ │ └── tool-typewriter-okular-colorizable.svgz │ ├── tool_hl_pink.png │ ├── upleftarrow.png │ ├── tool_hl_orange.png │ ├── tool_hl_yellow.png │ ├── tool_ink_green.png │ ├── tool-base-okular.png │ ├── tool-note-inline.png │ ├── tool-base-okular@2x.png │ ├── tool-ink-okular-colorizable.png │ ├── tool-note-okular-colorizable.png │ ├── tool-ink-okular-colorizable@2x.png │ ├── tool-note-okular-colorizable@2x.png │ ├── tool-typewriter-okular-colorizable.png │ ├── tool-highlighter-okular-colorizable.png │ ├── tool-note-inline-okular-colorizable.png │ ├── tool-typewriter-okular-colorizable@2x.png │ ├── tool-highlighter-okular-colorizable@2x.png │ ├── tool-note-inline-okular-colorizable@2x.png │ └── README.Icons ├── part.qrc ├── dlgdebug.h ├── dlgannotations.h ├── dlggeneral.h ├── okmenutitle.h ├── dlgperformance.h ├── revisionviewer.h ├── widgetannottools.h ├── signaturepartutilsmodel.h ├── widgetdrawingtools.h ├── snapshottaker.h ├── extensions.cpp ├── pageitemdelegate.h ├── extensions.h ├── dlgaccessibility.h ├── signaturepartutilsimageitemdelegate.h ├── signaturepropertiesdialog.h ├── pagesizelabel.h ├── tts.h ├── signaturepartutilskeydelegate.h ├── pagesizelabel.cpp ├── certificateviewer.h ├── signaturepartutilskconfig.h ├── dlgeditor.h ├── editdrawingtooldialog.h └── presentationsearchbar.h ├── mobile ├── components │ ├── settings.h │ ├── Messages.sh │ ├── types.cpp │ ├── thumbnailitem.cpp │ ├── thumbnailitem.h │ ├── testDocumentView.qml │ ├── okularsingleton.h │ ├── types.h │ ├── welcomeitem.h │ └── test.qml ├── android │ ├── icon-playstore.png │ └── res │ │ └── drawable │ │ └── icon.png ├── CMakeLists.txt └── app │ ├── Messages.sh │ ├── android.h │ ├── ui │ └── Bookmarks.qml │ └── android.cpp ├── doc ├── tool-pin.png ├── tool-tag.png ├── bookmarks.png ├── configure.png ├── forms-bar.png ├── mainwindow.png ├── tool-note.png ├── annotations.png ├── enhance-shape.png ├── enhance-solid.png ├── presentation.png ├── tool-favorite.png ├── signatures-bar.png ├── tool-draw-arrow.png ├── tool-draw-line.png ├── tool-fill-color.png ├── tool-font-face.png ├── tool-tool-text.png ├── tool-window-pin.png ├── configure-backends.png ├── configure-editor.png ├── embedded-files-bar.png ├── enhance-thinline.png ├── signatures-panel.png ├── tool-draw-ellipse.png ├── tool-draw-freehand.png ├── tool-draw-polyline.png ├── tool-edit-comment.png ├── tool-edit-opacity.png ├── bookmark-management.png ├── enhance-lowcontrast.png ├── tool-draw-highlight.png ├── tool-draw-rectangle.png ├── tool-edit-line-width.png ├── annotation-properties.png ├── configure-annotations.png ├── tool-format-text-color.png ├── tool-settings-configure.png ├── tool-format-text-underline.png ├── config-pdf-digital-signatures.png ├── tool-format-text-strikethrough.png ├── tool-format-text-underline-squiggle.png └── CMakeLists.txt ├── README.internals.png ├── generators ├── mobipocket │ ├── Messages.sh │ ├── generator_mobi.h │ ├── converter.h │ ├── CMakeLists.txt │ └── generator_mobi.cpp ├── dvi │ ├── config.h │ ├── Messages.sh │ ├── TeXFont.cpp │ ├── dviPageInfo.cpp │ ├── debug_dvi.h │ ├── xdvi.h │ ├── fontEncodingPool.h │ └── glyph.cpp ├── epub │ ├── Messages.sh │ ├── autotests │ │ └── data │ │ │ └── test.epub │ ├── data │ │ ├── okular-epub-movie.png │ │ ├── okular-epub-sound-icon.png │ │ └── CMakeLists.txt │ ├── README │ └── generator_epub.h ├── comicbook │ ├── Messages.sh │ ├── autotests │ │ └── data │ │ │ └── rotated_cb.cbz │ └── debug_comicbook.h ├── fax │ ├── Messages.sh │ ├── fax_debug.cpp │ ├── fax_debug.h │ └── CMakeLists.txt ├── spectre │ ├── conf │ │ ├── CMakeLists.txt │ │ ├── gssettings.kcfgc │ │ └── gssettings.kcfg │ ├── 16-apps-okular-gv.png │ ├── 32-apps-okular-gv.png │ ├── Messages.sh │ ├── spectre_debug.cpp │ ├── spectre_debug.h │ └── DESIGN ├── txt │ ├── Messages.sh │ ├── debug_txt.h │ ├── document.h │ ├── converter.h │ ├── generator_txt.h │ ├── CMakeLists.txt │ ├── converter.cpp │ └── generator_txt.cpp ├── xps │ ├── Messages.sh │ ├── .emacs-dirvars │ └── CMakeLists.txt ├── djvu │ ├── Messages.sh │ ├── TODO │ └── CMakeLists.txt ├── poppler │ ├── conf │ │ ├── CMakeLists.txt │ │ └── pdfsettings.kcfgc │ ├── Messages.sh │ ├── debug_pdf.h │ ├── imagescaling.h │ └── imagescaling.cpp ├── tiff │ ├── Messages.sh │ └── CMakeLists.txt ├── markdown │ ├── Messages.sh │ ├── debug_md.h │ ├── generator_md.h │ └── CMakeLists.txt ├── fictionbook │ ├── 16-apps-okular-fb2.png │ ├── 32-apps-okular-fb2.png │ ├── 48-apps-okular-fb2.png │ ├── Messages.sh │ ├── generator_fb.h │ ├── document.h │ └── generator_fb.cpp └── kimgio │ ├── Messages.sh │ └── tests │ └── data │ ├── testExifOrientation-0.jpg │ ├── testExifOrientation-180.jpg │ ├── testExifOrientation-270.jpg │ ├── testExifOrientation-90.jpg │ ├── testExifOrientation-0mirror.jpg │ ├── testExifOrientation-90mirror.jpg │ ├── testExifOrientation-noexif.jpg │ ├── testExifOrientation-180mirror.jpg │ ├── testExifOrientation-270mirror.jpg │ └── testExifOrientation-unspecified.jpg ├── autotests ├── data │ ├── file1.pdf │ ├── file2.pdf │ ├── potato.jpg │ ├── 1500x300.png │ ├── 300x1500.png │ ├── contents.epub │ ├── file1.pdf.gz │ ├── protected.pdf │ ├── tocreload.pdf │ ├── checkbox_ro.pdf │ ├── fieldFormat.pdf │ ├── formSamples.pdf │ ├── formattest.pdf │ ├── synctextest.pdf │ ├── kartöffelchen.jpg │ ├── keystroketest.pdf │ ├── pdf_with_links.pdf │ ├── visibilitytest.pdf │ ├── RequestFullScreen.pdf │ ├── kjsfunctionstest.pdf │ ├── simple-multipage.pdf │ ├── simpleCalculate.pdf │ ├── pdf_with_signature.pdf │ ├── synctextest.synctex.gz │ ├── additionalFormActions.pdf │ ├── pdf_with_internal_links.pdf │ ├── fake_okular_certstore │ │ ├── cert9.db │ │ ├── key4.db │ │ └── pkcs11.txt │ ├── hello_with_dummy_signature.pdf │ ├── imageUrlsWithSpecialChars.md │ ├── pdf_with_internal_links.tex │ └── strikethrough.md ├── editdrawingtooldialogtest.h └── closedialoghelper.h ├── icons ├── 128-apps-okular.png ├── 150-apps-okular.png ├── 16-apps-okular.png ├── 22-apps-okular.png ├── 310-apps-okular.png ├── 32-apps-okular.png ├── 44-apps-okular.png ├── 48-apps-okular.png ├── 512-apps-okular.png ├── 64-apps-okular.png ├── hisc-apps-okular.svgz ├── small │ ├── hi16-apps-okular.svgz │ └── hi22-apps-okular.svgz └── CMakeLists.txt ├── po ├── pl │ └── docs │ │ └── okular │ │ ├── rating.png │ │ ├── configure.png │ │ ├── forms-bar.png │ │ ├── annotations.png │ │ ├── mainwindow.png │ │ ├── presentation.png │ │ ├── configure-editor.png │ │ ├── tool-ink-okular.png │ │ ├── tool-line-okular.png │ │ ├── tool-note-okular.png │ │ ├── bookmark-management.png │ │ ├── configure-backends.png │ │ ├── embedded-files-bar.png │ │ ├── tool-ellipse-okular.png │ │ ├── tool-polygon-okular.png │ │ ├── tool-stamp-okular.png │ │ ├── annotation-properties.png │ │ ├── configure-annotations.png │ │ ├── tool-underline-okular.png │ │ ├── tool-highlighter-okular.png │ │ └── tool-note-inline-okular.png ├── ru │ └── docs │ │ └── okular │ │ ├── rating.png │ │ ├── configure.png │ │ ├── forms-bar.png │ │ ├── annotations.png │ │ ├── mainwindow.png │ │ ├── enhance-shape.png │ │ ├── enhance-solid.png │ │ ├── presentation.png │ │ ├── configure-editor.png │ │ ├── enhance-thinline.png │ │ ├── tool-ink-okular.png │ │ ├── tool-line-okular.png │ │ ├── tool-note-okular.png │ │ ├── bookmark-management.png │ │ ├── configure-backends.png │ │ ├── embedded-files-bar.png │ │ ├── enhance-lowcontrast.png │ │ ├── tool-ellipse-okular.png │ │ ├── tool-polygon-okular.png │ │ ├── tool-stamp-okular.png │ │ ├── annotation-properties.png │ │ ├── configure-annotations.png │ │ ├── tool-underline-okular.png │ │ ├── tool-highlighter-okular.png │ │ └── tool-note-inline-okular.png ├── ca │ └── docs │ │ └── okular │ │ ├── configure.png │ │ ├── mainwindow.png │ │ ├── presentation.png │ │ ├── configure-editor.png │ │ ├── bookmark-management.png │ │ ├── configure-backends.png │ │ └── configure-annotations.png ├── de │ ├── docs │ │ └── okular │ │ │ ├── configure.png │ │ │ ├── mainwindow.png │ │ │ ├── configure-editor.png │ │ │ ├── embedded-files-bar.png │ │ │ ├── annotation-properties.png │ │ │ └── configure-annotations.png │ └── okular_tiff.po ├── es │ └── docs │ │ └── okular │ │ ├── configure.png │ │ └── embedded-files-bar.png ├── fr │ ├── docs │ │ └── okular │ │ │ ├── configure.png │ │ │ ├── forms-bar.png │ │ │ ├── annotations.png │ │ │ ├── mainwindow.png │ │ │ ├── presentation.png │ │ │ ├── configure-editor.png │ │ │ ├── bookmark-management.png │ │ │ ├── configure-backends.png │ │ │ ├── annotation-properties.png │ │ │ └── configure-annotations.png │ └── okular_tiff.po ├── it │ ├── docs │ │ └── okular │ │ │ ├── configure.png │ │ │ ├── forms-bar.png │ │ │ ├── annotations.png │ │ │ ├── mainwindow.png │ │ │ ├── presentation.png │ │ │ ├── signatures-bar.png │ │ │ ├── configure-editor.png │ │ │ ├── signatures-panel.png │ │ │ ├── bookmark-management.png │ │ │ ├── configure-backends.png │ │ │ ├── embedded-files-bar.png │ │ │ ├── annotation-properties.png │ │ │ └── configure-annotations.png │ └── okular_tiff.po ├── ja │ ├── docs │ │ └── okular │ │ │ ├── configure.png │ │ │ └── embedded-files-bar.png │ ├── okular_tiff.po │ └── okular_txt.po ├── sv │ ├── docs │ │ └── okular │ │ │ └── configure.png │ └── okular_tiff.po ├── uk │ └── docs │ │ └── okular │ │ ├── configure.png │ │ ├── forms-bar.png │ │ ├── annotations.png │ │ ├── mainwindow.png │ │ ├── signatures-bar.png │ │ ├── configure-editor.png │ │ ├── signatures-panel.png │ │ ├── bookmark-management.png │ │ ├── configure-backends.png │ │ ├── embedded-files-bar.png │ │ ├── annotation-properties.png │ │ └── configure-annotations.png ├── pt_BR │ ├── docs │ │ └── okular │ │ │ ├── annotations.png │ │ │ ├── configure.png │ │ │ ├── forms-bar.png │ │ │ ├── mainwindow.png │ │ │ ├── presentation.png │ │ │ ├── configure-editor.png │ │ │ ├── signatures-bar.png │ │ │ ├── signatures-panel.png │ │ │ ├── configure-backends.png │ │ │ ├── embedded-files-bar.png │ │ │ ├── annotation-properties.png │ │ │ ├── bookmark-management.png │ │ │ └── configure-annotations.png │ └── okular_tiff.po ├── pt │ └── okular_tiff.po ├── sk │ └── okular_tiff.po ├── zh_CN │ ├── okular_tiff.po │ ├── okular_xps.po │ └── okular_fax.po ├── ko │ └── okular_tiff.po ├── el │ └── okular_tiff.po ├── fi │ └── okular_tiff.po ├── bg │ └── okular_tiff.po ├── ta │ ├── okular_tiff.po │ └── okular_xps.po ├── ia │ └── okular_tiff.po ├── hi │ └── okular_tiff.po ├── tr │ └── okular_tiff.po ├── az │ └── okular_tiff.po ├── cs │ └── okular_tiff.po ├── nl │ └── okular_tiff.po ├── ro │ └── okular_tiff.po ├── vi │ └── okular_tiff.po ├── lv │ └── okular_tiff.po ├── hu │ └── okular_tiff.po ├── ar │ └── okular_tiff.po ├── ast │ └── okular_tiff.po ├── gl │ └── okular_tiff.po ├── en_GB │ └── okular_tiff.po ├── nn │ └── okular_tiff.po ├── eo │ └── okular_tiff.po ├── ka │ └── okular_tiff.po └── is │ └── okular_tiff.po ├── .krazy ├── .craft.ini ├── shell ├── shell.qrc └── okular_main.h ├── conf ├── settings_core.kcfgc ├── settings_mobile.kcfgc └── settings.kcfgc ├── gui ├── debug_ui.cpp ├── debug_ui.h └── priorities.h ├── .gitignore ├── okular-cppcheck.xml ├── metainfo.yaml ├── hooks └── pre-commit ├── .git-blame-ignore-revs ├── Okular6Config.cmake.in ├── cppcheck-suppressions.xml ├── OkularConfigureChecks.cmake ├── LICENSES └── LicenseRef-KDE-Accepted-GPL.txt ├── Messages.sh ├── cmake └── modules │ ├── FindDiscount.cmake │ └── FindEPub.cmake ├── README.clang-format ├── config-okular.h.cmake └── .flatpak-patches └── vlc-ignore-time-for-cache.patch /core/synctex/synctex_parser_version.txt: -------------------------------------------------------------------------------- 1 | 1.19 2 | -------------------------------------------------------------------------------- /part/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory( data ) 2 | 3 | -------------------------------------------------------------------------------- /mobile/components/settings.h: -------------------------------------------------------------------------------- 1 | #include "settings_mobile.h" 2 | -------------------------------------------------------------------------------- /mobile/android/icon-playstore.png: -------------------------------------------------------------------------------- 1 | ../../icons/512-apps-okular.png -------------------------------------------------------------------------------- /doc/tool-pin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-pin.png -------------------------------------------------------------------------------- /doc/tool-tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-tag.png -------------------------------------------------------------------------------- /doc/bookmarks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/bookmarks.png -------------------------------------------------------------------------------- /doc/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/configure.png -------------------------------------------------------------------------------- /doc/forms-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/forms-bar.png -------------------------------------------------------------------------------- /doc/mainwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/mainwindow.png -------------------------------------------------------------------------------- /doc/tool-note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-note.png -------------------------------------------------------------------------------- /part/data/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/help.png -------------------------------------------------------------------------------- /part/data/key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/key.png -------------------------------------------------------------------------------- /part/data/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/note.png -------------------------------------------------------------------------------- /part/data/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/star.png -------------------------------------------------------------------------------- /README.internals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/README.internals.png -------------------------------------------------------------------------------- /doc/annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/annotations.png -------------------------------------------------------------------------------- /doc/enhance-shape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/enhance-shape.png -------------------------------------------------------------------------------- /doc/enhance-solid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/enhance-solid.png -------------------------------------------------------------------------------- /doc/presentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/presentation.png -------------------------------------------------------------------------------- /doc/tool-favorite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-favorite.png -------------------------------------------------------------------------------- /part/data/circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/circle.png -------------------------------------------------------------------------------- /part/data/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/comment.png -------------------------------------------------------------------------------- /part/data/cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/cross.png -------------------------------------------------------------------------------- /part/data/insert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/insert.png -------------------------------------------------------------------------------- /part/data/pushpin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/pushpin.png -------------------------------------------------------------------------------- /part/data/uparrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/uparrow.png -------------------------------------------------------------------------------- /doc/signatures-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/signatures-bar.png -------------------------------------------------------------------------------- /doc/tool-draw-arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-draw-arrow.png -------------------------------------------------------------------------------- /doc/tool-draw-line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-draw-line.png -------------------------------------------------------------------------------- /doc/tool-fill-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-fill-color.png -------------------------------------------------------------------------------- /doc/tool-font-face.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-font-face.png -------------------------------------------------------------------------------- /doc/tool-tool-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-tool-text.png -------------------------------------------------------------------------------- /doc/tool-window-pin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-window-pin.png -------------------------------------------------------------------------------- /generators/mobipocket/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT *.cpp -o $podir/okular_mobi.pot 3 | -------------------------------------------------------------------------------- /part/data/checkmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/checkmark.png -------------------------------------------------------------------------------- /part/data/paperclip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/paperclip.png -------------------------------------------------------------------------------- /part/data/paragraph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/paragraph.png -------------------------------------------------------------------------------- /part/data/tool-note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-note.png -------------------------------------------------------------------------------- /part/data/tool_note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool_note.png -------------------------------------------------------------------------------- /autotests/data/file1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/file1.pdf -------------------------------------------------------------------------------- /autotests/data/file2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/file2.pdf -------------------------------------------------------------------------------- /autotests/data/potato.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/potato.jpg -------------------------------------------------------------------------------- /doc/configure-backends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/configure-backends.png -------------------------------------------------------------------------------- /doc/configure-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/configure-editor.png -------------------------------------------------------------------------------- /doc/embedded-files-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/embedded-files-bar.png -------------------------------------------------------------------------------- /doc/enhance-thinline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/enhance-thinline.png -------------------------------------------------------------------------------- /doc/signatures-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/signatures-panel.png -------------------------------------------------------------------------------- /doc/tool-draw-ellipse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-draw-ellipse.png -------------------------------------------------------------------------------- /doc/tool-draw-freehand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-draw-freehand.png -------------------------------------------------------------------------------- /doc/tool-draw-polyline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-draw-polyline.png -------------------------------------------------------------------------------- /doc/tool-edit-comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-edit-comment.png -------------------------------------------------------------------------------- /doc/tool-edit-opacity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-edit-opacity.png -------------------------------------------------------------------------------- /generators/dvi/config.h: -------------------------------------------------------------------------------- 1 | /* empty, just to make dvi compile without changing the sources */ 2 | -------------------------------------------------------------------------------- /icons/128-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/128-apps-okular.png -------------------------------------------------------------------------------- /icons/150-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/150-apps-okular.png -------------------------------------------------------------------------------- /icons/16-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/16-apps-okular.png -------------------------------------------------------------------------------- /icons/22-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/22-apps-okular.png -------------------------------------------------------------------------------- /icons/310-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/310-apps-okular.png -------------------------------------------------------------------------------- /icons/32-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/32-apps-okular.png -------------------------------------------------------------------------------- /icons/44-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/44-apps-okular.png -------------------------------------------------------------------------------- /icons/48-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/48-apps-okular.png -------------------------------------------------------------------------------- /icons/512-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/512-apps-okular.png -------------------------------------------------------------------------------- /icons/64-apps-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/64-apps-okular.png -------------------------------------------------------------------------------- /mobile/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_subdirectory( app ) 3 | add_subdirectory( components ) 4 | 5 | -------------------------------------------------------------------------------- /part/data/newparagraph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/newparagraph.png -------------------------------------------------------------------------------- /part/data/rightarrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/rightarrow.png -------------------------------------------------------------------------------- /part/data/rightpointer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/rightpointer.png -------------------------------------------------------------------------------- /part/data/sources/key.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/key.svgz -------------------------------------------------------------------------------- /part/data/tool_hl_pink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool_hl_pink.png -------------------------------------------------------------------------------- /part/data/upleftarrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/upleftarrow.png -------------------------------------------------------------------------------- /autotests/data/1500x300.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/1500x300.png -------------------------------------------------------------------------------- /autotests/data/300x1500.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/300x1500.png -------------------------------------------------------------------------------- /autotests/data/contents.epub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/contents.epub -------------------------------------------------------------------------------- /autotests/data/file1.pdf.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/file1.pdf.gz -------------------------------------------------------------------------------- /autotests/data/protected.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/protected.pdf -------------------------------------------------------------------------------- /autotests/data/tocreload.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/tocreload.pdf -------------------------------------------------------------------------------- /doc/bookmark-management.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/bookmark-management.png -------------------------------------------------------------------------------- /doc/enhance-lowcontrast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/enhance-lowcontrast.png -------------------------------------------------------------------------------- /doc/tool-draw-highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-draw-highlight.png -------------------------------------------------------------------------------- /doc/tool-draw-rectangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-draw-rectangle.png -------------------------------------------------------------------------------- /doc/tool-edit-line-width.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-edit-line-width.png -------------------------------------------------------------------------------- /icons/hisc-apps-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/hisc-apps-okular.svgz -------------------------------------------------------------------------------- /part/data/sources/cross.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/cross.svgz -------------------------------------------------------------------------------- /part/data/sources/help.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/help.svgz -------------------------------------------------------------------------------- /part/data/sources/note.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/note.svgz -------------------------------------------------------------------------------- /part/data/sources/star.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/star.svgz -------------------------------------------------------------------------------- /part/data/tool_hl_orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool_hl_orange.png -------------------------------------------------------------------------------- /part/data/tool_hl_yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool_hl_yellow.png -------------------------------------------------------------------------------- /part/data/tool_ink_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool_ink_green.png -------------------------------------------------------------------------------- /po/pl/docs/okular/rating.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/rating.png -------------------------------------------------------------------------------- /po/ru/docs/okular/rating.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/rating.png -------------------------------------------------------------------------------- /autotests/data/checkbox_ro.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/checkbox_ro.pdf -------------------------------------------------------------------------------- /autotests/data/fieldFormat.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/fieldFormat.pdf -------------------------------------------------------------------------------- /autotests/data/formSamples.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/formSamples.pdf -------------------------------------------------------------------------------- /autotests/data/formattest.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/formattest.pdf -------------------------------------------------------------------------------- /autotests/data/synctextest.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/synctextest.pdf -------------------------------------------------------------------------------- /doc/annotation-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/annotation-properties.png -------------------------------------------------------------------------------- /doc/configure-annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/configure-annotations.png -------------------------------------------------------------------------------- /doc/tool-format-text-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-format-text-color.png -------------------------------------------------------------------------------- /doc/tool-settings-configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-settings-configure.png -------------------------------------------------------------------------------- /generators/epub/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp") -o $podir/okular_epub.pot 3 | -------------------------------------------------------------------------------- /part/data/sources/circle.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/circle.svgz -------------------------------------------------------------------------------- /part/data/sources/comment.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/comment.svgz -------------------------------------------------------------------------------- /part/data/sources/insert.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/insert.svgz -------------------------------------------------------------------------------- /part/data/sources/uparrow.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/uparrow.svgz -------------------------------------------------------------------------------- /part/data/tool-base-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-base-okular.png -------------------------------------------------------------------------------- /part/data/tool-note-inline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-note-inline.png -------------------------------------------------------------------------------- /po/ca/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ca/docs/okular/configure.png -------------------------------------------------------------------------------- /po/de/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/de/docs/okular/configure.png -------------------------------------------------------------------------------- /po/es/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/es/docs/okular/configure.png -------------------------------------------------------------------------------- /po/fr/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/configure.png -------------------------------------------------------------------------------- /po/fr/docs/okular/forms-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/forms-bar.png -------------------------------------------------------------------------------- /po/it/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/configure.png -------------------------------------------------------------------------------- /po/it/docs/okular/forms-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/forms-bar.png -------------------------------------------------------------------------------- /po/ja/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ja/docs/okular/configure.png -------------------------------------------------------------------------------- /po/pl/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/configure.png -------------------------------------------------------------------------------- /po/pl/docs/okular/forms-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/forms-bar.png -------------------------------------------------------------------------------- /po/ru/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/configure.png -------------------------------------------------------------------------------- /po/ru/docs/okular/forms-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/forms-bar.png -------------------------------------------------------------------------------- /po/sv/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/sv/docs/okular/configure.png -------------------------------------------------------------------------------- /po/uk/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/configure.png -------------------------------------------------------------------------------- /po/uk/docs/okular/forms-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/forms-bar.png -------------------------------------------------------------------------------- /autotests/data/kartöffelchen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/kartöffelchen.jpg -------------------------------------------------------------------------------- /autotests/data/keystroketest.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/keystroketest.pdf -------------------------------------------------------------------------------- /autotests/data/pdf_with_links.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/pdf_with_links.pdf -------------------------------------------------------------------------------- /autotests/data/visibilitytest.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/visibilitytest.pdf -------------------------------------------------------------------------------- /icons/small/hi16-apps-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/small/hi16-apps-okular.svgz -------------------------------------------------------------------------------- /icons/small/hi22-apps-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/icons/small/hi22-apps-okular.svgz -------------------------------------------------------------------------------- /part/data/sources/checkmark.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/checkmark.svgz -------------------------------------------------------------------------------- /part/data/sources/paragraph.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/paragraph.svgz -------------------------------------------------------------------------------- /part/data/sources/rightarrow.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/rightarrow.svgz -------------------------------------------------------------------------------- /part/data/tool-base-okular@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-base-okular@2x.png -------------------------------------------------------------------------------- /po/ca/docs/okular/mainwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ca/docs/okular/mainwindow.png -------------------------------------------------------------------------------- /po/de/docs/okular/mainwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/de/docs/okular/mainwindow.png -------------------------------------------------------------------------------- /po/fr/docs/okular/annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/annotations.png -------------------------------------------------------------------------------- /po/fr/docs/okular/mainwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/mainwindow.png -------------------------------------------------------------------------------- /po/it/docs/okular/annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/annotations.png -------------------------------------------------------------------------------- /po/it/docs/okular/mainwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/mainwindow.png -------------------------------------------------------------------------------- /po/pl/docs/okular/annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/annotations.png -------------------------------------------------------------------------------- /po/pl/docs/okular/mainwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/mainwindow.png -------------------------------------------------------------------------------- /po/ru/docs/okular/annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/annotations.png -------------------------------------------------------------------------------- /po/ru/docs/okular/mainwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/mainwindow.png -------------------------------------------------------------------------------- /po/uk/docs/okular/annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/annotations.png -------------------------------------------------------------------------------- /po/uk/docs/okular/mainwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/mainwindow.png -------------------------------------------------------------------------------- /autotests/data/RequestFullScreen.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/RequestFullScreen.pdf -------------------------------------------------------------------------------- /autotests/data/kjsfunctionstest.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/kjsfunctionstest.pdf -------------------------------------------------------------------------------- /autotests/data/simple-multipage.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/simple-multipage.pdf -------------------------------------------------------------------------------- /autotests/data/simpleCalculate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/simpleCalculate.pdf -------------------------------------------------------------------------------- /doc/tool-format-text-underline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-format-text-underline.png -------------------------------------------------------------------------------- /generators/comicbook/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp") -o $podir/okular_comicbook.pot 3 | -------------------------------------------------------------------------------- /generators/dvi/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_dvi.pot 3 | -------------------------------------------------------------------------------- /generators/fax/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_fax.pot 3 | -------------------------------------------------------------------------------- /generators/spectre/conf/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | install(FILES gssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) 3 | 4 | -------------------------------------------------------------------------------- /generators/txt/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_txt.pot 3 | -------------------------------------------------------------------------------- /generators/xps/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_xps.pot 3 | -------------------------------------------------------------------------------- /mobile/android/res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/mobile/android/res/drawable/icon.png -------------------------------------------------------------------------------- /part/data/sources/newparagraph.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/newparagraph.svgz -------------------------------------------------------------------------------- /part/data/sources/rightpointer.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/rightpointer.svgz -------------------------------------------------------------------------------- /part/data/sources/upleftarrow.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/upleftarrow.svgz -------------------------------------------------------------------------------- /po/ca/docs/okular/presentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ca/docs/okular/presentation.png -------------------------------------------------------------------------------- /po/fr/docs/okular/presentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/presentation.png -------------------------------------------------------------------------------- /po/it/docs/okular/presentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/presentation.png -------------------------------------------------------------------------------- /po/it/docs/okular/signatures-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/signatures-bar.png -------------------------------------------------------------------------------- /po/pl/docs/okular/presentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/presentation.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/annotations.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/configure.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/forms-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/forms-bar.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/mainwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/mainwindow.png -------------------------------------------------------------------------------- /po/ru/docs/okular/enhance-shape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/enhance-shape.png -------------------------------------------------------------------------------- /po/ru/docs/okular/enhance-solid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/enhance-solid.png -------------------------------------------------------------------------------- /po/ru/docs/okular/presentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/presentation.png -------------------------------------------------------------------------------- /po/uk/docs/okular/signatures-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/signatures-bar.png -------------------------------------------------------------------------------- /autotests/data/pdf_with_signature.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/pdf_with_signature.pdf -------------------------------------------------------------------------------- /autotests/data/synctextest.synctex.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/synctextest.synctex.gz -------------------------------------------------------------------------------- /doc/config-pdf-digital-signatures.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/config-pdf-digital-signatures.png -------------------------------------------------------------------------------- /doc/tool-format-text-strikethrough.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-format-text-strikethrough.png -------------------------------------------------------------------------------- /generators/djvu/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_djvu.pot 3 | -------------------------------------------------------------------------------- /generators/poppler/conf/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | install(FILES pdfsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) 3 | 4 | -------------------------------------------------------------------------------- /generators/tiff/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_tiff.pot 3 | -------------------------------------------------------------------------------- /part/data/sources/tool-ink-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-ink-okular.svgz -------------------------------------------------------------------------------- /po/ca/docs/okular/configure-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ca/docs/okular/configure-editor.png -------------------------------------------------------------------------------- /po/de/docs/okular/configure-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/de/docs/okular/configure-editor.png -------------------------------------------------------------------------------- /po/fr/docs/okular/configure-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/configure-editor.png -------------------------------------------------------------------------------- /po/it/docs/okular/configure-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/configure-editor.png -------------------------------------------------------------------------------- /po/it/docs/okular/signatures-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/signatures-panel.png -------------------------------------------------------------------------------- /po/pl/docs/okular/configure-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/configure-editor.png -------------------------------------------------------------------------------- /po/pl/docs/okular/tool-ink-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/tool-ink-okular.png -------------------------------------------------------------------------------- /po/pl/docs/okular/tool-line-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/tool-line-okular.png -------------------------------------------------------------------------------- /po/pl/docs/okular/tool-note-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/tool-note-okular.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/presentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/presentation.png -------------------------------------------------------------------------------- /po/ru/docs/okular/configure-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/configure-editor.png -------------------------------------------------------------------------------- /po/ru/docs/okular/enhance-thinline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/enhance-thinline.png -------------------------------------------------------------------------------- /po/ru/docs/okular/tool-ink-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/tool-ink-okular.png -------------------------------------------------------------------------------- /po/ru/docs/okular/tool-line-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/tool-line-okular.png -------------------------------------------------------------------------------- /po/ru/docs/okular/tool-note-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/tool-note-okular.png -------------------------------------------------------------------------------- /po/uk/docs/okular/configure-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/configure-editor.png -------------------------------------------------------------------------------- /po/uk/docs/okular/signatures-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/signatures-panel.png -------------------------------------------------------------------------------- /autotests/data/additionalFormActions.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/additionalFormActions.pdf -------------------------------------------------------------------------------- /generators/epub/autotests/data/test.epub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/epub/autotests/data/test.epub -------------------------------------------------------------------------------- /generators/markdown/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_markdown.pot 3 | -------------------------------------------------------------------------------- /generators/spectre/16-apps-okular-gv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/spectre/16-apps-okular-gv.png -------------------------------------------------------------------------------- /generators/spectre/32-apps-okular-gv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/spectre/32-apps-okular-gv.png -------------------------------------------------------------------------------- /generators/spectre/conf/gssettings.kcfgc: -------------------------------------------------------------------------------- 1 | File=gssettings.kcfg 2 | ClassName=GSSettings 3 | Mutators=true 4 | Singleton=true 5 | -------------------------------------------------------------------------------- /part/data/sources/tool-base-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-base-okular.svgz -------------------------------------------------------------------------------- /part/data/sources/tool-line-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-line-okular.svgz -------------------------------------------------------------------------------- /part/data/sources/tool-note-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-note-okular.svgz -------------------------------------------------------------------------------- /part/data/sources/tool-stamp-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-stamp-okular.svgz -------------------------------------------------------------------------------- /part/data/tool-ink-okular-colorizable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-ink-okular-colorizable.png -------------------------------------------------------------------------------- /po/ca/docs/okular/bookmark-management.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ca/docs/okular/bookmark-management.png -------------------------------------------------------------------------------- /po/ca/docs/okular/configure-backends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ca/docs/okular/configure-backends.png -------------------------------------------------------------------------------- /po/de/docs/okular/embedded-files-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/de/docs/okular/embedded-files-bar.png -------------------------------------------------------------------------------- /po/es/docs/okular/embedded-files-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/es/docs/okular/embedded-files-bar.png -------------------------------------------------------------------------------- /po/fr/docs/okular/bookmark-management.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/bookmark-management.png -------------------------------------------------------------------------------- /po/fr/docs/okular/configure-backends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/configure-backends.png -------------------------------------------------------------------------------- /po/it/docs/okular/bookmark-management.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/bookmark-management.png -------------------------------------------------------------------------------- /po/it/docs/okular/configure-backends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/configure-backends.png -------------------------------------------------------------------------------- /po/it/docs/okular/embedded-files-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/embedded-files-bar.png -------------------------------------------------------------------------------- /po/ja/docs/okular/embedded-files-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ja/docs/okular/embedded-files-bar.png -------------------------------------------------------------------------------- /po/pl/docs/okular/bookmark-management.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/bookmark-management.png -------------------------------------------------------------------------------- /po/pl/docs/okular/configure-backends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/configure-backends.png -------------------------------------------------------------------------------- /po/pl/docs/okular/embedded-files-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/embedded-files-bar.png -------------------------------------------------------------------------------- /po/pl/docs/okular/tool-ellipse-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/tool-ellipse-okular.png -------------------------------------------------------------------------------- /po/pl/docs/okular/tool-polygon-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/tool-polygon-okular.png -------------------------------------------------------------------------------- /po/pl/docs/okular/tool-stamp-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/tool-stamp-okular.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/configure-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/configure-editor.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/signatures-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/signatures-bar.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/signatures-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/signatures-panel.png -------------------------------------------------------------------------------- /po/ru/docs/okular/bookmark-management.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/bookmark-management.png -------------------------------------------------------------------------------- /po/ru/docs/okular/configure-backends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/configure-backends.png -------------------------------------------------------------------------------- /po/ru/docs/okular/embedded-files-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/embedded-files-bar.png -------------------------------------------------------------------------------- /po/ru/docs/okular/enhance-lowcontrast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/enhance-lowcontrast.png -------------------------------------------------------------------------------- /po/ru/docs/okular/tool-ellipse-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/tool-ellipse-okular.png -------------------------------------------------------------------------------- /po/ru/docs/okular/tool-polygon-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/tool-polygon-okular.png -------------------------------------------------------------------------------- /po/ru/docs/okular/tool-stamp-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/tool-stamp-okular.png -------------------------------------------------------------------------------- /po/uk/docs/okular/bookmark-management.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/bookmark-management.png -------------------------------------------------------------------------------- /po/uk/docs/okular/configure-backends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/configure-backends.png -------------------------------------------------------------------------------- /po/uk/docs/okular/embedded-files-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/embedded-files-bar.png -------------------------------------------------------------------------------- /autotests/data/pdf_with_internal_links.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/pdf_with_internal_links.pdf -------------------------------------------------------------------------------- /doc/tool-format-text-underline-squiggle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/doc/tool-format-text-underline-squiggle.png -------------------------------------------------------------------------------- /generators/epub/data/okular-epub-movie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/epub/data/okular-epub-movie.png -------------------------------------------------------------------------------- /generators/poppler/conf/pdfsettings.kcfgc: -------------------------------------------------------------------------------- 1 | File=pdfsettings.kcfg 2 | ClassName=PDFSettings 3 | Mutators=true 4 | Singleton=true 5 | -------------------------------------------------------------------------------- /part/data/sources/tool-ellipse-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-ellipse-okular.svgz -------------------------------------------------------------------------------- /part/data/sources/tool-polygon-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-polygon-okular.svgz -------------------------------------------------------------------------------- /part/data/tool-note-okular-colorizable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-note-okular-colorizable.png -------------------------------------------------------------------------------- /po/ca/docs/okular/configure-annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ca/docs/okular/configure-annotations.png -------------------------------------------------------------------------------- /po/de/docs/okular/annotation-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/de/docs/okular/annotation-properties.png -------------------------------------------------------------------------------- /po/de/docs/okular/configure-annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/de/docs/okular/configure-annotations.png -------------------------------------------------------------------------------- /po/fr/docs/okular/annotation-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/annotation-properties.png -------------------------------------------------------------------------------- /po/fr/docs/okular/configure-annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/fr/docs/okular/configure-annotations.png -------------------------------------------------------------------------------- /po/it/docs/okular/annotation-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/annotation-properties.png -------------------------------------------------------------------------------- /po/it/docs/okular/configure-annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/it/docs/okular/configure-annotations.png -------------------------------------------------------------------------------- /po/pl/docs/okular/annotation-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/annotation-properties.png -------------------------------------------------------------------------------- /po/pl/docs/okular/configure-annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/configure-annotations.png -------------------------------------------------------------------------------- /po/pl/docs/okular/tool-underline-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/tool-underline-okular.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/configure-backends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/configure-backends.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/embedded-files-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/embedded-files-bar.png -------------------------------------------------------------------------------- /po/ru/docs/okular/annotation-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/annotation-properties.png -------------------------------------------------------------------------------- /po/ru/docs/okular/configure-annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/configure-annotations.png -------------------------------------------------------------------------------- /po/ru/docs/okular/tool-underline-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/tool-underline-okular.png -------------------------------------------------------------------------------- /po/uk/docs/okular/annotation-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/annotation-properties.png -------------------------------------------------------------------------------- /po/uk/docs/okular/configure-annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/uk/docs/okular/configure-annotations.png -------------------------------------------------------------------------------- /autotests/data/fake_okular_certstore/cert9.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/fake_okular_certstore/cert9.db -------------------------------------------------------------------------------- /autotests/data/fake_okular_certstore/key4.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/fake_okular_certstore/key4.db -------------------------------------------------------------------------------- /autotests/data/hello_with_dummy_signature.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/autotests/data/hello_with_dummy_signature.pdf -------------------------------------------------------------------------------- /generators/fictionbook/16-apps-okular-fb2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/fictionbook/16-apps-okular-fb2.png -------------------------------------------------------------------------------- /generators/fictionbook/32-apps-okular-fb2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/fictionbook/32-apps-okular-fb2.png -------------------------------------------------------------------------------- /generators/fictionbook/48-apps-okular-fb2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/fictionbook/48-apps-okular-fb2.png -------------------------------------------------------------------------------- /generators/fictionbook/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_fictionbook.pot 3 | -------------------------------------------------------------------------------- /mobile/app/Messages.sh: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | $XGETTEXT `find . -name \*.qml` -L Java -o $podir/org.kde.active.documentviewer.pot 3 | -------------------------------------------------------------------------------- /mobile/components/Messages.sh: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | $XGETTEXT `find . -name "*.cpp" -o -name "*.h"` -o $podir/org.kde.okular.pot 3 | -------------------------------------------------------------------------------- /part/data/sources/tool-highlighter-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-highlighter-okular.svgz -------------------------------------------------------------------------------- /part/data/sources/tool-note-inline-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-note-inline-okular.svgz -------------------------------------------------------------------------------- /part/data/sources/tool-underline-okular.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-underline-okular.svgz -------------------------------------------------------------------------------- /part/data/tool-ink-okular-colorizable@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-ink-okular-colorizable@2x.png -------------------------------------------------------------------------------- /part/data/tool-note-okular-colorizable@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-note-okular-colorizable@2x.png -------------------------------------------------------------------------------- /po/pl/docs/okular/tool-highlighter-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/tool-highlighter-okular.png -------------------------------------------------------------------------------- /po/pl/docs/okular/tool-note-inline-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pl/docs/okular/tool-note-inline-okular.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/annotation-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/annotation-properties.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/bookmark-management.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/bookmark-management.png -------------------------------------------------------------------------------- /po/pt_BR/docs/okular/configure-annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/pt_BR/docs/okular/configure-annotations.png -------------------------------------------------------------------------------- /po/ru/docs/okular/tool-highlighter-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/tool-highlighter-okular.png -------------------------------------------------------------------------------- /po/ru/docs/okular/tool-note-inline-okular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/po/ru/docs/okular/tool-note-inline-okular.png -------------------------------------------------------------------------------- /.krazy: -------------------------------------------------------------------------------- 1 | SKIP /generators/chm/kio-msits\|/generators/chm/lib\|/generators/dvi/\|/generators/plucker/unpluck/|/generators/poppler/synctex/ 2 | -------------------------------------------------------------------------------- /generators/epub/data/okular-epub-sound-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/epub/data/okular-epub-sound-icon.png -------------------------------------------------------------------------------- /part/data/tool-typewriter-okular-colorizable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-typewriter-okular-colorizable.png -------------------------------------------------------------------------------- /generators/comicbook/autotests/data/rotated_cb.cbz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/comicbook/autotests/data/rotated_cb.cbz -------------------------------------------------------------------------------- /part/data/sources/tool-ink-okular-colorizable.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-ink-okular-colorizable.svgz -------------------------------------------------------------------------------- /part/data/sources/tool-note-okular-colorizable.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-note-okular-colorizable.svgz -------------------------------------------------------------------------------- /part/data/tool-highlighter-okular-colorizable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-highlighter-okular-colorizable.png -------------------------------------------------------------------------------- /part/data/tool-note-inline-okular-colorizable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-note-inline-okular-colorizable.png -------------------------------------------------------------------------------- /part/data/tool-typewriter-okular-colorizable@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-typewriter-okular-colorizable@2x.png -------------------------------------------------------------------------------- /part/data/tool-highlighter-okular-colorizable@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-highlighter-okular-colorizable@2x.png -------------------------------------------------------------------------------- /part/data/tool-note-inline-okular-colorizable@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/tool-note-inline-okular-colorizable@2x.png -------------------------------------------------------------------------------- /autotests/data/imageUrlsWithSpecialChars.md: -------------------------------------------------------------------------------- 1 | # Test for having images with non-ASCII characters in their name 2 | 3 | ![Kartöffelchen](kartöffelchen.jpg) 4 | -------------------------------------------------------------------------------- /core/script/builtin.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | builtin.js 4 | 5 | 6 | -------------------------------------------------------------------------------- /generators/kimgio/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $EXTRACTRC *.rc >> rc.cpp 3 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_kimgio.pot 4 | -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-0.jpg -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-180.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-180.jpg -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-270.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-270.jpg -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-90.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-90.jpg -------------------------------------------------------------------------------- /.craft.ini: -------------------------------------------------------------------------------- 1 | ; SPDX-FileCopyrightText: None 2 | ; SPDX-License-Identifier: CC0-1.0 3 | 4 | [BlueprintSettings] 5 | kde/applications/okular.packageAppx = True 6 | -------------------------------------------------------------------------------- /part/data/sources/tool-highlighter-okular-colorizable.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-highlighter-okular-colorizable.svgz -------------------------------------------------------------------------------- /part/data/sources/tool-note-inline-okular-colorizable.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-note-inline-okular-colorizable.svgz -------------------------------------------------------------------------------- /part/data/sources/tool-typewriter-okular-colorizable.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/part/data/sources/tool-typewriter-okular-colorizable.svgz -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-0mirror.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-0mirror.jpg -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-90mirror.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-90mirror.jpg -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-noexif.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-noexif.jpg -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-180mirror.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-180mirror.jpg -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-270mirror.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-270mirror.jpg -------------------------------------------------------------------------------- /mobile/components/types.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2024 Carl Schwan 2 | // SPDX-License-Identifier: GPL-2.0-or-later 3 | 4 | #include "types.h" 5 | -------------------------------------------------------------------------------- /shell/shell.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | shell.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /generators/epub/data/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | install(FILES 3 | okular-epub-sound-icon.png 4 | okular-epub-movie.png 5 | DESTINATION ${KDE_INSTALL_DATADIR}/okular/pics) 6 | -------------------------------------------------------------------------------- /generators/kimgio/tests/data/testExifOrientation-unspecified.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/okular/HEAD/generators/kimgio/tests/data/testExifOrientation-unspecified.jpg -------------------------------------------------------------------------------- /generators/dvi/TeXFont.cpp: -------------------------------------------------------------------------------- 1 | // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*- 2 | #include 3 | 4 | #include "TeXFont.h" 5 | 6 | TeXFont::~TeXFont() 7 | { 8 | } 9 | -------------------------------------------------------------------------------- /autotests/data/pdf_with_internal_links.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{hyperref,blindtext} 3 | 4 | \begin{document} 5 | 6 | \tableofcontents 7 | \blinddocument 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /part/part.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | part.rc 5 | part-viewermode.rc 6 | 7 | 8 | -------------------------------------------------------------------------------- /icons/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ecm_install_icons( ICONS 128-apps-okular.png 16-apps-okular.png 22-apps-okular.png 32-apps-okular.png 48-apps-okular.png 64-apps-okular.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor ) 2 | -------------------------------------------------------------------------------- /generators/poppler/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $EXTRACTRC $(find conf/ -name "*.ui" -o -name "*.kcfg") >> rc.cpp || exit 11 3 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_poppler.pot 4 | rm -f rc.cpp 5 | -------------------------------------------------------------------------------- /generators/spectre/Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $EXTRACTRC $(find conf/ -name "*.ui" -o -name "*.kcfg") >> rc.cpp || exit 11 3 | $XGETTEXT $(find . -name "*.cpp" -o -name "*.h") -o $podir/okular_ghostview.pot 4 | rm -f rc.cpp 5 | -------------------------------------------------------------------------------- /conf/settings_core.kcfgc: -------------------------------------------------------------------------------- 1 | ClassName=SettingsCore 2 | NameSpace=Okular 3 | File=okular_core.kcfg 4 | Mutators=true 5 | Singleton=true 6 | Visibility=OKULARCORE_EXPORT 7 | IncludeFiles=okularcore_export.h 8 | MemberVariables=dpointer 9 | -------------------------------------------------------------------------------- /autotests/data/strikethrough.md: -------------------------------------------------------------------------------- 1 | # Test for strikethrough tag workaround 2 | 3 | Line without strikethrough 4 | 5 | Line ~~with~~ strikethrough 6 | 7 | ``` 8 | ~~Strikethrough~~ should be ignored in a code block 9 | ``` 10 | -------------------------------------------------------------------------------- /generators/fax/fax_debug.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2014 Laurent Montel 3 | SPDX-License-Identifier: LGPL-2.0-or-later 4 | */ 5 | 6 | #include "fax_debug.h" 7 | Q_LOGGING_CATEGORY(FAX_LOG, "org.kde.okular.generators.fax", QtWarningMsg) 8 | -------------------------------------------------------------------------------- /gui/debug_ui.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2014 Frederik Gladhorn 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "debug_ui.h" 8 | 9 | Q_LOGGING_CATEGORY(OkularUiDebug, "org.kde.okular.ui", QtWarningMsg) 10 | -------------------------------------------------------------------------------- /core/debug.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2014 Frederik Gladhorn 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "debug_p.h" 8 | 9 | Q_LOGGING_CATEGORY(OkularCoreDebug, "org.kde.okular.core", QtWarningMsg) 10 | -------------------------------------------------------------------------------- /doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ########### install files ############### 2 | # 3 | # 4 | kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR okular) 5 | kdoctools_create_manpage(man-okular.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR}) 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | CMakeLists.txt.user* 2 | *.kdev4 3 | *.swp 4 | /build*/ 5 | .cmake/ 6 | 7 | # LSP & IDE 8 | /.clang-format 9 | /compile_commands.json 10 | .clangd 11 | .cache 12 | .idea 13 | .qtcreator 14 | /cmake-build* 15 | 16 | # Flatpak 17 | .flatpak-builder 18 | build-dir 19 | -------------------------------------------------------------------------------- /conf/settings_mobile.kcfgc: -------------------------------------------------------------------------------- 1 | ClassName=Settings 2 | NameSpace=Okular 3 | File=okular.kcfg 4 | Inherits=SettingsCore 5 | Mutators=true 6 | Singleton=true 7 | Visibility= 8 | IncludeFiles=settings_core.h 9 | SourceIncludeFiles=qdom.h,QStandardPaths 10 | MemberVariables=dpointer 11 | -------------------------------------------------------------------------------- /conf/settings.kcfgc: -------------------------------------------------------------------------------- 1 | ClassName=Settings 2 | NameSpace=Okular 3 | File=okular.kcfg 4 | Inherits=SettingsCore 5 | Mutators=true 6 | Singleton=true 7 | Visibility=OKULARPART_EXPORT 8 | IncludeFiles=settings_core.h,okularpart_export.h 9 | SourceIncludeFiles=qdom.h,QStandardPaths 10 | MemberVariables=dpointer 11 | -------------------------------------------------------------------------------- /generators/fax/fax_debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2014 Laurent Montel 3 | SPDX-License-Identifier: LGPL-2.0-or-later 4 | */ 5 | 6 | #ifndef FAX_DEBUG_H 7 | #define FAX_DEBUG_H 8 | 9 | #include 10 | Q_DECLARE_LOGGING_CATEGORY(FAX_LOG) 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /generators/spectre/spectre_debug.cpp: -------------------------------------------------------------------------------- 1 | /* This file is part of the KDE project 2 | SPDX-FileCopyrightText: 2014 Laurent Montel 3 | 4 | SPDX-License-Identifier: LGPL-2.0-or-later 5 | */ 6 | 7 | #include "spectre_debug.h" 8 | Q_LOGGING_CATEGORY(OkularSpectreDebug, "org.kde.okular.generators.spectre", QtWarningMsg) 9 | -------------------------------------------------------------------------------- /generators/poppler/debug_pdf.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2014 Frederik Gladhorn 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_DEBUG_PDF_H 8 | #define OKULAR_DEBUG_PDF_H 9 | 10 | #include 11 | 12 | Q_DECLARE_LOGGING_CATEGORY(OkularPdfDebug) 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /okular-cppcheck.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /core/script/js_global.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2024 Pratham Gandhi 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "js_global_p.h" 8 | 9 | using namespace Okular; 10 | 11 | JSGlobal::JSGlobal(QObject *parent) 12 | : QObject(parent) 13 | { 14 | } 15 | 16 | JSGlobal::~JSGlobal() = default; -------------------------------------------------------------------------------- /core/script/js_spell.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | SPDX-FileCopyrightText: 2008 Harri Porten 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #include "js_spell_p.h" 9 | 10 | using namespace Okular; 11 | 12 | bool JSSpell::available() const 13 | { 14 | return false; 15 | } 16 | -------------------------------------------------------------------------------- /metainfo.yaml: -------------------------------------------------------------------------------- 1 | maintainer: aacid 2 | description: Okular, the unified document viewer 3 | platforms: 4 | - name: Linux 5 | - name: Windows 6 | - name: macOS 7 | release: true 8 | 9 | public_lib: true 10 | public_source_dirs: 11 | - core 12 | - interfaces 13 | - Mainpage.dox 14 | logo: icons/128-apps-okular.png 15 | irc: okular 16 | mailinglist: okular-devel 17 | -------------------------------------------------------------------------------- /generators/comicbook/debug_comicbook.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2014 Frederik Gladhorn 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_DEBUG_COMICBOOK_H 8 | #define OKULAR_DEBUG_COMICBOOK_H 9 | 10 | #include 11 | 12 | Q_DECLARE_LOGGING_CATEGORY(OkularComicbookDebug) 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /generators/spectre/spectre_debug.h: -------------------------------------------------------------------------------- 1 | /* This file is part of the KDE project 2 | SPDX-FileCopyrightText: 2014 Laurent Montel 3 | 4 | SPDX-License-Identifier: LGPL-2.0-or-later 5 | */ 6 | 7 | #ifndef SPECTRE_DEBUG_H 8 | #define SPECTRE_DEBUG_H 9 | 10 | #include 11 | Q_DECLARE_LOGGING_CATEGORY(OkularSpectreDebug) 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /generators/epub/README: -------------------------------------------------------------------------------- 1 | This is a libepub based backend to watch epub books using okular 2 | The epub library can be obtained using: 3 | 4 | svn co https://ebook-tools.svn.sourceforge.net/svnroot/ebook-tools/trunk ebook-tools 5 | 6 | The library uses standard cmake (ccmake .;make install) 7 | 8 | The epub standard specs can be found in: 9 | 10 | http://www.idpf.org/specs.htm 11 | -------------------------------------------------------------------------------- /mobile/components/thumbnailitem.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2012 Marco Martin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "thumbnailitem.h" 8 | 9 | ThumbnailItem::ThumbnailItem(QQuickItem *parent) 10 | : PageItem(parent) 11 | { 12 | setIsThumbnail(true); 13 | } 14 | 15 | ThumbnailItem::~ThumbnailItem() 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /core/debug_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2007 Pino Toscano 3 | SPDX-FileCopyrightText: 2014 Frederik Gladhorn 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef OKULAR_DEBUG_P_H 9 | #define OKULAR_DEBUG_P_H 10 | 11 | #include 12 | 13 | Q_DECLARE_LOGGING_CATEGORY(OkularCoreDebug) 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /gui/debug_ui.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2007 Pino Toscano 3 | SPDX-FileCopyrightText: 2014 Frederik Gladhorn 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef OKULAR_DEBUG_UI_P_H 9 | #define OKULAR_DEBUG_UI_P_H 10 | 11 | #include 12 | 13 | Q_DECLARE_LOGGING_CATEGORY(OkularUiDebug) 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /hooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | readonly output=$(git clang-format -v --diff) 4 | 5 | if [[ "$output" == *"no modified files to format"* ]]; then exit 0; fi 6 | if [[ "$output" == *"clang-format did not modify any files"* ]]; then exit 0; fi 7 | 8 | echo "ERROR: you need to run git clang-format on your commit" 9 | echo " git clang-format -f is potentially what you want" 10 | exit 1 11 | -------------------------------------------------------------------------------- /part/dlgdebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _DLGDEBUG_H 8 | #define _DLGDEBUG_H 9 | 10 | #include 11 | 12 | class DlgDebug : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit DlgDebug(QWidget *parent = nullptr); 18 | }; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /generators/txt/debug_txt.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Luigi Toscano 3 | SPDX-FileCopyrightText: 2014 Frederik Gladhorn 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef OKULAR_DEBUG_TXT_H 9 | #define OKULAR_DEBUG_TXT_H 10 | 11 | #include 12 | 13 | Q_DECLARE_LOGGING_CATEGORY(OkularTxtDebug) 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /.git-blame-ignore-revs: -------------------------------------------------------------------------------- 1 | # _clang_format added 2 | 19d98d6a74079a42bcc5cb0e899d239a4bdb6e20 3 | b09e23f6ab7bf806448d87df1ceb1ea769d5a300 4 | # readability-braces-around-statements 5 | 50d0703ae0994d03dbf9e92868c93cc2cb8ea051 6 | # clang-format-16 7 | 0842f5e5bb2ea449a48e8545d3767880b676a77d 8 | # QVector to QList 9 | 7583be09601f046bd5152d05357ddd463821222f 10 | # clang-format-19 11 | 6b26d277f0308aa1b2fbe394c4cafc9522a2841b 12 | -------------------------------------------------------------------------------- /generators/xps/.emacs-dirvars: -------------------------------------------------------------------------------- 1 | ;; -*- emacs-lisp -*- 2 | ;; 3 | ;; This file is processed by the dirvars emacs package. Each variable 4 | ;; setting below is performed when this dirvars file is loaded. 5 | ;; 6 | indent-tabs-mode: nil 7 | tab-width: 8 8 | c-basic-offset: 4 9 | evaluate: (c-set-offset 'innamespace '0) 10 | kde-emacs-after-parent-string: "" 11 | evaluate: (c-set-offset 'inline-open '0) 12 | kdab-qt-version: 4 13 | -------------------------------------------------------------------------------- /part/dlgannotations.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _DLGANNOTATIONS_H_ 8 | #define _DLGANNOTATIONS_H_ 9 | 10 | #include 11 | 12 | class DlgAnnotations : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit DlgAnnotations(QWidget *parent = nullptr); 18 | }; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /core/textdocumentsettings.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | TextDocumentSettings 4 | 5 | 6 | 7 | QFormLayout::ExpandingFieldsGrow 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /generators/dvi/dviPageInfo.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Luigi Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "dviPageInfo.h" 8 | 9 | dviPageInfo::dviPageInfo() 10 | { 11 | sourceHyperLinkList.reserve(200); 12 | } 13 | 14 | dviPageInfo::~dviPageInfo() 15 | { 16 | } 17 | 18 | void dviPageInfo::clear() 19 | { 20 | sourceHyperLinkList.clear(); 21 | } 22 | -------------------------------------------------------------------------------- /part/dlggeneral.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _DLGGENERAL_H 8 | #define _DLGGENERAL_H 9 | 10 | #include 11 | 12 | #include "part.h" 13 | 14 | class DlgGeneral : public QWidget 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit DlgGeneral(QWidget *parent, Okular::EmbedMode embedMode); 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /autotests/data/fake_okular_certstore/pkcs11.txt: -------------------------------------------------------------------------------- 1 | library= 2 | name=NSS Internal PKCS #11 Module 3 | parameters=configdir='testest' certPrefix='' keyPrefix='' secmod='secmod.db' flags= updatedir='' updateCertPrefix='' updateKeyPrefix='' updateid='' updateTokenDescription='' 4 | NSS=Flags=internal,critical trustOrder=75 cipherOrder=100 slotParams=(1={slotFlags=[ECC,RSA,DSA,DH,RC2,RC4,DES,RANDOM,SHA1,MD5,MD2,SSL,TLS,AES,Camellia,SEED,SHA256,SHA512] askpw=any timeout=30}) 5 | 6 | -------------------------------------------------------------------------------- /generators/djvu/TODO: -------------------------------------------------------------------------------- 1 | KDjVu: 2 | * Fix the cache handling to behave sanely in 90 and 170 degrees rotation 3 | * Implement the threaded generation (the API is already ok) 4 | * Annotations: 5 | - Read the missing properties, if possible 6 | - The default font size is quite small compared to the usual DjVu page sizes, 7 | what to do for this? 8 | * Read the metadata in the document (like year, booktitle, editor, author, etc) 9 | stored as annotations 10 | 11 | -------------------------------------------------------------------------------- /generators/dvi/debug_dvi.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Luigi Toscano 3 | SPDX-FileCopyrightText: 2014 Frederik Gladhorn 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef OKULAR_DVI_DEBUG_P_H 9 | #define OKULAR_DVI_DEBUG_P_H 10 | 11 | #include 12 | 13 | Q_DECLARE_LOGGING_CATEGORY(OkularDviDebug) 14 | Q_DECLARE_LOGGING_CATEGORY(OkularDviShellDebug) 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /mobile/components/thumbnailitem.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2012 Marco Martin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef THUMBNAILITEM_H 8 | #define THUMBNAILITEM_H 9 | 10 | #include "pageitem.h" 11 | 12 | class ThumbnailItem : public PageItem 13 | { 14 | Q_OBJECT 15 | QML_ELEMENT 16 | 17 | public: 18 | explicit ThumbnailItem(QQuickItem *parent = nullptr); 19 | ~ThumbnailItem() override; 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /core/synctex/patches/series: -------------------------------------------------------------------------------- 1 | 00-disable-SYNCTEX_INLINE.diff 2 | 04-gcc-specify-printf-format.diff 3 | 06-mingw-_synctex_error.diff 4 | 08-fix_cpp_comments.diff 5 | 10-fix-typo.diff 6 | 11-fix-unused-parameters-warnings.diff 7 | 12-omit-no-file-warning.diff 8 | 13-fix-Wundef-warnings.diff 9 | 14-fix-misc-compiler-warnings.diff 10 | 15-prevent-leaks-and-segfault.diff 11 | 16-use-windows-ansi-api-path-find.diff 12 | 17-call-va_end-before-return.diff 13 | 18-Include-stdarg.h-for-va_start-and-va_end.diff 14 | -------------------------------------------------------------------------------- /gui/priorities.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2013 Albert Astals Cid 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef PRIORITIES_H 8 | #define PRIORITIES_H 9 | 10 | /** PRIORITIES for requests. Globally defined here. **/ 11 | #define PAGEVIEW_PRIO 1 12 | #define PAGEVIEW_PRELOAD_PRIO 4 13 | #define THUMBNAILS_PRIO 2 14 | #define THUMBNAILS_PRELOAD_PRIO 5 15 | #define PRESENTATION_PRIO 0 16 | #define PRESENTATION_PRELOAD_PRIO 3 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /generators/poppler/imagescaling.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2023 g10 Code GmbH 3 | SPDX-FileContributor: Sune Stolborg Vuorela 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef OKULAR_IMAGESCALING_H 9 | #define OKULAR_IMAGESCALING_H 10 | 11 | #include 12 | 13 | class imagescaling 14 | { 15 | public: 16 | static QImage scaleAndFitCanvas(const QImage &input, QSize expectedSize); 17 | }; 18 | 19 | #endif // OKULAR_IMAGESCALING_H 20 | -------------------------------------------------------------------------------- /mobile/components/testDocumentView.qml: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2012 Marco Martin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | import QtQuick 2.15 8 | import org.kde.okular 2.0 as Okular 9 | 10 | Item { 11 | width: 500 12 | height: 600 13 | Okular.DocumentItem { 14 | id: docItem 15 | url: "pageitem.cpp" 16 | } 17 | Okular.DocumentView { 18 | anchors.fill: parent 19 | document: docItem 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /core/script/js_global_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2024 Pratham Gandhi 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_SCRIPT_JS_GLOBAL_P_H 8 | #define OKULAR_SCRIPT_JS_GLOBAL_P_H 9 | 10 | #include 11 | 12 | namespace Okular 13 | { 14 | 15 | class JSGlobal : public QObject 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit JSGlobal(QObject *parent = nullptr); 21 | ~JSGlobal() override; 22 | }; 23 | 24 | } 25 | #endif -------------------------------------------------------------------------------- /core/utils_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _OKULAR_UTILS_P_H_ 8 | #define _OKULAR_UTILS_P_H_ 9 | 10 | class QIODevice; 11 | 12 | namespace Okular 13 | { 14 | void copyQIODevice(QIODevice *from, QIODevice *to); 15 | 16 | /** 17 | * Return a rotation matrix corresponding to the @p rotation enumeration. 18 | */ 19 | QTransform buildRotationMatrix(Rotation rotation); 20 | 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /part/okmenutitle.h: -------------------------------------------------------------------------------- 1 | /* This file was part of the KDE libraries (copied partially from kmenu.cpp) 2 | 3 | SPDX-License-Identifier: LGPL-2.0-only 4 | */ 5 | 6 | #ifndef OKMENUTITLE_H 7 | #define OKMENUTITLE_H 8 | 9 | #include 10 | 11 | class OKMenuTitle : public QWidgetAction 12 | { 13 | Q_OBJECT 14 | public: 15 | OKMenuTitle(QMenu *menu, const QString &text, const QIcon &icon = QIcon()); 16 | 17 | bool eventFilter(QObject *object, QEvent *event) override; 18 | }; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /Okular6Config.cmake.in: -------------------------------------------------------------------------------- 1 | @PACKAGE_INIT@ 2 | 3 | include(CMakeFindDependencyMacro) 4 | 5 | find_dependency(Qt6Core @QT_REQUIRED_VERSION@) 6 | find_dependency(Qt6PrintSupport @QT_REQUIRED_VERSION@) 7 | find_dependency(Qt6Widgets @QT_REQUIRED_VERSION@) 8 | find_dependency(KF6CoreAddons @KF6_REQUIRED_VERSION@) 9 | find_dependency(KF6Config @KF6_REQUIRED_VERSION@) 10 | find_dependency(KF6XmlGui @KF6_REQUIRED_VERSION@) 11 | 12 | @PACKAGE_SETUP_AUTOMOC_VARIABLES@ 13 | 14 | include("${CMAKE_CURRENT_LIST_DIR}/Okular6Targets.cmake") 15 | -------------------------------------------------------------------------------- /cppcheck-suppressions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | duplInheritedMember 5 | d_func 6 | 7 | 8 | unusedPrivateFunction 9 | *::d_func 10 | 11 | 12 | returnByReference 13 | 14 | 15 | constParameterPointer 16 | 17 | 18 | 19 | useStlAlgorithm 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /core/sourcereference_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_SOURCEREFERENCE_P_H 8 | #define OKULAR_SOURCEREFERENCE_P_H 9 | 10 | #include "sourcereference.h" 11 | 12 | #include 13 | 14 | class QUrl; 15 | 16 | namespace Okular 17 | { 18 | std::optional extractLilyPondSourceReference(const QUrl &url); 19 | QString sourceReferenceToolTip(const SourceReference &sourceReference); 20 | 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /generators/txt/document.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2013 Azat Khuzhin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _TXT_DOCUMENT_H_ 8 | #define _TXT_DOCUMENT_H_ 9 | 10 | #include 11 | 12 | namespace Txt 13 | { 14 | class Document : public QTextDocument 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit Document(const QString &fileName); 20 | ~Document() override; 21 | 22 | private: 23 | QString toUnicode(const QByteArray &array); 24 | }; 25 | } 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /core/script/js_spell_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | SPDX-FileCopyrightText: 2008 Harri Porten 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef OKULAR_SCRIPT_JS_SPELL_P_H 9 | #define OKULAR_SCRIPT_JS_SPELL_P_H 10 | 11 | #include 12 | 13 | namespace Okular 14 | { 15 | class JSSpell : public QObject 16 | { 17 | Q_OBJECT 18 | Q_PROPERTY(bool available READ available CONSTANT) 19 | public: 20 | bool available() const; 21 | }; 22 | 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /core/synctex/synctex_parser_local.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008, 2009, 2010 , 2011 jerome DOT laurens AT u-bourgogne DOT fr 3 | SPDX-License-Identifier: X11 4 | 5 | This file is part of the SyncTeX package. 6 | 7 | Latest Revision: Tue Jun 14 08:23:30 UTC 2011 8 | 9 | Version: 1.18 10 | 11 | See synctex_parser_readme.txt for more details 12 | */ 13 | 14 | /* This local header file is for TEXLIVE, use your own header to fit your system */ 15 | #include /* for inline && HAVE_xxx */ 16 | /* No inlining for synctex tool in texlive. */ 17 | #define SYNCTEX_INLINE 18 | -------------------------------------------------------------------------------- /generators/txt/converter.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2013 Azat Khuzhin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef TXT_CONVERTER_H 8 | #define TXT_CONVERTER_H 9 | 10 | #include 11 | #include 12 | 13 | namespace Txt 14 | { 15 | class Converter : public Okular::TextDocumentConverter 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | Converter(); 21 | ~Converter() override; 22 | 23 | QTextDocument *convert(const QString &fileName) override; 24 | }; 25 | } 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /part/dlgperformance.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _DLGPERFORMANCE_H 8 | #define _DLGPERFORMANCE_H 9 | 10 | #include 11 | 12 | class QLabel; 13 | 14 | class DlgPerformance : public QWidget 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit DlgPerformance(QWidget *parent = nullptr); 20 | 21 | protected Q_SLOTS: 22 | void slotMemoryLevelSelected(int which); 23 | 24 | protected: 25 | QLabel *m_memoryExplanationLabel; 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /autotests/editdrawingtooldialogtest.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2015 Laurent Montel 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef EDITDRAWINGTOOLDIALOGTEST_H 8 | #define EDITDRAWINGTOOLDIALOGTEST_H 9 | 10 | #include 11 | 12 | class EditDrawingToolDialogTest : public QObject 13 | { 14 | Q_OBJECT 15 | public: 16 | explicit EditDrawingToolDialogTest(QObject *parent = nullptr); 17 | ~EditDrawingToolDialogTest() override; 18 | 19 | private Q_SLOTS: 20 | void shouldHaveDefaultValues(); 21 | }; 22 | 23 | #endif // EDITDRAWINGTOOLDIALOGTEST_H 24 | -------------------------------------------------------------------------------- /generators/txt/generator_txt.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2013 Azat Khuzhin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _GENERATOR_TXT_H_ 8 | #define _GENERATOR_TXT_H_ 9 | 10 | #include 11 | 12 | class TxtGenerator : public Okular::TextDocumentGenerator 13 | { 14 | Q_OBJECT 15 | Q_INTERFACES(Okular::Generator) 16 | 17 | public: 18 | TxtGenerator(QObject *parent, const QVariantList &args); 19 | ~TxtGenerator() override 20 | { 21 | } 22 | 23 | void addPages(KConfigDialog *dlg) override; 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /generators/dvi/xdvi.h: -------------------------------------------------------------------------------- 1 | // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*- 2 | #ifndef _xdvi_h 3 | #define _xdvi_h 4 | 5 | /* 6 | * Written by Eric C. Cooper, CMU 7 | */ 8 | 9 | #define ROUNDUP(x, y) (((x) + (y) - 1) / (y)) 10 | 11 | extern unsigned long num(FILE *, int); 12 | extern long snum(FILE *, int); 13 | extern struct WindowRec mane, currwin; 14 | 15 | #define one(fp) ((unsigned char)getc(fp)) 16 | #define sone(fp) ((long)one(fp)) 17 | #define two(fp) num(fp, 2) 18 | #define stwo(fp) snum(fp, 2) 19 | #define four(fp) num(fp, 4) 20 | #define sfour(fp) snum(fp, 4) 21 | 22 | #endif /* _xdvi_h */ 23 | -------------------------------------------------------------------------------- /generators/spectre/DESIGN: -------------------------------------------------------------------------------- 1 | Quick Spectre Generator design explanation 2 | -------------------------------------------- 3 | 4 | libgs has a limitation that there can only be a gs instance per process. 5 | 6 | To overcome that problem there is zero (when no ps document has been opened) 7 | or one GSRendererThread thread running (when on or more ps documents are open 8 | in the same okular process) 9 | 10 | As there is only one GSRendererThread for potentially N GSGenerator, the imageDone 11 | signal from GSRendererThread also emits the request and the GSGenerator checks 12 | if it is its request that was done or from another GSGenerator. 13 | -------------------------------------------------------------------------------- /core/script/js_console_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | SPDX-FileCopyrightText: 2008 Harri Porten 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef OKULAR_SCRIPT_JS_CONSOLE_P_H 9 | #define OKULAR_SCRIPT_JS_CONSOLE_P_H 10 | 11 | #include 12 | 13 | namespace Okular 14 | { 15 | class JSConsole : public QObject 16 | { 17 | Q_OBJECT 18 | public: 19 | Q_INVOKABLE void clear(); 20 | Q_INVOKABLE void hide(); 21 | Q_INVOKABLE void println(const QString &cMessage); 22 | Q_INVOKABLE void show(); 23 | }; 24 | 25 | } 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /core/synctex/patches/00-disable-SYNCTEX_INLINE.diff: -------------------------------------------------------------------------------- 1 | Disable SYNCTEX_INLINE on non-MSVC compilers. It is misplaced 2 | in the code (before "static"), so it causes compiling errors. 3 | Author: Pino Toscano 4 | 5 | Index: synctex/synctex_parser.c 6 | =================================================================== 7 | --- synctex.orig/synctex_parser.c 8 | +++ synctex/synctex_parser.c 9 | @@ -91,7 +91,7 @@ 10 | # if defined(_MSC_VER) 11 | # define SYNCTEX_INLINE __inline 12 | # else 13 | -# define SYNCTEX_INLINE inline 14 | +# define SYNCTEX_INLINE 15 | # endif 16 | # endif 17 | 18 | -------------------------------------------------------------------------------- /mobile/components/okularsingleton.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULARSINGLETON_H 8 | #define OKULARSINGLETON_H 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | class OkularSingleton : public QObject 15 | { 16 | Q_OBJECT 17 | QML_NAMED_ELEMENT(Okular) 18 | QML_SINGLETON 19 | Q_PROPERTY(QStringList nameFilters READ nameFilters CONSTANT) 20 | 21 | public: 22 | OkularSingleton(); 23 | 24 | QStringList nameFilters() const; 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /generators/fictionbook/generator_fb.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2007 Tobias Koenig 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _OKULAR_GENERATOR_FB_H_ 8 | #define _OKULAR_GENERATOR_FB_H_ 9 | 10 | #include 11 | 12 | class FictionBookGenerator : public Okular::TextDocumentGenerator 13 | { 14 | Q_OBJECT 15 | Q_INTERFACES(Okular::Generator) 16 | 17 | public: 18 | FictionBookGenerator(QObject *parent, const QVariantList &args); 19 | 20 | // [INHERITED] reparse configuration 21 | void addPages(KConfigDialog *dlg) override; 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /core/view_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_VIEW_P_H 8 | #define OKULAR_VIEW_P_H 9 | 10 | #include 11 | #include 12 | 13 | namespace Okular 14 | { 15 | class DocumentPrivate; 16 | class View; 17 | 18 | class ViewPrivate 19 | { 20 | public: 21 | ViewPrivate(); 22 | virtual ~ViewPrivate(); 23 | 24 | ViewPrivate(const ViewPrivate &) = delete; 25 | ViewPrivate &operator=(const ViewPrivate &) = delete; 26 | 27 | QString name; 28 | DocumentPrivate *document; 29 | }; 30 | 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /mobile/components/types.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2024 Carl Schwan 2 | // SPDX-License-Identifier: GPL-2.0-or-later 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | #include "gui/certificatemodel.h" 10 | #include "gui/recentitemsmodel.h" 11 | 12 | class CertificateModelForeign : public QObject 13 | { 14 | Q_OBJECT 15 | QML_FOREIGN(CertificateModel) 16 | QML_NAMED_ELEMENT(CertificateModel) 17 | QML_UNCREATABLE("") 18 | }; 19 | 20 | class RecentItemsModelForeign : public QObject 21 | { 22 | Q_OBJECT 23 | QML_FOREIGN(RecentItemsModel) 24 | QML_NAMED_ELEMENT(RecentItemsModel) 25 | }; 26 | -------------------------------------------------------------------------------- /part/data/README.Icons: -------------------------------------------------------------------------------- 1 | The icons contained in this directory are divided into: 2 | 3 | >> Annotations TOOLBAR Icons: 4 | These icons are displayed only on the annotation toolbar that popups up 5 | then entering the review mode: 6 | tool_eraser, tool_hl_orange, tool_hl_pink, tool_hl_yellow, tool_ink_green, 7 | tool_note 8 | 9 | >> Annotations PAGE Icons 10 | The following icons are mandated in the PDF1.6 spec or adopted de facto by 11 | some programs. The following are used by Text notes (Stamps not yet ready): 12 | checkmark, circle, comment, cross, help, insert, key, newparagraph, 13 | note, paragraph, rightarrow, rightpointer, star, uparrow, upleftarrow 14 | -------------------------------------------------------------------------------- /OkularConfigureChecks.cmake: -------------------------------------------------------------------------------- 1 | 2 | option( 3 | OKULAR_FORCE_DRM 4 | "Forces okular to check for DRM to decide if you can copy/print protected pdf. (default=no)" 5 | OFF 6 | ) 7 | if (OKULAR_FORCE_DRM) 8 | set(_OKULAR_FORCE_DRM 1) 9 | else (OKULAR_FORCE_DRM) 10 | set(_OKULAR_FORCE_DRM 0) 11 | endif (OKULAR_FORCE_DRM) 12 | 13 | # Check whether malloc_trim(3) is supported. 14 | include(CheckSymbolExists) 15 | check_symbol_exists(malloc_trim "malloc.h" HAVE_MALLOC_TRIM) 16 | 17 | # at the end, output the configuration 18 | configure_file( 19 | ${CMAKE_CURRENT_SOURCE_DIR}/config-okular.h.cmake 20 | ${CMAKE_CURRENT_BINARY_DIR}/config-okular.h 21 | ) 22 | 23 | -------------------------------------------------------------------------------- /generators/epub/generator_epub.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Ely Levy 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _OKULAR_GENERATOR_EPUB_H_ 8 | #define _OKULAR_GENERATOR_EPUB_H_ 9 | #include 10 | 11 | class EPubGenerator : public Okular::TextDocumentGenerator 12 | { 13 | Q_OBJECT 14 | Q_INTERFACES(Okular::Generator) 15 | public: 16 | EPubGenerator(QObject *parent, const QVariantList &args); 17 | ~EPubGenerator() override; 18 | 19 | // [INHERITED] reparse configuration 20 | void addPages(KConfigDialog *dlg) override; 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /generators/markdown/debug_md.h: -------------------------------------------------------------------------------- 1 | 2 | /*************************************************************************** 3 | * SPDX-FileCopyrightText: 2006 Luigi Toscano * 4 | * SPDX-FileCopyrightText: 2014 Frederik Gladhorn * 5 | * * 6 | * SPDX-License-Identifier: GPL-2.0-or-later 7 | ***************************************************************************/ 8 | 9 | #ifndef OKULAR_DEBUG_MD_H 10 | #define OKULAR_DEBUG_MD_H 11 | 12 | #include 13 | 14 | Q_DECLARE_LOGGING_CATEGORY(OkularMdDebug) 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /mobile/app/android.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2018 Aleix Pol 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef ANDROID_H 8 | #define ANDROID_H 9 | 10 | #include 11 | #include 12 | 13 | class URIHandler 14 | { 15 | public: 16 | void openUri(const QString &uri) 17 | { 18 | m_lastUrl = uri; 19 | } 20 | 21 | static void handleViewIntent(); 22 | 23 | QString m_lastUrl; 24 | static URIHandler handler; 25 | }; 26 | 27 | extern "C" { 28 | JNIEXPORT void JNICALL Java_org_kde_something_FileClass_openUri(JNIEnv *env, jobject /*obj*/, jstring uri); 29 | } 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /part/revisionviewer.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2018 Chinmoy Ranjan Pradhan 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_REVISIONVIEWER_H 8 | #define OKULAR_REVISIONVIEWER_H 9 | 10 | #include 11 | #include 12 | 13 | class QWidget; 14 | 15 | class RevisionViewer : public QObject 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit RevisionViewer(const QByteArray &revisionData, QWidget *parent = nullptr); 21 | 22 | public Q_SLOTS: 23 | void viewRevision(); 24 | 25 | private: 26 | QWidget *m_parent; 27 | QByteArray m_revisionData; 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /generators/mobipocket/generator_mobi.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Ely Levy 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | #ifndef OKULAR_GENERATOR_MOBI_H 7 | #define OKULAR_GENERATOR_MOBI_H 8 | #include 9 | 10 | class MobiGenerator : public Okular::TextDocumentGenerator 11 | { 12 | Q_OBJECT 13 | Q_INTERFACES(Okular::Generator) 14 | 15 | public: 16 | MobiGenerator(QObject *parent, const QVariantList &args); 17 | ~MobiGenerator() override 18 | { 19 | } 20 | 21 | // [INHERITED] reparse configuration 22 | void addPages(KConfigDialog *dlg) override; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /core/synctex/patches/12-omit-no-file-warning.diff: -------------------------------------------------------------------------------- 1 | Omit warning message when opening non-synctex pdf 2 | Author: Henrik Fehlauer 3 | 4 | Index: synctex/synctex_parser.c 5 | =================================================================== 6 | --- synctex.orig/synctex_parser.c 7 | +++ synctex/synctex_parser.c 8 | @@ -5838,7 +5838,9 @@ synctex_scanner_p synctex_scanner_new_wi 9 | if ((scanner->reader = synctex_reader_init_with_output_file(scanner->reader, output, build_directory))) { 10 | return parse? synctex_scanner_parse(scanner):scanner; 11 | } 12 | +#if defined(SYNCTEX_DEBUG) 13 | _synctex_error("No file?"); 14 | +#endif 15 | return NULL; 16 | } 17 | 18 | -------------------------------------------------------------------------------- /LICENSES/LicenseRef-KDE-Accepted-GPL.txt: -------------------------------------------------------------------------------- 1 | This library is free software; you can redistribute it and/or 2 | modify it under the terms of the GNU General Public License as 3 | published by the Free Software Foundation; either version 3 of 4 | the license or (at your option) at any later version that is 5 | accepted by the membership of KDE e.V. (or its successor 6 | approved by the membership of KDE e.V.), which shall act as a 7 | proxy as defined in Section 14 of version 3 of the license. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | -------------------------------------------------------------------------------- /core/chooseenginedialog_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _CHOOSEENGINEDIALOG_H 8 | #define _CHOOSEENGINEDIALOG_H 9 | 10 | #include 11 | 12 | #include 13 | #include 14 | 15 | class Ui_ChooseEngineWidget; 16 | 17 | class ChooseEngineDialog : public QDialog 18 | { 19 | Q_OBJECT 20 | 21 | public: 22 | ChooseEngineDialog(const QStringList &generators, const QMimeType &mime, QWidget *parent = nullptr); 23 | ~ChooseEngineDialog() override; 24 | 25 | int selectedGenerator() const; 26 | 27 | protected: 28 | Ui_ChooseEngineWidget *m_widget; 29 | }; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /part/widgetannottools.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2012 Fabio D 'Urso 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _WIDGETANNOTTOOLS_H_ 8 | #define _WIDGETANNOTTOOLS_H_ 9 | 10 | #include "widgetconfigurationtoolsbase.h" 11 | 12 | #include 13 | 14 | class WidgetAnnotTools : public WidgetConfigurationToolsBase 15 | { 16 | Q_OBJECT 17 | public: 18 | explicit WidgetAnnotTools(QWidget *parent = nullptr); 19 | ~WidgetAnnotTools() override; 20 | 21 | QStringList tools() const override; 22 | void setTools(const QStringList &items) override; 23 | 24 | protected Q_SLOTS: 25 | void slotAdd() override; 26 | void slotEdit() override; 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /Messages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | $EXTRACTRC *.rc */*.rc >> rc.cpp || exit 11 3 | $EXTRACTRC $(find conf/ -name "*.ui") $(find core/ -name "*.ui") $(find shell/ -name "*.ui") $(find part/ -name "*.ui") $(ls . | grep -E '\.ui') >> rc.cpp || exit 12 4 | $EXTRACTATTR --attr=tool,name part/data/drawingtools.xml >> rc.cpp || exit 13 5 | $EXTRACTATTR --attr=tool,name part/data/tools.xml >> rc.cpp || exit 14 6 | $EXTRACTATTR --attr=tool,name part/data/toolsQuick.xml >> rc.cpp || exit 15 7 | $XGETTEXT $(find conf/ -name "*.cpp" -o -name "*.h") $(find core/ -name "*.cpp" -o -name "*.h") $(find gui/ -name "*.cpp" -o -name "*.h") $(find part/ -name "*.cpp" -o -name "*.h") $(find shell/ -name "*.cpp" -o -name "*.h") $(ls . | grep -E '\.cpp$') $(ls . | grep -E '\.h$') -o $podir/okular.pot 8 | -------------------------------------------------------------------------------- /core/script/js_display.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2019 João Netto 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "../form.h" 8 | #include "js_display_p.h" 9 | 10 | #include 11 | 12 | using namespace Okular; 13 | 14 | // display.hidden 15 | int JSDisplay::hidden() const 16 | { 17 | return FormDisplay::FormHidden; 18 | } 19 | 20 | // display.visible 21 | int JSDisplay::visible() const 22 | { 23 | return FormDisplay::FormVisible; 24 | } 25 | 26 | // display.noView 27 | int JSDisplay::noView() const 28 | { 29 | return FormDisplay::FormNoView; 30 | } 31 | 32 | // display.noPrint 33 | int JSDisplay::noPrint() const 34 | { 35 | return FormDisplay::FormNoPrint; 36 | } 37 | -------------------------------------------------------------------------------- /po/pt/okular_tiff.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: okular\n" 4 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 5 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 6 | "PO-Revision-Date: 2020-07-09 16:02+0100\n" 7 | "Last-Translator: José Nuno Coelho Pires \n" 8 | "Language-Team: Portuguese \n" 9 | "Language: pt\n" 10 | "MIME-Version: 1.0\n" 11 | "Content-Type: text/plain; charset=UTF-8\n" 12 | "Content-Transfer-Encoding: 8bit\n" 13 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 14 | 15 | #, kde-format 16 | msgctxt "NAME OF TRANSLATORS" 17 | msgid "Your names" 18 | msgstr "José Nuno Pires" 19 | 20 | #, kde-format 21 | msgctxt "EMAIL OF TRANSLATORS" 22 | msgid "Your emails" 23 | msgstr "zepires@gmail.com" 24 | -------------------------------------------------------------------------------- /generators/spectre/conf/gssettings.kcfg: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | Determines whether Ghostscript should be allowed to use platform fonts, if false only usage of fonts embedded in the document will be allowed. 11 | true 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /generators/mobipocket/converter.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Jakub Stachowski 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | #ifndef MOBI_CONVERTER_H 7 | #define MOBI_CONVERTER_H 8 | 9 | #include 10 | #include 11 | 12 | #include "mobidocument.h" 13 | #include 14 | 15 | namespace Mobi 16 | { 17 | class Converter : public Okular::TextDocumentConverter 18 | { 19 | Q_OBJECT 20 | public: 21 | Converter(); 22 | ~Converter() override; 23 | 24 | QTextDocument *convert(const QString &fileName) override; 25 | 26 | private: 27 | void handleMetadata(const QMap &metadata); 28 | }; 29 | } 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /mobile/components/welcomeitem.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2025 Sebastian Kügler 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | #include 11 | 12 | #include 13 | 14 | class WelcomeItem : public QObject 15 | { 16 | Q_OBJECT 17 | QML_ELEMENT 18 | 19 | Q_PROPERTY(RecentItemsModel *recentItemsModel READ recentItemsModel CONSTANT) 20 | 21 | public: 22 | explicit WelcomeItem(QObject *parent = nullptr); 23 | ~WelcomeItem() override; 24 | 25 | RecentItemsModel *recentItemsModel() const; 26 | 27 | Q_INVOKABLE void urlOpened(const QUrl &url); 28 | 29 | private: 30 | RecentItemsModel *m_recentItemsModel; 31 | }; 32 | -------------------------------------------------------------------------------- /cmake/modules/FindDiscount.cmake: -------------------------------------------------------------------------------- 1 | # - Find Discount 2 | # Find the discount markdown library. 3 | # 4 | # This module defines 5 | # Discount_FOUND - whether the discount library was found 6 | # PkgConfig::Discount - the discount target to link to 7 | 8 | # SPDX-FileCopyrightText: 2017 Julian Wolff 9 | # SPDX-FileCopyrightText: 2018 Sune Vuorela 10 | # SPDX-License-Identifier: BSD-3-Clause 11 | 12 | include(FindPackageHandleStandardArgs) 13 | 14 | find_package(PkgConfig) 15 | 16 | if (PkgConfig_FOUND) 17 | pkg_check_modules(Discount IMPORTED_TARGET "libmarkdown") 18 | else () 19 | message(WARNING "PkgConfig not found, can't find Discount") 20 | endif() 21 | 22 | find_package_handle_standard_args(Discount DEFAULT_MSG Discount_LIBRARIES) 23 | -------------------------------------------------------------------------------- /po/ja/okular_tiff.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: okular\n" 4 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 5 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 6 | "PO-Revision-Date: 2020-07-10 23:52-0700\n" 7 | "Last-Translator: Japanese KDE translation team \n" 8 | "Language-Team: Japanese \n" 9 | "Language: ja\n" 10 | "MIME-Version: 1.0\n" 11 | "Content-Type: text/plain; charset=UTF-8\n" 12 | "Content-Transfer-Encoding: 8bit\n" 13 | "Plural-Forms: nplurals=1; plural=0;\n" 14 | "X-Accelerator-Marker: &\n" 15 | "X-Text-Markup: kde4\n" 16 | 17 | #, kde-format 18 | msgctxt "NAME OF TRANSLATORS" 19 | msgid "Your names" 20 | msgstr "" 21 | 22 | #, kde-format 23 | msgctxt "EMAIL OF TRANSLATORS" 24 | msgid "Your emails" 25 | msgstr "" 26 | -------------------------------------------------------------------------------- /generators/fictionbook/document.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2007 Tobias Koenig 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef FICTIONBOOK_DOCUMENT_H 8 | #define FICTIONBOOK_DOCUMENT_H 9 | 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | namespace FictionBook 16 | { 17 | class Document 18 | { 19 | public: 20 | explicit Document(const QString &fileName); 21 | 22 | bool open(); 23 | 24 | QDomDocument content() const; 25 | 26 | QString lastErrorString() const; 27 | 28 | private: 29 | void setError(const QString &); 30 | 31 | QString mFileName; 32 | QDomDocument mDocument; 33 | QString mErrorString; 34 | }; 35 | 36 | } 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /part/signaturepartutilsmodel.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2023-2025 g10 Code GmbH 3 | SPDX-FileContributor: Sune Stolborg Vuorela 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | #ifndef SIGNATUREPARTUTILSMODEL_H 8 | #define SIGNATUREPARTUTILSMODEL_H 9 | 10 | #include 11 | 12 | namespace SignaturePartUtils 13 | { 14 | 15 | enum SignatureListRoles { NickRole = Qt::UserRole, NickDisplayRole, CommonNameRole, EmailRole, CertRole, NameEmailDisplayRole, TypeRole }; 16 | 17 | enum class CertificateType { None = 0x0, SMime = 0x1, QES = 0x2, PGP = 0x4 }; 18 | Q_DECLARE_FLAGS(CertificateTypes, CertificateType) 19 | } 20 | Q_DECLARE_OPERATORS_FOR_FLAGS(SignaturePartUtils::CertificateTypes); 21 | #endif // SIGNATUREPARTUTILSMODEL_H 22 | -------------------------------------------------------------------------------- /part/widgetdrawingtools.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2015 Laurent Montel 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef WIDGETDRAWINGTOOLS_H 8 | #define WIDGETDRAWINGTOOLS_H 9 | 10 | #include "widgetconfigurationtoolsbase.h" 11 | 12 | class WidgetDrawingTools : public WidgetConfigurationToolsBase 13 | { 14 | Q_OBJECT 15 | public: 16 | explicit WidgetDrawingTools(QWidget *parent = nullptr); 17 | ~WidgetDrawingTools() override; 18 | 19 | QStringList tools() const override; 20 | void setTools(const QStringList &items) override; 21 | 22 | QString defaultName() const; 23 | 24 | protected Q_SLOTS: 25 | void slotAdd() override; 26 | void slotEdit() override; 27 | }; 28 | 29 | #endif // WIDGETDRAWINGTOOLS_H 30 | -------------------------------------------------------------------------------- /README.clang-format: -------------------------------------------------------------------------------- 1 | We introduced clang-format mandatory usage in July 2020. 2 | If you want git blame to ignore the revision in which we did the mass change you can do 3 | git config blame.ignoreRevsFile .git-blame-ignore-revs 4 | on your clone 5 | 6 | To get the clang-format warnings locally instead at CI time we recommend you 7 | to copy the hooks/pre-commit to your .git 8 | cp hooks/pre-commit .git/hooks/ 9 | 10 | We are using clang-format 19 on CI. Unfortunately clang-format is not totally 11 | compatible with other versions of itself. If CI gives you trouble but your local 12 | clang-format disagrees, just apply the changes suggested by CI and then commit 13 | with the --no-verify flag. If you get stuck, don't hesitate to ask the reviewer 14 | to help and they will reformat your commits :) 15 | -------------------------------------------------------------------------------- /core/script/executor_js_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_SCRIPT_EXECUTOR_JS_P_H 8 | #define OKULAR_SCRIPT_EXECUTOR_JS_P_H 9 | 10 | class QString; 11 | 12 | namespace Okular 13 | { 14 | class DocumentPrivate; 15 | class ExecutorJSPrivate; 16 | class Event; 17 | 18 | class ExecutorJS 19 | { 20 | public: 21 | explicit ExecutorJS(DocumentPrivate *doc); 22 | ~ExecutorJS(); 23 | 24 | ExecutorJS(const ExecutorJS &) = delete; 25 | ExecutorJS &operator=(const ExecutorJS &) = delete; 26 | 27 | void execute(const QString &script, Event *event); 28 | 29 | private: 30 | friend class ExecutorJSPrivate; 31 | ExecutorJSPrivate *d; 32 | }; 33 | 34 | } 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /generators/markdown/generator_md.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2017 Julian Wolff 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _OKULAR_GENERATOR_MD_H_ 8 | #define _OKULAR_GENERATOR_MD_H_ 9 | 10 | #include 11 | 12 | class MarkdownGenerator : public Okular::TextDocumentGenerator 13 | { 14 | Q_OBJECT 15 | Q_INTERFACES(Okular::Generator) 16 | 17 | public: 18 | MarkdownGenerator(QObject *parent, const QVariantList &args); 19 | 20 | // [INHERITED] reparse configuration 21 | bool reparseConfig() override; 22 | void addPages(KConfigDialog *dlg) override; 23 | 24 | private: 25 | bool m_isFancyPantsConfigEnabled = true; 26 | bool m_wasFancyPantsConfigEnabled = true; 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /generators/tiff/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | remove_definitions(-DTRANSLATION_DOMAIN="okular") 2 | add_definitions(-DTRANSLATION_DOMAIN="okular_tiff") 3 | 4 | ########### next target ############### 5 | 6 | set(okularGenerator_tiff_SRCS 7 | generator_tiff.cpp 8 | ) 9 | 10 | okular_add_generator(okularGenerator_tiff ${okularGenerator_tiff_SRCS}) 11 | target_link_libraries(okularGenerator_tiff okularcore TIFF::TIFF KF6::I18n) 12 | 13 | ########### install files ############### 14 | if (BUILD_DESKTOP) 15 | install( PROGRAMS okularApplication_tiff.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 16 | endif() 17 | if (BUILD_MOBILE) 18 | install( PROGRAMS org.kde.mobile.okular_tiff.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 19 | endif() 20 | install( FILES org.kde.okular-tiff.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) 21 | -------------------------------------------------------------------------------- /part/snapshottaker.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2012 Tobias Koening 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef SNAPSHOTTAKER_H 8 | #define SNAPSHOTTAKER_H 9 | #include "config-okular.h" 10 | 11 | #if HAVE_PHONON 12 | 13 | #include 14 | 15 | #include 16 | 17 | class QImage; 18 | 19 | class SnapshotTaker : public QObject 20 | { 21 | Q_OBJECT 22 | 23 | public: 24 | explicit SnapshotTaker(const QUrl &url, QObject *parent = nullptr); 25 | ~SnapshotTaker() override; 26 | 27 | Q_SIGNALS: 28 | void finished(const QImage &image); 29 | 30 | private Q_SLOTS: 31 | void stateChanged(Phonon::State, Phonon::State); 32 | 33 | private: 34 | Phonon::VideoPlayer *m_player; 35 | }; 36 | 37 | #endif 38 | #endif 39 | -------------------------------------------------------------------------------- /part/extensions.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2002 Wilco Greven 3 | SPDX-FileCopyrightText: 2008 Pino Toscano 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #include "extensions.h" 9 | 10 | // local includes 11 | #include "part.h" 12 | 13 | #include 14 | 15 | namespace Okular 16 | { 17 | /* 18 | * BrowserExtension class 19 | */ 20 | BrowserExtension::BrowserExtension(Part *parent) 21 | : NavigationExtension(parent) 22 | , m_part(parent) 23 | { 24 | Q_EMIT enableAction("print", true); 25 | setURLDropHandlingEnabled(true); 26 | } 27 | 28 | void BrowserExtension::print() 29 | { 30 | m_part->slotPrint(); 31 | } 32 | 33 | } 34 | 35 | #include "moc_extensions.cpp" 36 | 37 | /* kate: replace-tabs on; indent-width 4; */ 38 | -------------------------------------------------------------------------------- /shell/okular_main.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2002 Wilco Greven 3 | SPDX-FileCopyrightText: 2003 Christophe Devriese 4 | SPDX-FileCopyrightText: 2003 Laurent Montel 5 | SPDX-FileCopyrightText: 2003-2007 Albert Astals Cid 6 | SPDX-FileCopyrightText: 2004 Andy Goossens 7 | 8 | SPDX-License-Identifier: GPL-2.0-or-later 9 | */ 10 | 11 | #ifndef _OKULAR_MAIN_H_ 12 | #define _OKULAR_MAIN_H_ 13 | #include 14 | 15 | namespace Okular 16 | { 17 | enum Status { Error, AttachedOtherProcess, Success }; 18 | 19 | Status main(const QStringList &paths, const QString &serializedOptions); 20 | 21 | } 22 | 23 | #endif 24 | 25 | /* kate: replace-tabs on; indent-width 4; */ 26 | -------------------------------------------------------------------------------- /part/pageitemdelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef PAGEITEMDELEGATE_H 8 | #define PAGEITEMDELEGATE_H 9 | 10 | #include 11 | 12 | class PageItemDelegate : public QItemDelegate 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit PageItemDelegate(QObject *parent = nullptr); 18 | ~PageItemDelegate() override; 19 | 20 | void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; 21 | 22 | protected: 23 | void drawDisplay(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const override; 24 | 25 | private: 26 | class Private; 27 | Private *const d; 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /core/script/js_ocg_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2019 João Netto 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_SCRIPT_JS_OCG_P_H 8 | #define OKULAR_SCRIPT_JS_OCG_P_H 9 | 10 | #include 11 | 12 | class QAbstractItemModel; 13 | 14 | namespace Okular 15 | { 16 | class JSOCG : public QObject 17 | { 18 | Q_OBJECT 19 | Q_PROPERTY(bool state READ state WRITE setState) // clazy:exclude=qproperty-without-notify 20 | 21 | public: 22 | explicit JSOCG(QAbstractItemModel *model, int i, int j, QObject *parent = nullptr); 23 | ~JSOCG() override; 24 | 25 | bool state() const; 26 | void setState(bool state); 27 | 28 | private: 29 | QAbstractItemModel *m_model = nullptr; 30 | int m_i; 31 | int m_j; 32 | }; 33 | 34 | } 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /generators/xps/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | remove_definitions(-DTRANSLATION_DOMAIN="okular") 2 | add_definitions(-DTRANSLATION_DOMAIN="okular_xps") 3 | 4 | ########### next target ############### 5 | 6 | set(okularGenerator_xps_SRCS 7 | generator_xps.cpp 8 | ) 9 | 10 | okular_add_generator(okularGenerator_xps ${okularGenerator_xps_SRCS}) 11 | 12 | target_link_libraries(okularGenerator_xps okularcore KF6::Archive KF6::I18n Qt6::PrintSupport Qt6::Xml) 13 | 14 | ########### install files ############### 15 | if (BUILD_DESKTOP) 16 | install( PROGRAMS okularApplication_xps.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 17 | endif() 18 | if (BUILD_MOBILE) 19 | install( PROGRAMS org.kde.mobile.okular_xps.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 20 | endif() 21 | install( FILES org.kde.okular-xps.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) 22 | -------------------------------------------------------------------------------- /part/extensions.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2002 Wilco Greven 3 | SPDX-FileCopyrightText: 2008 Pino Toscano 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef _EXTENSIONS_H_ 9 | #define _EXTENSIONS_H_ 10 | 11 | #include 12 | 13 | #include 14 | using NavigationExtension = KParts::NavigationExtension; 15 | 16 | namespace Okular 17 | { 18 | class Part; 19 | 20 | class BrowserExtension : public NavigationExtension 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit BrowserExtension(Part *); 26 | 27 | public Q_SLOTS: 28 | // Automatically detected by the host. 29 | void print(); 30 | 31 | private: 32 | Part *m_part; 33 | }; 34 | 35 | } 36 | 37 | #endif 38 | 39 | /* kate: replace-tabs on; indent-width 4; */ 40 | -------------------------------------------------------------------------------- /config-okular.h.cmake: -------------------------------------------------------------------------------- 1 | /* Defines if force the use DRM in okular */ 2 | #define OKULAR_FORCE_DRM ${_OKULAR_FORCE_DRM} 3 | 4 | /* Defines if the purpose framework is available */ 5 | #cmakedefine01 HAVE_PURPOSE 6 | 7 | /* Defines if qtspeech is available */ 8 | #cmakedefine01 HAVE_SPEECH 9 | 10 | /* Defines if kwallet is available */ 11 | #cmakedefine01 HAVE_KWALLET 12 | 13 | /* Defines if QJSEngine is available*/ 14 | #cmakedefine01 HAVE_JS 15 | 16 | /* Defines whether the malloc_trim method from malloc.h is available */ 17 | #cmakedefine01 HAVE_MALLOC_TRIM 18 | 19 | /* Defines whether we are building with X11 support */ 20 | #cmakedefine01 HAVE_X11 21 | 22 | /* Defines wheter we are building with Phonon support */ 23 | #cmakedefine01 HAVE_PHONON 24 | 25 | /* Defines whether we are building with dbus enabled */ 26 | #cmakedefine01 HAVE_DBUS 27 | -------------------------------------------------------------------------------- /part/dlgaccessibility.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _DLGACCESSIBILITY_H 8 | #define _DLGACCESSIBILITY_H 9 | 10 | #include "config-okular.h" 11 | #include 12 | 13 | class QComboBox; 14 | class QStackedWidget; 15 | 16 | class DlgAccessibility : public QWidget 17 | { 18 | Q_OBJECT 19 | 20 | public: 21 | explicit DlgAccessibility(QWidget *parent = nullptr); 22 | 23 | protected Q_SLOTS: 24 | void slotColorModeSelected(int mode); 25 | #if HAVE_SPEECH 26 | void slotTTSEngineChanged(); 27 | #endif 28 | 29 | protected: 30 | QStackedWidget *m_colorModeConfigStack; 31 | #if HAVE_SPEECH 32 | QComboBox *m_ttsEngineBox; 33 | QComboBox *m_ttsVoiceBox; 34 | #endif 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /part/signaturepartutilsimageitemdelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2023-2025 g10 Code GmbH 3 | SPDX-FileContributor: Sune Stolborg Vuorela 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | #ifndef SIGNATUREPARTUTILS_IMAGEITEMDELEGATE_H 8 | #define SIGNATUREPARTUTILS_IMAGEITEMDELEGATE_H 9 | 10 | #include 11 | 12 | namespace SignaturePartUtils 13 | { 14 | 15 | class ImageItemDelegate : public QStyledItemDelegate 16 | { 17 | Q_OBJECT 18 | public: 19 | void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; 20 | QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override; 21 | }; 22 | 23 | } // namespace SignaturePartUtils 24 | 25 | #endif // SIGNATUREPARTUTILS_IMAGEITEMDELEGATE_H 26 | -------------------------------------------------------------------------------- /po/fr/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Xavier Besnard , 2020. 2 | msgid "" 3 | msgstr "" 4 | "Project-Id-Version: okular\n" 5 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 6 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 7 | "PO-Revision-Date: 2020-07-13 18:04+0200\n" 8 | "Last-Translator: Xavier Besnard \n" 9 | "Language-Team: French \n" 10 | "Language: fr\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: 8bit\n" 14 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 15 | "X-Generator: Lokalize 20.04.3\n" 16 | 17 | #, kde-format 18 | msgctxt "NAME OF TRANSLATORS" 19 | msgid "Your names" 20 | msgstr "Xavier Besnard" 21 | 22 | #, kde-format 23 | msgctxt "EMAIL OF TRANSLATORS" 24 | msgid "Your emails" 25 | msgstr "xavier.besnard@kde.org" 26 | -------------------------------------------------------------------------------- /generators/fax/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | remove_definitions(-DTRANSLATION_DOMAIN="okular") 2 | add_definitions(-DTRANSLATION_DOMAIN="okular_fax") 3 | 4 | ########### next target ############### 5 | 6 | set(okularGenerator_fax_PART_SRCS generator_fax.cpp faxdocument.cpp faxexpand.cpp faxinit.cpp fax_debug.cpp) 7 | 8 | okular_add_generator(okularGenerator_fax ${okularGenerator_fax_PART_SRCS}) 9 | 10 | target_link_libraries(okularGenerator_fax okularcore KF6::I18n Qt6::Xml) 11 | 12 | ########### install files ############### 13 | if (BUILD_DESKTOP) 14 | install( PROGRAMS okularApplication_fax.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 15 | endif() 16 | if (BUILD_MOBILE) 17 | install( PROGRAMS org.kde.mobile.okular_fax.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 18 | endif() 19 | install( FILES org.kde.okular-fax.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) 20 | -------------------------------------------------------------------------------- /generators/txt/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | remove_definitions(-DTRANSLATION_DOMAIN="okular") 2 | add_definitions(-DTRANSLATION_DOMAIN="okular_txt") 3 | 4 | ########### next target ############### 5 | 6 | set(okularGenerator_txt_SRCS 7 | generator_txt.cpp 8 | converter.cpp 9 | document.cpp 10 | ) 11 | 12 | 13 | okular_add_generator(okularGenerator_txt ${okularGenerator_txt_SRCS}) 14 | 15 | target_link_libraries(okularGenerator_txt okularcore Qt6::Core KF6::I18n) 16 | 17 | ########### install files ############### 18 | if (BUILD_DESKTOP) 19 | install( PROGRAMS okularApplication_txt.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 20 | endif() 21 | if (BUILD_MOBILE) 22 | install( PROGRAMS org.kde.mobile.okular_txt.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 23 | endif() 24 | install( FILES org.kde.okular-txt.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) 25 | -------------------------------------------------------------------------------- /mobile/app/ui/Bookmarks.qml: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2012 Marco Martin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | import QtQuick 2.15 8 | import org.kde.kirigami 2.17 as Kirigami 9 | 10 | 11 | ThumbnailsBase { 12 | id: root 13 | header: Kirigami.AbstractApplicationHeader { 14 | topPadding: Kirigami.Units.largeSpacing 15 | bottomPadding: Kirigami.Units.largeSpacing 16 | rightPadding: Kirigami.Units.largeSpacing 17 | leftPadding: Kirigami.Units.largeSpacing 18 | Kirigami.Heading { 19 | level: 2 20 | text: i18n("Bookmarks") 21 | width: parent.width 22 | } 23 | } 24 | model: documentItem.bookmarkedPages 25 | onPageClicked: { 26 | mainView.page.goToBookmark(mainView.page.bookmarks[0]) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /part/signaturepropertiesdialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2018 Chinmoy Ranjan Pradhan 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_SIGNATUREPROPERTIESDIALOG_H 8 | #define OKULAR_SIGNATUREPROPERTIESDIALOG_H 9 | 10 | #include 11 | 12 | namespace Okular 13 | { 14 | class Document; 15 | class FormFieldSignature; 16 | } 17 | 18 | class SignaturePropertiesDialog : public QDialog 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | SignaturePropertiesDialog(Okular::Document *doc, const Okular::FormFieldSignature *form, QWidget *parent = nullptr); 24 | 25 | public Q_SLOTS: 26 | void viewSignedVersion(); 27 | void viewCertificateProperties(); 28 | 29 | private: 30 | Okular::Document *m_doc; 31 | const Okular::FormFieldSignature *m_signatureForm; 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /generators/markdown/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | remove_definitions(-DTRANSLATION_DOMAIN="okular") 2 | add_definitions(-DTRANSLATION_DOMAIN="okular_markdown") 3 | 4 | ########### next target ############### 5 | 6 | set(okularGenerator_md_PART_SRCS 7 | converter.cpp 8 | generator_md.cpp 9 | ) 10 | 11 | 12 | okular_add_generator(okularGenerator_md ${okularGenerator_md_PART_SRCS}) 13 | 14 | target_link_libraries(okularGenerator_md PRIVATE okularcore KF6::I18n PkgConfig::Discount) 15 | 16 | ########### install files ############### 17 | if (BUILD_DESKTOP) 18 | install( PROGRAMS okularApplication_md.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 19 | endif() 20 | if (BUILD_MOBILE) 21 | install( PROGRAMS org.kde.mobile.okular_md.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 22 | endif() 23 | install( FILES org.kde.okular-md.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) 24 | 25 | -------------------------------------------------------------------------------- /mobile/app/android.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2018 Aleix Pol 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "android.h" 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | URIHandler URIHandler::handler; 15 | 16 | void URIHandler::handleViewIntent() 17 | { 18 | QJniObject(QNativeInterface::QAndroidApplication::context()).callMethod("handleViewIntent", "()V"); 19 | } 20 | 21 | void Java_org_kde_something_FileClass_openUri(JNIEnv *env, jobject /*obj*/, jstring uri) 22 | { 23 | jboolean isCopy = false; 24 | const char *utf = env->GetStringUTFChars(uri, &isCopy); 25 | const QString uriString = QString::fromUtf8(utf); 26 | URIHandler::handler.openUri(uriString); 27 | env->ReleaseStringUTFChars(uri, utf); 28 | } 29 | -------------------------------------------------------------------------------- /part/pagesizelabel.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Albert Astals Cid 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _OKULAR_PAGESIZELABEL_H_ 8 | #define _OKULAR_PAGESIZELABEL_H_ 9 | 10 | #include 11 | 12 | #include "core/observer.h" 13 | 14 | namespace Okular 15 | { 16 | class Document; 17 | } 18 | 19 | /** 20 | * @short A widget to display page size. 21 | */ 22 | class PageSizeLabel : public KSqueezedTextLabel, public Okular::DocumentObserver 23 | { 24 | Q_OBJECT 25 | 26 | public: 27 | PageSizeLabel(QWidget *parent, Okular::Document *document); 28 | ~PageSizeLabel() override; 29 | 30 | // [INHERITED] from DocumentObserver 31 | void notifyCurrentPageChanged(int previous, int current) override; 32 | 33 | private: 34 | Okular::Document *m_document; 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /part/tts.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _TTS_H_ 8 | #define _TTS_H_ 9 | 10 | #include 11 | #include 12 | 13 | class OkularTTS : public QObject 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit OkularTTS(QObject *parent = nullptr); 18 | ~OkularTTS() override; 19 | 20 | void say(const QString &text); 21 | void stopAllSpeechs(); 22 | void pauseResumeSpeech(); 23 | 24 | public Q_SLOTS: 25 | void slotSpeechStateChanged(QTextToSpeech::State state); 26 | void slotConfigChanged(); 27 | 28 | Q_SIGNALS: 29 | void isSpeaking(bool speaking); 30 | void canPauseOrResume(bool speakingOrPaused); 31 | 32 | private: 33 | // private storage 34 | class Private; 35 | Private *d; 36 | }; 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /core/script/js_display_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2019 João Netto 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_SCRIPT_JS_DISPLAY_P_H 8 | #define OKULAR_SCRIPT_JS_DISPLAY_P_H 9 | 10 | #include 11 | 12 | namespace Okular 13 | { 14 | /** 15 | * The display types of the field. 16 | */ 17 | enum FormDisplay { FormVisible, FormHidden, FormNoPrint, FormNoView }; 18 | 19 | class JSDisplay : public QObject 20 | { 21 | Q_OBJECT 22 | Q_PROPERTY(int hidden READ hidden CONSTANT) 23 | Q_PROPERTY(int visible READ visible CONSTANT) 24 | Q_PROPERTY(int noView READ noView CONSTANT) 25 | Q_PROPERTY(int noPrint READ noPrint CONSTANT) 26 | public: 27 | int hidden() const; 28 | int visible() const; 29 | int noView() const; 30 | int noPrint() const; 31 | }; 32 | 33 | } 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /core/synctex/patches/16-use-windows-ansi-api-path-find.diff: -------------------------------------------------------------------------------- 1 | Use Windows ANSI versions of the PathFind... methods 2 | 3 | Author: Michel Ludwig 4 | 5 | 6 | Index: synctex/synctex_parser_utils.c 7 | --- synctex.orig/synctex_parser_utils.c 8 | +++ synctex/synctex_parser_utils.c 9 | @@ -187,8 +187,8 @@ void _synctex_strip_last_path_extension(char * string) { 10 | char * last_component = NULL; 11 | char * last_extension = NULL; 12 | # if defined(SYNCTEX_WINDOWS) 13 | - last_component = PathFindFileName(string); 14 | - last_extension = PathFindExtension(string); 15 | + last_component = PathFindFileNameA(string); 16 | + last_extension = PathFindExtensionA(string); 17 | if(last_extension == NULL)return; 18 | if(last_component == NULL)last_component = string; 19 | if(last_extension>last_component){/* filter out paths like "my/dir/.hidden" */ 20 | -------------------------------------------------------------------------------- /generators/dvi/fontEncodingPool.h: -------------------------------------------------------------------------------- 1 | // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*- 2 | // fontEncodingPool.h 3 | // 4 | // Part of KDVI - A DVI previewer for the KDE desktop environment 5 | // 6 | // SPDX-FileCopyrightText: 2003 Stefan Kebekus 7 | // SPDX-License-Identifier: GPL-2.0-or-later 8 | 9 | #ifndef _FONTENCODINGPOOL_H 10 | #define _FONTENCODINGPOOL_H 11 | 12 | #include "fontEncoding.h" 13 | 14 | #include 15 | 16 | class QString; 17 | 18 | class fontEncodingPool 19 | { 20 | public: 21 | fontEncodingPool(); 22 | ~fontEncodingPool(); 23 | 24 | fontEncodingPool(const fontEncodingPool &) = delete; 25 | fontEncodingPool &operator=(const fontEncodingPool &) = delete; 26 | 27 | fontEncoding *findByName(const QString &name); 28 | 29 | private: 30 | QHash dictionary; 31 | }; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /part/signaturepartutilskeydelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2023-2025 g10 Code GmbH 3 | SPDX-FileContributor: Sune Stolborg Vuorela 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | #ifndef SIGNATUREPARTUTILS_KEYDELEGATE_H 8 | #define SIGNATUREPARTUTILS_KEYDELEGATE_H 9 | 10 | #include 11 | 12 | namespace SignaturePartUtils 13 | { 14 | class KeyDelegate : public QStyledItemDelegate 15 | { 16 | Q_OBJECT 17 | public: 18 | using QStyledItemDelegate::QStyledItemDelegate; 19 | void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const final; 20 | QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const final; 21 | bool showIcon = false; 22 | }; 23 | 24 | } // namespace SignaturePartUtils 25 | 26 | #endif // SIGNATUREPARTUTILS_KEYDELEGATE_H 27 | -------------------------------------------------------------------------------- /core/script/js_util_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | SPDX-FileCopyrightText: 2008 Harri Porten 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef OKULAR_SCRIPT_JS_UTIL_P_H 9 | #define OKULAR_SCRIPT_JS_UTIL_P_H 10 | 11 | #include 12 | #include 13 | 14 | namespace Okular 15 | { 16 | class JSUtil : public QObject 17 | { 18 | Q_OBJECT 19 | public: 20 | Q_INVOKABLE QJSValue crackURL(const QString &cURL) const; 21 | Q_INVOKABLE QJSValue printd(const QJSValue &oFormat, const QDateTime &oDate) const; 22 | Q_INVOKABLE double stringToNumber(const QString &number) const; 23 | Q_INVOKABLE QString numberToString(double number, int formatStyle, int precision, int separatorStyle) const; 24 | Q_INVOKABLE QStringList getMonths() const; 25 | }; 26 | 27 | } 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /generators/mobipocket/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | remove_definitions(-DTRANSLATION_DOMAIN="okular") 2 | add_definitions(-DTRANSLATION_DOMAIN="okular_mobi") 3 | 4 | ########### next target ############### 5 | 6 | set(okularGenerator_mobi_PART_SRCS 7 | mobidocument.cpp 8 | generator_mobi.cpp 9 | converter.cpp 10 | ) 11 | 12 | okular_add_generator(okularGenerator_mobi ${okularGenerator_mobi_PART_SRCS}) 13 | 14 | target_link_libraries(okularGenerator_mobi okularcore QMobipocket6 KF6::I18n Qt6::Gui) 15 | 16 | ########### install files ############### 17 | if (BUILD_DESKTOP) 18 | install( PROGRAMS okularApplication_mobi.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 19 | endif() 20 | if (BUILD_MOBILE) 21 | install( PROGRAMS org.kde.mobile.okular_mobi.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 22 | endif() 23 | install( FILES org.kde.okular-mobipocket.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) 24 | -------------------------------------------------------------------------------- /core/scripter.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_SCRIPTER_H 8 | #define OKULAR_SCRIPTER_H 9 | 10 | #include "global.h" 11 | 12 | class QString; 13 | 14 | namespace Okular 15 | { 16 | class Document; 17 | class DocumentPrivate; 18 | class Event; 19 | class ScripterPrivate; 20 | 21 | class Scripter 22 | { 23 | friend class Document; 24 | friend class DocumentPrivate; 25 | 26 | public: 27 | ~Scripter(); 28 | 29 | Scripter(const Scripter &) = delete; 30 | Scripter &operator=(const Scripter &) = delete; 31 | 32 | void execute(Event *event, ScriptType type, const QString &script); 33 | 34 | private: 35 | friend class ScripterPrivate; 36 | ScripterPrivate *d; 37 | 38 | explicit Scripter(DocumentPrivate *doc); 39 | }; 40 | 41 | } 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /part/pagesizelabel.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2006 Albert Astals Cid 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "pagesizelabel.h" 8 | 9 | #include "core/document.h" 10 | 11 | PageSizeLabel::PageSizeLabel(QWidget *parent, Okular::Document *document) 12 | : KSqueezedTextLabel(parent) 13 | , m_document(document) 14 | { 15 | setAlignment(Qt::AlignRight); 16 | } 17 | 18 | PageSizeLabel::~PageSizeLabel() 19 | { 20 | m_document->removeObserver(this); 21 | } 22 | 23 | void PageSizeLabel::notifyCurrentPageChanged(int previousPage, int currentPage) 24 | { 25 | Q_UNUSED(previousPage) 26 | 27 | // if the document is opened 28 | if (m_document->pages() > 0 && !m_document->allPagesSize().isValid()) { 29 | setText(m_document->pageSizeString(currentPage)); 30 | } 31 | } 32 | 33 | #include "moc_pagesizelabel.cpp" 34 | -------------------------------------------------------------------------------- /generators/txt/converter.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2013 Azat Khuzhin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "converter.h" 8 | 9 | #include 10 | 11 | #include "document.h" 12 | 13 | using namespace Txt; 14 | 15 | Converter::Converter() 16 | { 17 | } 18 | 19 | Converter::~Converter() 20 | { 21 | } 22 | 23 | QTextDocument *Converter::convert(const QString &fileName) 24 | { 25 | Document *textDocument = new Document(fileName); 26 | 27 | textDocument->setPageSize(QSizeF(600, 800)); 28 | 29 | QTextFrameFormat frameFormat; 30 | frameFormat.setMargin(20); 31 | 32 | QTextFrame *rootFrame = textDocument->rootFrame(); 33 | rootFrame->setFrameFormat(frameFormat); 34 | 35 | Q_EMIT addMetaData(Okular::DocumentInfo::MimeType, QStringLiteral("text/plain")); 36 | 37 | return textDocument; 38 | } 39 | -------------------------------------------------------------------------------- /generators/dvi/glyph.cpp: -------------------------------------------------------------------------------- 1 | // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*- 2 | 3 | /* glyph.cpp 4 | * 5 | * part of kdvi, a dvi-previewer for the KDE desktop environment 6 | * 7 | * written by Stefan Kebekus, originally based on code by Paul Vojta 8 | * and a large number of co-authors */ 9 | 10 | #include 11 | 12 | #include "debug_dvi.h" 13 | #include "glyph.h" 14 | 15 | bitmap::bitmap() 16 | { 17 | w = 0; 18 | h = 0; 19 | bytes_wide = 0; 20 | bits = nullptr; 21 | } 22 | 23 | bitmap::~bitmap() 24 | { 25 | delete[] bits; 26 | } 27 | 28 | glyph::glyph() 29 | { 30 | #ifdef DEBUG_GLYPH 31 | qCDebug(OkularDviDebug) << "glyph::glyph()"; 32 | #endif 33 | 34 | addr = 0; 35 | x = 0; 36 | y = 0; 37 | x2 = 0; 38 | y2 = 0; 39 | dvi_advance_in_units_of_design_size_by_2e20 = 0; 40 | } 41 | 42 | glyph::~glyph() 43 | { 44 | } 45 | -------------------------------------------------------------------------------- /po/sk/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # translation of okular_tiff.po to Slovak 2 | # Roman Paholík , 2020. 3 | msgid "" 4 | msgstr "" 5 | "Project-Id-Version: okular_tiff\n" 6 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 7 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 8 | "PO-Revision-Date: 2020-07-11 19:03+0200\n" 9 | "Last-Translator: Roman Paholik \n" 10 | "Language-Team: Slovak \n" 11 | "Language: sk\n" 12 | "MIME-Version: 1.0\n" 13 | "Content-Type: text/plain; charset=UTF-8\n" 14 | "Content-Transfer-Encoding: 8bit\n" 15 | "X-Generator: Lokalize 19.12.3\n" 16 | "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" 17 | 18 | #, kde-format 19 | msgctxt "NAME OF TRANSLATORS" 20 | msgid "Your names" 21 | msgstr "Roman Paholík" 22 | 23 | #, kde-format 24 | msgctxt "EMAIL OF TRANSLATORS" 25 | msgid "Your emails" 26 | msgstr "wizzardsk@gmail.com" 27 | -------------------------------------------------------------------------------- /mobile/components/test.qml: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2012 Marco Martin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | import QtQuick 2.15 8 | import QtQuick.Controls 2.15 9 | import org.kde.okular 2.0 as Okular 10 | 11 | Item { 12 | width: 500 13 | height: 600 14 | Okular.DocumentItem { 15 | id: docItem 16 | url: Qt.resolvedUrl("pageitem.cpp") 17 | } 18 | Okular.PageItem { 19 | id: page 20 | anchors.fill: parent 21 | document: docItem 22 | } 23 | Row { 24 | anchors { 25 | bottom: parent.bottom 26 | right: parent.right 27 | } 28 | Button { 29 | text: "prev" 30 | onClicked: page.pageNumber-- 31 | } 32 | Button { 33 | text: "next" 34 | onClicked: page.pageNumber++ 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /po/zh_CN/okular_tiff.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: kdeorg\n" 4 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 5 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 6 | "PO-Revision-Date: 2024-04-22 15:58\n" 7 | "Last-Translator: \n" 8 | "Language-Team: Chinese Simplified\n" 9 | "Language: zh_CN\n" 10 | "MIME-Version: 1.0\n" 11 | "Content-Type: text/plain; charset=UTF-8\n" 12 | "Content-Transfer-Encoding: 8bit\n" 13 | "Plural-Forms: nplurals=1; plural=0;\n" 14 | "X-Crowdin-Project: kdeorg\n" 15 | "X-Crowdin-Project-ID: 269464\n" 16 | "X-Crowdin-Language: zh-CN\n" 17 | "X-Crowdin-File: /kf6-trunk/messages/okular/okular_tiff.pot\n" 18 | "X-Crowdin-File-ID: 48944\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "KDE 中国, csslayer" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "kde-china@kde.org, csslayer@kde.org" 29 | -------------------------------------------------------------------------------- /po/ko/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # Shinjo Park , 2020. 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-09-06 00:49+0200\n" 11 | "Last-Translator: Shinjo Park \n" 12 | "Language-Team: Korean \n" 13 | "Language: ko\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=1; plural=0;\n" 18 | "X-Generator: Lokalize 19.12.3\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "박신조" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "kde@peremen.name" 29 | -------------------------------------------------------------------------------- /part/certificateviewer.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2018 Chinmoy Ranjan Pradhan 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef OKULAR_CERTIFICATEVIEWER_H 8 | #define OKULAR_CERTIFICATEVIEWER_H 9 | 10 | #include 11 | 12 | #include "core/signatureutils.h" 13 | 14 | class CertificateModel; 15 | 16 | class QTextEdit; 17 | 18 | namespace Okular 19 | { 20 | class CertificateInfo; 21 | } 22 | 23 | class CertificateViewer : public KPageDialog 24 | { 25 | Q_OBJECT 26 | 27 | public: 28 | CertificateViewer(const Okular::CertificateInfo &certInfo, QWidget *parent); 29 | 30 | private Q_SLOTS: 31 | void updateText(const QModelIndex &index); 32 | void exportCertificate(); 33 | 34 | private: 35 | QTextEdit *m_propertyText; 36 | CertificateModel *m_certificateModel; 37 | const Okular::CertificateInfo &m_certificateInfo; 38 | }; 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /po/el/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Stelios , 2020. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-08-05 09:31+0300\n" 11 | "Last-Translator: Stelios \n" 12 | "Language-Team: Greek \n" 13 | "Language: el\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 20.04.2\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Stelios" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "sstavra@gmail.com" 29 | -------------------------------------------------------------------------------- /cmake/modules/FindEPub.cmake: -------------------------------------------------------------------------------- 1 | # - Find EPub 2 | # Find the EPub library. 3 | # 4 | # This module defines 5 | # EPUB_FOUND - whether the EPub library was found 6 | # EPUB_LIBRARIES - the EPub library 7 | # EPUB_INCLUDE_DIR - the include path of the EPub library 8 | 9 | # SPDX-FileCopyrightText: 2008 Pino Toscano 10 | # SPDX-License-Identifier: BSD-3-Clause 11 | 12 | 13 | if (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES) 14 | 15 | # Already in cache 16 | set (EPUB_FOUND TRUE) 17 | 18 | else (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES) 19 | 20 | find_library (EPUB_LIBRARIES 21 | NAMES epub libepub 22 | ) 23 | 24 | find_path (EPUB_INCLUDE_DIR 25 | NAMES epub.h 26 | ) 27 | 28 | include (FindPackageHandleStandardArgs) 29 | find_package_handle_standard_args (EPub DEFAULT_MSG EPUB_LIBRARIES EPUB_INCLUDE_DIR) 30 | 31 | endif (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES) 32 | 33 | mark_as_advanced(EPUB_INCLUDE_DIR EPUB_LIBRARIES) 34 | -------------------------------------------------------------------------------- /generators/djvu/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | remove_definitions(-DTRANSLATION_DOMAIN="okular") 2 | add_definitions(-DTRANSLATION_DOMAIN="okular_djvu") 3 | 4 | ########### next target ############### 5 | 6 | set(okularGenerator_djvu_SRCS 7 | generator_djvu.cpp 8 | kdjvu.cpp 9 | ) 10 | 11 | 12 | okular_add_generator(okularGenerator_djvu ${okularGenerator_djvu_SRCS}) 13 | 14 | target_include_directories(okularGenerator_djvu PRIVATE ${DJVULIBRE_INCLUDE_DIR}) 15 | target_link_libraries(okularGenerator_djvu okularcore ${DJVULIBRE_LIBRARY} KF6::I18n) 16 | 17 | ########### install files ############### 18 | if (BUILD_DESKTOP) 19 | install( PROGRAMS okularApplication_djvu.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 20 | endif() 21 | if (BUILD_MOBILE) 22 | install( PROGRAMS org.kde.mobile.okular_djvu.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 23 | endif() 24 | install( FILES org.kde.okular-djvu.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) 25 | 26 | -------------------------------------------------------------------------------- /part/signaturepartutilskconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2023-2025 g10 Code GmbH 3 | SPDX-FileContributor: Sune Stolborg Vuorela 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | #ifndef SIGNATUREPARTUTILSKCONFIG_H 8 | #define SIGNATUREPARTUTILSKCONFIG_H 9 | 10 | #include 11 | 12 | namespace SignaturePartUtils 13 | { 14 | static inline QString ConfigGroup() 15 | { 16 | return QStringLiteral("Signature"); 17 | } 18 | static inline QString ConfigBackgroundKey() 19 | { 20 | return QStringLiteral("RecentBackgrounds"); 21 | } 22 | static inline QString ConfigLastReason() 23 | { 24 | return QStringLiteral("Reason"); 25 | } 26 | static inline QString ConfigLastLocation() 27 | { 28 | return QStringLiteral("Location"); 29 | } 30 | static inline QString ConfigLastKeyNick() 31 | { 32 | return QStringLiteral("KeyNick"); 33 | } 34 | } 35 | 36 | #endif // SIGNATUREPARTUTILSKCONFIG_H 37 | -------------------------------------------------------------------------------- /po/fi/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # Tommi Nieminen , 2020. 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-07-31 15:00+0300\n" 11 | "Last-Translator: Tommi Nieminen \n" 12 | "Language-Team: Finnish \n" 13 | "Language: fi\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 18 | 19 | #, kde-format 20 | msgctxt "NAME OF TRANSLATORS" 21 | msgid "Your names" 22 | msgstr "Tommi Nieminen" 23 | 24 | #, kde-format 25 | msgctxt "EMAIL OF TRANSLATORS" 26 | msgid "Your emails" 27 | msgstr "translator@legisign.org" 28 | -------------------------------------------------------------------------------- /generators/txt/generator_txt.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2013 Azat Khuzhin 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "generator_txt.h" 8 | #include "converter.h" 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | OKULAR_EXPORT_PLUGIN(TxtGenerator, "libokularGenerator_txt.json") 15 | 16 | TxtGenerator::TxtGenerator(QObject *parent, const QVariantList &args) 17 | : Okular::TextDocumentGenerator(new Txt::Converter, QStringLiteral("okular_txt_generator_settings"), parent, args) 18 | { 19 | } 20 | 21 | void TxtGenerator::addPages(KConfigDialog *dlg) 22 | { 23 | Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget(); 24 | 25 | dlg->addPage(widget, generalSettings(), i18n("Txt"), QStringLiteral("text-plain"), i18n("Txt Backend Configuration")); 26 | } 27 | 28 | #include "generator_txt.moc" 29 | -------------------------------------------------------------------------------- /part/dlgeditor.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef DLGEDITOR_H 8 | #define DLGEDITOR_H 9 | 10 | #include 11 | #include 12 | 13 | class QComboBox; 14 | class QFormLayout; 15 | class QLineEdit; 16 | class QStackedWidget; 17 | 18 | class DlgEditor : public QWidget 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | explicit DlgEditor(QWidget *parent = nullptr); 24 | ~DlgEditor() override; 25 | 26 | private Q_SLOTS: 27 | void editorChanged(int which); 28 | 29 | private: 30 | QComboBox *m_editorChooser; 31 | // Two line edits, because one is connected to the config skeleton. 32 | QLineEdit *m_editorCommandDisplay; 33 | QLineEdit *m_editorCommandEditor; 34 | QStackedWidget *m_editorCommandStack; 35 | QFormLayout *m_layout; 36 | 37 | QHash m_editors; 38 | }; 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /po/bg/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR This file is copyright: 3 | # This file is distributed under the same license as the okular package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: okular\n" 9 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 10 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 11 | "PO-Revision-Date: 2022-01-02 14:17+0100\n" 12 | "Last-Translator: mkkDr2010 \n" 13 | "Language-Team: Bulgarian \n" 14 | "Language: bg\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Ясен Праматаров" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "yasen@lindeas.com" 29 | -------------------------------------------------------------------------------- /part/editdrawingtooldialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2015 Laurent Montel 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef EDITDRAWINGTOOLDIALOG_H 8 | #define EDITDRAWINGTOOLDIALOG_H 9 | 10 | #include 11 | #include 12 | 13 | class KColorButton; 14 | class KLineEdit; 15 | 16 | class QSpinBox; 17 | 18 | class EditDrawingToolDialog : public QDialog 19 | { 20 | Q_OBJECT 21 | public: 22 | explicit EditDrawingToolDialog(const QDomElement &initialState = QDomElement(), QWidget *parent = nullptr); 23 | ~EditDrawingToolDialog() override; 24 | 25 | QDomDocument toolXml() const; 26 | 27 | QString name() const; 28 | 29 | private: 30 | void loadTool(const QDomElement &toolElement); 31 | 32 | KLineEdit *m_name; 33 | KColorButton *m_colorBn; 34 | QSpinBox *m_penWidth; 35 | QSpinBox *m_opacity; 36 | }; 37 | 38 | #endif // EDITDRAWINGTOOLDIALOG_H 39 | -------------------------------------------------------------------------------- /po/ta/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Kishore G , 2022. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2022-05-08 15:22+0530\n" 11 | "Last-Translator: Kishore G \n" 12 | "Language-Team: Tamil \n" 13 | "Language: ta\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 22.04.0\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "கோ. கிஷோர்" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "Kde-l10n-ta@kde.org" 29 | -------------------------------------------------------------------------------- /po/ia/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Giovanni Sora , 2020. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-09-23 23:13+0100\n" 11 | "Last-Translator: Giovanni Sora \n" 12 | "Language-Team: Interlingua \n" 13 | "Language: ia\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 2.0\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Giovanni Sora" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "g.sora@tiscali.it" 29 | -------------------------------------------------------------------------------- /po/hi/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Raghavendra Kamath , 2021. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2021-08-21 16:38+0530\n" 11 | "Last-Translator: Raghavendra Kamath \n" 12 | "Language-Team: kde-hindi\n" 13 | "Language: hi\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n!=1);\n" 18 | "X-Generator: Lokalize 21.08.0\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "राघवेंद्र कामत" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "raghu@raghukamath.com" 29 | -------------------------------------------------------------------------------- /po/tr/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Volkan Gezer , 2022. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2022-02-10 10:59+0100\n" 11 | "Last-Translator: Volkan Gezer \n" 12 | "Language-Team: Turkish \n" 13 | "Language: tr\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 18 | "X-Generator: Lokalize 20.12.3\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Emir SARI" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "emir_sari@icloud.com" 29 | -------------------------------------------------------------------------------- /po/az/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Kheyyam Gojayev , 2020. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-10-16 13:54+0400\n" 11 | "Last-Translator: Kheyyam Gojayev \n" 12 | "Language-Team: Azerbaijani \n" 13 | "Language: az\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 18 | "X-Generator: Lokalize 20.08.2\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Xəyyam Qocayev" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "xxmn77@gmail.com" 29 | -------------------------------------------------------------------------------- /po/cs/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # Vit Pelcak , 2020. 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-07-21 13:41+0200\n" 11 | "Last-Translator: Vit Pelcak \n" 12 | "Language-Team: Czech \n" 13 | "Language: cs\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" 18 | "X-Generator: Lokalize 20.04.3\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Vít Pelčák" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "vit@pelcak.org" 29 | -------------------------------------------------------------------------------- /po/de/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2025 This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # SPDX-FileCopyrightText: 2020, 2021 Burkhard Lück 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: okular_tiff\n" 7 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 8 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 9 | "PO-Revision-Date: 2021-04-24 10:37+0200\n" 10 | "Last-Translator: Burkhard Lück \n" 11 | "Language-Team: German \n" 12 | "Language: de\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 17 | 18 | #, kde-format 19 | msgctxt "NAME OF TRANSLATORS" 20 | msgid "Your names" 21 | msgstr "Deutsches KDE-Übersetzungsteam" 22 | 23 | #, kde-format 24 | msgctxt "EMAIL OF TRANSLATORS" 25 | msgid "Your emails" 26 | msgstr "kde-i18n-de@kde.org" 27 | -------------------------------------------------------------------------------- /po/ja/okular_txt.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: okular_txt\n" 4 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 5 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 6 | "PO-Revision-Date: 2013-06-12 01:01-0700\n" 7 | "Last-Translator: Japanese KDE translation team \n" 8 | "Language-Team: Japanese \n" 9 | "Language: ja\n" 10 | "MIME-Version: 1.0\n" 11 | "Content-Type: text/plain; charset=UTF-8\n" 12 | "Content-Transfer-Encoding: 8bit\n" 13 | "Plural-Forms: nplurals=1; plural=0;\n" 14 | "X-Accelerator-Marker: &\n" 15 | "X-Text-Markup: kde4\n" 16 | 17 | #, kde-format 18 | msgctxt "NAME OF TRANSLATORS" 19 | msgid "Your names" 20 | msgstr "" 21 | 22 | #, kde-format 23 | msgctxt "EMAIL OF TRANSLATORS" 24 | msgid "Your emails" 25 | msgstr "" 26 | 27 | #: generator_txt.cpp:25 28 | #, kde-format 29 | msgid "Txt" 30 | msgstr "" 31 | 32 | #: generator_txt.cpp:25 33 | #, kde-format 34 | msgid "Txt Backend Configuration" 35 | msgstr "" 36 | -------------------------------------------------------------------------------- /core/script/js_fullscreen.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | SPDX-FileCopyrightText: 2008 Harri Porten 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #include "js_fullscreen_p.h" 9 | 10 | #include "settings_core.h" 11 | 12 | using namespace Okular; 13 | 14 | bool JSFullscreen::loop() const 15 | { 16 | return SettingsCore::slidesLoop(); 17 | } 18 | 19 | void JSFullscreen::setLoop(bool loop) 20 | { 21 | SettingsCore::setSlidesLoop(loop); 22 | } 23 | 24 | bool JSFullscreen::useTimer() const 25 | { 26 | return SettingsCore::slidesAdvance(); 27 | } 28 | 29 | void JSFullscreen::setUseTimer(bool use) 30 | { 31 | SettingsCore::setSlidesAdvance(use); 32 | } 33 | 34 | int JSFullscreen::timeDelay() const 35 | { 36 | return SettingsCore::slidesAdvanceTime(); 37 | } 38 | 39 | void JSFullscreen::setTimeDelay(int time) 40 | { 41 | SettingsCore::setSlidesAdvanceTime(time); 42 | } 43 | -------------------------------------------------------------------------------- /core/synctex/patches/10-fix-typo.diff: -------------------------------------------------------------------------------- 1 | Fix some typos found by Krazy2 2 | Author: Yuri Chornoivan 3 | Original commit: 3b73357 4 | 5 | Index: synctex/synctex_parser_utils.c 6 | =================================================================== 7 | --- synctex.orig/synctex_parser_utils.c 8 | +++ synctex/synctex_parser_utils.c 9 | @@ -410,7 +410,7 @@ char * _synctex_merge_strings(const char 10 | 11 | /* The purpose of _synctex_get_name is to find the name of the synctex file. 12 | * There is a list of possible filenames from which we return the most recent one and try to remove all the others. 13 | - * With two runs of pdftex or xetex we are sure the the synctex file is really the most appropriate. 14 | + * With two runs of pdftex or xetex we are sure the synctex file is really the most appropriate. 15 | */ 16 | int _synctex_get_name(const char * output, const char * build_directory, char ** synctex_name_ref, synctex_io_mode_t * io_mode_ref) 17 | { 18 | -------------------------------------------------------------------------------- /generators/poppler/imagescaling.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2023 g10 Code GmbH 3 | SPDX-FileContributor: Sune Stolborg Vuorela 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | #include "imagescaling.h" 8 | #include 9 | 10 | QImage imagescaling::scaleAndFitCanvas(const QImage &input, QSize expectedSize) 11 | { 12 | if (input.size() == expectedSize) { 13 | return input; 14 | } 15 | auto scaled = input.scaled(expectedSize, Qt::KeepAspectRatio); 16 | if (scaled.size() == expectedSize) { 17 | return scaled; 18 | } 19 | QImage canvas(expectedSize, QImage::Format_ARGB32); 20 | canvas.fill(Qt::transparent); 21 | auto scaledSize = scaled.size(); 22 | QPoint topLeft((expectedSize.width() - scaledSize.width()) / 2, (expectedSize.height() - scaledSize.height()) / 2); 23 | QPainter painter(&canvas); 24 | painter.drawImage(topLeft, scaled); 25 | return canvas; 26 | } 27 | -------------------------------------------------------------------------------- /core/pagecontroller_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2007 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _OKULAR_PAGECONTROLLER_P_H_ 8 | #define _OKULAR_PAGECONTROLLER_P_H_ 9 | 10 | #include 11 | 12 | #include 13 | 14 | namespace Okular 15 | { 16 | class Page; 17 | class RotationJob; 18 | 19 | /* There is one PageController per document. It receives notifications of 20 | * completed RotationJobs */ 21 | class PageController : public QObject 22 | { 23 | Q_OBJECT 24 | 25 | public: 26 | PageController(); 27 | ~PageController() override; 28 | 29 | void addRotationJob(RotationJob *job); 30 | 31 | Q_SIGNALS: 32 | void rotationFinished(int page, Okular::Page *okularPage); 33 | 34 | private Q_SLOTS: 35 | void imageRotationDone(const ThreadWeaver::JobPointer &job); 36 | 37 | private: 38 | ThreadWeaver::Queue m_weaver; 39 | }; 40 | 41 | } 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /po/nl/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Freek de Kruijf , 2020. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-07-09 12:26+0200\n" 11 | "Last-Translator: Freek de Kruijf \n" 12 | "Language-Team: Dutch \n" 13 | "Language: nl\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 20.04.2\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Freek de Kruijf - 2020" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "freekdekruijf@kde.nl" 29 | -------------------------------------------------------------------------------- /po/ro/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # Sergiu Bivol , 2021. 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2021-07-25 11:41+0100\n" 11 | "Last-Translator: Sergiu Bivol \n" 12 | "Language-Team: Romanian\n" 13 | "Language: ro\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " 18 | "20)) ? 1 : 2;\n" 19 | "X-Generator: Lokalize 19.12.3\n" 20 | 21 | #, kde-format 22 | msgctxt "NAME OF TRANSLATORS" 23 | msgid "Your names" 24 | msgstr "Sergiu Bivol" 25 | 26 | #, kde-format 27 | msgctxt "EMAIL OF TRANSLATORS" 28 | msgid "Your emails" 29 | msgstr "sergiu@cip.md" 30 | -------------------------------------------------------------------------------- /po/vi/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Phu Hung Nguyen , 2021. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2021-09-09 17:10+0200\n" 11 | "Last-Translator: Phu Hung Nguyen \n" 12 | "Language-Team: Vietnamese \n" 13 | "Language: vi\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=1; plural=0;\n" 18 | "X-Generator: Lokalize 20.12.2\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Nguyễn Hùng Phú" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "phu.nguyen@kdemail.net" 29 | -------------------------------------------------------------------------------- /core/script/js_ocg.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2019 João Netto 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "js_ocg_p.h" 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | using namespace Okular; 14 | 15 | // OCG.state (getter) 16 | bool JSOCG::state() const 17 | { 18 | const QModelIndex index = m_model->index(m_i, m_j); 19 | 20 | return m_model->data(index, Qt::CheckStateRole).toBool(); 21 | } 22 | 23 | // OCG.state (setter) 24 | void JSOCG::setState(bool state) 25 | { 26 | const QModelIndex index = m_model->index(m_i, m_j); 27 | 28 | m_model->setData(index, QVariant(state ? Qt::Checked : Qt::Unchecked), Qt::CheckStateRole); 29 | } 30 | 31 | JSOCG::JSOCG(QAbstractItemModel *model, int i, int j, QObject *parent) 32 | : QObject(parent) 33 | , m_model(model) 34 | , m_i(i) 35 | , m_j(j) 36 | { 37 | } 38 | 39 | JSOCG::~JSOCG() = default; 40 | -------------------------------------------------------------------------------- /po/it/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # Luigi Toscano , 2020. 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-07-15 23:41+0200\n" 11 | "Last-Translator: Luigi Toscano \n" 12 | "Language-Team: Italian \n" 13 | "Language: it\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 18 | "X-Generator: Lokalize 20.04.1\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Luigi Toscano" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "luigi.toscano@tiscali.it" 29 | -------------------------------------------------------------------------------- /po/lv/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Māris Nartišs , 2024. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2024-01-06 15:53+0200\n" 11 | "Last-Translator: Māris Nartišs \n" 12 | "Language-Team: \n" 13 | "Language: lv\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " 18 | "2);\n" 19 | "X-Generator: Lokalize 22.12.3\n" 20 | 21 | #, kde-format 22 | msgctxt "NAME OF TRANSLATORS" 23 | msgid "Your names" 24 | msgstr "Toms Trasūns" 25 | 26 | #, kde-format 27 | msgctxt "EMAIL OF TRANSLATORS" 28 | msgid "Your emails" 29 | msgstr "toms.trasuns@posteo.net" 30 | -------------------------------------------------------------------------------- /po/zh_CN/okular_xps.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: kdeorg\n" 4 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 5 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 6 | "PO-Revision-Date: 2024-04-22 15:58\n" 7 | "Last-Translator: \n" 8 | "Language-Team: Chinese Simplified\n" 9 | "Language: zh_CN\n" 10 | "MIME-Version: 1.0\n" 11 | "Content-Type: text/plain; charset=UTF-8\n" 12 | "Content-Transfer-Encoding: 8bit\n" 13 | "Plural-Forms: nplurals=1; plural=0;\n" 14 | "X-Crowdin-Project: kdeorg\n" 15 | "X-Crowdin-Project-ID: 269464\n" 16 | "X-Crowdin-Language: zh-CN\n" 17 | "X-Crowdin-File: /kf6-trunk/messages/okular/okular_xps.pot\n" 18 | "X-Crowdin-File-ID: 48914\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Tyson Tan" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "tds00@qq.com" 29 | 30 | #: generator_xps.cpp:1914 31 | #, kde-format 32 | msgid "Revision" 33 | msgstr "修订版本" 34 | -------------------------------------------------------------------------------- /po/hu/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Kristóf Kiszel , 2020. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-12-30 11:25+0100\n" 11 | "Last-Translator: Kristóf Kiszel \n" 12 | "Language-Team: Hungarian \n" 13 | "Language: hu\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 18 | "X-Generator: Lokalize 21.03.70\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Kiszel Kristóf" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "kiszel.kristof@gmail.com" 29 | -------------------------------------------------------------------------------- /po/ar/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Zayed Al-Saidi , 2021. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2021-07-13 23:08+0400\n" 11 | "Last-Translator: Zayed Al-Saidi \n" 12 | "Language-Team: ar\n" 13 | "Language: ar\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " 18 | "&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "زايد السعيدي" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "zayed.alsaidi@gmail.com" 29 | -------------------------------------------------------------------------------- /po/ast/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024 This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # SPDX-FileCopyrightText: 2024 Enol P. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2024-03-27 23:54+0100\n" 11 | "Last-Translator: Enol P. \n" 12 | "Language-Team: Asturian \n" 13 | "Language: ast\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 24.02.1\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Softastur" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "alministradores@softastur.org" 29 | -------------------------------------------------------------------------------- /po/gl/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # Adrián Chaves (Gallaecio) , 2023. 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2023-03-26 18:12+0200\n" 11 | "Last-Translator: Adrián Chaves (Gallaecio) \n" 12 | "Language-Team: Galician \n" 13 | "Language: gl\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 22.12.3\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Adrian Chaves (Gallaecio)" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "adrian@chaves.gal" 29 | -------------------------------------------------------------------------------- /generators/mobipocket/generator_mobi.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Ely Levy 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | #include "generator_mobi.h" 7 | 8 | #include "converter.h" 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | OKULAR_EXPORT_PLUGIN(MobiGenerator, "libokularGenerator_mobi.json") 15 | 16 | MobiGenerator::MobiGenerator(QObject *parent, const QVariantList &args) 17 | : Okular::TextDocumentGenerator(new Mobi::Converter, QStringLiteral("okular_mobi_generator_settings"), parent, args) 18 | { 19 | } 20 | 21 | void MobiGenerator::addPages(KConfigDialog *dlg) 22 | { 23 | Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget(); 24 | 25 | dlg->addPage(widget, generalSettings(), i18n("Mobipocket"), QStringLiteral("application-x-mobipocket-ebook"), i18n("Mobipocket Backend Configuration")); 26 | } 27 | 28 | #include "generator_mobi.moc" 29 | -------------------------------------------------------------------------------- /po/en_GB/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Steve Allewell , 2020. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-09-26 14:09+0100\n" 11 | "Last-Translator: Steve Allewell \n" 12 | "Language-Team: British English \n" 13 | "Language: en_GB\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 20.08.1\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Steve Allewell" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "steve.allewell@gmail.com" 29 | -------------------------------------------------------------------------------- /po/sv/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Stefan Asserhäll , 2020. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-07-10 17:13+0200\n" 11 | "Last-Translator: Stefan Asserhäll \n" 12 | "Language-Team: Swedish \n" 13 | "Language: sv\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 19.04.3\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Stefan Asserhäll" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "stefan.asserhall@gmail.com" 29 | -------------------------------------------------------------------------------- /po/zh_CN/okular_fax.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: kdeorg\n" 4 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 5 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 6 | "PO-Revision-Date: 2024-04-22 15:58\n" 7 | "Last-Translator: \n" 8 | "Language-Team: Chinese Simplified\n" 9 | "Language: zh_CN\n" 10 | "MIME-Version: 1.0\n" 11 | "Content-Type: text/plain; charset=UTF-8\n" 12 | "Content-Transfer-Encoding: 8bit\n" 13 | "Plural-Forms: nplurals=1; plural=0;\n" 14 | "X-Crowdin-Project: kdeorg\n" 15 | "X-Crowdin-Project-ID: 269464\n" 16 | "X-Crowdin-Language: zh-CN\n" 17 | "X-Crowdin-File: /kf6-trunk/messages/okular/okular_fax.pot\n" 18 | "X-Crowdin-File-ID: 48916\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Tyson Tan" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "tds00@qq.com" 29 | 30 | #: generator_fax.cpp:42 31 | #, kde-format 32 | msgid "Unable to load document" 33 | msgstr "无法加载文档" 34 | -------------------------------------------------------------------------------- /po/nn/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Translation of okular_tiff to Norwegian Nynorsk 2 | # 3 | # Karl Ove Hufthammer , 2020. 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: okular\n" 7 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 8 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 9 | "PO-Revision-Date: 2020-11-23 19:45+0100\n" 10 | "Last-Translator: Karl Ove Hufthammer \n" 11 | "Language-Team: Norwegian Nynorsk \n" 12 | "Language: nn\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 17 | "X-Generator: Lokalize 20.08.3\n" 18 | "X-Environment: kde\n" 19 | "X-Accelerator-Marker: &\n" 20 | "X-Text-Markup: kde4\n" 21 | 22 | #, kde-format 23 | msgctxt "NAME OF TRANSLATORS" 24 | msgid "Your names" 25 | msgstr "Karl Ove Hufthammer" 26 | 27 | #, kde-format 28 | msgctxt "EMAIL OF TRANSLATORS" 29 | msgid "Your emails" 30 | msgstr "karl@huftis.org" 31 | -------------------------------------------------------------------------------- /generators/fictionbook/generator_fb.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2007 Tobias Koenig 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #include "generator_fb.h" 8 | 9 | #include "converter.h" 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | OKULAR_EXPORT_PLUGIN(FictionBookGenerator, "libokularGenerator_fb.json") 16 | 17 | FictionBookGenerator::FictionBookGenerator(QObject *parent, const QVariantList &args) 18 | : Okular::TextDocumentGenerator(new FictionBook::Converter, QStringLiteral("okular_fictionbook_generator_settings"), parent, args) 19 | { 20 | } 21 | 22 | void FictionBookGenerator::addPages(KConfigDialog *dlg) 23 | { 24 | Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget(); 25 | 26 | dlg->addPage(widget, generalSettings(), i18n("FictionBook"), QStringLiteral("okular-fb2"), i18n("FictionBook Backend Configuration")); 27 | } 28 | #include "generator_fb.moc" 29 | -------------------------------------------------------------------------------- /po/eo/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # translation of okular_tiff.pot to esperanto 2 | # Copyright (C) 2020 Free Software Foundation, Inc. 3 | # This file is distributed under the same license as the okular package. 4 | # Oliver Kellogg , 2023. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: okular_tiff\n" 9 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 10 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 11 | "PO-Revision-Date: 2023-02-19 15:20+0100\n" 12 | "Last-Translator: Oliver Kellogg \n" 13 | "Language-Team: esperanto \n" 14 | "Language: eo\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Oliver Kellogg" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "olivermkellogg@gmail.com" 29 | -------------------------------------------------------------------------------- /autotests/closedialoghelper.h: -------------------------------------------------------------------------------- 1 | #ifndef CLOSEDIALOGHELPER_H 2 | #define CLOSEDIALOGHELPER_H 3 | 4 | #include 5 | #include 6 | 7 | #include "../part/part.h" 8 | 9 | namespace TestingUtils 10 | { 11 | /* 12 | * The CloseDialogHelper class is a helper to auto close modals opened in tests. 13 | */ 14 | class CloseDialogHelper : public QObject 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | CloseDialogHelper(Okular::Part *p, QDialogButtonBox::StandardButton b); 20 | 21 | CloseDialogHelper(QWidget *w, QDialogButtonBox::StandardButton b); 22 | 23 | // Close a modal dialog, which may not be associated to any other widget 24 | explicit CloseDialogHelper(QDialogButtonBox::StandardButton b); 25 | 26 | ~CloseDialogHelper() override; 27 | 28 | private Q_SLOTS: 29 | void closeDialog(); 30 | 31 | private: 32 | QWidget *m_widget; 33 | QDialogButtonBox::StandardButton m_button; 34 | bool m_clicked; 35 | }; 36 | 37 | } 38 | 39 | #endif // CLOSEDIALOGHELPER_H 40 | -------------------------------------------------------------------------------- /po/ka/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR This file is copyright: 3 | # This file is distributed under the same license as the okular package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: okular\n" 9 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 10 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 11 | "PO-Revision-Date: 2022-09-17 18:21+0200\n" 12 | "Last-Translator: Temuri Doghonadze \n" 13 | "Language-Team: Georgian \n" 14 | "Language: ka\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 19 | "X-Generator: Poedit 3.1.1\n" 20 | 21 | #, kde-format 22 | msgctxt "NAME OF TRANSLATORS" 23 | msgid "Your names" 24 | msgstr "Temuri Doghonadze" 25 | 26 | #, kde-format 27 | msgctxt "EMAIL OF TRANSLATORS" 28 | msgid "Your emails" 29 | msgstr "Temuri.doghonadze@gmail.com" 30 | -------------------------------------------------------------------------------- /core/script/js_fullscreen_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2008 Pino Toscano 3 | SPDX-FileCopyrightText: 2008 Harri Porten 4 | 5 | SPDX-License-Identifier: GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef OKULAR_SCRIPT_JS_FULLSCREEN_P_H 9 | #define OKULAR_SCRIPT_JS_FULLSCREEN_P_H 10 | 11 | #include 12 | 13 | namespace Okular 14 | { 15 | class JSFullscreen : public QObject 16 | { 17 | Q_OBJECT 18 | Q_PROPERTY(bool loop READ loop WRITE setLoop) // clazy:exclude=qproperty-without-notify 19 | Q_PROPERTY(bool useTimer READ useTimer WRITE setUseTimer) // clazy:exclude=qproperty-without-notify 20 | Q_PROPERTY(int timeDelay READ timeDelay WRITE setTimeDelay) // clazy:exclude=qproperty-without-notify 21 | 22 | public: 23 | bool loop() const; 24 | void setLoop(bool loop); 25 | bool useTimer() const; 26 | void setUseTimer(bool use); 27 | int timeDelay() const; 28 | void setTimeDelay(int time); 29 | }; 30 | 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /part/presentationsearchbar.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2007 Pino Toscano 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef _OKULAR_PRESENTATIONSEARCHBAR_H_ 8 | #define _OKULAR_PRESENTATIONSEARCHBAR_H_ 9 | 10 | #include 11 | 12 | class SearchLineEdit; 13 | 14 | namespace Okular 15 | { 16 | class Document; 17 | } 18 | 19 | class PresentationSearchBar : public QWidget 20 | { 21 | Q_OBJECT 22 | 23 | public: 24 | PresentationSearchBar(Okular::Document *document, QWidget *anchor, QWidget *parent = nullptr); 25 | ~PresentationSearchBar() override; 26 | 27 | void forceSnap(); 28 | void focusOnSearchEdit(); 29 | 30 | protected: 31 | void resizeEvent(QResizeEvent *) override; 32 | bool eventFilter(QObject *, QEvent *) override; 33 | 34 | private: 35 | QWidget *m_handle; 36 | QWidget *m_anchor; 37 | QPoint m_point; 38 | bool m_snapped; 39 | QPoint m_drag; 40 | 41 | SearchLineEdit *m_search; 42 | }; 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /po/ta/okular_xps.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Kishore G , 2021. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2021-11-13 20:19+0530\n" 11 | "Last-Translator: Kishore G \n" 12 | "Language-Team: Tamil \n" 13 | "Language: ta\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 21.11.80\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "" 29 | 30 | #: generator_xps.cpp:1914 31 | #, kde-format 32 | msgid "Revision" 33 | msgstr "சீராய்வு" 34 | -------------------------------------------------------------------------------- /.flatpak-patches/vlc-ignore-time-for-cache.patch: -------------------------------------------------------------------------------- 1 | From b380b05132521b0c1c18b872eba23d1ebc32e0c9 Mon Sep 17 00:00:00 2001 2 | From: Mathieu Velten 3 | Date: Sun, 16 Jun 2019 02:46:56 +0200 4 | Subject: [PATCH] Ignore time for cache 5 | 6 | --- 7 | src/modules/bank.c | 3 +-- 8 | 1 file changed, 1 insertion(+), 2 deletions(-) 9 | 10 | diff --git a/src/modules/bank.c b/src/modules/bank.c 11 | index 2e67a0d07e..ab2915fbb7 100644 12 | --- a/src/modules/bank.c 13 | +++ b/src/modules/bank.c 14 | @@ -275,8 +275,7 @@ static int AllocatePluginFile (module_bank_t *bank, const char *abspath, 15 | plugin = vlc_cache_lookup(&bank->cache, relpath); 16 | 17 | if (plugin != NULL 18 | - && (plugin->mtime != (int64_t)st->st_mtime 19 | - || plugin->size != (uint64_t)st->st_size)) 20 | + && plugin->size != (uint64_t)st->st_size) 21 | { 22 | msg_Err(bank->obj, "stale plugins cache: modified %s", 23 | plugin->abspath); 24 | -- 25 | 2.21.0 26 | 27 | -------------------------------------------------------------------------------- /po/is/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024 This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # SPDX-FileCopyrightText: 2024 Guðmundur Erlingsson 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2024-02-19 15:41+0000\n" 11 | "Last-Translator: Guðmundur Erlingsson \n" 12 | "Language-Team: Icelandic \n" 13 | "Language: is\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Lokalize 23.08.3\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Guðmundur Erlingsson" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "gudmundure@gmail.com" 29 | -------------------------------------------------------------------------------- /po/pt_BR/okular_tiff.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR This file is copyright: 2 | # This file is distributed under the same license as the okular package. 3 | # 4 | # Luiz Fernando Ranghetti , 2020. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: okular\n" 8 | "Report-Msgid-Bugs-To: https://bugs.kde.org\n" 9 | "POT-Creation-Date: 2025-11-17 11:50+0000\n" 10 | "PO-Revision-Date: 2020-07-16 11:23-0300\n" 11 | "Last-Translator: Luiz Fernando Ranghetti \n" 12 | "Language-Team: Brazilian Portuguese \n" 13 | "Language: pt_BR\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 18 | "X-Generator: Lokalize 20.04.2\n" 19 | 20 | #, kde-format 21 | msgctxt "NAME OF TRANSLATORS" 22 | msgid "Your names" 23 | msgstr "Luiz Fernando Ranghetti" 24 | 25 | #, kde-format 26 | msgctxt "EMAIL OF TRANSLATORS" 27 | msgid "Your emails" 28 | msgstr "elchevive@opensuse.org" 29 | --------------------------------------------------------------------------------