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

Public Member Functions

 SnpPerformNamedGrid ()
 
virtual ~SnpPerformNamedGrid ()
 
ErrorCode InspectNamedGrid (IWorkspace *workspace, const UID &namedGridUID, SnpNamedGridSettings &data)
 
ErrorCode CreateNamedGrid (IWorkspace *workspace, IFilteredCJKGridCmdData *filteredGridData, PMString &gridName)
 
ErrorCode InitializeNewCJKGridData (IWorkspace *workspace, IFilteredCJKGridCmdData *filteredGridData, ICJKGridData *gridData)
 
ErrorCode DeleteNamedGrid (IWorkspace *workspace, const PMString &name)
 
K2Vector< PMStringGetNamedGridList (IStyleNameTable *styleNameTable)
 
void ReportNamedGridData (const SnpNamedGridSettings &data)
 

Detailed Description

Constructor & Destructor Documentation

SnpPerformNamedGrid::SnpPerformNamedGrid ()
inline

Constructor.

virtual SnpPerformNamedGrid::~SnpPerformNamedGrid ()
inlinevirtual

Destructor.

Member Function Documentation

ErrorCode SnpPerformNamedGrid::CreateNamedGrid (IWorkspaceworkspace,
IFilteredCJKGridCmdDatafilteredGridData,
PMStringgridName 
)

Creates a new named grid based on default grid data.

Parameters
workspaceIN The workspace that contains the named grid to be created.
filteredGridDataIN A part of ICJKGridData with the change of the selection frame.
gridNameIN/OUT The name for The new named grid. When there is no name, a name is given automatically, and NamedGrid is made.
Returns
kSuccess on success, other ErrorCode otherwise.
ErrorCode SnpPerformNamedGrid::DeleteNamedGrid (IWorkspaceworkspace,
const PMStringname 
)

Delete a named grid.

Parameters
workspaceIN The workspace that contains the named grid to be created.
nameIN The name for the named grid that is to be deleted.
Returns
kSuccess on success, other ErrorCode otherwise.
K2Vector< PMString > SnpPerformNamedGrid::GetNamedGridList (IStyleNameTablestyleNameTable)

Gets the name list of the named grids.

Parameters
styleNameTableIN The IStyleNameTable interface for named grid on a specific workspace.
Returns
A list of named grids.
ErrorCode SnpPerformNamedGrid::InitializeNewCJKGridData (IWorkspaceworkspace,
IFilteredCJKGridCmdDatafilteredGridData,
ICJKGridDatagridData 
)

Initialize a grid data. The conditions of InDesign are investigated. Then, the grid data given to it are initialized corresponding to the conditions.

Parameters
workspaceIN The workspace that contains the named grid to be created.
filteredGridDataIN A part of ICJKGridData with the change of the selection frame.
gridDataOUT The Grid data to initialize.
Returns
kSuccess on success, other ErrorCode otherwise.
ErrorCode SnpPerformNamedGrid::InspectNamedGrid (IWorkspaceworkspace,
const UIDnamedGridUID,
SnpNamedGridSettingsdata 
)

Inspect a named grid.

Parameters
workspaceIN The workspace that contains the named grid to be inspected.
namedGridUIDIN The UID for the named grid that is to be inspected.
dataOUT The named grid data for the given UID.
Returns
kSuccess on success, other ErrorCode otherwise.
void SnpPerformNamedGrid::ReportNamedGridData (const SnpNamedGridSettingsdata)

Reports the named grid data to SNIPLOG.

Parameters
dataIN The named grid settings to report.