again, AFAICT document.h don't include msgwindow.h, so please, consistency :)