Subversion Repositories tendra.SVN

Rev

Blame | Last modification | View Log | RSS feed

/*
    COPYRIGHT NOTICE

    This program is the proprietary property of the Secretary of State
    for Defence (United Kingdom) acting through the Defence Research
    Agency (DRA).  Use, reproduction, production of amended versions
    and/or transfer of this program is permitted PROVIDED THAT:

    (a)  This legend be preserved on any such reproduction and amended
         version.

    (b)  Any amended version of this program be clearly marked to show
         the nature of the amendment and the name of the amending
         organisation.

    (c)  Any recipient of such reproduction or amended version accept
         the conditions set out in this legend.

    The DRA accepts no liability whatsoever in relation to any use to
    which this program may be put and gives no warranty as to the
    program's suitability for any purpose.

    All rights reserved.

    Crown Copyright (c) 1994.
*/

/*
    COPYRIGHT NOTICE

    This program contains amendments to Motif 1.1 API headers in
    order to represent the Motif 1.2 API. These amendments are the
    property of IXI Ltd, a subsidiary of the Santa Cruz Operation (SCO).
    Use, reproduction, production of amended versions and/or transfer of
    this program is permitted PROVIDED THAT:

    (a)  This legend be preserved on any such reproduction and amended
         version.

    (b)  Any recipient of such reproduction or amended version accept
         the conditions set out in this legend.

    IXI accepts no liability whatsoever in relation to any use to
    which this program may be put and gives no warranty as to the
    program's suitability for any purpose.

    All rights reserved.

    Copyright (c) 1995, 1996
*/


/* SCO CID (IXI) CutPaste.h,v 1.1 1996/08/08 14:12:26 wendland Exp */

+USE "motif/1_2","Xm/Xm.h" ;

+CONST int XmClipboardFail;
+CONST int XmClipboardSuccess;
+CONST int XmClipboardTruncate;
+CONST int XmClipboardLocked;
+CONST int XmClipboardBadFormat;
+CONST int XmClipboardNoData;

/* pre 1.2 definitions */
+CONST int ClipboardFail;
+CONST int ClipboardSuccess;
+CONST int ClipboardTruncate;
+CONST int ClipboardLocked;
+CONST int ClipboardBadFormat;
+CONST int ClipboardNoData;

+FIELD (struct) XmClipboardPendingRec := { 

        long    DataId;
        long    PrivateId;
};

+TYPEDEF XmClipboardPendingRec *XmClipboardPendingList;


+TYPEDEF void (*XmCutPasteProc)(Widget, long *, long *, int *);
+TYPEDEF void (*VoidProc)(Widget, int *, int *, int *);


+FUNC int XmClipboardBeginCopy(
                        Display *display,
                        Window window,
                        XmString label,
                        Widget widget,
                        VoidProc callback,
                        long *itemid) ;
+FUNC int XmClipboardStartCopy(
                        Display *display,
                        Window window,
                        XmString label,
                        Time timestamp,
                        Widget widget,
                        XmCutPasteProc callback,
                        long *itemid) ;
+FUNC int XmClipboardCopy(
                        Display *display,
                        Window window,
                        long itemid,
                        char *format,
                        XtPointer buffer,
                        unsigned long length,
                        long private_id,
                        long *dataid) ;
+FUNC int XmClipboardEndCopy(
                        Display *display,
                        Window window,
                        long itemid) ;
+FUNC int XmClipboardCancelCopy(
                        Display *display,
                        Window window,
                        long itemid) ;
+FUNC int XmClipboardWithdrawFormat(
                        Display *display,
                        Window window,
                        long data) ;
+FUNC int XmClipboardCopyByName(
                        Display *display,
                        Window window,
                        long data,
                        XtPointer buffer,
                        unsigned long length,
                        long private_id) ;
+FUNC int XmClipboardUndoCopy(
                        Display *display,
                        Window window) ;
+FUNC int XmClipboardLock(
                        Display *display,
                        Window window) ;
+FUNC int XmClipboardUnlock(
                        Display *display,
                        Window window,
                        Boolean all_levels) ;
+FUNC int XmClipboardStartRetrieve(
                        Display *display,
                        Window window,
                        Time timestamp) ;
+FUNC int XmClipboardEndRetrieve(
                        Display *display,
                        Window window) ;
+FUNC int XmClipboardRetrieve(
                        Display *display,
                        Window window,
                        char *format,
                        XtPointer buffer,
                        unsigned long length,
                        unsigned long *outlength,
                        long *private_id) ;
+FUNC int XmClipboardInquireCount(
                        Display *display,
                        Window window,
                        int *count,
                        unsigned long *maxlength) ;
+FUNC int XmClipboardInquireFormat(
                        Display *display,
                        Window window,
                        int n,
                        XtPointer buffer,
                        unsigned long bufferlength,
                        unsigned long *outlength) ;
+FUNC int XmClipboardInquireLength(
                        Display *display,
                        Window window,
                        char *format,
                        unsigned long *length) ;
+FUNC int XmClipboardInquirePendingItems(
                        Display *display,
                        Window window,
                        char *format,
                        XmClipboardPendingList *list,
                        unsigned long *count) ;
+FUNC int XmClipboardRegisterFormat(
                        Display *display,
                        char *format_name,
                        int format_length) ;