refact ui header file include
refactor ObjectFactor and move it to base
fix ObjectFactory refactor issue
fix other platform compile error
fix win7 compile error
fix template
Merge pull request #6971 from andyque/refactorUIFramework

refactor ObjectFactory