• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdegraphics
  • Sitemap
  • Contact Us
 

okular

Okular::BookmarkManager

Okular::BookmarkManager Class Reference

#include <bookmarkmanager.h>

Inheritance diagram for Okular::BookmarkManager:

Inheritance graph
[legend]

List of all members.


Detailed Description

Bookmarks manager utility.

This class is responsible for loading and saving the bookmarks using the proper format, and for working with them (eg querying, adding, removing).

Definition at line 32 of file bookmarkmanager.h.


Signals

void openUrl (const KUrl &url)
void saved ()

Public Member Functions

virtual ~BookmarkManager ()
KUrl::List files () const
KBookmark::List bookmarks (const KUrl &url) const
void save () const
void addBookmark (int page)
bool addBookmark (const KUrl &referurl, const Okular::DocumentViewport &vp, const QString &title=QString())
void removeBookmark (int page)
int removeBookmark (const KUrl &referurl, const KBookmark &bm)
bool isBookmarked (int page) const
QList< QAction * > actionsForUrl (const KUrl &url) const

Friends

class Private
class Document
class DocumentPrivate

Constructor & Destructor Documentation

BookmarkManager::~BookmarkManager (  )  [virtual]

Definition at line 85 of file bookmarkmanager.cpp.


Member Function Documentation

KUrl::List BookmarkManager::files (  )  const

Returns the list of documents with bookmarks.

Definition at line 114 of file bookmarkmanager.cpp.

KBookmark::List BookmarkManager::bookmarks ( const KUrl &  url  )  const

Returns the list of bookmarks for the specified url.

Definition at line 128 of file bookmarkmanager.cpp.

void BookmarkManager::save (  )  const

Forces to save the list of bookmarks.

Definition at line 150 of file bookmarkmanager.cpp.

void BookmarkManager::addBookmark ( int  page  ) 

Adds a bookmark for the given page.

Definition at line 191 of file bookmarkmanager.cpp.

bool BookmarkManager::addBookmark ( const KUrl &  referurl,
const Okular::DocumentViewport &  vp,
const QString &  title = QString() 
)

Adds a new bookmark for the referurl at the specified viewport vp, with an optional title.

If no title is specified, then n will be used.

Definition at line 200 of file bookmarkmanager.cpp.

void BookmarkManager::removeBookmark ( int  page  ) 

Remove a bookmark for the given page.

Definition at line 231 of file bookmarkmanager.cpp.

int BookmarkManager::removeBookmark ( const KUrl &  referurl,
const KBookmark &  bm 
)

Removes the bookmark bm for the referurl specified.

Definition at line 240 of file bookmarkmanager.cpp.

bool BookmarkManager::isBookmarked ( int  page  )  const

Returns whether the given page is bookmarked.

Definition at line 356 of file bookmarkmanager.cpp.

QList< QAction * > BookmarkManager::actionsForUrl ( const KUrl &  url  )  const

Returns a list of actions for the bookmarks of the specified url.

Note:
the actions will have no parents, so you have to delete them yourself

Definition at line 260 of file bookmarkmanager.cpp.

void Okular::BookmarkManager::openUrl ( const KUrl &  url  )  [signal]

The bookmark manager is requesting to open the specified url.

void Okular::BookmarkManager::saved (  )  [signal]

This signal is emitted whenever bookmarks have been saved.


Friends And Related Function Documentation

friend class Private [friend]

Definition at line 103 of file bookmarkmanager.h.

friend class Document [friend]

Definition at line 106 of file bookmarkmanager.h.

friend class DocumentPrivate [friend]

Definition at line 107 of file bookmarkmanager.h.


The documentation for this class was generated from the following files:
  • bookmarkmanager.h
  • bookmarkmanager.cpp

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdegraphics

Skip menu "kdegraphics"
  • okular
Generated for kdegraphics by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal