How do I export my macro? and please tell me how to not allow same title in my wiki?

Hello.

I have developed a macro for Google Maps. So I want to export this macro. How can I export it?
And my wiki have a page what title is “Google Map”. I’d like to prohibit new “Google Map” page even though these parent are different.
Please tell me how to prohibit a page that the title already exists.
And Happy Holidays!

I have developed a macro for Google Maps. So I want to export this macro. How can I export it?

I assume you mean XAR export: if you are admin of you wiki you can export any page using the page menu → export → Other Formats → Export as XAR. See http://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Exports for more details.

Please tell me how to prohibit a page that the title already exists.

The is nothing to do that out of the box. I guess one way would be to create a listener listening to DocumentCreatingEvent and DocumentUpdatingEvent to fail the save if you find another document with the same name. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Local for more details about the listeners and the events.