You are on page 1of 1

CHAPTER 1: Layout Spreads and pages 17

 ILayoutUtils::GetOwnerPageUID

 ILayoutUtils::GetDrawingPageUID

If you have a layout view(kLayoutWidgetBoss), use ILayoutControlData::GetPage, to get the page being
viewed by the user in layout view.

Sample code

 CHMLFiltImportProvider::LoadImage

 SnpCreateInddPreview::CreateFirstPagePreview

Related API

kPageBoss

Creating a page
Solution

Use kNewPageCmdBoss.

Related API

kPageBoss

Deleting a page
You can delete a page and the page items on it.

Solution

Use kDeletePageCmdBoss.

Related API

kPageBoss

Iterating through pages


You can examine the pages in a document or the pages in a spread.

Solution

To iterate through all pages in a document, use IPageList.

You might also like