Mathtype compatibility sourcecode

where can I get source code of libre writer converting mathtype equations from .docx files?

You can use http://opengrok.libreoffice.org/ to search in the source code.