How to create cell level adornments


i have implemented interface icelladornment in custom celladornment.cpp file.

i have tried add cell adornments using following code

 

 

uid tableuid = tableuidref.getuid();

uidlist items = uidlist(tableuidref);

uidlist adornmentcmditems(items.getdatabase());

interfaceptr<icommand>  cmd((icommand*)::createobject(kdiagnolcelladornerboss, iid_icommand));

cmd->setitemlist(items);

interfaceptr<iclassiddata>  classiddata(cmd, usedefaultiid());

classiddata->set(kcelladornmentboss);

errorcode error = cmdutils::processcommand(cmd);

 

but piece of code fails while creating "cmd" object.

basically know how add cell level adornments, such draw method of celladornment.cpp called.

i not able find related documentation.

 

-annette



More discussions in InDesign SDK


adobe

Comments

Popular posts from this blog

after effects warning: unable to create drawing surface

Maximum number of authorizations reached!