Skip to main content
Participating Frequently
May 20, 2010
Question

How to create a group of some of the items of a page programatically.

  • May 20, 2010
  • 1 reply
  • 1056 views

Hi,

I am able to create a group of all Items of a page successfully. But I want to create a group of some of the item of the page.

Below is my code snape:

InterfacePtr<ICommand> groupItemsCmd(CmdUtils::CreateCommand(kGroupCmdBoss));

ASSERT(groupItemsCmd);

if (!groupItemsCmd) {

return;

}

InterfacePtr<IGroupCmdData> groupCmdData ( groupItemsCmd, UseDefaultIID());

groupCmdData->Set(itemsOnPageNew);

ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd);

if (status != kSuccess){

ASSERT_FAIL(

"kGroupCmdBoss failed");

break;

}

So how I can create UDList of some of the control of the page .

Any help will be appreciable.

Thanks,

This topic has been closed for replies.

1 reply

May 20, 2010

UIDList it's a vector of UID 's. So you can add and remove UID of any page item.

Regards

Bartek

Participating Frequently
May 20, 2010

thank for your reply  Bartek.

I want to know how to Identify perticular items by it tag name.

Thanks,

Upendra

May 20, 2010

If you have a tagged frames - that are displayed in document structure - you can use IXMLUtils to get connected frame. Also you can iterate through all page items that you already have and check if that page item is tagged and obtain the actual tag.

Bartek