Skip to main content
Known Participant
July 29, 2008
Question

[CS3] How to get a list of paragraph styles?

  • July 29, 2008
  • 4 replies
  • 689 views
This topic has been closed for replies.

4 replies

Known Participant
July 31, 2008
Hello amitgupta!

This helped. It works now.

Thanks
Alois Blaimer
Participating Frequently
July 30, 2008
Hello Alois,

Look for "Style Group Porting Tasks" in CS2to CS3 porting guide.
Style groups have changed the way it used to work. With CS3 IStyleGroupManager is handling these.

- Amit Gupta
MetaDesign Solutions
www.metadesignsolutions.com
Known Participant
July 30, 2008
Hello amitgupta!

The code seems to be for an earlier version of InDesign.

IID_IPARASTYLENAMETABLE is in the header file replaced by IID_IPARASTYLENAMETABLE_OBSOLETE.

And I get only one paragraph style. A Javascript programm shows two paragraph styles.

Alois
Participating Frequently
July 29, 2008
Hello Alois,<br /><br />Try fetching IStyleNameTable interface using IDocument.<br /><br />InterfacePtr<IStyleNameTable> Para_Style_List(iDoc->GetDocWorkSpace(), IID_IPARASTYLENAMETABLE);<br /><br />Hope this helps<br /><br />- Amit Gupta<br />MetaDesign Solutions<br />www.metadesignsolutions.com