fdo#73300: sw: don't swap in all images when loading files

(regression from bd55f05b332c1573bd410fd9e21ea7fcf977e1b0)

Change-Id: I55532ac0fe983461e961a61149479343d2b879a1
add std::ostream operators for Region and PolyPolygon

Change-Id: I8f4129b840a27f3029643ad2a4852f9e10604905
fdo#73300: sw: GraphicObjects are never swapped out

In SwNoTxtFrm::PaintPicture() the GraphicObjects are no longer painted
via GraphicObject::Draw() any more there is the problem that they are
not cached any more in the display cache of the GraphicManager; that
used to immediately swap out the Graphic but now they are never swapped
out.  Since there appears to be no use of the GraphicManager's display
cache in the new drawinglayer based rendering path i have no idea how to
swap out the Graphic immediately; instead use the same time-out that
SdrGrafObj is using already.

This timeout is derived from the setting:
Tools->Options->LibreOffice->Memory->Graphics cache->"Remove from memory
after".

(regression from 2e5167528f7566dd9b000e50fc1610b7bf99132a)

Change-Id: I0d9b535a82646d9b6635cfb3917f74dcc3ad8720
remove GraphicObject::SetSwapStreamHdl() timeout parameter

Every call to SetSwapStreamHdl uses the same timeout now so move the
function that determines that to svtools.

Change-Id: Ib7395d43dd132a9e14e7a7862ff2c2279f319536
fdo#74435: SdrPageView::DrawLayer(): hack to avoid spuriously visible images

In the TestBook2.odt of fdo#73300 it happens that at some particular
points when scrolling down, the
ViewObjectContactOfPageHierarchy::getPrimitive2DSequenceHierarchy()
will determine that > 200 images are visible; most likely this is due to
an empty ObjectContactOfPageView::maViewInformation2D::getViewport().

Loading this many images may need more RAM than is available on 32bit
platforms.

That appears to happen only (but not always) if somehow (not sure
how exactly) the rectangle passed to SdrPageView::DrawLayer() and the
existing GetRedrawRegion() do not overlap at all.

(regression from commit 8af09bf33291df2fb2bfbbd6e42f9bf074fcc4fc)

Change-Id: Iafc595241df05204bccec1f2336014fc471b6602