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

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
observer.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Enrico Ros <eros.kde@email.it> *
3  * Copyright (C) 2005 by Albert Astals Cid <aacid@kde.org> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 
11 #include "observer.h"
12 
13 using namespace Okular;
14 
15 DocumentObserver::DocumentObserver()
16 {
17 }
18 
19 DocumentObserver::~DocumentObserver()
20 {
21 }
22 
23 void DocumentObserver::notifySetup( const QVector< Okular::Page * >&, int )
24 {
25 }
26 
27 void DocumentObserver::notifyViewportChanged( bool )
28 {
29 }
30 
31 void DocumentObserver::notifyPageChanged( int, int )
32 {
33 }
34 
35 void DocumentObserver::notifyContentsCleared( int )
36 {
37 }
38 
39 void DocumentObserver::notifyVisibleRectsChanged()
40 {
41 }
42 
43 void DocumentObserver::notifyZoom( int )
44 {
45 }
46 
47 bool DocumentObserver::canUnloadPixmap( int ) const
48 {
49  return true;
50 }
51 
52 void DocumentObserver::notifyCurrentPageChanged( int, int )
53 {
54 }
Okular::DocumentObserver::DocumentObserver
DocumentObserver()
Definition: observer.cpp:15
Okular::DocumentObserver::~DocumentObserver
virtual ~DocumentObserver()
Destroys the document observer.
Definition: observer.cpp:19
observer.h
Okular::DocumentObserver::canUnloadPixmap
virtual bool canUnloadPixmap(int page) const
Returns whether the observer agrees that all pixmaps for the given page can be unloaded to improve me...
Definition: observer.cpp:47
Okular::DocumentObserver::notifyViewportChanged
virtual void notifyViewportChanged(bool smoothMove)
This method is called whenever the viewport has been changed.
Definition: observer.cpp:27
Okular::DocumentObserver::notifySetup
virtual void notifySetup(const QVector< Okular::Page * > &pages, int setupFlags)
This method is called whenever the document is initialized or reconstructed.
Definition: observer.cpp:23
Okular::DocumentObserver::notifyVisibleRectsChanged
virtual void notifyVisibleRectsChanged()
This method is called whenever the visible rects have been changed.
Definition: observer.cpp:39
Okular::DocumentObserver::notifyCurrentPageChanged
virtual void notifyCurrentPageChanged(int previous, int current)
This method is called after the current page of the document has been entered.
Definition: observer.cpp:52
Okular::DocumentObserver::notifyZoom
virtual void notifyZoom(int factor)
This method is called whenever the zoom of the document has been changed.
Definition: observer.cpp:43
Okular::DocumentObserver::notifyContentsCleared
virtual void notifyContentsCleared(int flags)
This method is called whenever the content described by the passed flags has been cleared...
Definition: observer.cpp:35
Okular::DocumentObserver::notifyPageChanged
virtual void notifyPageChanged(int page, int flags)
This method is called whenever the content on page described by the passed flags has been changed...
Definition: observer.cpp:31
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

KDE's Doxygen guidelines are available online.

okular

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

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal