Kaydet (Commit) bcc36b63 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 58f121ef
......@@ -478,6 +478,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.kde5 - KDE5
@li @c vcl.layout - Widget layout
@li @c vcl.lazydelete
......
......@@ -557,6 +557,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);
}
}
......
......@@ -21,6 +21,7 @@
#include <com/sun/star/datatransfer/UnsupportedFlavorException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <sal/log.hxx>
#include <sal/types.h>
#include <osl/diagnose.h>
......@@ -142,6 +143,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