New graf2d/graf/doc macros

A serie of macros needed to build the Doxygen version of the reference
guide.