How to override master iems
hi all,
i've been trying override master items following codes, nothing happen.
pls kindly let me know what's wrong this.
thanks in advance,
kimmex
//---------------------------- code snippets---------------------------------------------------------------------------------
do
{
uidlist pageuids;
idocument* idocument = utils<ilayoutuiutils>()->getfrontdocument();
if (idocument == nil) { sdkerrorhelper::message("idocument == nil"); break; }
// document's database
idatabase* idatabase = ::getdatabase((ipmunknown*)idocument);
if (idatabase == nil) { sdkerrorhelper::message("idatabase == nil"); break; }
uidlist pageslist(::getdatabase(utils<ilayoutuiutils>()->getfrontdocument()));
cmdutils::processcommand(utils<imasterspreadutils>()->createoverridemasterpageitemscmd(pageslist));
} while(false);
your pageslist blank.
More discussions in InDesign SDK
adobe
Comments
Post a Comment