In numerical terms -
Nikon flange focusing distance is 46.5mm, Leica M lenses 27.8mm. To achieve focus of M lenses on D700 you need to bring the lens 18.7mm deep towards the sensor, and that is after getting the mirror assembly out of the way.
But for Leica R lenses - flange focusing distance of 47mm, there are adapters.
Ryan