]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common source files not directly applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Tue, 19 Feb 2019 20:51:32 +0000 (12:51 -0800)
committerOliver Kurth <okurth@vmware.com>
Tue, 19 Feb 2019 20:51:32 +0000 (12:51 -0800)
open-vm-tools/services/plugins/dndcp/dnd/dnd.h
open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c

index 4b8d4856e2fbd4e1b1c94dc178527a8aebafa34e..168c32a5e43d0e94d20fedd5fee8fe516dbbdfc7 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2005-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2005-2019 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -228,6 +228,8 @@ size_t DnD_LocalStringToCPString(utf16_t *bufIn,
                                  char **bufOut);
 Bool DnD_SetCPClipboardFromLocalText(CPClipboard *clip,
                                      utf16_t *bufIn);
+Bool DnD_SetCPClipboardAndTruncateLocalText(CPClipboard *clip,
+                                            utf16_t *bufIn);
 Bool DnD_SetCPClipboardFromLocalRtf(CPClipboard *clip,
                                     char *bufIn);
 Bool DnD_SetCPClipboardFromSpecifiedFormat(CPClipboard *clip,
index 8f8117ad8e3d4efbd03cb3a9a08f38f2ddc33873..a7b990277070c8972ef2d5ad63139208cdfda40a 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2007-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2007-2019 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -276,11 +276,15 @@ CPClipboard_SetItem(CPClipboard *clip,          // IN/OUT: the clipboard
    CPClipItem *item;
    uint8 *newBuf = NULL;
    /*
-    * Microsoft Office Text Effects i.e. HTML Format, image, rtf and text may
-    * be put into a clipboard at same time, and total size may be more than
-    * limit. HTML format will be first dropped, then image and then rtf data.
+    * Microsoft Office Text Effects i.e. HTML Format, BIFF, GVML, image, rtf
+    * and text may be put into a clipboard at same time, and total size may be
+    * more than limit. The order in filterList determines the order in which
+    * the format will be fiiltered, e.g. HTML format will be first dropped,
+    * then GVML,..., at last TEXT
     */
    DND_CPFORMAT filterList[] = {CPFORMAT_HTML_FORMAT,
+                                CPFORMAT_ART_GVML_CLIPFORMAT,
+                                CPFORMAT_BIFF12,
                                 CPFORMAT_IMG_PNG,
                                 CPFORMAT_RTF,
                                 CPFORMAT_TEXT};