expand complex cascading conditional operator

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