QDoc: Decouple HrefResolver from Generator statics
HrefResolver calls Generator static functions for anchor
sanitization, QML type context resolution, and link error
suppression. It also creates a fresh inclusion policy from
the global configuration on every URL computation call.
These hidden dependencies make HrefResolver difficult to
test in isolation and tie it to Generator's global state.
This moves all dependencies into the configuration struct
as injected callbacks and values. The inclusion policy is
stored in the config rather than created per call. The QML
type context callback returns a const pointer, reflecting
its read-only nature in inheritance resolution. HrefResolver
no longer includes any Generator or Config headers and can
be tested with plain struct construction.
Fixes: QTBUG-144552
Change-Id: I52cc6b2e341820b50554ce07e3d5c93b8657af7a
Reviewed-by: Topi Reinio <topi.reinio@qt.io>