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."));
79 QString title = Okular::Settings::displayDocumentNameOrPath() == Okular::Settings::EnumDisplayDocumentNameOrPath::Path ? m_document->currentDocument().pathOrUrl() : m_document->currentDocument().fileName();
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:3493
KUrl currentDocument() const
Returns the url of the currently opened document.
Definition: document.cpp:2657
TOCModel * tableOfContents() const
void bookmarksChanged()
Definition: documentitem.h:37
bool openDocument(const QString &docFile, const KUrl &url, const KMimeType::Ptr &mime)
Opens the document.
Definition: document.cpp:2060
bool supportsSearching() const
bool isOpened() const
Returns whether the document is currently opened.
Definition: document.cpp:2513
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:2619
int currentPage() const
void pathChanged()
void openedChanged()
QList< int > bookmarkedPages() const
void matchingPagesChanged()
int pageNumber
The number of the page nearest the center of the viewport.
Definition: document.h:1035
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:2567
QList< int > matchingPages() const
const DocumentViewport & viewport() const
Returns the current viewport of the document.
Definition: document.cpp:2624
Q_INVOKABLE void searchText(const QString &text)
Performs a search in the document.
Definition: documentitem.cpp:161
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:2746
KBookmark::List bookmarks(const KUrl &url) const
Returns the list of bookmarks for the specified url.
Definition: bookmarkmanager.cpp:248
void windowTitleForDocumentChanged()
bool hasHighlights(int id=-1) const
Returns whether the page provides highlighting for the observer with the given id.
Definition: page.cpp:278
void searchText(int searchID, const QString &text, bool fromStart, Qt::CaseSensitivity caseSensitivity, SearchType type, bool moveViewport, const QColor &color, bool noDialogs=false)
Searches the given text in the document.
Definition: document.cpp:3237
QStringList bookmarks() const
void addObserver(DocumentObserver *observer)
Registers a new observer for the document.
Definition: document.cpp:2431
bool supportsSearching() const
Returns whether the document supports searching.
Definition: document.cpp:2675
void supportsSearchingChanged()
DocumentObserver * m_tiledObserver
Definition: document_p.h:215
void resetSearch(int searchID)
Resets the search for the given searchID.
Definition: document.cpp:3401
void setViewportPage(int page, DocumentObserver *excludeObserver=0, bool smoothMove=false)
Sets the current document viewport to the given page.
Definition: document.cpp:3116
void currentPageChanged()
void searchInProgressChanged()
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.