compile
[kdegraphics.git] / okular / core / annotations_p.h
blobd37a59cc87f8a21733b4a97e46fe31d4dfd41ab9
1 /***************************************************************************
2 * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef OKULAR_ANNOTATIONS_P_H
11 #define OKULAR_ANNOTATIONS_P_H
13 #include "area.h"
14 #include "annotations.h"
16 // qt/kde includes
17 #include <QtCore/QDateTime>
18 #include <QtCore/QString>
19 #include <QtCore/QVariant>
20 #include <QtGui/QColor>
22 class QMatrix;
24 namespace Okular {
26 class PagePrivate;
28 class AnnotationPrivate
30 public:
31 AnnotationPrivate();
33 virtual ~AnnotationPrivate();
35 /**
36 * Transforms the annotation coordinates with the transformation
37 * defined by @p matrix.
39 void annotationTransform( const QMatrix &matrix );
41 virtual void transform( const QMatrix &matrix );
42 virtual void baseTransform( const QMatrix &matrix );
43 virtual void resetTransformation();
44 virtual void translate( const NormalizedPoint &coord );
46 PagePrivate * m_page;
48 QString m_author;
49 QString m_contents;
50 QString m_uniqueName;
51 QDateTime m_modifyDate;
52 QDateTime m_creationDate;
54 int m_flags;
55 NormalizedRect m_boundary;
56 NormalizedRect m_transformedBoundary;
58 Okular::Annotation::Style m_style;
59 Okular::Annotation::Window m_window;
60 QLinkedList< Okular::Annotation::Revision > m_revisions;
62 Annotation::DisposeDataFunction m_disposeFunc;
63 QVariant m_nativeId;
68 #endif