I think that the right solution would be to copy the various strings in the correct places as the #defines are not applicable in the new code (in particular in the if with the or) and should be deleted.
On a side note, in the same file I've found this comment in function Glib::ustring ClipboardManagerImpl::_getBestTarget():
// If both bitmap and metafile are present, pick the one that was exported first.
Couldn't this be the source of the problem of when a bitmap paste is done also for a vectorial copied objects?
Instead of giving precedence to the first exported, shouldn't it be given to the metadata, if present?
For now I've just reinserted the two lines:
#define CLIPBOARD_ WIN32_EMF_ TARGET "CF_ENHMETAFILE" WIN32_EMF_ MIME "image/x-emf"
#define CLIPBOARD_
and so I could compile.
I think that the right solution would be to copy the various strings in the correct places as the #defines are not applicable in the new code (in particular in the if with the or) and should be deleted.
On a side note, in the same file I've found this comment in function Glib::ustring ClipboardManage rImpl:: _getBestTarget( ):
// If both bitmap and metafile are present, pick the one that was exported first.
Couldn't this be the source of the problem of when a bitmap paste is done also for a vectorial copied objects?
Instead of giving precedence to the first exported, shouldn't it be given to the metadata, if present?