Skip to main content
subodhkID
Participant
May 21, 2015
Question

How to get Object Style "Text Frame General Options" properties.

  • May 21, 2015
  • 1 reply
  • 327 views

Hi,

I am developing a plug-in where i need to auto set values of Object Style "Text Frame General Options" properties like < Column, Number, width, Gutter >. I am not able to get API to get Text Frame General Options properties list.

is there any way to achieve this?

Thanks

This topic has been closed for replies.

1 reply

Legend
May 21, 2015

That's a tough one - I haven't yet done much with object styles, so I initially assumed some of the 394 attributes were involved. It turns out IID_ITEXTFRAMEDIALOGOPTIONSDATA holds the data on the style! Even though the IID is named …DIALOG… it is still model, the interface is ITextFrameOptionsData - a copy-paste nightmare.

Probably you have to use kEditObjectStyleCmdBoss, the aggregated parameter interfaces there are really fun. I'd revisit the SDK for those keywords, maybe a facade or util is around. Dependent on mood and urgency I'd either waste several hours to figure out more, or I'd burn a support request. For completeness sake there's also the poor man's approach via scripting.