Fix timing to set line num margin on print
Fix print preview didn't update after changing of header setting
Tweak integer cast
Refactor CEPrintView class
Fix print header/footer margin updating
Refactor a bit
Merge branch 'refs/heads/fix/issue122_lineNumPrint' into develop