InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IS4SPPackage Class Referenceabstract

#include <IS4SPPackage.h>

Inheritance diagram for IS4SPPackage:
IPMUnknown

Public Types

enum  PackageRC {
  kPackageOK, kPackageCancelled, kPackageBadPreflight, kPackageCantCreateFolder,
  kPackageCantCopyFonts, kPackageCantCopyProfiles, kPackageCantCopyLinks, kPackageCantCopyPub,
  kPackageCantUpdateLinks, kPackageCantRestoreLinks, kPackageCantDoHyphExceptions, kPackageMissingPlugins,
  kPackageUnknownError, kPackageIDMLError, kPackageIDMLErrorPDFError, kPackageIDMLErrorPDFAlerts,
  kPackagePDFAlerts, kPackagePDFError
}
 

Public Member Functions

virtual bool16 Init (const IDocument *in_iDoc)=0
 
virtual IDocumentGetParentDocument ()=0
 
virtual bool16 GetCopyFontsFlag ()=0
 
virtual void SetCopyFontsFlag (bool16 in_flag)=0
 
virtual bool16 GetCopyGLinksFlag ()=0
 
virtual void SetCopyGLinksFlag (bool16 in_flag)=0
 
virtual bool16 GetUpdateGLinksFlag ()=0
 
virtual void SetUpdateGLinksFlag (bool16 in_flag)=0
 
virtual bool16 GetHiddenLayersFlag ()=0
 
virtual void SetHiddenLayersFlag (bool16 in_flag)=0
 
virtual bool16 GetViewReportFlag ()=0
 
virtual void SetViewReportFlag (bool16 in_flag)=0
 
virtual bool16 GetCreateIDMLFlag ()=0
 
virtual void SetCreateIDMLFlag (bool16 in_flag)=0
 
virtual bool16 GetCreatePDFFlag ()=0
 
virtual void SetCreatePDFFlag (bool16 in_flag)=0
 
virtual bool16 GetHyphExceptionsFlag ()=0
 
virtual void SetHyphExceptionsFlag (bool16 in_flag)=0
 
virtual const IDFileGetPackageLocation ()=0
 
virtual void SetPackageLocation (const IDFile &in_Location)=0
 
virtual PackageRC PhysicalPackage ()=0
 
virtual void ViewReport ()=0
 
virtual K2Vector< IDFile > * GetFontFilePackageList ()=0
 
virtual K2Vector< IDFile > * GetLinkFilePackageList ()=0
 
virtual K2Vector< IDFile > * GetProfileFilePackageList ()=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

This interface is used to Package an individual document

See Also
IS4SPPackageBook

Member Enumeration Documentation

Identifiers that uniquely identify all packaging related messages or error messages while packaging. Clients also use these identifiers to know the relevant state while packaging.

Member Function Documentation

virtual bool16 IS4SPPackage::GetCopyFontsFlag ()
pure virtual

The accessor for getting the preference on copying fonts while packaging

Returns
bool16: kTrue if copying of Fonts flag is set, kFalse otherwise
virtual bool16 IS4SPPackage::GetCopyGLinksFlag ()
pure virtual

The accessor for getting the preference on copying the linked graphics

Returns
bool16: kTrue if copying of link flag is set, kFalse otherwise
virtual bool16 IS4SPPackage::GetCreateIDMLFlag ()
pure virtual

The accessor for getting the preference on whether to generate IDML while packaging

Returns
bool16: kTrue if the flag is set, kFalse otherwise
virtual bool16 IS4SPPackage::GetCreatePDFFlag ()
pure virtual

The accessor for getting the preference on whether to generate PDF while packaging

Returns
bool16: kTrue if the flag is set, kFalse otherwise
virtual K2Vector<IDFile>* IS4SPPackage::GetFontFilePackageList ()
pure virtual

This function is used get the list of font files to be packaged.

Returns
K2Vector<IDFile>* : returns the font list
virtual bool16 IS4SPPackage::GetHiddenLayersFlag ()
pure virtual

The accessor for getting the preference on whether to include fonts and links from hidden document layers

Returns
bool16: kTrue if the flag is set, kFalse otherwise
virtual bool16 IS4SPPackage::GetHyphExceptionsFlag ()
pure virtual

The accessor for getting the preference on whether to use the document hyphenation exceptions only while packaging.

Returns
bool16: kTrue if the flag is set, kFalse otherwise
virtual K2Vector<IDFile>* IS4SPPackage::GetLinkFilePackageList ()
pure virtual

This function is used get the list of the graphic links to be packaged.

Returns
K2Vector<IDFile>* : returns the graphics links list
virtual const IDFile* IS4SPPackage::GetPackageLocation ()
pure virtual

The accessor for getting the packaging location

Returns
IDFile*, pointer to IDFile
virtual IDocument* IS4SPPackage::GetParentDocument ()
pure virtual

This function is used to retrieve the pointer to the document that we are interested in packaging.

Returns
IDocument*: returns the document pointer to package
virtual K2Vector<IDFile>* IS4SPPackage::GetProfileFilePackageList ()
pure virtual

This function is used get the list of ICC Profiles to be packaged.

Returns
K2Vector<IDFile>* : returns the profiles list
virtual bool16 IS4SPPackage::GetUpdateGLinksFlag ()
pure virtual

The accessor for getting the preference on updating graphic links in package

Returns
bool16: kTrue if the flag is set, kFalse otherwise
virtual bool16 IS4SPPackage::GetViewReportFlag ()
pure virtual

The accessor for getting the preference on whether to view the packaging report

Returns
bool16: kTrue if the flag is set, kFalse otherwise
virtual bool16 IS4SPPackage::Init (const IDocumentin_iDoc)
pure virtual

Used to initializes the Packaging API object for the given document.

Parameters
constIDocument* IN IDocument pointer to be used for packaging
Returns
bool16: returns KTrue,if this object is valid else kFalse
virtual PackageRC IS4SPPackage::PhysicalPackage ()
pure virtual

The function that basically does the packaging function for a single document. It creates all necessary packaging directories and then copies all necessary files into the correspondent directories, updates all links that have to be updated in the packaged publication, while keeping links untouched in the orginal one

Returns
PackageRC: One of the packaging error messages
See Also
PackageRC
virtual void IS4SPPackage::SetCopyFontsFlag (bool16 in_flag)
pure virtual

The accessor for setting the preference on copying fonts while packaging

Parameters
bool16,:IN kTrue to set the flag for copying of Fonts, kFalse otherwise
virtual void IS4SPPackage::SetCopyGLinksFlag (bool16 in_flag)
pure virtual

The accessor for setting the preference on copying linked Graphics

Parameters
bool16,:IN kTrue to set the flag for copying of Linked graphics, kFalse otherwise
virtual void IS4SPPackage::SetCreateIDMLFlag (bool16 in_flag)
pure virtual

The accessor for setting the preference on whether to generate IDML while packaging

Parameters
bool16:IN kTrue to set the flag, kFalse otherwise
virtual void IS4SPPackage::SetCreatePDFFlag (bool16 in_flag)
pure virtual

The accessor for setting the preference on whether to generate PDF while packaging

Parameters
bool16:IN kTrue to set the flag, kFalse otherwise
virtual void IS4SPPackage::SetHiddenLayersFlag (bool16 in_flag)
pure virtual

The accessor for setting the preference on whether to include fonts and links from hidden document layers

Parameters
bool16,:IN kTrue to set the flag, kFalse otherwise
virtual void IS4SPPackage::SetHyphExceptionsFlag (bool16 in_flag)
pure virtual

The accessor for setting the preference on whether to use the document hyphenation exceptions only while packaging.

Parameters
bool16,:IN kTrue to set the flag, kFalse otherwise
virtual void IS4SPPackage::SetPackageLocation (const IDFilein_Location)
pure virtual

The accessor for setting the packaging location

Parameters
constIDFile&: IN packaging location
virtual void IS4SPPackage::SetUpdateGLinksFlag (bool16 in_flag)
pure virtual

The accessor for setting the preference on updating graphic links in package

Parameters
bool16,:IN kTrue to set the flag for updating the graphic links, kFalse otherwise
virtual void IS4SPPackage::SetViewReportFlag (bool16 in_flag)
pure virtual

The accessor for setting the preference on whether to view the packaging report

Parameters
bool16:IN kTrue to set the flag, kFalse otherwise
virtual void IS4SPPackage::ViewReport ()
pure virtual

The function that is called when we want to the view the generated packaging report