InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PstLstUtils Class Reference

#include <PstLstUtils.h>

Static Public Member Functions

static ErrorCode DoCreateNewData (const UIDList &pageItemListToAddTo, const WideString &name, UIDList &newItemsList)
 
static ErrorCode DoGetName (const UIDRef &pstLstItemRef, WideString &name)
 
static ErrorCode DoSetName (UIDList &pstLstDataList, const WideString &name)
 
static bool16 AllPstLstAreEmpty (const UIDList &itemList)
 
static void RemoveNonPstLstItems (UIDList &pageItemList)
 

Detailed Description

Implements some model-specific helper methods shared by different source files in this plug-in.

Member Function Documentation

bool16 PstLstUtils::AllPstLstAreEmpty (const UIDListitemList)
static

Tests whether all items in the itemList are devoid of persistent list items.

Parameters
itemListIN List of page items to examine. These page items must aggregate IPstLstUIDList.
Returns
kTrue of all items are devoid of persistent list items, kFalse if one or more items have one or more persistent list item.
ErrorCode PstLstUtils::DoCreateNewData (const UIDListpageItemListToAddTo,
const WideStringname,
UIDListnewItemsList 
)
static

Creates new persistent list item data on a page item.

Parameters
pageItemListToAddToIN List of page items (which aggregate IPstLstUIDList) to which you want to add new persistent list items.
nameIN The name of the persistent list item to add to each item in pageItemListToAddTo.
newItemsListOUT The newly created persistent list items.
Returns
kSuccess if success, non-zero otherwise.
ErrorCode PstLstUtils::DoGetName (const UIDRefpstLstItemRef,
WideStringname 
)
static

Gets the name of the persistent list item.

Parameters
pstLstItemRefIN The persistent list item to examine (not page item).
nameOUT The name in the persistent list item.
Returns
kSuccess if success, non-zero otherwise.
ErrorCode PstLstUtils::DoSetName (UIDListpstLstDataList,
const WideStringname 
)
static

Sets the name of the persistent list item.

Parameters
pstLstDataListIN The list of persistent list items to modify (not page item).
nameIN The new name in the persistent list item.
Returns
kSuccess if success, non-zero otherwise.
void PstLstUtils::RemoveNonPstLstItems (UIDListpageItemList)
static

Removes page items that do not have any persistent list items.

Parameters
pageItemListIN/OUT A list of page items to examine. This list is modified and returned to the caller via this parameter.