Skip to main content
Inspiring
October 27, 2024
Question

what protocol and subject I need to use to observe content change in text story

  • October 27, 2024
  • 3 replies
  • 379 views

HI All,

 

I am working on an indesign c++ plugin and looking for a solution for following scenario

what protocol and subject I need to use to observe content change in text story.

in autoattach, autodetach and update function

 

 

Regards,

Alam

3 replies

Robert at ID-Tasker
Legend
October 28, 2024

@alam_84

 

What exactly is your end goal?

 

alam_84Author
Inspiring
October 28, 2024

Hi Robert,

 

Suppose initially my text box has a content "Hello world" when user update (insert/delete) contents e.g "Hello world Welcome" then i should be notify about content change.

Robert at ID-Tasker
Legend
October 28, 2024
quote

Hi Robert,

 

Suppose initially my text box has a content "Hello world" when user update (insert/delete) contents e.g "Hello world Welcome" then i should be notify about content change.


By @alam_84

 

I'm not into real plug-ins, but can't you just monitor built-in track changes functionality? 

 

Legend
October 28, 2024

If this is for UI, you'd watch the selection instead, eventually even create an own suite.

Legend
October 28, 2024

You won't.

Instead use services, namely text preprocess or postprocess services.

Search for IID_ITEXTEDITPOSTPROCESS, kEditCmdPostProcessService, CTextCommandPostProcess