Finish rework of QueryDeleteDlg_Impl

This reverts commit a74b3e89c9b853338506249b0fac8d5f54909de7.

Change-Id: Id670a2b66e61d3a4dceb9640d6ae34e9116691c0
enable-debug in libebook if the ENABLE_DEBUG is active

Change-Id: If26bdd6ed0be59a4fff137ac3166b9d644e1aea7
Fix crash on abi2010-1.doc example

Change-Id: Ib3e43e14f9223bc53f20f1241d9b8c0eaa5470ad