|
| enum | { kDefaultIID = IID_IDIGITALPUBLISHINGSETUPPROVIDER } |
| |
| enum | Orientation { kPortraitOrientation, kLandscapeOrientation, kInvalidOrientation = 0xffffffff } |
| |
| enum | DrawPass { kScrubberDrawPass, kAssetDrawPass, kThumbnailDrawPass, kTOCImageDrawPass, kOverlayCollectionPass, kPDFGenerationPass, kInvalidDrawPass = 0xffffffff } |
| |
| enum | DrawBehavior { kDrawBehaviorIncludeItem, kDrawBehaviorOmitItem, kDrawBehaviorAbortDrawing, kDrawBehaviorInvalidOption = 0xffffffff } |
| |
|
| virtual ErrorCode | BeginFolioCreation ()=0 |
| |
| virtual void | EndFolioCreation (bool folioWasCreated)=0 |
| |
| virtual ErrorCode | BeginOverlayCollection ()=0 |
| |
| virtual void | EndOverlayCollection ()=0 |
| |
| virtual ErrorCode | BeginContentStack (IDocument const *doc, Orientation orientation, const MiniFolioOptions &folioOptions)=0 |
| |
| virtual ErrorCode | EndContentStack (IDocument const *doc, Orientation orientation)=0 |
| |
| virtual ErrorCode | BeginPage (IDocument const *doc, UIDRef const &page, uint32 index, OverlayCreator *overlayCreator)=0 |
| |
| virtual ErrorCode | EndPage (IDocument const *doc, UIDRef const &page, uint32 index, OverlayCreator *overlayCreator)=0 |
| |
| virtual ErrorCode | BeginDrawingPass (IDocument const *doc, UIDRef const &page, DrawPass pass)=0 |
| |
| virtual ErrorCode | EndDrawingPass (IDocument const *doc, UIDRef const &page, DrawPass pass)=0 |
| |
| virtual bool | GetShouldNotifyOnPageItemDraw (DrawPass pass) const =0 |
| |
| virtual DrawBehavior | HandlePageItemDraw (IPMUnknown const *thisThing, DrawPass pass, OverlayCreator *overlayCreator)=0 |
| |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| |
| virtual void | AddRef () const =0 |
| |
| virtual void | Release () const =0 |
| |
Simple C++ service to be implemented by anyone wishing to be notified as events occur during the creation of a digital publishing folio file. Implementors can use these notifications to control how the folio file is created, including how interactive overlay instances are created.
***NOTES:
Accessing the provider MUST be done using the new utility digpub::QueryIDigitalPublishingSetupProvider defined below because it determines which version of the provider interface to use: IDigitalPublishingSetupProvider or IDigitalPublishingSetupProvider2.
Usage example: ... InterfacePtr<IK2ServiceProvider> service(registry->QueryNthServiceProvider(kDigitalPublishingSetupService, i)); InterfacePtr<IDigitalPublishingSetupProvider> provider(digpub::QueryIDigitalPublishingSetupProvider(service)); ...
| virtual ErrorCode IDigitalPublishingSetupProvider::BeginDrawingPass | ( | IDocument const * | doc, | | | UIDRef const & | page, | | | DrawPass | pass | | ) | | |
| pure virtual |
Notification that a drawing pass is about to begin. Note that this will occur within a BeginPage/EndPage block for asset and thumbnail passes but not for the scrubber pass.
Note: In current implementation, spreads are exported a page at a time. This will likely change in the future. When this occurs - and the options selected for folio generation indicate that we should generate stack pages from spreads instead of pages - the 'page' and 'index' parameters will point to the spread and spread index, rather than page and page index as they do now. For the kPDFGenerationPass, only one page per spread is supported, and the page parameter is a UIDRef to that page.
- Parameters
| doc | The document representing the content stack |
| page | Reference to the page or spread for the content stack page (see note above) |
| pass | The drawing pass that is about to begin |
- Returns
- kSuccess if the folio creation should continue, or an error code to abort it
| virtual ErrorCode IDigitalPublishingSetupProvider::BeginPage | ( | IDocument const * | doc, | | | UIDRef const & | page, | | | uint32 | index, | | | OverlayCreator * | overlayCreator | | ) | | |
| pure virtual |
Notification that a page in a content stack is about to be generated.
Note: In current implementation, spreads are exported a page at a time. This will likely change in the future. When this occurs - and the options selected for folio generation indicate that we should generate stack pages from spreads instead of pages - the 'page' and 'index' parameters will point to the spread and spread index, rather than page and page index as they do now. For the kPDFGenerationPass, only one page per spread is supported, and the page parameter is a UIDRef to that page.
- Parameters
| doc | The document representing the content stack |
| page | Reference to the page or spread for the content stack page (see note above) |
| index | Index of the page or spread, starting from zero |
| overlayCreator | An instance of an overlay creator that can be used to generate overlay instances for the page |
- Returns
- kSuccess if the folio creation should continue, or an error code to abort it
| virtual ErrorCode IDigitalPublishingSetupProvider::EndDrawingPass | ( | IDocument const * | doc, | | | UIDRef const & | page, | | | DrawPass | pass | | ) | | |
| pure virtual |
Notification that a drawing pass has ended. Note that this will occur within a BeginPage/EndPage block for asset and thumbnail passes but not for the scrubber pass.
Note: In current implementation, spreads are exported a page at a time. This will likely change in the future. When this occurs - and the options selected for folio generation indicate that we should generate stack pages from spreads instead of pages - the 'page' and 'index' parameters will point to the spread and spread index, rather than page and page index as they do now. For the kPDFGenerationPass, only one page per spread is supported, and the page parameter is a UIDRef to that page.
- Parameters
| doc | The document representing the content stack |
| page | Reference to the page or spread for the content stack page (see note above) |
| pass | The drawing pass that is about to begin |
- Returns
- kSuccess if the folio creation should continue, or an error code to abort it
| virtual ErrorCode IDigitalPublishingSetupProvider::EndPage | ( | IDocument const * | doc, | | | UIDRef const & | page, | | | uint32 | index, | | | OverlayCreator * | overlayCreator | | ) | | |
| pure virtual |
Notification that a page in a content stack has been generated.
Note: In current implementation, spreads are exported a page at a time. This will likely change in the future. When this occurs - and the options selected for folio generation indicate that we should generate stack pages from spreads instead of pages - the 'page' and 'index' parameters will point to the spread and spread index, rather than page and page index as they do now. For the kPDFGenerationPass, only one page per spread is supported, and the page parameter is a UIDRef to that page.
- Parameters
| doc | The document representing the content stack |
| page | Reference to the page or spread for the content stack page (see note above) |
| index | Index of the page or spread, starting from zero |
| overlayCreator | An instance of an overlay creator that can be used to generate overlay instances for the page |
- Returns
- kSuccess if the folio creation should continue, or an error code to abort it