Commit c1a57a22 authored by Thorsten Zachmann's avatar Thorsten Zachmann

o Make it possible to set the masterpage

svn path=/trunk/koffice/; revision=696625
parent e446755a
......@@ -431,9 +431,9 @@ QList<KoPAPageBase*> KoPADocument::pages() const
return m_pages;
}
KoPAPage * KoPADocument::newPage()
KoPAPage * KoPADocument::newPage( KoPAMasterPage * masterPage )
{
return new KoPAPage( 0 );
return new KoPAPage( masterPage );
}
KoPAMasterPage * KoPADocument::newMasterPage()
......
......@@ -112,7 +112,7 @@ protected:
*
* Reimplement when you need a derivered class in your kopageapplication
*/
virtual KoPAPage * newPage();
virtual KoPAPage * newPage( KoPAMasterPage * masterPage = 0 );
/**
* Get a new master 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