Spectral functions of quantum dots in the integer and fractional quantum Hall regime