• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. Okular
  • KDE Home
  • Contact Us

Quick Links

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

Class Picker

About

Okular, the unified document viewer

Maintainer
Albert Astals Cid
Supported platforms
Linux, MacOSX, Windows
Community
IRC: #okular on Freenode
Mailing list: okular-devel
Clone
git clone git://anongit.kde.org/okular.git
Browse source
Okular on cgit.kde.org

Okular

  • kde
  • kdegraphics
  • okular
  • core
observer.h
1 /***************************************************************************
2  * Copyright (C) 2005 by Enrico Ros <[email protected]> *
3  * Copyright (C) 2005 by Albert Astals Cid <[email protected]> *
4  * Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group *
5  * company, [email protected] Work sponsored by the *
6  * LiMux project of the city of Munich *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  ***************************************************************************/
13 
14 #ifndef _OKULAR_DOCUMENTOBSERVER_H_
15 #define _OKULAR_DOCUMENTOBSERVER_H_
16 
17 #include <QVector>
18 
19 #include "okularcore_export.h"
20 
21 namespace Okular {
22 
23 class Page;
24 
31 class OKULARCORE_EXPORT DocumentObserver
32 {
33  public:
34  DocumentObserver();
38  virtual ~DocumentObserver();
39 
44  enum ChangedFlags {
45  Pixmap = 1,
46  Bookmark = 2,
47  Highlights = 4,
48  TextSelection = 8,
49  Annotations = 16,
50  BoundingBox = 32,
51  NeedSaveAs = 64
52  };
53 
57  enum SetupFlags {
58  DocumentChanged = 1,
59  NewLayoutForPages = 2,
60  UrlChanged = 4
61  };
62 
69  virtual void notifySetup( const QVector< Okular::Page * > &pages, int setupFlags );
70 
76  virtual void notifyViewportChanged( bool smoothMove );
77 
82  virtual void notifyPageChanged( int page, int flags );
83 
88  virtual void notifyContentsCleared( int flags );
89 
93  virtual void notifyVisibleRectsChanged();
94 
98  virtual void notifyZoom( int factor );
99 
106  virtual bool canUnloadPixmap( int page ) const;
107 
116  virtual void notifyCurrentPageChanged( int previous, int current );
117 
118  private:
119  class Private;
120  const Private* d;
121 };
122 
123 }
124 
125 #endif
Okular
global.h
Definition: action.h:19
Okular::DocumentObserver::ChangedFlags
ChangedFlags
Flags that can be sent from the document to all observers to inform them about the type of object tha...
Definition: observer.h:44
QVector
Okular::DocumentObserver
Base class for objects being notified when something changes.
Definition: observer.h:31
Okular::DocumentObserver::SetupFlags
SetupFlags
...
Definition: observer.h:57
Okular::TextSelection
Wrapper around the information needed to generate the selection area There are two assumptions inside...
Definition: misc.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 16 2019 01:20:45 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

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