sw/paint: replace bools by enum in DrawGraphic method
sw/paint: replace bools by enum in DrawGraphic method

This change has 2 purposes:
  * fix gradient background when writing pdf. Before a gradient filled
frame would be displayed as white (or transparent), because the transp.
rendering mode was taking precedence over the gradient one.
  * making the code more readable by grouping multiple conditions in
an enum.

Change-Id: I5a30756b72be5eabf364c67e175c7b9d22bfa1c0
Reviewed-on: https://gerrit.libreoffice.org/5759
Reviewed-by: Miklos Vajna <16f13092e03e3d9e997de904d0f86cc803fb6ef7@collabora.co.uk>
Tested-by: Miklos Vajna <16f13092e03e3d9e997de904d0f86cc803fb6ef7@collabora.co.uk>

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core