You are on page 1of 1

CHAPTER 1: Layout Spreads and pages 13

Changing the default InDesign document setup


Solution

Use kSetPageSetupPrefsCmdBoss.

Related documentation

 See “Finding the default InDesign document setup”.

Related API

IPageSetupPrefs

Getting notified when documents are created, opened, saved, or


closed
Solution

Implement a document signal responder service (IResponder).

Sample code

DocWatch

Related APIs

 DocWchResponder::Respond catalogs the ServiceIDs.

 IK2ServiceProvider

 IResponder

Spreads and pages


Acquiring a reference to a spread
Solution

A spread (kSpreadBoss) is characterized by the ISpread interface. A UIDRef that can instantiate an ISpread
interface is a spread.

To iterate through the spreads (kSpreadBoss) in a document (see “Acquiring a reference to a document”),
use ISpreadList.

If you have an IHierarchy interface on a page item, use the following:

You might also like