expand complex cascading conditional operator, step 2

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