fdo#74424 Use Window::GetOutDev() to access ImplIsRecordLayout()

Part of the decoupling of Window from OutputDevice. We now get
the Window's OutputDevice instance and manipulate this. Do not rely
on the inherited function.

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