expand complex cascading conditional operator

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