sal_uInt16: constify and reduce scope + int to sal_uInt16

Change-Id: I68757c5e8367d97d707c77df2b7cf5ba6404ab58
Constify two OUStrings

Change-Id: Ia136841959480212b2f7e525544e5e2f52064990
Constify 2 sal_uInt16

Change-Id: I24cdc87e87f3b7d05678eeb86df9a179cba10328
No need to use/store those OUStrings

Change-Id: Ied28223690f6672fbd99984fb9a5b44353138594
sal_uInt16 to sal_uInt32/size_t + constify

Change-Id: I948990f551b4096aa5575090315ab66fc4eb368d
OUString: avoid temporaries and constify

Change-Id: I12762daed58e8006e95cc10c3ba0b1d7564a012e
Use GetRowOfPage

Change-Id: Ieb6e268223aabea42f5df0d69a8b8d4498eaba77
Simplify GetRowOfPage and GetColOfPage

Change-Id: Iebe6c17a057999a20a46fb6ea756dc1c0a052dbc
Constify sal_uInt16 and sal_Int16 to sal_uInt16

Change-Id: Ie03f3591279f7cedff6f5acf3af46bebf3d2c1b1
No need of else after a return

Change-Id: I7f7bb520085f0d1855dce8656a54e5f72f2b5ed5
Simplify return paths/expressions

Change-Id: I198b3d349934837f7b7e6b49bf4b2a7785736a61
Simplify IsPreviewPosInDocPreviewPage

Change-Id: I6c1a57dc7095125f36ffe5ad0a4fd54ba240287f
sal_uInt16 to size_t

Change-Id: I25e92cc92aaa2b5b808b7c369101055b5f77aff3
OUString: avoid temporaries and concatenated appends

Change-Id: I55843e876f1a01c7800cd638fc0ec0bae4933994
Use more proper integer types

Change-Id: Ia16638564b54d4ac0fb1ce2ede41f0c76cc7df53
OUString: remove temporaries and concatenated appends, constify

Change-Id: Iea37617435e69a51bb0d70740092f0489f58e41a
Simplify sw_GetCellPosition

Change-Id: If672256b85c1e0a6534055844c3df936c0636c3f
Function description says negative values mean errors

Change-Id: Ief7639dc857c3123a1696d2221e6c64cd2276397