In the GUI when I switch the Format in the DropDown the size is set automatically.
Isn't there any uno-service I could use for this purpose
No. The dialog has an internal list but there is no uno-service available for this purpose.