• 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.h
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 #ifndef _OKULAR_DOCUMENTOBSERVER_H_
12 #define _OKULAR_DOCUMENTOBSERVER_H_
13 
14 #include <QtCore/QVector>
15 
16 #include "okular_export.h"
17 
18 namespace Okular {
19 
20 class Page;
21 
28 class OKULAR_EXPORT DocumentObserver
29 {
30  public:
31  DocumentObserver();
35  virtual ~DocumentObserver();
36 
41  enum ChangedFlags {
42  Pixmap = 1,
43  Bookmark = 2,
44  Highlights = 4,
45  TextSelection = 8,
46  Annotations = 16,
47  BoundingBox = 32,
48  NeedSaveAs = 64
49  };
50 
54  enum SetupFlags {
55  DocumentChanged = 1,
56  NewLayoutForPages = 2
57  };
58 
65  virtual void notifySetup( const QVector< Okular::Page * > &pages, int setupFlags );
66 
72  virtual void notifyViewportChanged( bool smoothMove );
73 
78  virtual void notifyPageChanged( int page, int flags );
79 
84  virtual void notifyContentsCleared( int flags );
85 
89  virtual void notifyVisibleRectsChanged();
90 
94  virtual void notifyZoom( int factor );
95 
102  virtual bool canUnloadPixmap( int page ) const;
103 
112  virtual void notifyCurrentPageChanged( int previous, int current );
113 
114  private:
115  class Private;
116  const Private* d;
117 };
118 
119 }
120 
121 #endif
okular_export.h
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:41
Okular::DocumentObserver
Base class for objects being notified when something changes.
Definition: observer.h:28
OKULAR_EXPORT
#define OKULAR_EXPORT
Definition: okular_export.h:30
Okular::DocumentObserver::SetupFlags
SetupFlags
...
Definition: observer.h:54
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-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