DataFlavorMapping.cxx (1cc6f0e2) DataFlavorMapping.cxx (76e2130f)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 594 unchanged lines hidden (view full) ---

603 on the Mac, let us not provide but provide normal HTML
604
605 if ([systemFlavor caseInsensitiveCompare: NSHTMLPboardType] == NSOrderedSame)
606 {
607 dp = DataProviderPtr_t(new HTMLFormatDataProvider(data));
608 }
609 else
610 */
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 594 unchanged lines hidden (view full) ---

603 on the Mac, let us not provide but provide normal HTML
604
605 if ([systemFlavor caseInsensitiveCompare: NSHTMLPboardType] == NSOrderedSame)
606 {
607 dp = DataProviderPtr_t(new HTMLFormatDataProvider(data));
608 }
609 else
610 */
611 if ([systemFlavor caseInsensitiveCompare: NSPICTPboardType] == NSOrderedSame)
611#ifdef MAC_OS_X_VERSION_10_6
612 if ([systemFlavor caseInsensitiveCompare: NSPasteboardTypePNG] == NSOrderedSame)
612 {
613 {
614 dp = DataProviderPtr_t( new PNGDataProvider( data, NSPNGFileType));
615 } else
616#endif // MAC_OS_X_VERSION_10_5
617 if ([systemFlavor caseInsensitiveCompare: NSPICTPboardType] == NSOrderedSame)
618 {
613 dp = DataProviderPtr_t( new PNGDataProvider( data, PICTImageFileType));
614 }
615 else if ([systemFlavor caseInsensitiveCompare: NSTIFFPboardType] == NSOrderedSame)
616 {
617 dp = DataProviderPtr_t( new PNGDataProvider( data, NSTIFFFileType));
618 }
619 else if ([systemFlavor caseInsensitiveCompare: NSFilenamesPboardType] == NSOrderedSame)
620 {

--- 31 unchanged lines hidden (view full) ---

652 if ([systemFlavor caseInsensitiveCompare: NSStringPboardType] == NSOrderedSame)
653 {
654 dp = DataProviderPtr_t(new UniDataProvider(systemData));
655 }
656 else if ([systemFlavor caseInsensitiveCompare: NSHTMLPboardType] == NSOrderedSame)
657 {
658 dp = DataProviderPtr_t(new HTMLFormatDataProvider(systemData));
659 }
619 dp = DataProviderPtr_t( new PNGDataProvider( data, PICTImageFileType));
620 }
621 else if ([systemFlavor caseInsensitiveCompare: NSTIFFPboardType] == NSOrderedSame)
622 {
623 dp = DataProviderPtr_t( new PNGDataProvider( data, NSTIFFFileType));
624 }
625 else if ([systemFlavor caseInsensitiveCompare: NSFilenamesPboardType] == NSOrderedSame)
626 {

--- 31 unchanged lines hidden (view full) ---

658 if ([systemFlavor caseInsensitiveCompare: NSStringPboardType] == NSOrderedSame)
659 {
660 dp = DataProviderPtr_t(new UniDataProvider(systemData));
661 }
662 else if ([systemFlavor caseInsensitiveCompare: NSHTMLPboardType] == NSOrderedSame)
663 {
664 dp = DataProviderPtr_t(new HTMLFormatDataProvider(systemData));
665 }
666#ifdef MAC_OS_X_VERSION_10_6
667 else if ([systemFlavor caseInsensitiveCompare: NSPasteboardTypePNG] == NSOrderedSame)
668 {
669 dp = DataProviderPtr_t( new PNGDataProvider(systemData, NSPNGFileType));
670 }
671#endif // MAC_OS_X_VERSION_10_6
660 else if ([systemFlavor caseInsensitiveCompare: NSPICTPboardType] == NSOrderedSame)
661 {
662 dp = DataProviderPtr_t( new PNGDataProvider(systemData, PICTImageFileType));
663 }
664 else if ([systemFlavor caseInsensitiveCompare: NSTIFFPboardType] == NSOrderedSame)
665 {
666 dp = DataProviderPtr_t( new PNGDataProvider(systemData, NSTIFFFileType));
667 }

--- 97 unchanged lines hidden ---
672 else if ([systemFlavor caseInsensitiveCompare: NSPICTPboardType] == NSOrderedSame)
673 {
674 dp = DataProviderPtr_t( new PNGDataProvider(systemData, PICTImageFileType));
675 }
676 else if ([systemFlavor caseInsensitiveCompare: NSTIFFPboardType] == NSOrderedSame)
677 {
678 dp = DataProviderPtr_t( new PNGDataProvider(systemData, NSTIFFFileType));
679 }

--- 97 unchanged lines hidden ---