Examples, semaphorgrid, corrected macro LCLWidgetType

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@40659 4005530d-fff6-0310-9dd1-cebe43e6787f
Cherry picked LazReport, editor sample, added extra exporters image and pdf by default
LazReport, formalize the hyphenation support exception and make the editor sample ignore it

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@40652 4005530d-fff6-0310-9dd1-cebe43e6787f
Workaround for Carbon not detecting bsClear brush style
Invalidate layered objects, also fix attempt to get canvas cliprect when canvas handle is not allocated.
Check if region is valid before deleting
Enable/Disable events while object editor is visible
This helps under mac so focus rect is not drawn
while the object editor is visible