Magnetic Line Groups