How to get and set an object style to page item
Hi everyone,
I was autoflowing an overset page item programmatically, but noticed that autoflowing doesn't apply the ObjectStyle of the overset page item.
So I thought I'd iterate through all the boxes created by AutoFlow and give them an object name and style.
On the name no problem, but as regards the object style I have some problems.
I have no idea how to get and how to give a box an object style.
I've tried something like this, but was unsuccessful.
InterfacePtr<ICommand> applyObjectStyleCmd(CmdUtils::CreateCommand(kApplyObjectStyleCmdBoss));
if(!applyObjectStyleCmd)
break;
applyObjectStyleCmd->SetItemList(listOfPageItemToApplyObjectStyle);
InterfacePtr<IUIDData> UIDData(applyObjectStyleCmd, UseDefaultIID());
if(!UIDData)
break;
UIDData->Set(DATABASE, UIDStyle);
if(CmdUtils::ProcessCommand(applyObjectStyleCmd) != kSuccess)
break;listOfPageItemToApplyObjectStyle --> rapresent all the page item created by autoflow
UIDStyle --> rapresent the style that i want to appy to boxes, I set it simply by looking for it by name, but I would like the page item to be overset
Stefano

