Okular
document.h
6 SPDX-FileCopyrightText: 2017 Klarälvdalens Datakonsult AB a KDAB Group company <[email protected]>
197 * Creates a new document with the given @p widget as widget to relay GUI things (messageboxes, ...).
213 OpenNeedsPassword //< The document needs a password to be opened or the one provided is not the correct
220 OpenResult openDocument(const QString &docFile, const QUrl &url, const QMimeType &mime, const QString &password = QString());
311 void setVisiblePageRects(const QVector<VisiblePageRect *> &visiblePageRects, DocumentObserver *excludeObserver = nullptr);
429 void setViewportPage(int page, DocumentObserver *excludeObserver = nullptr, bool smoothMove = false);
439 void setViewport(const DocumentViewport &viewport, DocumentObserver *excludeObserver = nullptr, bool smoothMove = false, bool updateHistory = true);
475 RemoveAllPrevious = 1 ///< Remove all the previous requests, even for non requested page pixmaps
533 * Translates the position of the given @p annotation on the given @p page by a distance @p delta in normalized coordinates.
535 * Consecutive translations applied to the same @p annotation are merged together on the undo stack if the
540 void translatePageAnnotation(int page, Annotation *annotation, const Okular::NormalizedPoint &delta);
543 * Adjusts the position of the top-left and bottom-right corners of given @p annotation on the given @p page.
549 * Consecutive adjustments applied to the same @p annotation are merged together on the undo stack if the
554 void adjustPageAnnotation(int page, Annotation *annotation, const Okular::NormalizedPoint &delta1, const Okular::NormalizedPoint &delta2);
567 void editPageAnnotationContents(int page, Annotation *annotation, const QString &newContents, int newCursorPos, int prevCursorPos, int prevAnchorPos);
640 void searchText(int searchID, const QString &text, bool fromStart, Qt::CaseSensitivity caseSensitivity, SearchType type, bool moveViewport, const QColor &color);
682 void processKeystrokeAction(const Action *action, Okular::FormFieldText *fft, const QVariant &newValue);
927 OpenResult openDocumentArchive(const QString &docFile, const QUrl &url, const QString &password = QString());
978 void walletDataForFile(const QString &fileName, QString *walletName, QString *walletFolder, QString *walletKey) const;
1074 * The new text cursor position (@p newCursorPos), previous text cursor position (@p prevCursorPos),
1078 void editFormText(int pageNumber, Okular::FormFieldText *form, const QString &newContents, int newCursorPos, int prevCursorPos, int prevAnchorPos);
1084 void editFormList(int pageNumber, Okular::FormFieldChoice *form, const QList<int> &newChoices);
1094 void editFormCombo(int pageNumber, Okular::FormFieldChoice *form, const QString &newText, int newCursorPos, int prevCursorPos, int prevAnchorPos);
1097 * Set the states of the group of form buttons @p formButtons on page @p page to @p newButtonStates.
1099 * in @p newButtonStates indicate that the corresponding entry in @p formButtons should be enabled.
1101 void editFormButtons(int pageNumber, const QList<Okular::FormFieldButton *> &formButtons, const QList<bool> &newButtonStates);
1267 * This signal is emitted whenever the undo history is clean (i.e. the same status the last time it was saved)
1273 * This signal is emitted whenever an rendition action is triggered and the UI should process it.
1280 * This signal is emitted whenever the contents of the given @p annotation are changed by an undo
1283 * The new contents (@p contents), cursor position (@p cursorPos), and anchor position (@p anchorPos) are
1287 void annotationContentsChangedByUndoRedo(Okular::Annotation *annotation, const QString &contents, int cursorPos, int anchorPos);
1290 * This signal is emitted whenever the text contents of the given text @p form on the given @p page
1293 * The new text contents (@p contents), cursor position (@p cursorPos), and anchor position (@p anchorPos) are
1297 void formTextChangedByUndoRedo(int page, Okular::FormFieldText *form, const QString &contents, int cursorPos, int anchorPos);
1304 void formListChangedByUndoRedo(int page, Okular::FormFieldChoice *form, const QList<int> &choices);
1311 void formComboChangedByUndoRedo(int page, Okular::FormFieldChoice *form, const QString &text, int cursorPos, int anchorPos);
1314 * This signal is emitted whenever the state of the specified group of form buttons (@p formButtons) on the
1318 void formButtonsChangedByUndoRedo(int page, const QList<Okular::FormFieldButton *> &formButtons);
1519 explicit VisiblePageRect(int pageNumber = -1, const NormalizedRect &rectangle = NormalizedRect());
A helper class to store information about x509 certificate.
Definition: signatureutils.h:485
CaseSensitivity
The Rendition action executes an operation on a video or executes some JavaScript code on activation.
Definition: action.h:499
Annotation struct holds properties shared by all annotations.
Definition: annotations.h:95
@ Creator
The creator of the document (this can be different from the author)
Definition: document.h:88
NormalizedPoint is a helper class which stores the coordinates of a normalized point.
Definition: area.h:116
Base class for objects being notified when something changes.
Definition: observer.h:28
The Movie action executes an operation on a video on activation.
Definition: action.h:445
This is a list of NormalizedRect, to describe an area consisting of multiple rectangles using normali...
Definition: area.h:932
Orientation
A NormalizedRect is a rectangle which can be defined by two NormalizedPoints.
Definition: area.h:188
Generator
The DocumentInfo structure can be filled in by generators to display metadata about the currently ope...
Definition: document.h:75
virtual QVariant get(ScriptableExtension *callerPrincipal, quint64 objId, const QString &propName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:54:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:54:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.