cp#1000077: Set 'modified' document property more consistently.

Update document info at one place, so that it works for other formats
like .doc, .docx, ... too.

(cherry picked from commit 5c2ab70cc2dfb7cf0c2418433b3aa89d225742a4)

Conflicts:
	sd/source/ui/docshell/docshel4.cxx
	sw/source/core/uibase/app/docsh.cxx

Change-Id: If71799b491d2210f0d3bdbdb05f91f26c986a260
Use proper constructor to fill with system time.

Probably 86adb5cacb4fe3e7fb869299447da5876f0da30d did not mean to change
the behaviour here.

Change-Id: If39c150973c502323b3c785a9738cf65cdd74e5d
(cherry picked from commit fee87c6fda46923a564cd2574827a7beeffb1a1f)
Update also revision and editing time when setting 'modified' properties.

Change-Id: Id756ef6dd62ca8df2e62265b9cc930f07d13f2e3
(cherry picked from commit 6e87f0bb75734e464bb0160dc00ab2fbe1a8fac3)
cp#1000078: Replace "\r\n" with "\n" when pasting from X11 clipboard.

E.g. when pasting from terminal you will get "\r\n".

Writer inserts '\r' character into the document as an
invisible character. If you save that to .odt and reload, you will
get ' ' instead. Or when saving to .doc and reload, you will get '\n'.

Change-Id: Id6780bf6d71a8f0a17c1e6ee7a7dcb4d297446dc
(cherry picked from commit 278baa557d18136a2641c015f7077a5838188766)