Hi All,
I am working on InDesign CS4 plugin. and want to apply the object style on page items.
When I am applying the object style to page item, then only object style is applying to those page items but its attribute are not applying.
e.g. TextFrameObjectStyle which have stroke value 8, then TextFrameObjectStyle is appying but stroke value is not applying.
The source code which i am using as follows;
------------------------------------------------------------------------------------------ -----------------------------------------------------------------------------
InterfacePtr<IStyleGroupManager> iStyleGroupManager(document->GetDocWorkSpace(), IID_IOBJECTSTYLEGROUPMANAGER);
UID objectStyleUID = iStyleGroupManager->FindByName(inStyleNameStr);
InterfacePtr<ICommand> applyObjectStyleCmd(CmdUtils::CreateCommand(kApplyObjectStyleCmdBoss));
InterfacePtr<IUIDData> iUIDData (applyObjectStyleCmd, UseDefaultIID());
iUIDData->Set(db, objectStyleUID);
applyObjectStyleCmd->SetItemList(splineUIDList);
CmdUtils::ProcessCommand(applyObjectStyleCmd);
------------------------------------------------------------------------------------------ --------------------------------------------------------------------------------
Please let me know if I am missing something else?
Regards,
Jitendra