Skip to main content
Participant
June 16, 2011
Question

Graphic frames in a document...

  • June 16, 2011
  • 1 reply
  • 365 views

hi to all,

I need all and only graphic frames  of a document?

what is the right interface?

like InterfacePtr<IStoryList> for story of text frames...

thanks in advance!

This topic has been closed for replies.

1 reply

Inspiring
June 16, 2011

Hi,

I think you can try this :

bool YourClass::IsGraphicFrame(const UIDRef& graphicFrameRef)
{
    InterfacePtr<IGraphicFrameData> graphicFrameData(graphicFrameRef, UseDefaultIID());
    // Test not nil
   
    return Utils<IPageItemTypeUtils>()->IsGraphicFrame(graphicFrameRef)
             || (graphicFrameData->IsGraphicFrame() && !graphicFrameData->HasContent());
}

Good luck