Hi Max,
On 21.09.2007 21:19, Maximilian Odendahl wrote:
I want to sort fields in the order of appearance.
I am trying with:
return (*a->pFmtFld->GetTxtFld()->GetPosition())
<
(*b->pFmtFld->GetTxtFld()->GetPosition());
This works fine with text, tables etc, but not with e.g. frames which
are on top of the document, they are always first. Using
pFmtFld->GetTxtFld()->GetTxtNode().GetIndex(), I am having of course the
same issues.
you could do a check if the text node is located inside a frame. In this
case you could additionally check the "position" of the anchor. How does
the current code (I guess in content.cxx) sort the notes?
Regards,
Frank
--
Frank Meies (fme) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]