Resolves: #i123629# [ia2] Invalid focus event fired after editing cell

Some Coverity issues fixes
(cherry picked from commit 5478c54be2de808663565e53250c8a4055b390c9)

Conflicts:
	sc/source/ui/inc/AccessibleCell.hxx
	sc/source/ui/inc/tabvwsh.hxx
	sc/source/ui/view/cellsh4.cxx
	sc/source/ui/view/tabvwsh4.cxx

Rolled back some coverity issue fixes for mac build

(cherry picked from commit 15e6a8263ae6181ac4912b94af8cb63adc34a86d)

Conflicts:
	sc/source/ui/inc/AccessibleCell.hxx

a727d3c7f819c8d0082a9fb017351d5307877fa6

Change-Id: I03b63c655bd55e5fb92d95490eaa4bb081b8ee7d