CDataTransferer.h revision 4632
d51e90740114c60620c0febffd4d3ce6e280a107ab/*
d51e90740114c60620c0febffd4d3ce6e280a107ab * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
d51e90740114c60620c0febffd4d3ce6e280a107ab * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d51e90740114c60620c0febffd4d3ce6e280a107ab *
d51e90740114c60620c0febffd4d3ce6e280a107ab * This code is free software; you can redistribute it and/or modify it
d51e90740114c60620c0febffd4d3ce6e280a107ab * under the terms of the GNU General Public License version 2 only, as
d51e90740114c60620c0febffd4d3ce6e280a107ab * published by the Free Software Foundation. Oracle designates this
d51e90740114c60620c0febffd4d3ce6e280a107ab * particular file as subject to the "Classpath" exception as provided
d51e90740114c60620c0febffd4d3ce6e280a107ab * by Oracle in the LICENSE file that accompanied this code.
d51e90740114c60620c0febffd4d3ce6e280a107ab *
d51e90740114c60620c0febffd4d3ce6e280a107ab * This code is distributed in the hope that it will be useful, but WITHOUT
d51e90740114c60620c0febffd4d3ce6e280a107ab * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d51e90740114c60620c0febffd4d3ce6e280a107ab * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
d51e90740114c60620c0febffd4d3ce6e280a107ab * version 2 for more details (a copy is included in the LICENSE file that
d51e90740114c60620c0febffd4d3ce6e280a107ab * accompanied this code).
d51e90740114c60620c0febffd4d3ce6e280a107ab *
d51e90740114c60620c0febffd4d3ce6e280a107ab * You should have received a copy of the GNU General Public License version
d51e90740114c60620c0febffd4d3ce6e280a107ab * 2 along with this work; if not, write to the Free Software Foundation,
d51e90740114c60620c0febffd4d3ce6e280a107ab * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d51e90740114c60620c0febffd4d3ce6e280a107ab *
d51e90740114c60620c0febffd4d3ce6e280a107ab * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d51e90740114c60620c0febffd4d3ce6e280a107ab * or visit www.oracle.com if you need additional information or have any
d51e90740114c60620c0febffd4d3ce6e280a107ab * questions.
d51e90740114c60620c0febffd4d3ce6e280a107ab */
d51e90740114c60620c0febffd4d3ce6e280a107ab
d51e90740114c60620c0febffd4d3ce6e280a107ab#import <AppKit/AppKit.h>
d51e90740114c60620c0febffd4d3ce6e280a107ab#import "jni.h"
d51e90740114c60620c0febffd4d3ce6e280a107ab
d51e90740114c60620c0febffd4d3ce6e280a107ab/*
d51e90740114c60620c0febffd4d3ce6e280a107ab * Sets up the dictionary of numbers to NSStrings
d51e90740114c60620c0febffd4d3ce6e280a107ab */
d51e90740114c60620c0febffd4d3ce6e280a107abextern void initializeMappingTable();
d51e90740114c60620c0febffd4d3ce6e280a107ab
d51e90740114c60620c0febffd4d3ce6e280a107ab/*
* Convert from a standard NSPasteboard data type to an index in our mapping table.
*/
extern jlong indexForFormat(NSString *format);
/*
* Inverse of above -- given a long int index, get the matching data format NSString.
*/
extern NSString* formatForIndex(jlong inFormatCode);
/*
* Register a non-standard NSPasteboard data type in our mapping table and return its index.
*/
extern jlong registerFormatWithPasteboard(NSString *format);