Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

How to apply object style with its attributes

$
0
0
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


Viewing all articles
Browse latest Browse all 78596


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>