Theory of X-Ray Photoemission and X-Ray Emission Spectra in Mn Compounds