VirtualBox

Ignore:
Timestamp:
Jun 5, 2014 2:38:31 PM (11 years ago)
Author:
vboxsync
Message:

DnD: Added support for dynamically managing formats on the host.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp

    r51529 r51556  
    431431     *  event. */
    432432    RTSEMEVENT          m_hEventSem;
    433 
    434     static const RTCList<RTCString> m_sstrStringMimeTypes;
     433    /** List of allowed formats. */
     434    RTCList<RTCString>  m_lstAllowedFormats;
    435435};
    436436
     
    569569    m_eventQueue.clear();
    570570}
    571 
    572 /** @todo Move this into VBox/GuestHost ? */
    573 const RTCList<RTCString> DragInstance::m_sstrStringMimeTypes = RTCList<RTCString>()
    574     /* Uri's */
    575     << "text/uri-list"
    576     /* Text */
    577     << "text/plain;charset=utf-8"
    578     << "UTF8_STRING"
    579     << "text/plain"
    580     << "TEXT"
    581     << "STRING"
    582     /* OpenOffice formates */
    583     << "application/x-openoffice-embed-source-xml;windows_formatname=\"Star Embed Source (XML)\""
    584     << "application/x-openoffice-drawing;windows_formatname=\"Drawing Format\"";
    585571
    586572int DragInstance::init(uint32_t u32ScreenId)
     
    15991585                     * zero terminated. Check that and correct it when necessary,
    16001586                     * because the guest side wants this in any case. */
    1601                     if (   m_sstrStringMimeTypes.contains(strFormat)
     1587                    if (   m_lstAllowedFormats.contains(strFormat)
    16021588                        && pcData[cbData - 1] != '\0')
    16031589                    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette