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

#include <IGenericSettingsGroup.h>

Inheritance diagram for IGenericSettingsGroup:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IGENERICSETTINGSGROUP }
 

Public Member Functions

virtual IGenericSettingsAttributeAddAttribute (const PMString pszName, const PMString pszValue, IGenericSettingsAttribute::AttributeFlags nFlags=IGenericSettingsAttribute::AttrTranslateBoth, bool16 bLocked=kFalse, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsGroupAddGroup (const PMString pszName, const PMString pszValue, IGenericSettingsAttribute::AttributeFlags nFlags=IGenericSettingsAttribute::AttrTranslateBoth, bool16 bLocked=kFalse, bool16 bRelevant=kTrue)=0
 
virtual IGenericSettingsAttributeSetName (const PMString pszName, const PMString pszValue, IGenericSettingsAttribute::AttributeFlags nFlags=IGenericSettingsAttribute::AttrTranslateBoth, bool16 bLocked=kFalse, bool16 bRelevant=kTrue)=0
 
virtual IPMUnknownIteratorGetAttributes ()=0
 
virtual IGenericSettingsAttributeGetName ()=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

IGenericSettingsGroup is used to describe a group of preset preference values.

Member Function Documentation

virtual IGenericSettingsAttribute* IGenericSettingsGroup::AddAttribute (const PMString pszName,
const PMString pszValue,
IGenericSettingsAttribute::AttributeFlags nFlags = IGenericSettingsAttribute::AttrTranslateBoth,
bool16 bLocked = kFalse,
bool16 bRelevant = kTrue 
)
pure virtual

Add a preference value to the group.

Parameters
pszNameis the name of the preference.
pszValueis the value of the preference.
nFlagsis an optional parameter whether to translate the name or value or both. The default is both.
bLockedis an optional parameter of the preference's locked state. The default is kFalse.
bRelevantis an optional parameter whether the preference is relevant. The default is kTrue.
Returns
a pointer to an IGenericSettingsAttribute interface. It is is valid as long as this IGenericSettingsGroup interface is valid.
virtual IGenericSettingsGroup* IGenericSettingsGroup::AddGroup (const PMString pszName,
const PMString pszValue,
IGenericSettingsAttribute::AttributeFlags nFlags = IGenericSettingsAttribute::AttrTranslateBoth,
bool16 bLocked = kFalse,
bool16 bRelevant = kTrue 
)
pure virtual

Create a sub group.

Parameters
pszNameis the name of the group.
pszValueis the value of the group.
nFlagsis an optional parameter whether to translate the name or value or both. The default is both.
bLockedis an optional parameter of the preference's locked state. The default is kFalse.
bRelevantis an optional parameter whether the preference is relevant. The default is kTrue.
Returns
a pointer to an IGenericSettingsGroup interface. The caller must release this interface when done.
virtual IPMUnknownIterator* IGenericSettingsGroup::GetAttributes ()
pure virtual

Get an iterator to the list of attributes and sub-groups of this group.

Returns
a pointer to an IPMUnknownIterator interface. The caller must release this interface when done. The iterator returns IGenericSettingsAttribute interfaces. These are valid as long as this IGenericSettingsGroup interface is valid.
virtual IGenericSettingsAttribute* IGenericSettingsGroup::GetName ()
pure virtual

Get the name of this group.

Returns
a pointer to an IGenericSettingsAttribute interface. It is is valid as long as this IGenericSettingsGroup interface is valid.
virtual IGenericSettingsAttribute* IGenericSettingsGroup::SetName (const PMString pszName,
const PMString pszValue,
IGenericSettingsAttribute::AttributeFlags nFlags = IGenericSettingsAttribute::AttrTranslateBoth,
bool16 bLocked = kFalse,
bool16 bRelevant = kTrue 
)
pure virtual

Rename the group.

Parameters
pszNameis the name of the group.
pszValueis the value of the group.
nFlagsis an optional parameter whether to translate the name or value or both. The default is both.
bLockedis an optional parameter of the preference's locked state. The default is kFalse.
bRelevantis an optional parameter whether the preference is relevant. The default is kTrue.
Returns
a pointer to an IGenericSettingsAttribute interface. It is is valid as long as this IGenericSettingsGroup interface is valid.