Add icon callbacks and decrypt selection action
This uses the same icons / icon ID's as the old extension and does not handle transparency. There is some prepared code to enable full alpha channel handling by using PNG included. * src/gpgoladdin.cpp (GetIDsOfNames): Return dispID's for new callbacks. Use new ID_MAPPER macro. (Invoke): Resolve getIcon and decryptSelection calls. (GetCustomUI): Add image callbacks and decrypt selection. * src/ribbon-callbacks.cpp (encryptSelection): Add missing free. (decryptSelection): New. Decrypt selected text and replace it by plaintext if decryption was successful. (getIcon): Create picturedispatcher on the queried ressource bitmap. * src/ribbon-callbacks.h: Add new ID's and prototypes
- The old image mechanism for CommandBar items was to combine a trasparancy mask with a picture bitmap to create transparent images. This can no longer be used and the suggested / documented way instead is now to use bitmaps generated from PNGs. For now we just return the picture part of the bitmaps. Looks ugly but should be ok for now.