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

#include <ISummaryUtils.h>

Inheritance diagram for ISummaryUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ISUMMARYUTILS }
 

Public Member Functions

virtual void GenerateHumanTextSummary (IGenericSettings *pSettings, PMString &strResult)=0
 
virtual void ExportHumanTextSummary (IGenericSettings *pSettings, const PMString &strDefaultFilename, const PMString &strExportDialogTitle, const PMString &strFileType, const PMString &strFileExtension)=0
 
virtual void WriteToFile (IGenericSettings *pSettings, IGenericSettingsOutputStrategy *pStrategy, IDFile &fileTarget)=0
 
virtual IGenericSettingsAttributeAddNumber (IGenericSettingsGroup *pGroup, const char *pszName, int32 nValue, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsAttributeAddNumber (IGenericSettingsGroup *pGroup, const char *pszName, const PMReal &nValue, int32 nDigits=-1, bool16 bRound=kFalse, bool16 bEliminateZeros=kFalse, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsAttributeAddNumberUnit (IGenericSettingsGroup *pGroup, const char *pszName, const PMString &unitString, const PMReal &nValue, int32 nDigits=-1, bool16 bRound=kFalse, bool16 bEliminateZeros=kFalse, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsAttributeAddOnOff (IGenericSettingsGroup *pGroup, const char *pszName, bool16 bOn, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsAttributeAddYesNo (IGenericSettingsGroup *pGroup, const char *pszName, bool16 bYes, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsAttributeAddString (IGenericSettingsGroup *pGroup, const PMString &pszName, bool16 bFirst, const PMString &pszStr1, const PMString &pszStr2)=0
 
virtual IGenericSettingsAttributeAddString (IGenericSettingsGroup *pGroup, const PMString &pszName, const PMString &pszValue, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsAttributeAddStringDefault (IGenericSettingsGroup *pGroup, const PMString &pszName, const PMString &strValue, const PMString &pszDefault, bool16 bRelevant=kTrue, bool16 bTranslateNonDefault=kTrue)=0
 
virtual IGenericSettingsAttributeAddRealUnit (IGenericSettingsGroup *pGroup, const char *pszName, const PMReal &nValue, ClassID nWidgetBoss, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsAttributeAddPercent (IGenericSettingsGroup *pGroup, const char *pszName, const PMReal &nValue, bool16 bRelevant=kTrue)=0
 
virtual PMString ValueToUnitString (ClassID widgetBoss, const PMReal &value)=0
 
virtual IGenericSettingsAttributeAddMarkWeight (IGenericSettingsGroup *pGroup, const char *pszLabel, const PMReal &nWeight)=0
 
virtual void AddBleeds (IGenericSettingsGroup *pGroup, bool16 bSpreads, const PMReal &nTop, const PMReal &nBottom, const PMReal &nLeft, const PMReal &nRight, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsAttributeAddFlattenerStyle (IGenericSettingsGroup *pGroup, UID &flattenerStyleUID)=0
 
virtual int32 QualityFromCompression (int32 nCompression, bool16 bUsingMono=kFalse)=0
 
virtual int32 TypeFromCompression (int32 nCompression, bool16 bUsingMono=kFalse)=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

A helper interface for use with IGenericSettings.

See Also
also IGenericSettings

Member Function Documentation

virtual void ISummaryUtils::AddBleeds (IGenericSettingsGrouppGroup,
bool16 bSpreads,
const PMRealnTop,
const PMRealnBottom,
const PMRealnLeft,
const PMRealnRight,
bool16 bRelevant = kTrue 
)
pure virtual

Add summary text for bleeds to the specified group

Parameters
pGroupspecifies the settings group to add number to.
bSpreadscontrols the name of the bleeds
nTopspecifies the top bleed amount
nBottomspecifies the bottom bleed amount
nLeftspecifies the left bleed amount
nRightspecifies the right bleed amount
bRelevantif true the specified value is used as given. If false, the value is ignored.
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddFlattenerStyle (IGenericSettingsGrouppGroup,
UIDflattenerStyleUID 
)
pure virtual

Add summary text for the specified flattener style for the settings group.

Parameters
pGroupspecifies the settings group to add number to.
flattenerStyleUIDis the flattener style UID
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddMarkWeight (IGenericSettingsGrouppGroup,
const char * pszLabel,
const PMRealnWeight 
)
pure virtual

Add summary text for the mark weight to the specified settings group

Parameters
pGroupspecifies the settings group to add number to.
pszLabelspecifies the name of the mark weight
nWeightis the value
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddNumber (IGenericSettingsGrouppGroup,
const char * pszName,
int32 nValue,
bool16 bRelevant = kTrue 
)
pure virtual

Add an integer number specified by nValue to the settings group.

Parameters
pGroupspecifies the settings group to add number to.
pszNamespecifies the name for this value.
nValuespecifies the value to add as number.
bRelevantif true the specified value is used as given. If false, the value is ignored.
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddNumber (IGenericSettingsGrouppGroup,
const char * pszName,
const PMRealnValue,
int32 nDigits = -1,
bool16 bRound = kFalse,
bool16 bEliminateZeros = kFalse,
bool16 bRelevant = kTrue 
)
pure virtual

Add a floating-point number specified by nValue to the specified settings group.

Parameters
pGroupspecifies the settings group to add number to.
pszNamespecifies the name for this value.
nValuespecifies the floating-point value to add as number.
nDigitsspecifies the desired number of digits for format the number.
bRoundif true the nValue is rounded.
bEliminateZerosif true trailing zeros are eliminated
bRelevantif true the specified value is used as given. If false, the value is ignored.
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddNumberUnit (IGenericSettingsGrouppGroup,
const char * pszName,
const PMStringunitString,
const PMRealnValue,
int32 nDigits = -1,
bool16 bRound = kFalse,
bool16 bEliminateZeros = kFalse,
bool16 bRelevant = kTrue 
)
pure virtual

Add a number specified by nValue with unit to the specified settings group. The unit is specified with unitString and should be translated.

Parameters
pGroupspecifies the settings group to add number to.
pszNamespecifies the name for this value.
unitStringis the unit string.
nValuespecifies the floating-point value to add as number.
nDigitsspecifies the desired number of digits to format the number.
bRoundif true the nValue is rounded.
bEliminateZerosif true trailing zeros are eliminated
bRelevantif true the specified value is used as given. If false, the value is ignored.
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddOnOff (IGenericSettingsGrouppGroup,
const char * pszName,
bool16 bOn,
bool16 bRelevant = kTrue 
)
pure virtual

Add "On" or "Off" value to the specified settings group.

Parameters
pGroupspecifies the settings group to add number to.
pszNamespecifies the name for this value.
bOnif true "On" is added otherwise "Off" is added.
bRelevantif true the specified value is used as given. If false, the value is ignored.
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddPercent (IGenericSettingsGrouppGroup,
const char * pszName,
const PMRealnValue,
bool16 bRelevant = kTrue 
)
pure virtual

Add a percent value to the specified settings group.

Parameters
pGroupspecifies the settings group to add number to.
pszNamespecifies the name for this value.
nValuespecifies the percent value.
bRelevantif true the specified value is used as given. If false, the value is ignored.
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddRealUnit (IGenericSettingsGrouppGroup,
const char * pszName,
const PMRealnValue,
ClassID nWidgetBoss,
bool16 bRelevant = kTrue 
)
pure virtual

Add a floating-point value with unit to the specified setting group. Converts units as appropriate.

Parameters
pGroupspecifies the settings group to add number to.
pszNamespecifies the name for this value.
nValue
nWidgetBoss
bRelevantif true the specified value is used as given. If false, the value is ignored.
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddString (IGenericSettingsGrouppGroup,
const PMStringpszName,
bool16 bFirst,
const PMStringpszStr1,
const PMStringpszStr2 
)
pure virtual

Add a string data to the specified settings group.

Parameters
pGroupspecifies the settings group to add string to.
pszNamespecifies the name for this value.
bFirstif true pszStr1 is used. Otherwise pszStr2 is used.
pszStr1specifies string 1
pszStr2specifies string 2
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddString (IGenericSettingsGrouppGroup,
const PMStringpszName,
const PMStringpszValue,
bool16 bRelevant = kTrue 
)
pure virtual

Add a string data to the specified settings group.

Parameters
pGroupspecifies the settings group to add string to.
pszNamespecifies the name for this value.
pszValueis the string
bTranslatetrue if the string should be translated.
bRelevantif true the specified value is used as given. If false, the value is ignored.
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddStringDefault (IGenericSettingsGrouppGroup,
const PMStringpszName,
const PMStringstrValue,
const PMStringpszDefault,
bool16 bRelevant = kTrue,
bool16 bTranslateNonDefault = kTrue 
)
pure virtual

Add a string with default value to the settings group.

Parameters
pGroupspecifies the settings group to add number to.
pszNamespecifies the name for this value.
strValue
pszDefault
bRelevantif true the specified value is used as given. If false, the value is ignored.
bTranslateNonDefault
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual IGenericSettingsAttribute* ISummaryUtils::AddYesNo (IGenericSettingsGrouppGroup,
const char * pszName,
bool16 bYes,
bool16 bRelevant = kTrue 
)
pure virtual

Add "Yes" or "No" value to the specified settings group.

Parameters
pGroupspecifies the settings group to add number to.
pszNamespecifies the name for this value.
bYesif true "Yes" is added otherwise "No" is added.
bRelevantif true the specified value is used as given. If false, the value is ignored.
Returns
a interface pointer to IGenericSettingsAttribute that is added to the pGroup for this value.
virtual void ISummaryUtils::ExportHumanTextSummary (IGenericSettingspSettings,
const PMStringstrDefaultFilename,
const PMStringstrExportDialogTitle,
const PMStringstrFileType,
const PMStringstrFileExtension 
)
pure virtual

Export the specified settings to a text file.

Parameters
pSettingsspecifies the settings from which to generate the summary text for export.
strDefaultFilenamespecifies the default filename to use.
strExportDialogTitlespecifies the title for the export dialog.
strFileTypespecifies the string representing the default file type.
strFileExtensionspecified the file extension string.
virtual void ISummaryUtils::GenerateHumanTextSummary (IGenericSettingspSettings,
PMStringstrResult 
)
pure virtual

Generates a human text summary from the specified settings.

Parameters
pSettingsspecifies the settings from which to generate the summary text.
strResultis where the resulting summary text string is returned.
virtual int32 ISummaryUtils::QualityFromCompression (int32 nCompression,
bool16 bUsingMono = kFalse 
)
pure virtual

Get Pcompression quality from the specified compression type.

Parameters
nCompressionspecifies the type of compression.
bUsingMonoif true monochrome image type is used.
Returns
the compression quality.
virtual int32 ISummaryUtils::TypeFromCompression (int32 nCompression,
bool16 bUsingMono = kFalse 
)
pure virtual

Get compression type from the specified compression quality

Parameters
nCompressionis the compression quality
bUsingMonoif true monochrome image type is used
Returns
the compression type.
virtual PMString ISummaryUtils::ValueToUnitString (ClassID widgetBoss,
const PMRealvalue 
)
pure virtual

Convert from a value to a unit string.

Parameters
widgetBossthe unit widget class to use for the conversion
valuespecifies the value to convert
Returns
a formatted unit string.
virtual void ISummaryUtils::WriteToFile (IGenericSettingspSettings,
IGenericSettingsOutputStrategypStrategy,
IDFilefileTarget 
)
pure virtual

Write the settings to a file.

Parameters
pSettingsspecifies the settings to write.
pStrategythe output strategy to use
See Also
also IGenericSettingsOutputStragegy
Parameters
fileTargetspecifies a IDFile to write to.