/*----------------------------------------------------------------------
 *       Class:  AmayaHelpWindow
 *      Method:  CreatePage
 * Description:  create a new AmayaPage.
 *               it's possible to attach automaticaly this page to the window or not
 -----------------------------------------------------------------------*/
AmayaPage * AmayaHelpWindow::CreatePage( Document doc, bool attach, int position )
{
    // Force using AmayaSimplePage : help pages are not code-viewable
    AmayaPage * page = new AmayaSimplePage( m_notebook, this );

    if (attach)
        AttachPage( position, page );

    return page;
}
Exemple #2
0
void TextGroup::AttachPage(TextPageWeakPtr page)
{
	AttachPage(page, true);
}