okular
documentitem.cpp
Go to the documentation of this file.
36 qmlRegisterUncreatableType<TOCModel>("org.kde.okular", 1, 0, "TOCModel", QLatin1String("Do not create objects of this type."));
80 QString title = Okular::Settings::displayDocumentNameOrPath() == Okular::Settings::EnumDisplayDocumentNameOrPath::Path ? m_document->currentDocument().pathOrUrl() : m_document->currentDocument().fileName();
void clear()
void pageChanged(int page, int flags)
void pageCountChanged()
void notifyPageChanged(int page, int flags)
This method is called whenever the content on page described by the passed flags has been changed...
Definition: documentitem.cpp:252
QString windowTitleForDocument() const
QString path() const
BookmarkManager * bookmarkManager() const
Returns the bookmark manager of the document.
Definition: document.cpp:3511
KUrl currentDocument() const
Returns the url of the currently opened document.
Definition: document.cpp:2705
TOCModel * tableOfContents() const
void bookmarksChanged()
Definition: documentitem.h:37
bool supportsSearching() const
bool isOpened() const
Returns whether the document is currently opened.
Definition: document.cpp:2561
int pageCount() const
void bookmarkedPagesChanged()
const Page * page(int number) const
Returns the page object for the given page number or 0 if the number is out of range.
Definition: document.cpp:2667
int currentPage() const
void pathChanged()
bool isEmpty() const
QString trimmed() const
void openedChanged()
QList< int > bookmarkedPages() const
void matchingPagesChanged()
Definition: documentitem.h:167
const DocumentSynopsis * documentSynopsis() const
Returns the table of content of the document or 0 if no table of content is available.
Definition: document.cpp:2615
QList< int > matchingPages() const
const DocumentViewport & viewport() const
Returns the current viewport of the document.
Definition: document.cpp:2672
Q_INVOKABLE void searchText(const QString &text)
Performs a search in the document.
Definition: documentitem.cpp:162
QVariant metaData(const QString &key, const QVariant &option=QVariant()) const
Returns the meta data for the given key and option or an empty variant if the key doesn't exists...
Definition: document.cpp:2794
KBookmark::List bookmarks(const KUrl &url) const
Returns the list of bookmarks for the specified url.
Definition: bookmarkmanager.cpp:248
OpenResult openDocument(const QString &docFile, const KUrl &url, const KMimeType::Ptr &mime, const QString &password=QString())
Opens the document.
Definition: document.cpp:2128
void windowTitleForDocumentChanged()
bool hasHighlights(int id=-1) const
Returns whether the page provides highlighting for the observer with the given id.
Definition: page.cpp:262
void searchText(int searchID, const QString &text, bool fromStart, Qt::CaseSensitivity caseSensitivity, SearchType type, bool moveViewport, const QColor &color)
Searches the given text in the document.
Definition: document.cpp:3285
QStringList bookmarks() const
QList< T > toList() const
void addObserver(DocumentObserver *observer)
Registers a new observer for the document.
Definition: document.cpp:2484
bool supportsSearching() const
Returns whether the document supports searching.
Definition: document.cpp:2723
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void supportsSearchingChanged()
QString toString() const
void resetSearch(int searchID)
Resets the search for the given searchID.
Definition: document.cpp:3419
void setViewportPage(int page, DocumentObserver *excludeObserver=0, bool smoothMove=false)
Sets the current document viewport to the given page.
Definition: document.cpp:3164
void currentPageChanged()
void searchInProgressChanged()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.