Removing conditional formats via UNO in LibreOffice
Hi all, I am locked up in a situation where I want to *remove* an existing conditional format from a cell range. The minimal example (supposed to be run in a spreadsheet context) looks as follows: sub remove dim sheet as variant dim cell as variant dim cond as object sheet = thisComponent.sheets.getByIndex(0) cell = sheet.getCellByPosition(3, 0) cond = cell.conditionalFormat cond.clear() cell.conditionalFormat = cond end sub In OpenOffice.org 3.21, this last three lines would effectively *replace* the pre-existing conditional format attached to cell (3, 0). In the meantime (since LibreOffice 4.1.6.2.0 and still in 4.3.1.2) the semantics has changed such that the re-assignment in the last line does not replace pre-existing conditional formats but *adds* another (here, empty) conditional format entry to the cell. Btw. the same occurs if I operate on a whole cell range rather than a single cell. I guess this change is mainly due to conditional formats now applying to whole cell ranges rather then single cells. So, my question: a) Is this subtle change above a breakdown or a deliberate change of the API semantics? b) If the change is deliberate, how am I supposed to remove existing conditional formats now? c) If the change is a breakdown, I am willing to examine further details also. Thanks a lot, Florian -- PGP available: http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: LiMux student kick-off
On Wed, 2014-09-24 at 14:18 +0200, Florian Haftmann wrote: From a bird's-eye perspective, this would IMHOP consist of the following tasks: The current matter of affairs is now documented in the Wiki. https://wiki.documentfoundation.org/Development/LHM_LiMux#Priority_Main_Loop To be continued… Florian -- PGP available: http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de signature.asc Description: OpenPGP digital signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: LiMux student kick-off
since the LiMux students are already working on various LO EasyHacks, I really want to get the long-term projects started. We're using currently using the #libreoffice-lhm channel for communication. I hope the respective groups get organized themself. And I hope I have all involved persons in the CC. And here is an initial wiki page for our benefit: https://wiki.documentfoundation.org/Development/LHM_LiMux Florian -- PGP available: http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de signature.asc Description: OpenPGP digital signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: LiMux student kick-off
Hi all, * VCL: main-loop / timeout foo [ menTor ;-] + Making our main-loop have an 'idle' concept with priorities vs. mix match timers. + Tobias Madl + Jennifer Liebel LHM: Florian Haftmann this issue did not raise much attention so far in this thread, so I'll try to excite some… From a bird's-eye perspective, this would IMHOP consist of the following tasks: * Identify the hot-sport where events are announced. * Formally extend this interface with a priority parameter with not-yet a meaning. * Refine the event data structure to interpret priorities accordingly. * Classify all existing event sources with desired priorities. * Adjust priorities accordingly. Any comments or hints? Otherwise I guess the first item is the one to start with. All the best, Florian -- PGP available: http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de signature.asc Description: OpenPGP digital signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice