You are on page 1of 1

CHAPTER 1: Layout Documents 8

9. Browse the sample code in the snippets you have been running.

Sample code

 SnpCreateDocument

 SnpInspectLayoutModel

 SnpCreateFrame

 SDKLayoutHelper

Related APIs

 IDocument

 IDocumentLayer

 IHierarchy

 IMasterSpreadList

 ISpread

 ISpreadLayer

 ISpreadList

Finding layout-related resources in the SDK


You can locate assets in the SDK that will help you program with the layout subsystem.

Solution

1. See Adobe InDesign Programming Guide, in the docs/guides folder. The “Layout Fundamentals” chapter
covers the layout subsystem.

2. See the API documentation in docs/references/index.chm or in HTML format. There are


documentation pages for boss classes and interfaces. Sample code related to layout is on the Layout
Samples page.

Documents
Acquiring a reference to a document
Solution

A document (kDocBoss) is characterized by the IDocument interface. A UIDRef that can instantiate an
IDocument interface is a document.

You might also like