avoid out-of-bounds access

Change-Id: I85bdec3291ca8292b0797b694be605663de31755
add a smoketest for wpftwriter import library

Change-Id: Id547964bb5e205ae8a42ad0b033bbcd1b9836408
add a smoketest for wpftdraw import library

Change-Id: I8433345edb51974856b30acbdb29da29a4ba01b8
move the writerperfect import tests to slowcheck

First, they really are slow (which is most likely a bug in the tests
themselves); second, there is no need to run them for every small
change.

Change-Id: I6ffafb82e105ae1fe22846b23ac5b55a3c5fd755
reduce the amount of copypasta

Change-Id: I19b75b29da91ba1057f7da786da18fb246d97598
sync cxx file names with class names

Change-Id: I97a6751520b90089caddd276a3a881908c47c67d
close the opened document correctly

Change-Id: I457d6a8f547e6b01b83db2d44e32fdcbe2fd718e