[API CHANGE] tdf#171950 Add API to create 2- and 3- color scales
The existing API allows creating a color scale conditional format but it has no entries and there is no API to create an instance of XColorScaleEntry in order to add one. For data bars the existing API instead creates a conditional format with two existing entries and then you can use the XDataBarEntry interface to modify them. This patch makes the color scale API work like the databar one. It adds constants to ConditionEntryType to create a 2-color or 3-color scale which have the entries pre-created. This is an API change because it adds constants to an unpublished constant group. It also makes it so that the getType method on the conditional format will now return either COLORSCALE2 or COLORSCALE3 depending on the number of entries. In practice I think this is very unlikely to break any existing code. Change-Id: I28faa6c66ac3963220786e8da45a2d550058f095 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205944 Tested-by: Jenkins Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
This commit is contained in:
@@ -81,6 +81,7 @@ endif
|
||||
|
||||
$(eval $(call gb_Module_add_slowcheck_targets,sc, \
|
||||
CppunitTest_sc_anchor_test \
|
||||
CppunitTest_sc_color_scale_api \
|
||||
CppunitTest_sc_cond_format \
|
||||
CppunitTest_sc_cond_format_merge \
|
||||
CppunitTest_sc_copypaste \
|
||||
|
||||
Reference in New Issue
Block a user