Skip to main content
Inspiring
Oct 27, 2024 1:18 PM UTC
Question

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

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

6 replies

Robert at ID-Tasker
Legend
Oct 28, 2024 11:51 AM UTC

@alam_84

 

What exactly is your end goal?

 

Translate
alam_84Author
Inspiring
Oct 28, 2024 11:57 AM UTC

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.

Translate
Robert at ID-Tasker
Legend
Oct 28, 2024 12:02 PM UTC
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? 

 

Translate
Legend
Oct 28, 2024 10:34 AM UTC

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

Translate
Legend
Oct 28, 2024 10:32 AM UTC

You won't.

Instead use services, namely text preprocess or postprocess services.

Search for IID_ITEXTEDITPOSTPROCESS, kEditCmdPostProcessService, CTextCommandPostProcess

Translate