51#  include <Inventor/Win/SoWinClipboard.h> 
   54#ifndef  _SO_XT_CLIPBOARD_ 
   55#define  _SO_XT_CLIPBOARD_ 
   58#include <X11/Intrinsic.h> 
   59#include <Inventor/SbBasic.h> 
   60#include <Inventor/Xt/SoXtDef.h> 
   68class SoXtImportInterestList;
 
   89#define _XA_CLIPBOARD_ ((Atom) 0) 
  162  void    copy(Atom dataType, 
void *data, uint32_t numBytes, Time eventTime);
 
  175                SoXtClipboardPasteCB *pasteDoneFunc,
 
  176                void *userData = NULL);
 
  213                                   SoXtClipboardImportCB *pasteImportFunc,
 
  214                                   void *userData = NULL);
 
  221  static SbBool  convertData(
 
  224                             uint32_t    srcNumBytes,
 
  227                             uint32_t    *returnNumBytes);
 
  234  void        setEmptyListOK(
SbBool flag)     { emptyListOK = flag; }
 
  235  SbBool      isEmptyListOK()
 const           { 
return emptyListOK; }
 
  249  static SbDict           *selOwnerList;
 
  255  SoXtImportInterestList  *pasteInterest;
 
  259  void                    getExportTargets(
 
  263  Atom                    chooseFromImportTargets(
 
  264                                                  Atom *supportedTargets,
 
  267  static SbBool           writeToFile(
 
  270                                      uint32_t    srcNumBytes);
 
  273  static void     readFile(
SoPathList *&pathList, 
const char *filename);
 
  288  void            pasteImport(Atom dataType, 
void *data, uint32_t numBytes);
 
  289  static void     pasteImportCB(
 
  290                                void *userData, Atom dataType,
 
  291                                void *data, uint32_t numBytes)
 
  292    { ((
SoXtClipboard *)userData)->pasteImport(dataType, data, numBytes); }
 
  298  static void         importSelection(
 
  307  static Boolean      exportSelection(
 
  316  static void         loseSelection(
 
  320  static void         importSelectionTargets(
 
 
List of generic (void *) pointers.
 
Class for smart character strings.
 
Converts scene graph objects to character byte streams.
 
Abstract base class for all database nodes.
 
Path that points to a list of hierarchical nodes.
 
Maintains a list of pointers to paths.
 
Manages a list of selected objects.
 
Supports copy/paste for Open Inventor using the Xt clipboard.
 
~SoXtClipboard()
Destructor.
 
void copy(SoNode *node, Time eventTime)
This copies the passed scene graph object, and tells the X server that the clipboard now owns the sel...
 
void addPasteInterest(Atom dataType, SoXtClipboardImportCB *pasteImportFunc, void *userData=NULL)
This extends the paste interest to recognize an additional target as specified by dataType.
 
void copy(SoPath *path, Time eventTime)
This copies the passed scene graph object, and tells the X server that the clipboard now owns the sel...
 
void copy(Atom dataType, void *data, uint32_t numBytes, Time eventTime)
 
void SoXtClipboardImportCB(void *userData, Atom dataType, void *data, uint32_t numBytes)
 
void SoXtClipboardPasteCB(void *userData, SoPathList *pathList)
 
void copy(SoPathList *pathList, Time eventTime)
This copies the passed scene graph object, and tells the X server that the clipboard now owns the sel...
 
SoXtClipboard(SoWidget w, Atom selectionAtom=_XA_CLIPBOARD_)
Constructor.
 
void paste(Time eventTime, SoXtClipboardPasteCB *pasteDoneFunc, void *userData=NULL)
This makes a request to the X server for data to paste from the selection atom specified in the const...