add parameter to supress dialog

With the new parameter you can now supress the dialog for document
compare in writer.

Change-Id: I984ee75552e5c006332331510df5d437b687903f
(cherry picked from commit 450cb7831f077df43582de15631de3886888e9e0)

Conflicts:
	sw/source/ui/uiview/view2.cxx