<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Kohei and All,<br>
<br>
The last patch I've submitted is this one : see message below (Mon,
11 Apr 2011 01:09:00 +0200)<br>
<br>
The Dialog box look like the standard one. I've only added :<br>
- 1 scroolbar<br>
- 3 styles preview (font and background color)<br>
- 1 "Add" button (to add a new rule at the end of the list)<br>
- labels-numbering and fields-content are dynamicaly updated when
you use the scroolbar<br>
<br>
This version is fonctional and this patch is under LGPLv3+/MPL dual
license
<br>
<br>
Screen shot (not exactly the last version) :
<a class="moz-txt-link-freetext" href="http://archives.bobiciel.com/libo/condfrmt/condfrmt.jpg">http://archives.bobiciel.com/libo/condfrmt/condfrmt.jpg</a><br>
"Insert" button is replaced by "Add" button, like Christoph suggest<br>
<br>
A file with 4000 cells and many distinct conditionals formattings
(each with 100 rules)<br>
<span class="moz-txt-link-freetext"><a class="moz-txt-link-freetext" href="http://archives.bobiciel.com/libo/condfrmt/test_condfrmt_100.ods">http://archives.bobiciel.com/libo/condfrmt/test_condfrmt_100.ods</a></span>
<br>
<br>
I stay tuned (with delay because I've a lot of work until the and of
the week)<br>
<br>
Regards<br>
<br>
Bob<br>
<br>
-------- Message original --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Sujet: </th>
<td>Re: [Libreoffice] [PATCH] conditional formatting with an
unlimited number of rules</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date : </th>
<td>Mon, 11 Apr 2011 01:09:00 +0200</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">De : </th>
<td>Robert Dargaud <a class="moz-txt-link-rfc2396E" href="mailto:libo@bobiciel.com"><libo@bobiciel.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Pour : </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:libreoffice@lists.freedesktop.org">libreoffice@lists.freedesktop.org</a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Copie à :
</th>
<td>Katarina Machalkova <a class="moz-txt-link-rfc2396E" href="mailto:kmachalkova@suse.cz"><kmachalkova@suse.cz></a>, Christoph
Noack <a class="moz-txt-link-rfc2396E" href="mailto:christoph@dogmatux.com"><christoph@dogmatux.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Hi Katarina & Christoph (& All),
I have improved code like you suggest.
Le 06/04/11 17:56, Katarina Machalkova a écrit :
> 1) svx part of the patch is mostly OK ... except for the long list of new
> #includes. As the (French) comment says, not all of them are needed
added class name in comment and deactivated un-used #include (but can be
used in futur for other attributes preview like border, rotation, ...)
> 2) insert
see below, in Christoph's text
> 3) In ScConditionalFormatDlg::InsertEntry and ScConditionalFormatDlg::AddEntry
> -- instead of handling/copying array of pointers to conditional format entries
> in this way, it'd be cleaner to work with some C++ container holding the
> pointers to entries -- std::vector or boost::ptr_vector
I will work on this improvement a next time.
> 4) In ::Refresh and ::UpdateValueList (as well as ::CondNChecked) methods
> really, really lot of code is duplicated/copy&pasted around. That's on one
> hand consistent with the rest of the code in this class (yeah, unfortunately),
> but on the other hand not very nice.
The code is small improved, but I think that it will be necessary to
rewrite the entire class. I will work on it later.
> 5) Found a small buglet while testing (easy to fix) -- for newly appended
> condition entries, pre-selected style should be "Default". With your patch, it
> is the one that comes first in alphabetically sorted list (e.g. if I create a
> custom style named "Blue", it'll come before "Default" and all the newly
> created rules will have "Blue" style as default)
ok, it's fixed
Le 08/04/11 11:38, Christoph Noack a écrit :
> Hi Bob, hi Katarina, all!
>         
> [...]
> Quick fix:
> * Please add new entries always at the end of the list
> * Scroll down to this item automatically (after the button has
> been pressed and the new entry has been added)
> * Add new items without being checked in the check-box (good
> proposal from your side!)
>
> Furthermore, the name "Insert" might be confusing - it doesn't tell
> where the item will get added. Furthermore, the "1990s dialog
> layout" (vertical buttons) conflicts with the new functionality. So ...
>
> Quick fix:
> * Rename the "Insert" button to "Add"
> * Move the "Add" button below the "Help" button. --> New order:
> OK, Cancel, Help, Add (a bit distance between Help and Add would
> be good)
I've removed the "insert" functionality until I find a better solution
and added a "Add" button exactly like asked
>> (I hope my googled-english is readable ;-)
> Yep. And hehe, I hope my Christoph-English is readable as well ;-)))
:-)
> [...]
> I really hope this helped a bit ... and makes the feature really great
> for users. So if you have any comments, questions, ... please tell me.
Ok, thank for your help
> And - of course - I also have some ideas how to really improve the
> dialog and bring it to the "2010s" :-) But this may require a bit more
> work for all of us :-)
Me too, I've some ideas : It should be between the simplicity of Apple
Number and the gaz factory of MSO 2010 ;-)
But in first time, I wanted to propose a solution that does not disrupt
the current user interface.
Best regard
Bob
</pre>
</body>
</html>