Re: zero-length runs


Subject: Re: zero-length runs
From: Paul Rohr (paul@abisource.com)
Date: Fri Jan 26 2001 - 15:11:27 CST


At 11:15 AM 1/24/01 +1100, Martin Sevior wrote:
>On Tue, 23 Jan 2001, Paul Rohr wrote:
>> Other than those two cases, do we have any other zero-length runs? The
code
>> could certainly get a lot simpler in places if we didn't constantly have
to
>> work around them.
>
>I *THINK* that all special formating is done with zero length runs. These
>include:
>
>Line breaks
>Page Breaks
>Column breaks

Gack! You mean they don't Just Work the way tabs do? That sounds totally
busted. Wouldn't they need to have sizes for hit-testing and
selection-drawing to work properly?

Even when you're not in Show Paragraphs mode, the user should still be able
to use the usual mouse or keyboard mechanisms to select a single "invisible"
run (which highlights just like a space or tab would) and then delete the
corresponding break.

>Fields

Sigh. I'm still embarrassed that I never finished writing up the
description of how to implement fields as RTF-friendly containers. This
just makes it hurt more.

Kudos to Martin for coming up with a cool hack in the mean time, though.

Paul



This archive was generated by hypermail 2b25 : Fri Jan 26 2001 - 15:11:44 CST