expand complex cascading conditional operator

Change-Id: I3546589bbfaf1f19a9e283bc33a4a9e65e516dbc
Reviewed-on: https://gerrit.libreoffice.org/13006
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>