749N/A/* $XConsortium: MultiSrc.h,v 1.2 94/04/17 20:12:26 kaleb Exp $ */
749N/A
749N/A/*
749N/A * Copyright 1991 by OMRON Corporation
749N/A *
749N/A * Permission to use, copy, modify, distribute, and sell this software and its
749N/A * documentation for any purpose is hereby granted without fee, provided that
749N/A * the above copyright notice appear in all copies and that both that
749N/A * copyright notice and this permission notice appear in supporting
749N/A * documentation, and that the name OMRON not be used in
749N/A * advertising or publicity pertaining to distribution of the software without
749N/A * specific, written prior permission. OMRON makes no representations
749N/A * about the suitability of this software for any purpose. It is provided
749N/A * "as is" without express or implied warranty.
749N/A *
749N/A * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
749N/A * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
749N/A * EVENT SHALL OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR
749N/A * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
749N/A * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
749N/A * TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
749N/A * PERFORMANCE OF THIS SOFTWARE.
749N/A *
749N/A * Author: Li Yuhong OMRON Corporation
749N/A */
749N/A
749N/A/*
749N/A
749N/ACopyright (c) 1989, 1991, 1994 X Consortium
749N/A
749N/APermission is hereby granted, free of charge, to any person obtaining a copy
749N/Aof this software and associated documentation files (the "Software"), to deal
749N/Ain the Software without restriction, including without limitation the rights
749N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell
749N/Acopies of the Software, and to permit persons to whom the Software is
749N/Afurnished to do so, subject to the following conditions:
749N/A
749N/AThe above copyright notice and this permission notice shall be included in
749N/Aall copies or substantial portions of the Software.
749N/A
749N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
749N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
749N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
749N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
749N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
749N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
749N/A
749N/AExcept as contained in this notice, the name of the X Consortium shall not be
749N/Aused in advertising or otherwise to promote the sale, use or other dealings
749N/Ain this Software without prior written authorization from the X Consortium.
749N/A
749N/A*/
749N/A
749N/A/*
749N/A * This file was modified from AsciiSrc.h.
749N/A *
749N/A * By Li Yuhong, Sept. 18, 1990
749N/A */
749N/A
749N/A#ifndef _XawMultiSrc_h
749N/A#define _XawMultiSrc_h
749N/A
749N/A#include <X11/Xaw/TextSrc.h>
749N/A/*Xfuncproto.h included by Intrinsic.h*/
749N/A
749N/A/* Resources:
749N/A
749N/A Name Class RepType Default Value
749N/A ---- ----- ------- -------------
749N/A callback Callback Callback (none)
749N/A dataCompression DataCompression Boolean True
749N/A length Length int (internal)
749N/A pieceSize PieceSize int BUFSIZ
749N/A string String String NULL
749N/A type Type XawAsciiType XawAsciiString
749N/A useStringInPlace UseStringInPlace Boolean False
749N/A
749N/A*/
749N/A
749N/A/* Class record constants */
749N/A
749N/Aextern WidgetClass multiSrcObjectClass;
749N/A
749N/Atypedef struct _MultiSrcClassRec *MultiSrcObjectClass;
749N/Atypedef struct _MultiSrcRec *MultiSrcObject;
749N/A
749N/A/*
749N/A * Just to make people's lives a bit easier.
749N/A */
749N/A
749N/A#define MultiSourceObjectClass MultiSrcObjectClass
749N/A#define MultiSourceObject MultiSrcObject
749N/A
749N/A/*
749N/A * Resource Definitions.
749N/A */
749N/A
749N/A#define XtCDataCompression "DataCompression"
749N/A#define XtCPieceSize "PieceSize"
749N/A#define XtCType "Type"
749N/A#define XtCUseStringInPlace "UseStringInPlace"
749N/A
749N/A#define XtNdataCompression "dataCompression"
749N/A#define XtNpieceSize "pieceSize"
749N/A#define XtNtype "type"
749N/A#define XtNuseStringInPlace "useStringInPlace"
749N/A
749N/A#define XtRMultiType "MultiType"
749N/A
749N/A#define XtEstring "string"
749N/A#define XtEfile "file"
749N/A
749N/A/************************************************************
749N/A *
749N/A * THESE ROUTINES ARE NOT PUBLIC: Source should call
749N/A *
749N/A * the AsciiSrc API which currently forwards requests here.
749N/A *
749N/A * future versions (like theres going to be an R7 Xaw!) may
749N/A *
749N/A * eliminate this file or at least these functions entirely.
749N/A *
749N/A ************************************************************/
749N/A
749N/A_XFUNCPROTOBEGIN
749N/A
749N/A
749N/Aextern void XawMultiSourceFreeString(
749N/A#if NeedFunctionPrototypes
749N/A Widget /* w */
749N/A#endif
749N/A);
749N/A
749N/Aextern Boolean _XawMultiSave(
749N/A#if NeedFunctionPrototypes
749N/A Widget /* w */
749N/A#endif
749N/A);
749N/A
749N/Aextern Boolean _XawMultiSaveAsFile(
749N/A#if NeedFunctionPrototypes
749N/A Widget /* w */,
749N/A _Xconst char* /* name */
749N/A#endif
749N/A);
749N/A
749N/A
749N/A_XFUNCPROTOEND
749N/A
749N/A#endif /* _XawMultiSrc_h - Don't add anything after this line. */
749N/A