Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Responder/Notification/Observer for kDuplicateCmdBoss

Explorer ,
Aug 05, 2021 Aug 05, 2021

Copy link to clipboard

Copied

Hi,

 

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 ?

 

Regards,

Rahul Rastogi

 

 

TOPICS
SDK

Views

47

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Aug 07, 2021 Aug 07, 2021
Solution - We can observer document with IID_IDUPLICATE_DOCUMENT, command kDuplicateCmdBoss.

Likes

Translate

Translate
Explorer ,
Aug 05, 2021 Aug 05, 2021

Copy link to clipboard

Copied

My Investigations till now -

 

Observe kCopyPageItemCmdBoss

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. 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 07, 2021 Aug 07, 2021

Copy link to clipboard

Copied

LATEST

Solution -

 

We can observer document with IID_IDUPLICATE_DOCUMENT, command kDuplicateCmdBoss.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines