We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
Copy link to clipboard
I want to know when page items are duplicated. Command - kDuplicateCmdBoss.
I have Document Observer and I am able to observe kCopyPageItemCmdBoss which gets call during paste operation.
When user paste then I can get ICopyCmdData->GetInputItems and can determine whether copy is done from kScrapDocBoss or kDocBoss.
When user duplicate the spread then I can observe kCreateSpreadFromSpreadCmdBoss and from the duplicated spread, I can retreive the new page items.
But I did not find any way to capture kDuplicateCmdBoss and get list of duplicated items.
Any clues ?
My Investigations till now -
ICopyCmdData->GetRootCmd - this will give us kDuplicateCmdBoss.
State of kDuplicateCmdBoss is kNotDone.
So I am able to capture duplicate command but I want to know which are the new frames that got created from duplicate command.
We can observer document with IID_IDUPLICATE_DOCUMENT, command kDuplicateCmdBoss.