Skip to main content
Participant
July 3, 2022
Question

How get shape of path's end ("end end" and "end start") marker. inDesign plug-in SDK

  • July 3, 2022
  • 1 reply
  • 113 views

I try two variant:

Utils<IGraphicAttributeUtils>()->GetLineEndStartImplementation(m_EndStartMarker, styleDescriptor);
// IPathEndStroker* stroker = (IPathEndStroker*)styleDescriptor->QueryAttribute(kGraphicStyleLineEndStartAttrBoss, IID_IPATHENDSTROKER);
IPathEndStroker* stroker = (IPathEndStroker*)styleDescriptor->QueryAttribute(m_EndStartMarker, IID_IPATHENDSTROKER);

Both stroker receive nullptr. But variable m_EndStartMarker receive right value.

 

Do not found any mension about it at SDK samples.

This topic has been closed for replies.

1 reply

Legend
July 18, 2022

The persistent interfaces of kGraphicStyleLineEndStartAttrBoss and kGraphicStyleLineEndEndAttrBoss are IID_IGRAPHICATTR_CLASSID and IID_IINDETERMINATE_DATA.

 

IID_IPATHENDSTROKER is an interface on kPathEndStrokerService providers that are used perform the actual rendering, with concrete providers such as kBarArrowHeadBoss or kSquareSolidArrowHeadBoss. I'd expect those boss constants in the IID_IGRAPHICATTR_CLASSID, but can't verify that at the moment (looking at static old documents that have only kInvalidClass in there).

 

I also haven't had to deal with those IID_IINDETERMINATE_DATA, I'd first look for some related utils or facade.