Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
You won't.
Instead use services, namely text preprocess or postprocess services.
Search for IID_ITEXTEDITPOSTPROCESS, kEditCmdPostProcessService, CTextCommandPostProcess
Copy link to clipboard
Copied
If this is for UI, you'd watch the selection instead, eventually even create an own suite.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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_abd
I'm not into real plug-ins, but can't you just monitor built-in track changes functionality?
Copy link to clipboard
Copied
As of above, use kEditCmdPostProcessService to see the result.
If you want to interfere with the pending command before the change (change inserted text, adjust the applied range, filter modified text attributes), use the matching preprocess.
As a service, this catches all stories without attach/detach etc.