GetStandardFormats
GetStandardFormats Get the alias used in the GoToPublisherSection
#include <Editions.h> Edition Manager
OSErr GetStandardFormats ( container, & previewFormat,
preview, publisherAlias, formats );
EditionContainerSpec * container ; includes the edition volume reference
number, directory ID, and filename
FormatType * previewFormat ; valid handles for the formats that you
want
Handle preview ; ries to find one of four formats: 'prvw',
'PICT', 'TEXT', or 'snd '.
Handle publisherAlias ; reads the format
kPublisherDocAliasFormat ('alis')
Handle formats ; reads the virtual format
kFormatListFormat ('fmts')
returns Error Code; 0=no error
The Edition Manager calls the GetStandardFormats function to get the
alias used in the GoToPublisherSection function and to get the preview
shown in the subscriber dialog box. You probably do not need to call this
function directly.
container i includes the edition volume reference number, directory ID,
filename., and part.
previewFormat You should pass in valid handles for the formats that you want and
NIL for the formats that you don't want. The handles are resized to
the size of the data.
preview tries to find one of four formats: 'prvw', 'PICT', 'TEXT', or 'snd '.
publisherAlias reads the format kPublisherDocAliasFormat ('alis')
formats reads the virtual format kFormatListFormat ('fmts'). The first
format that was written returns in the preview handle and the x
parameter is set to its type. If one of the requested formats cannot be
found, GetStandardFormats returns a noTypeErr result code.
Returns: an operating system Error Code.
noErr (0) No error
noTypeErr (-102) Edition container not found
editionMgrInitErr (-450) Manager not initialized