Use parameter instead of static global access inside the module.

SwPaintProperties is now just use by SwFrm and derivated classes, plus two globales functions.

Change-Id: Icfe299163a4a8f1232a3d5076aceb949f97a4787
Reviewed-on: https://gerrit.libreoffice.org/13258
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>