Okular
bookmarkmanager.cpp
31 QSet<DocumentObserver *>::const_iterator it = d->document->m_observers.constBegin(), end = d->document->m_observers.constEnd(); \
39 QSet<DocumentObserver *>::const_iterator it = document->m_observers.constBegin(), end = document->m_observers.constEnd(); \
49 OkularBookmarkAction(const Okular::DocumentViewport &vp, const KBookmark &bk, KBookmarkOwner *owner, QObject *parent)
70static inline bool documentViewportFuzzyCompare(const DocumentViewport &vp1, const DocumentViewport &vp2)
72 bool equal = vp1.isValid() && vp2.isValid() && (vp1.pageNumber == vp2.pageNumber) && (vp1.rePos.pos == vp2.rePos.pos);
122 , file(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/okular/bookmarks.xml"))
142 QHash<QUrl, QString>::iterator bookmarkFind(const QUrl &url, bool doCreate, KBookmarkGroup *result = nullptr);
173 connect(&d->manager, &KBookmarkManager::changed, this, [this](const QString &groupAddress) { d->_o_changed(groupAddress); });
198void BookmarkManager::Private::openBookmark(const KBookmark &bm, Qt::MouseButtons, Qt::KeyboardModifiers)
355QHash<QUrl, QString>::iterator BookmarkManager::Private::bookmarkFind(const QUrl &url, bool doCreate, KBookmarkGroup *result)
416bool BookmarkManager::addBookmark(const QUrl &documentUrl, const Okular::DocumentViewport &vp, const QString &title)
536 QHash<QUrl, QString>::iterator it = d->bookmarkFind(mostCanonicalUrl(documentUrl), false, &thebg);
633 ret.append(new OkularBookmarkAction(DocumentViewport(b.url().fragment(QUrl::FullyDecoded)), b, d, nullptr));
KBookmark next(const KBookmark ¤t) const
KBookmark first() const
void deleteBookmark(const KBookmark &bk)
KBookmark addBookmark(const KBookmark &bm)
KBookmarkGroup createNewFolder(const QString &text)
void changed(const QString &groupAddress)
KBookmarkGroup parentGroup() const
bool isNull() const
bool isGroup() const
QString fullText() const
KBookmarkGroup toGroup() const
bool isSeparator() const
void setUrl(const QUrl &url)
void setFullText(const QString &fullText)
QString address() const
QUrl url() const
void renameBookmark(KBookmark *bm, const QString &newName)
Returns the bookmark given bookmark of the document.
Definition bookmarkmanager.cpp:501
KBookmark bookmark(int page) const
Returns the bookmark for the given page of the document.
Definition bookmarkmanager.cpp:311
KBookmark previousBookmark(const DocumentViewport &viewport) const
Given a viewport, returns the previous bookmark.
Definition bookmarkmanager.cpp:717
void removeBookmark(int page)
Remove a bookmark for the given page.
Definition bookmarkmanager.cpp:485
KBookmark::List bookmarks() const
Returns the list of bookmarks for document.
Definition bookmarkmanager.cpp:292
void saved()
This signal is emitted whenever bookmarks have been saved.
KBookmark nextBookmark(const DocumentViewport &viewport) const
Given a viewport, returns the next bookmark.
Definition bookmarkmanager.cpp:700
void removeBookmarks(const QUrl &documentUrl, const KBookmark::List &list)
Removes the bookmarks in list for the documentUrl specified.
Definition bookmarkmanager.cpp:572
bool isBookmarked(int page) const
Returns whether the given page is bookmarked.
Definition bookmarkmanager.cpp:688
QList< QUrl > files() const
Returns the list of documents with bookmarks.
Definition bookmarkmanager.cpp:254
QString titleForUrl(const QUrl &documentUrl) const
Returns title for the documentUrl.
Definition bookmarkmanager.cpp:533
QList< QAction * > actionsForUrl(const QUrl &documentUrl) const
Returns a list of actions for the bookmarks of the specified url.
Definition bookmarkmanager.cpp:617
struct Okular::DocumentViewport::@0 rePos
If 'rePos.enabled == true' then this structure contains the viewport center or top left depending on ...
void clear()
bool contains(const Key &key) const const
qsizetype size() const const
void append(QList< T > &&value)
iterator begin()
const_iterator constBegin() const const
const_iterator constEnd() const const
iterator end()
bool isEmpty() const const
Q_EMITQ_EMIT
Q_OBJECTQ_OBJECT
QObject * parent() const const
QVariant property(const char *name) const const
bool setProperty(const char *name, QVariant &&value)
bool isEmpty() const const
bool isNull() const const
QString number(double n, char format, int precision)
typedef KeyboardModifiers
typedef MouseButtons
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
FullyDecoded
DecodedMode
QString fragment(ComponentFormattingOptions options) const const
QUrl fromLocalFile(const QString &localFile)
QUrl fromUserInput(const QString &userInput, const QString &workingDirectory, UserInputResolutionOptions options)
bool isLocalFile() const const
bool isValid() const const
void setFragment(const QString &fragment, ParsingMode mode)
QString toDisplayString(FormattingOptions options) const const
QString toLocalFile() const const
int toInt(bool *ok) const const
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.