Okular

observer.cpp
1 /*
2  SPDX-FileCopyrightText: 2005 Enrico Ros <[email protected]>
3  SPDX-FileCopyrightText: 2005 Albert Astals Cid <[email protected]>
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #include "observer.h"
9 
10 using namespace Okular;
11 
12 DocumentObserver::DocumentObserver()
13 {
14 }
15 
17 {
18 }
19 
21 {
22 }
23 
25 {
26 }
27 
29 {
30 }
31 
33 {
34 }
35 
37 {
38 }
39 
41 {
42 }
43 
45 {
46  return true;
47 }
48 
50 {
51 }
The documentation to the global Okular namespace.
Definition: action.h:16
virtual void notifyVisibleRectsChanged()
This method is called whenever the visible rects have been changed.
Definition: observer.cpp:36
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:44
virtual void notifySetup(const QVector< Okular::Page * > &pages, int setupFlags)
This method is called whenever the document is initialized or reconstructed.
Definition: observer.cpp:20
virtual void notifyViewportChanged(bool smoothMove)
This method is called whenever the viewport has been changed.
Definition: observer.cpp:24
virtual ~DocumentObserver()
Destroys the document observer.
Definition: observer.cpp:16
virtual void notifyContentsCleared(int flags)
This method is called whenever the content described by the passed flags has been cleared.
Definition: observer.cpp:32
virtual void notifyZoom(int factor)
This method is called whenever the zoom of the document has been changed.
Definition: observer.cpp:40
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:28
virtual void notifyCurrentPageChanged(int previous, int current)
This method is called after the current page of the document has been entered.
Definition: observer.cpp:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.