class interface CLIPBOARD_TEXT

creation
   make (p: WINDOW)
      --  Create clipboard object.

      require
         valid: p /= Void and then p.is_valid
      ensure
         keep_reference: parent = p

feature(s) from CLIPBOARD
   --  Clipboard access

   put
      --  Put the current information in the clipboard.


   get
      --  Get information from the clipboard.

      require
         has_selection: has_data
      ensure
         done:  --  has_result set

   has_data: BOOLEAN
      --  Is clipboard text available?


   has_result: BOOLEAN
      --  Result of last get operation.


feature(s) from CLIPBOARD_TEXT
   --  Data

   set_text (txt: DS_LIST[STRING])
      --  Set text to be copied to the clipboard.

      require
         valid: txt /= Void

feature(s) from CLIPBOARD_TEXT
   --  Result

   last_text: DS_LIST[STRING]
      require
         possible: has_result
      ensure
         is_copy: Result /= Void


end of CLIPBOARD_TEXT