Commit 40d20ca5 authored by Pino Toscano's avatar Pino Toscano

in each page, add a pointer to the owner document

svn path=/trunk/KDE/kdegraphics/okular/; revision=1217914
parent e084fbc7
......@@ -1651,6 +1651,10 @@ bool Document::openDocument( const QString & docFile, const KUrl& url, const KMi
}
d->m_generatorName = offer->name();
foreach ( Page * p, d->m_pagesVector )
{
p->d->m_doc = d;
}
// 2. load Additional Data (our bookmarks and metadata) about the document
if ( d->m_archiveData )
......
......@@ -58,7 +58,7 @@ static void deleteObjectRects( QLinkedList< ObjectRect * >& rects, const QSet<Ob
PagePrivate::PagePrivate( Page *page, uint n, double w, double h, Rotation o )
: m_page( page ), m_number( n ), m_orientation( o ),
m_width( w ), m_height( h ), m_boundingBox( 0, 0, 1, 1 ),
m_width( w ), m_height( h ), m_doc( 0 ), m_boundingBox( 0, 0, 1, 1 ),
m_rotation( Rotation0 ), m_maxuniqueNum( 0 ),
m_text( 0 ), m_transition( 0 ), m_textSelections( 0 ),
m_openingAction( 0 ), m_closingAction( 0 ), m_duration( -1 ),
......
......@@ -29,6 +29,7 @@ namespace Okular {
class Action;
class Annotation;
class DocumentPrivate;
class FormField;
class HighlightAreaRect;
class Page;
......@@ -117,6 +118,7 @@ class PagePrivate
int m_number;
Rotation m_orientation;
double m_width, m_height;
DocumentPrivate *m_doc;
NormalizedRect m_boundingBox;
Rotation m_rotation;
int m_maxuniqueNum;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment