Commit d88f6ecc authored by Thorsten Zachmann's avatar Thorsten Zachmann

o extent pages to make it possible to return masterpages

svn path=/trunk/koffice/; revision=734514
parent 56dd091d
......@@ -427,9 +427,9 @@ int KoPADocument::takePage( KoPAPageBase *page )
return index;
}
QList<KoPAPageBase*> KoPADocument::pages() const
QList<KoPAPageBase*> KoPADocument::pages( bool masterPages ) const
{
return d->pages;
return masterPages ? d->masterPages : d->pages;
}
KoPAPage * KoPADocument::newPage( KoPAMasterPage * masterPage )
......
......@@ -128,7 +128,7 @@ public:
void addShape( KoShape *shape );
void removeShape( KoShape* shape );
QList<KoPAPageBase*> pages() const;
QList<KoPAPageBase*> pages( bool masterPages = false ) const;
/**
* Get a new page for inserting into the document
......
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