Skip navigation
Daves61
Currently Being Moderated

How to know the name of paragraph style group being deleted from InDesign?

Aug 30, 2012 5:45 AM

Tags: #plugin #paragraph_style_group #indesign_ #style_group_deleted #kdeleteparastylegroupcmdboss

Hi.

 

I am working on a plugin and need to know the name of paragraph style group being deleted from InDesign.

 

I have implemented a document observer and attached IID_IPARASTYLEGROUPMANAGER. With this I can get the notification whenever any paragraph style group is deleted. The value of "theChange" is kDeleteParaStyleGroupCmdBoss.

 

Now i tried to get the pointer to IUIDData for this command but I got Null pointer. This must be because the group has already been deleted by then.

 

Is there any way to get the name of style group when it is deleted?

 
Replies
  • Currently Being Moderated
    Aug 30, 2012 11:23 PM   in reply to Daves61

    The style group is already deleted on that notification.

    In some cases InDesign sends pre-notifications with a different command state, unfortunately here it is missing.

    I'd probably build a map(UID/name) on opening the document and maintain it e.g. on rename.

    Alternatively you can watch every command before execution (interceptor etc.) even though that is not recommended for performance reasons.

     

    Dirk

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points