Resolves: #i123616# be more flexible regarding the data type for polygon data

(cherry picked from commit 66c81c1a26d6d09c75c8b8ced44e4a0cf43819ee)

Conflicts:
	svx/source/unodraw/unoshape.cxx

Change-Id: I5ebb7b39a083bb6e007853f205bb39d434eb94ad
Access by AnchoredObject of a deleted SwLayoutFrm

as demonstrated by abi10075-1.doc

just register the AnchoredObjects in the SwLayoutFrm and
inform them when the SwLayoutFrm goes away.

This crash was triggered by "1e113cb7604e1509e7d598a9be329f1f7b6e9322" import
different first page header/footer from doc. But that commit is blameless.

Change-Id: Ia079cc635a81dff1ccbf740641f441aa784328a4
safe STRING_NOTFOUND -> -1 conversion

Change-Id: Id66b9ff49289d90f2d0714bed84e886598f103ad
safe xub_StrLen -> sal_Int32 conversion

Change-Id: I43c6ee0b794b1b77b790e5c36c852a0746437164
n is immediately overwritten

Change-Id: I51c511efcfaf2d97cefa42abea1d3e42c023fbbd
longparas: disentangle same variable used over two different loops

Change-Id: I22bbd777cb86decbbf714f71ff0477053ae3b757
longparas: same variable used for two different loops of different types

Change-Id: I1efdeb3f9bbda47d8f465a04fb36164e7ffc347b
longparas: these sal_uInt64s are really xub_StrLens

Change-Id: I5d6222372e79e6ccbcd6529ce5c88b3f082934c6
longparas: these sal_uLongs are really xub_StrLens

Change-Id: Iebe3d5edccb6737da64aba5c3d61b9509ce7ec9d
longparas: these sal_uInt16s are really xub_StrLens

Change-Id: I54ecd08c4073f1de6dd28e7d6824d8cfde98254a