[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: KSpread: Style Storage
From:       "Tomas Mecir" <mecirt () gmail ! com>
Date:       2006-06-22 11:55:47
Message-ID: 492258b10606220455w6fc2663k567f8aae8399b53d () mail ! gmail ! com
[Download RAW message or body]

On 6/22/06, Ariya Hidayat <ariya@kde.org> wrote:
> Easier if you consider that "named style" is a formatting piece, i.e.
> do not break it into separate independent pieces.
>
> Example:
>
> (1) empty blank sheet
> -> no piece at all
>
> (2) apply style "Foo" which has attribute "yellow background" to range A1:B10
> -> we have one format piece
>   range A1:B100 : style Foo
>
> (3) change column B to bold
> -> we have two format pieces
>   column B: bold on
>   range A1:B100 : style Foo
> the painting routine would see that e.g. cell B1 is "bold, with yellow
> background"
>
> (4) change style Foo to contain also attribute "font is Arial"
> now we just need to clear our merged formats (if such cache is
> implemented), and repaint everything again. here the painting routine
> would see that e.g. cell B1 is "bold, with yellow background, with
> font Arial" because it should look-up again the actual format
> correspond to style Foo.
>
> Or am I missing something?

There are some operations that could really mess up with this, for
example, there's sorting with option of moving formatting with cells,
attempting to sort something with multiple formatting pieces that
overlap in a multitude of ways would make the whole thing rather
messy.

/ Tomas
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic