in each page, add a pointer to the owner document

svn path=/trunk/KDE/kdegraphics/okular/; revision=1217914
remotes/origin/KDE/4.7
Pino Toscano 15 years ago
parent e084fbc705
commit 40d20ca58d
  1. 4
      core/document.cpp
  2. 2
      core/page.cpp
  3. 2
      core/page_p.h

@ -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;

Loading…
Cancel
Save