Re: Persistent document range markers?

From: Martin Sevior <msevior_at_gmail.com>
Date: Mon Aug 01 2011 - 07:51:09 CEST

Hi Ben,

What is the purpose of this listener? Do you want to update the
document view upon changes within the begin and end-points of the PDF
markers?

This could get complicated. Can't you re-use the existing mechanisms
we have for hyperlinks and annotations?

Cheers

Martin

On Sun, Jul 31, 2011 at 4:15 PM, Ben Martin
<monkeyiq@users.sourceforge.net> wrote:
> Hi,
>  I'd like to have "begin" and "end" PT_DocPosition like markers which
> can mutate with the document and which can call a notification function
> when text inside that range changes. By mutate I mean if you insert a
> character in the range then the "end" marker is incremented.
>
>  This seems to be similar to what the various Listener classes are
> doing. In particular pt_PieceTable::tellListenerSubset() seems to be the
> code to run the show. Though my listener use case is persistent range
> markers. Of course the notification function might also invalidate a
> cache if something "significant" changes.
>
>  My use case is for RDF, having a section of the document watched by a
> listener and if new xml:id or RDF links are put in then the
> RDFRangeListener will know it needs to update its RDF iterators to
> possibly include new RDF in results. The RDFRange would also have to
> keep an eye on the raw RDF to see if any new results link in that way.
>
>  Any recommendations of code that monitors a persistent range in the
> doc would be greatly appreciated. Otherwise at least I know I'm not
> duplicating wheels when I write it ;)
>
>
Received on Mon Aug 1 07:51:16 2011

This archive was generated by hypermail 2.1.8 : Mon Aug 01 2011 - 07:51:16 CEST