expand complex cascading conditional operator

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