• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Responder/Notification/Observer for kDuplicateCmdBoss

Contributor ,
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

171

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

Contributor , Aug 07, 2021 Aug 07, 2021

Solution -

 

We can observer document with IID_IDUPLICATE_DOCUMENT, command kDuplicateCmdBoss.

Votes

Translate

Translate
Contributor ,
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. 

 

Votes

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
Contributor ,
Aug 07, 2021 Aug 07, 2021

Copy link to clipboard

Copied

LATEST

Solution -

 

We can observer document with IID_IDUPLICATE_DOCUMENT, command kDuplicateCmdBoss.

Votes

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