Kaydet (Commit) 5337a84a authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add a couple of SAL_INFOs about types available on the system clipboard

Change-Id: I821a699ee4f44881aadac89f265974a10095b544
üst 313984a5
......@@ -466,6 +466,7 @@ certain functionality.
@li @c vcl.headless - bitmap-based backend
@li @c vcl.helper
@li @c vcl.icontest
@li @c vcl.ios.clipboard
@li @c vcl.kde4 - KDE4
@li @c vcl.kde5 - KDE5
@li @c vcl.layout - Widget layout
......
......@@ -556,6 +556,8 @@ DataFlavorMapper::typesArrayToFlavorSequence(NSArray* types) const
{
flavors.realloc(flavors.getLength() + 1);
flavors[flavors.getLength() - 1] = oOOFlavor;
SAL_INFO("vcl.ios.clipboard",
"Mapped " << [sysFormat UTF8String] << " to " << oOOFlavor.MimeType);
}
}
......
......@@ -142,6 +142,17 @@ void iOSTransferable::initClipboardItemList()
throw RuntimeException("Cannot get clipboard data", static_cast<XTransferable*>(this));
}
#ifdef SAL_LOG_INFO
NSString* types = @"";
for (unsigned i = 0; i < [pboardFormats count]; i++)
{
if ([types length] > 0)
types = [types stringByAppendingString:@", "];
types = [types stringByAppendingString:[pboardFormats objectAtIndex:i]];
}
SAL_INFO("vcl.ios.clipboard", "Types on clipboard: " << [types UTF8String]);
#endif
mFlavorList = mDataFlavorMapper->typesArrayToFlavorSequence(pboardFormats);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment