InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
_SnpRunnerPerformNamedGrid Class Reference
Inheritance diagram for _SnpRunnerPerformNamedGrid:
SnpRunnable

Public Member Functions

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)
 
 _SnpRunnerPerformNamedGrid ()
 
virtual ~_SnpRunnerPerformNamedGrid ()
 
bool16 CanRun (ISnpRunnableContext *runnableContext)
 
ErrorCode Run (ISnpRunnableContext *runnableContext)
 
bool16 CanLoad () const
 
virtual
ISnipRunSuite::eSnpRunContextType 
GetContext (void)
 
- Public Member Functions inherited from SnpRunnable
 SnpRunnable (ConstCString name)
 
virtual ~SnpRunnable ()
 
virtual ConstCString GetName () const
 
virtual ConstCString GetDescription () const
 
virtual ConstCString GetPreconditions () const
 
virtual ConstCString GetCategories () const
 
virtual ErrorCode RunUnitTest (ISnpRunnableContext *runnableContext)
 
virtual ErrorCode SetupContext (ISnpRunnableContext *runnableContext)
 

Additional Inherited Members

- Protected Member Functions inherited from SnpRunnable
virtual void SetDescription (ConstCString description)
 
virtual void SetPreconditions (ConstCString preconditions)
 
virtual void SetCategories (ConstCString categories)
 

Constructor & Destructor Documentation

_SnpRunnerPerformNamedGrid::_SnpRunnerPerformNamedGrid ()

Constructor.

_SnpRunnerPerformNamedGrid::~_SnpRunnerPerformNamedGrid ()
virtual

Destructor.

Member Function Documentation

bool16 _SnpRunnerPerformNamedGrid::CanLoad (void ) const
virtual

Only present this snippet in the framework's UI if the language feature set is Japanese and the product is InDesign.

Returns
kTrue if the snippet can be loaded, kFalse otherwise.

Reimplemented from SnpRunnable.

bool16 _SnpRunnerPerformNamedGrid::CanRun (ISnpRunnableContextrunnableContext)
virtual

Return kTrue if the snippet can run.

Parameters
runnableContextsee ISnpRunnableContext for documentation.
Returns
kTrue if snippet can run, kFalse otherwise

Implements SnpRunnable.

ErrorCode _SnpRunnerPerformNamedGrid::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 _SnpRunnerPerformNamedGrid::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.
virtual ISnipRunSuite::eSnpRunContextType _SnpRunnerPerformNamedGrid::GetContext (void )
inlinevirtual

get the snippet context

Returns
eSnpRunContextType for this snippet

Implements SnpRunnable.

K2Vector<PMString> _SnpRunnerPerformNamedGrid::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 _SnpRunnerPerformNamedGrid::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 _SnpRunnerPerformNamedGrid::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 _SnpRunnerPerformNamedGrid::ReportNamedGridData (const SnpNamedGridSettingsdata)

Reports the named grid data to SNIPLOG.

Parameters
dataIN The named grid settings to report.
ErrorCode _SnpRunnerPerformNamedGrid::Run (ISnpRunnableContextrunnableContext)
virtual

Run the snippet.

Parameters
runnableContextsee ISnpRunnableContext for documentation.
Returns
kSuccess on success, other ErrorCode otherwise.

Implements SnpRunnable.