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
Post a Comment