Okular

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

KDE's Doxygen guidelines are available online.