How can I get the graphic in the XTextContent when I traverse all items of swriter Document

I iteraters all paragraph and portion, but in one paragraph or portion(XTextRange type), how can I get the graphic ? thanks very much. maybe is that any propery value ? I don’t know the way . please someone tell me. thanks.

I know the way get all graphics in the document by xDrawPagesSupplier->getDrawPages().
but I don’t know which XTextContent or XTextRange the graphic in. Maybe it’s another way what the relation is between the graphic and paragraph .thanks