expand complex cascading conditional operator

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