Project

General

Profile

Feature #6436

CLIPBOARD:NUM-FORMATS

Added by Greg Shah over 4 years ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:

History

#1 Updated by Greg Shah about 1 month ago

We have a project that uses this, so the task needs to be done, and widened to the other two CLIPBOARD attributes FWD does not support. ClipboardManager supports only VALUE and MULTIPLE.

  1. NUM-FORMATS: 0 for an empty clipboard, 1 when it holds plain text (PRO_TEXT), 2 when the text also qualifies as PRO_MULTIPLE (it contains tab or newline characters).
  2. AVAILABLE-FORMATS: the comma-separated list of those formats, so that CLIPBOARD:AVAILABLE-FORMATS = "PRO_TEXT" holds only for text without tabs or newlines.
  3. ITEMS-PER-ROW: the number of items per row while MULTIPLE is true, used when values are assigned to CLIPBOARD:VALUE one at a time and terminated with a tab or a newline.

A typical use enables a Paste menu item:

m_paste:SENSITIVE = CLIPBOARD:NUM-FORMATS GT 0
                    AND CLIPBOARD:VALUE NE ?
                    AND CLIPBOARD:MULTIPLE EQ NO
                    AND CLIPBOARD:AVAILABLE-FORMATS = "PRO_TEXT":U.

NUM-FORMATS and AVAILABLE-FORMATS can be answered from the data flavours the client clipboard advertises. ITEMS-PER-ROW belongs with the existing MULTIPLE support. All three need the conversion mapping as well as the runtime. Please include testcases with an OpenEdge baseline for an empty clipboard, plain text, text with tabs and newlines, and ITEMS-PER-ROW values of 1 and more with MULTIPLE true.

#2 Updated by Greg Shah about 1 month ago

+Team

Also available in: Atom PDF