The great includes migration of 2019 (autotools)
Ok - so one of the steps in building CDE is an early phase called the includes phase (make includes). At this point, all of the public header files are exported to exports/include/Dt, DtI, ... Then, the software is built using that include dir. This of course does not work in autotools. Much of the software does things like #include <Dt/something.h>, so in order for the build to succeed, this behavior must be represented/replicated in some way. It seems the usual way of dealing with this is to place all public headers (and in some projects, ALL headers) into a toplevel include directory. We now do this for all public headers - they have been moved from wherever they were and placed in the appropriate spot in includes/ This will break the Imake 'make includes' phase unless the Imakefiles are fixed (remove the HEADERS = stuff, and the incdir defines). This has not been done at this point since in reality, once autotools works properly, there will be no need for the Imake stuff anymore, and I intend to get rid of it. This is just a warning for now - Imake builds in this tree will now fail at the 'includes' stage. This commit is only the migration. In upcoming commits, libtt will be fixed so that the hack being used before to get around this problem is removed as there will no longer be any need. And then the autotools work continues...
This commit is contained in:
102
cde/include/DtI/Access.h
Normal file
102
cde/include/DtI/Access.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: Access.h /main/7 1995/12/18 16:29:36 cde-hp $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: Access.h
|
||||
**
|
||||
** Project: Run Time Project File Access
|
||||
**
|
||||
** Description: Header file for Access.h
|
||||
**
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtHelpAccess_h
|
||||
#define _DtHelpAccess_h
|
||||
|
||||
/****************************************************************************
|
||||
* Public Defines
|
||||
****************************************************************************/
|
||||
#ifndef True
|
||||
#define True 1
|
||||
#endif
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef False
|
||||
#define False 0
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
typedef void* _DtHelpVolumeHdl;
|
||||
|
||||
/****************************************************************************
|
||||
* Semi-Private Externals
|
||||
****************************************************************************/
|
||||
extern int _DtHelpCeCompressPathname ( char *basePath );
|
||||
extern char *_DtHelpCeTraceFilenamePath ( char *file_path );
|
||||
extern char *_DtHelpCeTracePathName ( char *path );
|
||||
|
||||
/****************************************************************************
|
||||
* Semi-Public Externals
|
||||
****************************************************************************/
|
||||
extern int _DtHelpCloseVolume (
|
||||
_DtHelpVolumeHdl vol );
|
||||
extern int _DtHelpCeFindId (
|
||||
_DtHelpVolumeHdl vol,
|
||||
char *target_id,
|
||||
int fd,
|
||||
char **ret_name,
|
||||
int *ret_offset );
|
||||
extern int _DtHelpCeFindKeyword (
|
||||
_DtHelpVolumeHdl vol,
|
||||
char *target,
|
||||
char ***ret_ids );
|
||||
extern int _DtHelpCeGetKeywordList (
|
||||
_DtHelpVolumeHdl vol,
|
||||
char ***ret_keywords );
|
||||
extern int _DtHelpCeGetTopTopicId (
|
||||
_DtHelpVolumeHdl vol,
|
||||
char **ret_idString );
|
||||
extern char *_DtHelpCeGetVolumeName(
|
||||
_DtHelpVolumeHdl vol);
|
||||
extern char *_DtHelpGetVolumeLocale (
|
||||
_DtHelpVolumeHdl volume);
|
||||
extern int _DtHelpOpenVolume (
|
||||
char *volFile,
|
||||
_DtHelpVolumeHdl*retVol );
|
||||
extern int _DtHelpCeUpVolumeOpenCnt (
|
||||
_DtHelpVolumeHdl volume);
|
||||
#endif /* _DtHelpAccess_h */
|
||||
139
cde/include/DtI/AccessI.h
Normal file
139
cde/include/DtI/AccessI.h
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: AccessI.h /main/7 1995/12/18 16:29:56 cde-hp $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: AccessI.h
|
||||
**
|
||||
** Project: Run Time Project File Access
|
||||
**
|
||||
** Description: Header file for Access.h
|
||||
**
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtHelpAccessI_h
|
||||
#define _DtHelpAccessI_h
|
||||
|
||||
|
||||
#ifndef _XtIntrinsic_h
|
||||
/*
|
||||
* typedef Boolean
|
||||
*/
|
||||
#ifdef CRAY
|
||||
typedef long Boolean;
|
||||
#else
|
||||
typedef char Boolean;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _XLIB_H_
|
||||
#ifndef True
|
||||
#define True 1
|
||||
#endif
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef False
|
||||
#define False 0
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
* Semi-Public Structures
|
||||
******************************************************************************/
|
||||
typedef struct {
|
||||
char match;
|
||||
char *substitution;
|
||||
} _DtSubstitutionRec;
|
||||
|
||||
typedef struct _dtHelpCeLockInfo {
|
||||
int fd;
|
||||
_DtHelpVolumeHdl volume;
|
||||
} _DtHelpCeLockInfo;
|
||||
|
||||
/******************************************************************************
|
||||
* Semi-Public Access Functions
|
||||
******************************************************************************/
|
||||
extern char *_DtHelpCeExpandPathname (
|
||||
char *spec,
|
||||
char *filename,
|
||||
char *type,
|
||||
char *suffix,
|
||||
char *lang,
|
||||
_DtSubstitutionRec *subs,
|
||||
int num );
|
||||
extern int _DtHelpCeFileOpenAndSeek(
|
||||
char *filename,
|
||||
int offset,
|
||||
int fd,
|
||||
BufFilePtr *ret_file,
|
||||
time_t *ret_time);
|
||||
extern int _DtHelpCeGetDocStamp (
|
||||
_DtHelpVolumeHdl volume,
|
||||
char **ret_doc,
|
||||
char **ret_time);
|
||||
extern int _DtHelpCeGetLangSubParts (
|
||||
char *lang,
|
||||
char **subLang,
|
||||
char **subTer,
|
||||
char **subCodeSet );
|
||||
extern int _DtHelpCeGetTopicChildren(
|
||||
_DtHelpVolumeHdl volume,
|
||||
char *topic_id,
|
||||
char ***ret_childs);
|
||||
extern int _DtHelpGetTopicTitle(
|
||||
_DtHelpVolumeHdl volume,
|
||||
char *target_id,
|
||||
char **ret_title);
|
||||
extern int _DtHelpCeGetUncompressedFileName (
|
||||
char *name,
|
||||
char **ret_name);
|
||||
extern const char *_DtHelpCeGetVolumeCharSet (
|
||||
_DtHelpVolumeHdl volume);
|
||||
extern int _DtHelpCeGetVolumeFlag (
|
||||
_DtHelpVolumeHdl volume);
|
||||
extern int _DtHelpCeIsTopTopic(
|
||||
_DtHelpVolumeHdl volume,
|
||||
const char *id);
|
||||
extern int _DtHelpCeLockVolume(
|
||||
_DtHelpVolumeHdl volume,
|
||||
_DtHelpCeLockInfo *ret_info);
|
||||
extern int _DtHelpCeMapTargetToId (
|
||||
_DtHelpVolumeHdl volume,
|
||||
char *target_id,
|
||||
char **ret_id);
|
||||
extern int _DtHelpCeUnlockVolume(_DtHelpCeLockInfo lock_info);
|
||||
#endif /* _DtHelpAccessI_h */
|
||||
89
cde/include/DtI/AccessP.h
Normal file
89
cde/include/DtI/AccessP.h
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: AccessP.h /main/5 1995/12/18 16:30:01 cde-hp $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: AccessP.h
|
||||
**
|
||||
** Project: Run Time Project File Access
|
||||
**
|
||||
**
|
||||
** Description: Private header file for Access.h
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtAccessP_h
|
||||
#define _DtAccessP_h
|
||||
|
||||
#include <sys/stat.h>
|
||||
typedef void* SdlVolumeHandle;
|
||||
typedef void* CcdfVolumeHandle;
|
||||
|
||||
typedef union _dthelpVolumes {
|
||||
SdlVolumeHandle sdl_vol;
|
||||
CcdfVolumeHandle ccdf_vol;
|
||||
} DtHelpVols;
|
||||
|
||||
/*
|
||||
* The following structure holds loaded volumes. The fields of this
|
||||
* structure should not be accessed by any code outside of the volume
|
||||
* module.
|
||||
*/
|
||||
struct _DtHelpVolumeRec {
|
||||
short sdl_flag; /* The type of volume */
|
||||
char *volFile; /* The name of the volume file in the */
|
||||
/* form it was passed to _DtVolumeOpen. */
|
||||
|
||||
char **keywords; /* A pointer to a string array */
|
||||
/* containing all of the keywords in */
|
||||
/* sorted order. This field is not loaded */
|
||||
/* until it is needed. */
|
||||
|
||||
char ***keywordTopics; /* A pointer to an array of string */
|
||||
/* arrays. Each string array specifies */
|
||||
/* the list of topics which contain the */
|
||||
/* corresponding keyword. This field is */
|
||||
/* not loaded until it is needed. */
|
||||
|
||||
DtHelpVols vols; /* Handles to format specific volume info */
|
||||
int openCount; /* A count of the number of times this */
|
||||
/* volume has been opened. */
|
||||
|
||||
time_t check_time; /* Time this volume was last modified */
|
||||
struct _DtHelpVolumeRec *nextVol;
|
||||
/* A pointer to the next volume, used to */
|
||||
/* chain all of the open volumes together. */
|
||||
};
|
||||
|
||||
typedef struct _DtHelpVolumeRec *_DtHelpVolume;
|
||||
|
||||
#endif /* _DtAccessP_h */
|
||||
90
cde/include/DtI/ActionsI.h
Normal file
90
cde/include/DtI/ActionsI.h
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: ActionsI.h /main/5 1995/12/08 13:00:31 cde-hal $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: ActionsI.h
|
||||
**
|
||||
** Project: Display area routines
|
||||
**
|
||||
** Description: Header file for Actions.c
|
||||
**
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtHelpActionsI_h
|
||||
#define _DtHelpActionsI_h
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*****************************************************************************
|
||||
* Semi Public Routines
|
||||
*****************************************************************************/
|
||||
extern void _DtHelpActivateLink (
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
String *params,
|
||||
Cardinal *num_params);
|
||||
extern void _DtHelpCopyAction (
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
String *params,
|
||||
Cardinal *num_params);
|
||||
extern void _DtHelpDeSelectAll (
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
String *params,
|
||||
Cardinal *num_params);
|
||||
extern void _DtHelpNextLink (
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
String *params,
|
||||
Cardinal *num_params);
|
||||
extern void _DtHelpPageLeftOrRight (
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
String *params,
|
||||
Cardinal *num_params);
|
||||
extern void _DtHelpPageUpOrDown (
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
String *params,
|
||||
Cardinal *num_params);
|
||||
extern void _DtHelpSelectAll (
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
String *params,
|
||||
Cardinal *num_params);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _DtHelpActionsI_h */
|
||||
123
cde/include/DtI/CallbacksI.h
Normal file
123
cde/include/DtI/CallbacksI.h
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: CallbacksI.h /main/7 1996/02/27 20:06:41 cde-hal $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: CallbacksTG.h
|
||||
**
|
||||
** Project: TextGraphic Display routines
|
||||
**
|
||||
**
|
||||
** Description: Header file for CallbacksTG.h
|
||||
**
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtHelpCallbacksI_h
|
||||
#define _DtHelpCallbacksI_h
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*****************************************************************************
|
||||
* Semi Public Routines
|
||||
*****************************************************************************/
|
||||
extern Boolean _DtHelpCancelSelection(
|
||||
XtPointer client_data);
|
||||
extern void _DtHelpCleanAndDrawWholeCanvas(
|
||||
XtPointer client_data);
|
||||
extern void _DtHelpSearchMoveTraversal(
|
||||
XtPointer client_data,
|
||||
int search_hit_index);
|
||||
|
||||
/*****************************************************************************
|
||||
* Public Routines
|
||||
*****************************************************************************/
|
||||
extern void _DtHelpClearSelection (
|
||||
XtPointer client_data );
|
||||
extern void _DtHelpClickOrSelectCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data );
|
||||
extern void _DtHelpEndSelectionCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data );
|
||||
extern void _DtHelpEnterLeaveCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XEvent *event );
|
||||
extern void _DtHelpExposeCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data );
|
||||
extern void _DtHelpFocusCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XEvent *event );
|
||||
extern void _DtHelpGetClearSelection (
|
||||
Widget widget,
|
||||
XtPointer client_data);
|
||||
extern void _DtHelpHorzScrollCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data );
|
||||
extern void _DtHelpInitiateClipboard (
|
||||
XtPointer client_data );
|
||||
extern void _DtHelpLoseSelectionCB (
|
||||
Widget widget,
|
||||
Atom *selection );
|
||||
extern void _DtHelpMoveBtnFocusCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XEvent *event );
|
||||
extern void _DtHelpMouseMoveCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XEvent *event );
|
||||
extern void _DtHelpResizeCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data );
|
||||
extern void _DtHelpVertScrollCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data );
|
||||
extern void _DtHelpVisibilityCB (
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XEvent *event );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _DtHelpCallbacksI_h */
|
||||
320
cde/include/DtI/CanvasI.h
Normal file
320
cde/include/DtI/CanvasI.h
Normal file
@@ -0,0 +1,320 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: CanvasI.h /main/18 1996/10/21 13:59:51 cde-hp $ */
|
||||
/*************************************<+>*************************************
|
||||
*****************************************************************************
|
||||
**
|
||||
** File: CanvasI.h
|
||||
**
|
||||
** Project:
|
||||
**
|
||||
** Description: Public Header file for Canvas.c
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
*******************************************************************
|
||||
*************************************<+>*************************************/
|
||||
#ifndef _DtCanvasI_h
|
||||
#define _DtCanvasI_h
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/******** Internal Defines Declarations ********/
|
||||
#define _DtCvLINE_HORZ 0
|
||||
#define _DtCvLINE_VERT 1
|
||||
|
||||
/******** Internal Enum Declarations ********/
|
||||
enum _dtCvTraversalType
|
||||
{
|
||||
_DtCvTraversalNone,
|
||||
_DtCvTraversalLink,
|
||||
_DtCvTraversalMark
|
||||
};
|
||||
|
||||
/******** Internal Typedef Declarations ********/
|
||||
|
||||
#if !defined(_DtCvLinkMgrP_h) && !defined(_DtCvLinkMgrI_h)
|
||||
typedef struct _dtCvLinkDb* _DtCvLinkDb;
|
||||
#endif
|
||||
|
||||
typedef enum _dtCvTraversalType _DtCvTraversalType;
|
||||
|
||||
/* adding this typedef so that debugging can access the structure */
|
||||
typedef struct _dtCvSegment _DtCvSegmentI;
|
||||
typedef struct _dtCvSegPts _DtCvSegPtsI;
|
||||
|
||||
/******** Internal Structures Declarations ********/
|
||||
|
||||
typedef struct _dtCvDspLine {
|
||||
_DtCvValue processed;
|
||||
_DtCvUnit text_x;
|
||||
_DtCvUnit max_x;
|
||||
_DtCvUnit baseline;
|
||||
_DtCvUnit descent;
|
||||
_DtCvUnit ascent;
|
||||
int byte_index;
|
||||
int length;
|
||||
_DtCvSegmentI *seg_ptr;
|
||||
} _DtCvDspLine;
|
||||
|
||||
typedef struct _dtCvLineSeg {
|
||||
_DtCvValue processed;
|
||||
short dir;
|
||||
_DtCvUnit pos_x;
|
||||
_DtCvUnit max_x;
|
||||
_DtCvUnit pos_y;
|
||||
_DtCvUnit max_y;
|
||||
_DtCvUnit width;
|
||||
_DtCvPointer data;
|
||||
} _DtCvLineSeg;
|
||||
|
||||
typedef struct _dtCvPointData {
|
||||
_DtCvUnit x;
|
||||
_DtCvUnit y; /* baseline of the line */
|
||||
int line_idx;
|
||||
int char_idx;
|
||||
} _DtCvPointData;
|
||||
|
||||
typedef struct _dtCvMarkData {
|
||||
_DtCvValue on;
|
||||
_DtCvPointer client_data;
|
||||
_DtCvPointData beg;
|
||||
_DtCvPointData end;
|
||||
} _DtCvMarkData;
|
||||
|
||||
typedef struct _dtCvTraversalInfo {
|
||||
_DtCvValue active;
|
||||
_DtCvTraversalType type; /* the type of the traversal */
|
||||
int idx; /* the index into the approp. struct */
|
||||
/* either the txt_lst or marks */
|
||||
_DtCvUnit x_pos; /* x pos on the line. */
|
||||
_DtCvUnit y_pos; /* top y pos of bounding box */
|
||||
_DtCvUnit width; /* width of link on 1st line only */
|
||||
_DtCvUnit height; /* height of 1st line bounding box */
|
||||
_DtCvSegmentI *seg_ptr; /* ptr to first seg of link */
|
||||
} _DtCvTraversalInfo;
|
||||
|
||||
typedef struct _dtCvSearchData {
|
||||
int idx; /* the line index of the search hit */
|
||||
_DtCvDspLine *lst; /* pointer to the text line list */
|
||||
} _DtCvSearchData;
|
||||
|
||||
typedef struct _dtCanvasStruct {
|
||||
int error;
|
||||
long txt_cnt; /* maximum used in txt_list */
|
||||
int txt_max; /* maximum in txt_list */
|
||||
|
||||
int line_cnt; /* maximum used in line_lst */
|
||||
int line_max; /* maximum in line_lst */
|
||||
int mark_cnt; /* mark counter */
|
||||
int mark_max; /* maximum in mark_lst */
|
||||
|
||||
int trav_cnt; /* maximum used in trav_lst */
|
||||
int trav_max; /* maximum in trav_lst */
|
||||
int cur_trav; /* traversal indicator */
|
||||
|
||||
int search_cnt;
|
||||
int search_max;
|
||||
|
||||
int brk_cnt; /* the number of page breaks */
|
||||
int brk_max; /* the maxium entries */
|
||||
|
||||
short mb_length; /* The maximum length of a char */
|
||||
|
||||
_DtCvUnit max_x; /* The maximum x position */
|
||||
_DtCvUnit max_y; /* The maximum y position */
|
||||
_DtCvValue constraint; /* Indicates if the right
|
||||
boundary can be breached */
|
||||
_DtCvValue trav_on; /* Indicates if the traversal
|
||||
is on or off. */
|
||||
_DtCvPointer client_data;
|
||||
_DtCvMetrics metrics;
|
||||
_DtCvSpaceMetrics link_info;
|
||||
_DtCvSpaceMetrics traversal_info;
|
||||
_DtCvLocale locale;
|
||||
|
||||
_DtCvSegmentI *element_lst;
|
||||
_DtCvDspLine *txt_lst;
|
||||
_DtCvLineSeg *line_lst;
|
||||
_DtCvTraversalInfo *trav_lst;
|
||||
_DtCvLinkDb link_data;
|
||||
_DtCvPointData select_start;
|
||||
_DtCvPointData select_end;
|
||||
_DtCvMarkData *marks;
|
||||
_DtCvSearchData *searchs;
|
||||
_DtCvUnit *pg_breaks;
|
||||
_DtCvVirtualInfo virt_functions;
|
||||
|
||||
} _DtCanvasStruct;
|
||||
|
||||
/******** Internal Structure Typedef Declarations ********/
|
||||
typedef struct _dtCvPointData _DtCvSelectData;
|
||||
|
||||
/******** Internal Macros Declarations ********/
|
||||
|
||||
#define _DtCvHasTraversal(x) ((x) & _DtCvTRAVERSAL_FLAG)
|
||||
|
||||
/*
|
||||
* segment type access
|
||||
*/
|
||||
#define _DtCvIsTypeNoop(x) \
|
||||
((((x) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0)
|
||||
|
||||
/*
|
||||
* Is a flag set
|
||||
*/
|
||||
#define _DtCvIsSegVisibleLink(x) _DtCvIsSegHyperText(x)
|
||||
#define _DtCvIsSegALink(x) \
|
||||
(_DtCvIsSegHyperText(x) || _DtCvIsSegGhostLink(x))
|
||||
|
||||
#define _DtCvIsMarkMaskOn(x) \
|
||||
(((x) & _DtCvACTIVATE_MARK_ON) ? _DtCvTRUE : _DtCvFALSE)
|
||||
|
||||
/*
|
||||
* remove masks
|
||||
*/
|
||||
#define _DtCvRemoveBeginFlags(x) x &= ~(_DtCvTRAVERSAL_BEGIN | \
|
||||
_DtCvLINK_BEGIN | \
|
||||
_DtCvMARK_BEGIN | \
|
||||
_DtCvSEARCH_BEGIN)
|
||||
#define _DtCvSetSearchEnd(x,seg) x |= ((seg)->type & _DtCvSEARCH_END)
|
||||
#define _DtCvSetSearchBegin(x,seg) x |= ((seg)->type & _DtCvSEARCH_BEGIN)
|
||||
#define _DtCvClearSearchFlags(x) x &= ~(_DtCvSEARCH_FLAG | \
|
||||
_DtCvSEARCH_BEGIN | \
|
||||
_DtCvSEARCH_END)
|
||||
|
||||
#define _DtCvClearLinkFlags(x) x &= ~(_DtCvLINK_FLAG | \
|
||||
_DtCvLINK_BEGIN | \
|
||||
_DtCvLINK_END | \
|
||||
_DtCvLINK_POP_UP | \
|
||||
_DtCvLINK_NEW_WINDOW)
|
||||
|
||||
#define _DtCvClearProcessed(x) (x).processed = False
|
||||
#define _DtCvSetProcessed(x) (x).processed = True
|
||||
#define _DtCvIsProcessed(x) (x).processed
|
||||
#define _DtCvIsNotProcessed(x) ((False == (x).processed) ? True : False)
|
||||
#define _DtCvStraddlesPt(pt,min,max) ((min) <= (pt) && (pt) <= (max))
|
||||
|
||||
/******** Internal Function Declarations ********/
|
||||
extern _DtCvUnit _DtCvAdjustForSuperSub(
|
||||
_DtCanvasStruct *canvas,
|
||||
_DtCvSegmentI *p_seg,
|
||||
_DtCvUnit start_x,
|
||||
_DtCvUnit *script_x,
|
||||
_DtCvUnit *super_width,
|
||||
_DtCvUnit *super_y,
|
||||
_DtCvUnit *sub_width,
|
||||
_DtCvUnit *sub_y,
|
||||
_DtCvValue *super_flag,
|
||||
_DtCvValue *sub_flag);
|
||||
extern _DtCvUnit _DtCvAdvanceXOfLine (
|
||||
_DtCanvasStruct *canvas,
|
||||
_DtCvSegmentI *p_seg,
|
||||
_DtCvUnit x_pos,
|
||||
int *link_idx,
|
||||
_DtCvValue *link_flag);
|
||||
extern _DtCvStatus _DtCvCheckInfringement (
|
||||
_DtCvUnit tst_top,
|
||||
_DtCvUnit tst_bot,
|
||||
_DtCvUnit obj_top,
|
||||
_DtCvUnit obj_bot);
|
||||
extern void _DtCvCheckLineMarks (
|
||||
_DtCanvasStruct *canvas,
|
||||
int line_idx,
|
||||
int char_idx,
|
||||
int length,
|
||||
_DtCvUnit dst_x,
|
||||
_DtCvFlags check_flags,
|
||||
int *ret_len,
|
||||
_DtCvFlags *ret_old,
|
||||
_DtCvFlags *ret_new);
|
||||
extern void _DtCvClearInternalUse (
|
||||
_DtCvSegmentI *list,
|
||||
_DtCvStatus flag);
|
||||
extern _DtCvUnit _DtCvDrawSegments(
|
||||
_DtCanvasStruct *canvas,
|
||||
_DtCvDspLine line,
|
||||
_DtCvSegmentI *p_seg,
|
||||
int start_char,
|
||||
int count,
|
||||
int *prev_lnk,
|
||||
_DtCvUnit txt_x,
|
||||
_DtCvUnit sel_x,
|
||||
_DtCvUnit *scriptX,
|
||||
_DtCvUnit *super_width,
|
||||
_DtCvUnit *super_y,
|
||||
_DtCvUnit *sub_width,
|
||||
_DtCvUnit *sub_y,
|
||||
_DtCvValue *last_was_sub,
|
||||
_DtCvValue *last_was_super,
|
||||
_DtCvValue *last_link_vis,
|
||||
_DtCvFlags old_flag,
|
||||
_DtCvFlags new_flag,
|
||||
_DtCvElemType trav_flag,
|
||||
_DtCvPointer trav_data);
|
||||
extern int _DtCvGetCharIdx(
|
||||
_DtCanvasStruct *canvas,
|
||||
_DtCvDspLine line,
|
||||
_DtCvUnit find_x);
|
||||
extern _DtCvUnit _DtCvGetStartXOfLine(
|
||||
_DtCvDspLine *line,
|
||||
_DtCvSegmentI **pSeg);
|
||||
extern void _DtCvGetWidthOfSegment(
|
||||
_DtCanvasStruct *canvas,
|
||||
_DtCvSegmentI *p_seg,
|
||||
int start,
|
||||
int max_cnt,
|
||||
int *ret_cnt,
|
||||
_DtCvUnit *ret_w,
|
||||
_DtCvValue *ret_trimmed);
|
||||
extern _DtCvValue _DtCvModifyXpos(
|
||||
_DtCvSpaceMetrics info,
|
||||
_DtCvSegmentI *seg,
|
||||
_DtCvValue tst_result,
|
||||
_DtCvValue old_result,
|
||||
int idx,
|
||||
_DtCvUnit *x_pos);
|
||||
extern void _DtCvSkipLineChars(
|
||||
_DtCanvasStruct *canvas,
|
||||
_DtCvSegmentI *p_seg,
|
||||
int start,
|
||||
int max_cnt,
|
||||
int use_len,
|
||||
int *ret_start,
|
||||
_DtCvSegmentI **ret_seg);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtCanvasI_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
53
cde/include/DtI/DisplayAreaI.h
Normal file
53
cde/include/DtI/DisplayAreaI.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: DisplayAreaI.h /main/2 1996/05/09 03:41:47 drk $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: DisplayAreaI.h
|
||||
**
|
||||
** Project: Cde Help System
|
||||
**
|
||||
** Description: Defines the Display Area structures and defines.
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtHelpDisplayAreaI_h
|
||||
#define _DtHelpDisplayAreaI_h
|
||||
|
||||
typedef struct {
|
||||
int reason;
|
||||
XEvent *event;
|
||||
Window window;
|
||||
char *specification;
|
||||
int hyper_type;
|
||||
int window_hint;
|
||||
} DtHelpHyperTextStruct;
|
||||
|
||||
#endif /* _DtHelpDisplayAreaI_h */
|
||||
264
cde/include/DtI/DisplayAreaP.h
Normal file
264
cde/include/DtI/DisplayAreaP.h
Normal file
@@ -0,0 +1,264 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: DisplayAreaP.h /main/18 1996/08/13 11:35:51 cde-hp $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: DisplayAreaP.h
|
||||
**
|
||||
** Project: Cde Help System
|
||||
**
|
||||
** Description: Defines the Display Area structures and defines.
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
/*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992,
|
||||
1993, 1994, 1996 Hewlett-Packard Company.
|
||||
* (c) Copyright 1993, 1994, 1996 International Business Machines Corp.
|
||||
* (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.
|
||||
* (c) Copyright 1993, 1994, 1996 Novell, Inc.
|
||||
* (c) Copyright 1996 FUJITSU LIMITED.
|
||||
* (c) Copyright 1996 Hitachi.
|
||||
*/
|
||||
|
||||
#ifndef _DtHelpDisplayAreaP_h
|
||||
#define _DtHelpDisplayAreaP_h
|
||||
|
||||
#include <X11/X.h>
|
||||
#include <Xm/XmP.h>
|
||||
#include <Dt/CanvasP.h>
|
||||
#include <DtI/GraphicsP.h>
|
||||
|
||||
/*
|
||||
* Traversal flags
|
||||
*/
|
||||
#define _DT_HELP_SHADOW_TRAVERSAL (1 << 0)
|
||||
#define _DT_HELP_NOT_INITIALIZED (1 << 1)
|
||||
#define _DT_HELP_TRAVERSAL_DRAWN (1 << 2)
|
||||
#define _DT_HELP_DRAW_TOC_IND (1 << 3)
|
||||
#define _DT_HELP_CLEAR_TOC_IND (1 << 4)
|
||||
#define _DT_HELP_TOC_ON (1 << 5)
|
||||
|
||||
/*
|
||||
* enum states for selection
|
||||
*/
|
||||
enum _DtHelpSelectState
|
||||
{
|
||||
_DtHelpNothingDoing,
|
||||
_DtHelpCopyOrLink,
|
||||
_DtHelpSelectingText
|
||||
};
|
||||
|
||||
/*
|
||||
* Whether the display area has the focus or not
|
||||
*/
|
||||
#define _DT_HELP_FOCUS_FLAG 0x04
|
||||
|
||||
typedef struct {
|
||||
int used;
|
||||
int num_pixels;
|
||||
Pixmap pix;
|
||||
Pixmap mask;
|
||||
Dimension width;
|
||||
Dimension height;
|
||||
Pixel *pixels;
|
||||
} DtHelpGraphicStruct;
|
||||
|
||||
typedef struct {
|
||||
_DtCvPointer font_ptr;
|
||||
int spc_idx;
|
||||
} DtHelpSpecialChars;
|
||||
|
||||
typedef struct _dtHelpDAFontMetrics {
|
||||
_DtCvUnit ascent; /* Maximum ascent */
|
||||
_DtCvUnit descent; /* Maximum descent */
|
||||
_DtCvUnit average_width; /* Average width of a character */
|
||||
_DtCvUnit super; /* Offset from baseline for super scripts */
|
||||
_DtCvUnit sub; /* Offset from baseline for sub scripts */
|
||||
} _DtHelpDAFontMetrics;
|
||||
|
||||
typedef struct {
|
||||
short inited;
|
||||
_DtHelpDAFontMetrics fm;
|
||||
} DtHelpDAFSMetrics;
|
||||
|
||||
typedef struct _DtHelpDAfontInfo {
|
||||
char **exact_fonts; /* the list of fonts specified by the
|
||||
toss element rather than hints. */
|
||||
XrmDatabase def_font_db; /* The default font resource db */
|
||||
XrmDatabase font_idx_db; /* Which font index goes with which
|
||||
set of font resources */
|
||||
XFontStruct **font_structs; /* The font structures opened */
|
||||
XFontSet *font_sets; /* The font sets opened */
|
||||
DtHelpDAFSMetrics *fs_metrics;
|
||||
|
||||
XrmQuark lang_charset; /* the char set for current lang */
|
||||
int *exact_idx; /* The indexes for the exact fonts */
|
||||
int max_structs; /* the max number of font_structs */
|
||||
int max_sets; /* The max number of font_sets */
|
||||
int struct_cnt; /* the cur number of font_structs */
|
||||
int set_cnt; /* The cur number of font_sets */
|
||||
long def_idx; /* The default index */
|
||||
} DtHelpDAFontInfo;
|
||||
|
||||
/*
|
||||
* SelectionScroll structure
|
||||
*/
|
||||
typedef struct {
|
||||
int horizontal_reason;
|
||||
int vertical_reason;
|
||||
} SelectionScrollStruct;
|
||||
|
||||
/*
|
||||
* DisplayArea structure
|
||||
*/
|
||||
typedef struct _dtHelpDispAreaStruct {
|
||||
Widget dispWid; /* The text and graphic area. */
|
||||
Widget vertScrollWid; /* The vertical scroll bar */
|
||||
Widget horzScrollWid; /* The horizontal scroll bar */
|
||||
Boolean vertIsMapped;
|
||||
Boolean horzIsMapped;
|
||||
short neededFlags; /* _DtHelpAS_NEEDED flags */
|
||||
short nl_to_space; /* are newlines in multibyte */
|
||||
/* strings turned into spaces? */
|
||||
|
||||
Dimension formWidth; /* Pixel width of the parent area */
|
||||
Dimension formHeight; /* Pixel height of the parent area */
|
||||
Dimension dispWidth; /* Pixel width of the display area */
|
||||
Dimension dispHeight; /* Pixel height of the display area */
|
||||
Dimension dispUseHeight; /* Pixel height of the display area
|
||||
minus the decor margin. */
|
||||
Dimension dispUseWidth; /* Pixel width of the display area
|
||||
minus the decor margin. */
|
||||
Dimension marginWidth; /* Pixel padding at the left and
|
||||
right of the display area. */
|
||||
Dimension marginHeight; /* Pixel padding at the top and
|
||||
bottom of the display area. */
|
||||
|
||||
short decorThickness; /* the shadow thickness plus highlight
|
||||
thickness of the display area */
|
||||
|
||||
void (*hyperCall)(); /* The hypertext callback */
|
||||
void (*resizeCall)(); /* The resize callback */
|
||||
int (*exec_filter)(); /* The execution filter callback */
|
||||
XtPointer clientData; /* The client's data for the callback */
|
||||
|
||||
Pixel traversalColor; /* The client's traversal color */
|
||||
Pixel foregroundColor; /* The client's foreground color */
|
||||
Pixel backgroundColor; /* The client's foreground color */
|
||||
Pixel searchColor; /* The client's search hilite color */
|
||||
GC pixmapGC;
|
||||
GC normalGC;
|
||||
GC invertGC;
|
||||
Pixmap def_pix; /* the default 'missing pixmap' */
|
||||
Dimension def_pix_width; /* the width of the default pixmap */
|
||||
Dimension def_pix_height; /* the height of the default pixmap */
|
||||
_DtGrContext *context; /* image converter context */
|
||||
|
||||
Colormap colormap; /* The colormap to use */
|
||||
Visual *visual; /* The visual to use */
|
||||
|
||||
DtHelpDAFontInfo font_info; /* The font information */
|
||||
|
||||
int depth; /* The depth of the window */
|
||||
|
||||
int fontAscent;
|
||||
int lineHeight;
|
||||
int leading;
|
||||
long charWidth; /* The average size of a character */
|
||||
int moveThreshold; /* The number of pixels that must
|
||||
be moved before a copy-paste
|
||||
action occurs. */
|
||||
int underLine;
|
||||
int lineThickness; /* For traversal box and underline */
|
||||
int firstVisible; /* The absolute number of the first
|
||||
line visible in the window. */
|
||||
int nextNonVisible; /* The absolute number of the first
|
||||
line non visible, next to the last
|
||||
visible window. */
|
||||
int visibleCount; /* The number of lines viewable */
|
||||
int maxYpos; /* Maximum Y positioning */
|
||||
|
||||
int virtualX; /* The virtual x of the window */
|
||||
int maxX; /* The max virtual x of a line */
|
||||
|
||||
int max_spc; /* The maximum special characters */
|
||||
int cur_spc; /* The current unused structure */
|
||||
int timerX; /* Used for button clicks/selections */
|
||||
int timerY; /* Used for button clicks/selections */
|
||||
int scr_timer_x; /* Used for button clicks/selections */
|
||||
int scr_timer_y; /* Used for button clicks/selections */
|
||||
int vert_init_scr; /* The initial vert scrolling timeout*/
|
||||
int vert_rep_scr; /* The repeat vert scrolling timeout */
|
||||
int horz_init_scr; /* The initial horz scrolling timeout*/
|
||||
int horz_rep_scr; /* The repeat horz scrolling timeout */
|
||||
_DtCvUnit toc_width; /* The width of the toc indicator */
|
||||
_DtCvUnit toc_height; /* The height of the toc indicator */
|
||||
_DtCvUnit toc_y; /* The y coordinate of the toc */
|
||||
_DtCvUnit toc_base; /* The baseline coordinate of the toc*/
|
||||
|
||||
Time anchor_time; /* Indicates the primary selection
|
||||
time. */
|
||||
Boolean primary; /* Indicates if this widget has the
|
||||
primary selection */
|
||||
Boolean text_selected; /* Indicates if the selection has
|
||||
occurred */
|
||||
enum _DtHelpSelectState select_state;
|
||||
/* Indicates the state of the current
|
||||
selection. */
|
||||
short toc_flag; /* Indicates if the traversal indicator
|
||||
is always on. */
|
||||
_DtCvPointer toc_indicator; /* The indicator used in the toc */
|
||||
|
||||
XtIntervalId scr_timer_id;
|
||||
SelectionScrollStruct scr_timer_data;
|
||||
DtHelpSpecialChars *spc_chars; /* Structure containing the spc chars */
|
||||
_DtCvHandle canvas;
|
||||
_DtCvTopicPtr lst_topic;
|
||||
wchar_t *cant_begin_chars; /* characters that cannot */
|
||||
/* begin a line of text */
|
||||
wchar_t *cant_end_chars; /* characters that cannot */
|
||||
/* end a line of text */
|
||||
|
||||
short dtinfo; /* Indicates if being used by dtinfo */
|
||||
Pixmap stipple; /* stippled pixmap */
|
||||
|
||||
/* callback to be called whenever you manipulate the display */
|
||||
/* area's vertical scrollbar directly using XtSetValues, */
|
||||
/* because the application (dtinfo) has callbacks on the */
|
||||
/* scrollbar, these do not get called when we adjust it with */
|
||||
/* XtSetValues() */
|
||||
void (*vScrollNotify)(void *,unsigned int);
|
||||
|
||||
/* dtinfo requires this for doing link previews */
|
||||
void (*armCallback)(void*);
|
||||
|
||||
_DtCvValue honor_size; /* Layout parameter for _DtCvSetTopic */
|
||||
_DtCvRenderType render_type; /* Render type performed on expose */
|
||||
unsigned short media_resolution; /* used for scaling images */
|
||||
|
||||
} DtHelpDispAreaStruct;
|
||||
|
||||
#endif /* _DtHelpDisplayAreaP_h */
|
||||
84
cde/include/DtI/FileUtilsI.h
Normal file
84
cde/include/DtI/FileUtilsI.h
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: FileUtilsI.h /main/5 1995/10/26 12:19:41 rswiston $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: FileUtilsI.h
|
||||
**
|
||||
** Project: DtHelp Project
|
||||
**
|
||||
** Description: File locating and handling utilities
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
**
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtHelpFileUtilsI_h
|
||||
#define _DtHelpFileUtilsI_h
|
||||
|
||||
#define DtHelpVOLUME_TYPE "volumes" /* dir for %T in XtResolvePathname */
|
||||
#define DtHelpCCDF_VOL_SUFFIX ".hv" /* possible basename suffix */
|
||||
#define DtHelpSDL_VOL_SUFFIX ".sdl" /* possible basename suffix */
|
||||
|
||||
/* array indices and size for use with _DtHelpFileGetSearchPaths() */
|
||||
#define _DtHELP_FILE_USER_PATH 0
|
||||
#define _DtHELP_FILE_SYS_PATH 1
|
||||
#define _DtHELP_FILE_HOME_PATH 2
|
||||
#define _DtHELP_FILE_NUM_PATHS 3
|
||||
|
||||
typedef struct _dtHelpCeDirStruct {
|
||||
char *dir_name;
|
||||
int type;
|
||||
int user_flag;
|
||||
struct _dtHelpCeDirStruct *next_dir;
|
||||
} _DtHelpCeDirStruct;
|
||||
|
||||
/* list of suffixes that help volumes may have */
|
||||
extern const char * _DtHelpFileSuffixList[];
|
||||
|
||||
extern int _DtHelpCeCheckAndCacheDir(char *dir);
|
||||
extern void _DtHelpFileGetSearchPaths(
|
||||
char * paths[],
|
||||
Boolean searchHomeDir);
|
||||
extern char *_DtHelpFileLocate (
|
||||
char * type,
|
||||
char * base,
|
||||
const char * suffixList[],
|
||||
Boolean searchCurDir,
|
||||
int accessMode);
|
||||
extern Boolean _DtHelpFileTraceLinks (
|
||||
char * * pPathName);
|
||||
extern Boolean _DtHelpFileTraceToFile (
|
||||
char * * pPathName,
|
||||
int accessMode,
|
||||
char * * pFoundPath);
|
||||
|
||||
#endif /* _DtHelpFileUtilsI_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
|
||||
191
cde/include/DtI/FontAttrI.h
Normal file
191
cde/include/DtI/FontAttrI.h
Normal file
@@ -0,0 +1,191 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: FontAttrI.h /main/7 1995/12/06 18:36:56 cde-hp $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
** File: FontAttrI.h
|
||||
** Project: Common Desktop Environment
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtHelpFontAttrI_h
|
||||
#define _DtHelpFontAttrI_h
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/******** Public Defines Declarations ********/
|
||||
/*
|
||||
* font attributes
|
||||
*/
|
||||
#define _CEFONT_CHAR_SET 6
|
||||
#define _CEFONT_LANG_TER 5
|
||||
#define _CEFONT_TYPE 4
|
||||
#define _CEFONT_WEIGHT 3
|
||||
#define _CEFONT_ANGLE 2
|
||||
#define _CEFONT_SIZE 1
|
||||
#define _CEFONT_SPACING 0
|
||||
|
||||
#define _CEFONT_END 7
|
||||
|
||||
#define _CEFontAttrNumber 8
|
||||
|
||||
/******** Public Enum Declarations ********/
|
||||
enum _dtHelpFontValue
|
||||
{
|
||||
_DtHelpFontValueBad,
|
||||
/* styles */
|
||||
_DtHelpFontStyleSerif ,
|
||||
_DtHelpFontStyleSanSerif ,
|
||||
_DtHelpFontStyleSymbol,
|
||||
/* spacing */
|
||||
_DtHelpFontSpacingMono ,
|
||||
_DtHelpFontSpacingProp ,
|
||||
/* weights */
|
||||
_DtHelpFontWeightMedium ,
|
||||
_DtHelpFontWeightBold ,
|
||||
/* slant */
|
||||
_DtHelpFontSlantRevItalic ,
|
||||
_DtHelpFontSlantItalic ,
|
||||
_DtHelpFontSlantRoman ,
|
||||
/* special */
|
||||
_DtHelpFontSpecialUnderLine,
|
||||
_DtHelpFontSpecialStrikeOut,
|
||||
_DtHelpFontSpecialNone
|
||||
};
|
||||
|
||||
/******** Public Typedef Declarations ********/
|
||||
|
||||
typedef enum _dtHelpFontValue _DtHelpFontValue;
|
||||
|
||||
/******** Public Structures Declarations ********/
|
||||
|
||||
typedef struct _dtHelpFontHints {
|
||||
char *language;
|
||||
char *char_set;
|
||||
int pointsz; /* height of font in points */
|
||||
int set_width; /* width of font in points */
|
||||
char *color; /* 1 of 42 UDT colors or 'RGB:rrrr/gggg/bbbb */
|
||||
char *xlfd; /* xlfd name for use on X Window System */
|
||||
char *xlfdb; /* xlfd name for use on X Window System */
|
||||
char *xlfdi; /* xlfd name for use on X Window System */
|
||||
char *xlfdib; /* xlfd name for use on X Window System */
|
||||
char *typenam; /* typeface spec for MS-Windows interface */
|
||||
char *typenamb; /* typeface spec for MS-Windows interface */
|
||||
char *typenami; /* typeface spec for MS-Windows interface */
|
||||
char *typenamib; /* typeface spec for MS-Windows interface */
|
||||
_DtHelpFontValue style; /* font style */
|
||||
_DtHelpFontValue spacing; /* font spacing */
|
||||
_DtHelpFontValue weight; /* font weight */
|
||||
_DtHelpFontValue slant; /* font slant */
|
||||
_DtHelpFontValue special; /* special characteristics */
|
||||
void *expand; /* reserved pointer for later expansion */
|
||||
} _DtHelpFontHints;
|
||||
|
||||
/******** Public Structure Typedef Declarations ********/
|
||||
|
||||
/******** Public Prototyped Procedures ********/
|
||||
|
||||
/******** Public Macro Declarations ********/
|
||||
#ifndef _DtHelpFontHintsColor
|
||||
#define _DtHelpFontHintsColor(x) ((x).color)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsLang
|
||||
#define _DtHelpFontHintsLang(x) ((x).language)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsCharSet
|
||||
#define _DtHelpFontHintsCharSet(x) ((x).char_set)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsPtSize
|
||||
#define _DtHelpFontHintsPtSize(x) ((x).pointsz)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsWeight
|
||||
#define _DtHelpFontHintsWeight(x) ((x).weight)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsXlfd
|
||||
#define _DtHelpFontHintsXlfd(x) ((x).xlfd)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsXlfdb
|
||||
#define _DtHelpFontHintsXlfdb(x) ((x).xlfdb)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsXlfdi
|
||||
#define _DtHelpFontHintsXlfdi(x) ((x).xlfdi)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsXlfdib
|
||||
#define _DtHelpFontHintsXlfdib(x) ((x).xlfdib)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsTypeNam
|
||||
#define _DtHelpFontHintsTypeNam(x) ((x).typenam)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsTypeNamb
|
||||
#define _DtHelpFontHintsTypeNamb(x) ((x).typenamb)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsTypeNami
|
||||
#define _DtHelpFontHintsTypeNami(x) ((x).typenami)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontHintsTypeNamib
|
||||
#define _DtHelpFontHintsTypeNamib(x) ((x).typenamib)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontPtrPtSize
|
||||
#define _DtHelpFontPtrPtSize(x) ((x)->pointsz)
|
||||
#endif
|
||||
|
||||
#ifndef _DtHelpFontPtrWeight
|
||||
#define _DtHelpFontPtrWeight(x) ((x)->weight)
|
||||
#endif
|
||||
|
||||
/******** Semi-Public Function Declarations ********/
|
||||
|
||||
/******** Public Function Declarations ********/
|
||||
extern void _DtHelpCeCopyDefFontAttrList(_DtHelpFontHints *font_attr );
|
||||
extern int _DtHelpDupFontHints(_DtHelpFontHints *font_attr );
|
||||
extern void _DtHelpFreeFontHints(_DtHelpFontHints *font_attr );
|
||||
|
||||
/******** End Public Function Declarations ********/
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtHelpFontAttrI_h */
|
||||
125
cde/include/DtI/FontI.h
Normal file
125
cde/include/DtI/FontI.h
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: FontI.h /main/6 1995/12/08 13:00:51 cde-hal $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: FontI.h
|
||||
**
|
||||
** Project: TextGraphic Display routines
|
||||
**
|
||||
** Description: Header file for Font.c
|
||||
**
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtFontI_h
|
||||
#define _DtFontI_h
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/****************************************************************************
|
||||
* Semi Public Defines
|
||||
****************************************************************************/
|
||||
/*
|
||||
* resource database types
|
||||
*/
|
||||
#define _DtHelpXrmInt 0
|
||||
#define _DtHelpXrmQuark 1
|
||||
|
||||
/*
|
||||
* font quarks
|
||||
*/
|
||||
#define _DT_HELP_FONT_CHAR_SET 6
|
||||
#define _DT_HELP_FONT_LANG_TER 5
|
||||
#define _DT_HELP_FONT_TYPE 4
|
||||
#define _DT_HELP_FONT_WEIGHT 3
|
||||
#define _DT_HELP_FONT_ANGLE 2
|
||||
#define _DT_HELP_FONT_SIZE 1
|
||||
#define _DT_HELP_FONT_SPACING 0
|
||||
|
||||
#define _DT_HELP_FONT_END 7
|
||||
|
||||
#define _DtHelpFontQuarkNumber 8
|
||||
|
||||
/****************************************************************************
|
||||
* Semi Public Structures
|
||||
****************************************************************************/
|
||||
/****************************************************************************
|
||||
* Semi Public Routines
|
||||
****************************************************************************/
|
||||
extern void _DtHelpCopyDefaultList(XrmName *xrm_list);
|
||||
extern long __DtHelpDefaultFontIndexGet (
|
||||
DtHelpDispAreaStruct *pDAS);
|
||||
extern void _DtHelpGetStringQuarks(XrmName *xrm_list);
|
||||
extern int __DtHelpFontCharSetQuarkGet(
|
||||
DtHelpDispAreaStruct *pDAS,
|
||||
long font_index,
|
||||
XrmQuark *ret_quark);
|
||||
extern void __DtHelpFontDatabaseInit (
|
||||
DtHelpDispAreaStruct *pDAS,
|
||||
XtPointer default_font,
|
||||
XmFontType entry_type,
|
||||
XFontStruct *user_font);
|
||||
extern int __DtHelpFontIndexGet (
|
||||
DtHelpDispAreaStruct *pDAS,
|
||||
XrmQuarkList xrm_list,
|
||||
long *ret_idx);
|
||||
extern int __DtHelpFontLangQuarkGet(
|
||||
DtHelpDispAreaStruct *pDAS,
|
||||
long font_index,
|
||||
XrmQuark *ret_quark);
|
||||
extern void __DtHelpFontMetrics (
|
||||
DtHelpDAFontInfo font_info,
|
||||
long font_index,
|
||||
_DtCvUnit *ret_ascent,
|
||||
_DtCvUnit *ret_descent,
|
||||
_DtCvUnit *ret_char_width,
|
||||
_DtCvUnit *ret_super,
|
||||
_DtCvUnit *ret_sub);
|
||||
extern XFontSet __DtHelpFontSetGet (
|
||||
DtHelpDAFontInfo font_info,
|
||||
long font_index );
|
||||
extern XFontStruct *__DtHelpFontStructGet (
|
||||
DtHelpDAFontInfo font_info,
|
||||
long font_index);
|
||||
extern int _DtHelpGetExactFontIndex(
|
||||
DtHelpDispAreaStruct *pDAS,
|
||||
const char *lang,
|
||||
const char *char_set,
|
||||
char *xlfd_spec,
|
||||
long *ret_idx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _DtHelpFontI_h */
|
||||
146
cde/include/DtI/GifUtilsI.h
Normal file
146
cde/include/DtI/GifUtilsI.h
Normal file
@@ -0,0 +1,146 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: GifUtilsI.h /main/3 1996/05/09 03:42:55 drk $ */
|
||||
#ifndef _DtGifUtilsI_h
|
||||
#define _DtGifUtilsI_h
|
||||
|
||||
/* Include files */
|
||||
#include <X11/Xlib.h>
|
||||
#include "GraphicsP.h"
|
||||
|
||||
/* Enumerated values */
|
||||
enum op_t { DO_COLOR, DO_GREY };
|
||||
|
||||
/* Type definitions */
|
||||
typedef unsigned char byte;
|
||||
typedef unsigned long pixel;
|
||||
|
||||
/* Data structures */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned long pixel;
|
||||
unsigned short red, green, blue;
|
||||
unsigned short grey;
|
||||
} GifColors;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XImage *f_ximage;
|
||||
Display *f_dpy;
|
||||
int f_screen;
|
||||
Colormap f_cmap;
|
||||
Drawable f_drawable;
|
||||
GC f_gc;
|
||||
Visual *f_visual;
|
||||
unsigned int f_ncells;
|
||||
unsigned int f_nplanes;
|
||||
unsigned long f_black;
|
||||
unsigned long f_white;
|
||||
unsigned long f_fg;
|
||||
unsigned long f_bg;
|
||||
int f_dft_depth;
|
||||
int f_visual_class;
|
||||
int f_color_map_constructed;
|
||||
int f_do_visual;
|
||||
int bits_per_pixel ;
|
||||
int colors_per_pixel;
|
||||
int total_colors ;
|
||||
int f_total_greys;
|
||||
int f_init_total_greys;
|
||||
Boolean f_allow_reduced_colors;
|
||||
Boolean f_color_reduction_used;
|
||||
GifColors GifCMap[64];
|
||||
unsigned long GifGMap[32];
|
||||
} GifObj;
|
||||
|
||||
/* Function prototypes */
|
||||
|
||||
/* Initializes a gif object structure */
|
||||
enum _DtGrLoadStatus InitGifObject(
|
||||
GifObj *g,
|
||||
Display *dpy,
|
||||
Drawable drawable,
|
||||
Screen *screen,
|
||||
int depth,
|
||||
Colormap colormap,
|
||||
Visual *visual,
|
||||
GC gc,
|
||||
enum _DtGrColorModel colorModel,
|
||||
Boolean allowReducedColors
|
||||
);
|
||||
|
||||
/* Deletes resources associated with a gif object structure */
|
||||
void DeleteGifObjectResources(
|
||||
GifObj *g
|
||||
);
|
||||
|
||||
/* Converts a gif buffer to an X pixmap */
|
||||
Pixmap gif_to_pixmap(
|
||||
GifObj *g,
|
||||
byte *inbuf,
|
||||
unsigned int buflen,
|
||||
Dimension *w,
|
||||
Dimension *h,
|
||||
Pixel fg,
|
||||
Pixel bg,
|
||||
float ratio
|
||||
);
|
||||
|
||||
/* Creates a raw PPM-style image from a GIF buffer */
|
||||
pixel **create_raw_image(
|
||||
byte *inbuf,
|
||||
unsigned int buflen,
|
||||
int *width,
|
||||
int *height,
|
||||
int imageNumber
|
||||
);
|
||||
|
||||
/* Creates an X pixmap from a raw PPM-style image */
|
||||
Pixmap create_pixmap(
|
||||
GifObj *g,
|
||||
pixel **image,
|
||||
int width,
|
||||
int height,
|
||||
Pixel fg,
|
||||
Pixel bg,
|
||||
float ratio
|
||||
);
|
||||
|
||||
/* Frees raw image data */
|
||||
void free_raw_image(
|
||||
pixel **image
|
||||
);
|
||||
|
||||
/* Allocates X pixels needed for the color cube */
|
||||
int allocate_colors(
|
||||
GifObj *g
|
||||
);
|
||||
|
||||
/* Allocates X pixels needed for greyscale rendering */
|
||||
int allocate_greys(
|
||||
GifObj *g
|
||||
);
|
||||
|
||||
#endif /* _DtGifUtilsI_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
197
cde/include/DtI/GraphicsP.h
Normal file
197
cde/include/DtI/GraphicsP.h
Normal file
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: GraphicsP.h /main/4 1996/05/09 03:43:09 drk $ */
|
||||
#ifndef _DtGraphicsP_h
|
||||
#define _DtGraphicsP_h
|
||||
|
||||
#include <stdio.h>
|
||||
#include <X11/Intrinsic.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Input stream data structures
|
||||
*/
|
||||
|
||||
/* Stream source types */
|
||||
enum _DtGrStreamType { _DtGrNONE, _DtGrBUFFER, _DtGrFILE };
|
||||
|
||||
/* Stream file data */
|
||||
typedef struct
|
||||
{
|
||||
FILE *fileptr;
|
||||
char *filename;
|
||||
char *uncompressed_filename;
|
||||
} _DtGrFile;
|
||||
|
||||
/* Stream buffer data */
|
||||
typedef struct
|
||||
{
|
||||
const char *base;
|
||||
long size;
|
||||
char *current;
|
||||
char *end;
|
||||
} _DtGrBuffer;
|
||||
|
||||
/* Stream data */
|
||||
typedef struct
|
||||
{
|
||||
enum _DtGrStreamType type;
|
||||
union
|
||||
{
|
||||
_DtGrFile file;
|
||||
_DtGrBuffer buffer;
|
||||
} source;
|
||||
} _DtGrStream;
|
||||
|
||||
/*
|
||||
* Input stream function prototypes
|
||||
*/
|
||||
|
||||
/* Open a file stream */
|
||||
int _DtGrOpenFile(
|
||||
_DtGrStream *stream,
|
||||
char *path
|
||||
);
|
||||
|
||||
/* Open a buffer stream */
|
||||
int _DtGrOpenBuffer(
|
||||
_DtGrStream *stream,
|
||||
const char *buffer,
|
||||
int buffer_size
|
||||
);
|
||||
|
||||
/* Close a stream */
|
||||
int _DtGrCloseStream(
|
||||
_DtGrStream *stream
|
||||
);
|
||||
|
||||
/* Reads data from a stream into a buffer */
|
||||
size_t _DtGrRead(
|
||||
void *buffer,
|
||||
size_t size,
|
||||
size_t num_items,
|
||||
_DtGrStream *stream
|
||||
);
|
||||
|
||||
/* Sets the position of the next input operation on a stream */
|
||||
int _DtGrSeek(
|
||||
_DtGrStream *stream,
|
||||
long offset,
|
||||
int whence
|
||||
);
|
||||
|
||||
/* Reads a character from a stream and advances the stream position */
|
||||
int _DtGrGetChar(
|
||||
_DtGrStream *stream
|
||||
);
|
||||
|
||||
/* Reads a string from a stream and advances the stream position */
|
||||
char *_DtGrGetString(
|
||||
char *buffer,
|
||||
int num_bytes,
|
||||
_DtGrStream *stream
|
||||
);
|
||||
|
||||
/*
|
||||
* Inline graphics data structures
|
||||
*/
|
||||
|
||||
enum _DtGrColorModel { _DtGrCOLOR, _DtGrGRAY_SCALE, _DtGrBITONAL };
|
||||
enum _DtGrLoadStatus { _DtGrSUCCESS, _DtGrCOLOR_REDUCE,_DtGrCONVERT_FAILURE,
|
||||
_DtGrOPEN_FAILED, _DtGrFILE_INVALID, _DtGrNO_MEMORY,
|
||||
_DtGrCOLOR_FAILED };
|
||||
|
||||
/* Context structure used by image type converters */
|
||||
typedef struct {
|
||||
char *image_type;
|
||||
XPointer context;
|
||||
} _DtGrContext;
|
||||
|
||||
typedef enum _DtGrLoadStatus (*_DtGrLoadProc)(
|
||||
_DtGrStream *stream,
|
||||
Screen *screen,
|
||||
int depth,
|
||||
Colormap colormap,
|
||||
Visual *visual,
|
||||
Pixel foreground,
|
||||
Pixel background,
|
||||
GC gc,
|
||||
enum _DtGrColorModel color_model,
|
||||
Boolean allow_reduced_colors,
|
||||
Dimension *in_out_width,
|
||||
Dimension *in_out_height,
|
||||
unsigned short media_resolution,
|
||||
Pixmap *ret_pixmap,
|
||||
Pixmap *ret_mask,
|
||||
Pixel **ret_colors,
|
||||
int *ret_num_colors,
|
||||
_DtGrContext *context);
|
||||
|
||||
typedef void (*_DtGrDestroyContextProc)(
|
||||
_DtGrContext *context);
|
||||
|
||||
/*
|
||||
* Inline graphics function prototypes
|
||||
*/
|
||||
|
||||
/* Loads an image into a pixmap */
|
||||
enum _DtGrLoadStatus _DtGrLoad(
|
||||
_DtGrStream *stream,
|
||||
char **image_type,
|
||||
Screen *screen,
|
||||
int depth,
|
||||
Colormap colormap,
|
||||
Visual *visual,
|
||||
Pixel foreground,
|
||||
Pixel background,
|
||||
GC gc,
|
||||
enum _DtGrColorModel color_model,
|
||||
Boolean allow_reduced_colors,
|
||||
Dimension *in_out_width,
|
||||
Dimension *in_out_height,
|
||||
unsigned short media_resolution,
|
||||
Pixmap *ret_pixmap,
|
||||
Pixmap *ret_mask,
|
||||
Pixel **ret_colors,
|
||||
int *ret_num_colors,
|
||||
_DtGrContext *context);
|
||||
|
||||
/* Destroys a context */
|
||||
void _DtGrDestroyContext(
|
||||
_DtGrContext *context);
|
||||
|
||||
/* Registers a converter for a graphic type */
|
||||
void _DtGrRegisterConverter(
|
||||
char *image_type,
|
||||
_DtGrLoadProc convert_proc,
|
||||
_DtGrDestroyContextProc destroy_context_proc,
|
||||
_DtGrLoadProc *current_convert_proc,
|
||||
_DtGrDestroyContextProc *current_destroy_proc);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _DtGraphicsP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
201
cde/include/DtI/HelpTermP.h
Normal file
201
cde/include/DtI/HelpTermP.h
Normal file
@@ -0,0 +1,201 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: HelpTermP.h /main/4 1995/10/26 12:25:56 rswiston $ */
|
||||
/*************************************<+>*************************************
|
||||
*****************************************************************************
|
||||
**
|
||||
** File: FormatTerm.h
|
||||
**
|
||||
** Project: Cache Creek (Rivers) Project:
|
||||
**
|
||||
** Description: Public Header file for FormatTerm.c, the terminal access
|
||||
** functions.
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
*******************************************************************
|
||||
*************************************<+>*************************************/
|
||||
#ifndef _DtHelpFormatTermP_h
|
||||
#define _DtHelpFormatTermP_h
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**************************
|
||||
* Link Types and Window
|
||||
* Hints should match what
|
||||
* is in Canvas.h
|
||||
**************************/
|
||||
/**************************
|
||||
* Link Types
|
||||
**************************/
|
||||
|
||||
#ifndef CELinkType_Execute
|
||||
#define CELinkType_Execute 3
|
||||
#endif
|
||||
#ifndef CELinkType_ManPage
|
||||
#define CELinkType_ManPage 4
|
||||
#endif
|
||||
#ifndef CELinkType_AppDefine
|
||||
#define CELinkType_AppDefine 5
|
||||
#endif
|
||||
#ifndef CELinkType_SameVolume
|
||||
#define CELinkType_SameVolume 6
|
||||
#endif
|
||||
#ifndef CELinkType_CrossLink
|
||||
#define CELinkType_CrossLink 7
|
||||
#endif
|
||||
#ifndef CELinkType_TextFile
|
||||
#define CELinkType_TextFile 8
|
||||
#endif
|
||||
|
||||
|
||||
/**************************
|
||||
* Window Hint Kinds
|
||||
**************************/
|
||||
|
||||
#ifndef CEWindowHint_PopupWindow
|
||||
#define CEWindowHint_PopupWindow 1
|
||||
#endif
|
||||
#ifndef CEWindowHint_CurrentWindow
|
||||
#define CEWindowHint_CurrentWindow 2
|
||||
#endif
|
||||
#ifndef CEWindowHint_NewWindow
|
||||
#define CEWindowHint_NewWindow 3
|
||||
#endif
|
||||
|
||||
/******** Public Defines Declarations ********/
|
||||
|
||||
/******** Public Structures Declarations ********/
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Structure: DtHelpHyperLines
|
||||
*
|
||||
* Fields: title Indicates the title of the linked topic.
|
||||
* specification Contains the hypertext link information.
|
||||
* hyper_type Specifies the hypertext links type.
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
typedef struct {
|
||||
char *title;
|
||||
char *specification;
|
||||
int hyper_type;
|
||||
int win_hint;
|
||||
} DtHelpHyperLines;
|
||||
|
||||
|
||||
/******** Public Function Declarations ********/
|
||||
|
||||
/*****************************************************************************
|
||||
* Function: extern void _DtHelpFreeTopicData (
|
||||
* char **helpList,
|
||||
* DtHelpHyperLines *hyperList)
|
||||
*
|
||||
*
|
||||
* Parameters: helpList Specifies the parent widget ID.
|
||||
* hyperList Specifies the name of the created dialog
|
||||
*
|
||||
* Return Value: void.
|
||||
*
|
||||
* Purpose: Free up the info gotten by _DtHelpGetTopicData.
|
||||
*
|
||||
*****************************************************************************/
|
||||
extern void _DtHelpFreeTopicData (
|
||||
char **helpList,
|
||||
DtHelpHyperLines *hyperList);
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Function: extern int _DtHelpGetTopicData(
|
||||
* char *helpVolume,
|
||||
* char *locationID,
|
||||
* int maxColumns,
|
||||
* char ***helpList,
|
||||
* DtHelpHyperLines **hyperList);
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
*
|
||||
* Return Value: int value, -1 implies that the function call failed, a
|
||||
* value of 0, implies that the call was successful.
|
||||
*
|
||||
* Purpose: Allows developers to extract semi-formatted ASCII data
|
||||
* from a Cache Creek help file.
|
||||
*
|
||||
*****************************************************************************/
|
||||
extern int _DtHelpGetTopicData (
|
||||
char *helpVolume,
|
||||
char *locationID,
|
||||
int maxColumns,
|
||||
char ***helpList,
|
||||
DtHelpHyperLines **hyperList);
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Function: extern int _DtHelpProcessLinkData(
|
||||
* DtHelpHyperLines *hyperLine,
|
||||
* char **helpVolume,
|
||||
* char **locationId )
|
||||
*
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
*
|
||||
* Return Value: int value, -1 implies that the function call failed, a
|
||||
* value of 0, implies that the call was successful.
|
||||
*
|
||||
* Purpose: This function is used in conjunction with the
|
||||
* _DtHelpGetTopicData() function call to provide developers
|
||||
* with a mechanism in which they can traverse Cache Creek
|
||||
* hypertext links. This call will return the file and
|
||||
* locationid information that when used with the
|
||||
* DtGetTopicData function will retrrieve the help text
|
||||
* and new hypertext information associated with the previous
|
||||
* hypertext link information.
|
||||
*
|
||||
*****************************************************************************/
|
||||
extern int _DtHelpProcessLinkData (
|
||||
char *ref_volume,
|
||||
DtHelpHyperLines *hyperLine,
|
||||
char **helpVolume,
|
||||
char **locationId);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _DtHelpFormatTermP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
159
cde/include/DtI/HelposI.h
Normal file
159
cde/include/DtI/HelposI.h
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $TOG: HelposI.h /main/8 1998/07/28 15:38:41 mgreess $ */
|
||||
/*************************************<+>*************************************
|
||||
*****************************************************************************
|
||||
**
|
||||
** File: DtosI.h
|
||||
**
|
||||
** Project: Rivers Project,
|
||||
**
|
||||
** Description: Internal header file for our Dtos.c module
|
||||
** -----------
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
*******************************************************************
|
||||
*************************************<+>*************************************/
|
||||
#ifndef _DtosI_h
|
||||
#define _DtosI_h
|
||||
|
||||
|
||||
#ifndef NO_MESSAGE_CATALOG
|
||||
# define _DTGETMESSAGE(set, n, s) _DtHelpGetMessage(set, n, s)
|
||||
#else
|
||||
# define _DTGETMESSAGE(set, n, s) s
|
||||
#endif
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Function: Boolean _DtHelpOSGetHomeDirName(
|
||||
*
|
||||
*
|
||||
* Parameters: Output string, size of output string buffer
|
||||
*
|
||||
* Return Value: String.
|
||||
*
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
*****************************************************************************/
|
||||
extern void _DtHelpOSGetHomeDirName(
|
||||
String outptr,
|
||||
size_t len);
|
||||
|
||||
/*****************************************************************************
|
||||
* Function: _DtHelpGetUserSearchPath(
|
||||
*
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
* Return Value: String, owned by caller.
|
||||
*
|
||||
*
|
||||
* Description:
|
||||
* Gets the user search path for use
|
||||
* when searching for a volume.
|
||||
* Takes path from the environment,
|
||||
* or uses the default path.
|
||||
*
|
||||
*****************************************************************************/
|
||||
String _DtHelpGetUserSearchPath(void);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Function: _DtHelpGetSystemSearchPath(
|
||||
*
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
* Return Value: String, owned by caller.
|
||||
*
|
||||
*
|
||||
* Description:
|
||||
* Gets the system search path for use
|
||||
* when searching for a volume.
|
||||
* Takes path from the environment,
|
||||
* or uses the default path.
|
||||
*
|
||||
*****************************************************************************/
|
||||
String _DtHelpGetSystemSearchPath(void);
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Function: Boolean _DtHelpGetMessage(
|
||||
*
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
* Return Value: char *
|
||||
*
|
||||
*
|
||||
* Description: This function will retreive the requested message from the
|
||||
* cache proper cache creek message catalog file.
|
||||
*
|
||||
*****************************************************************************/
|
||||
extern char *_DtHelpGetMessage(
|
||||
int set,
|
||||
int n,
|
||||
char *s);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Function: char * _DtHelpGetLocale(
|
||||
*
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
* Return Value: char *
|
||||
*
|
||||
*
|
||||
* Description: Returns the value of LC_MESSAGES from the environ.
|
||||
* If that is NULL, returns the value of LANG form the environ.
|
||||
* If that is NULL, returns NULL.
|
||||
*
|
||||
*****************************************************************************/
|
||||
extern char *_DtHelpGetLocale(void);
|
||||
|
||||
|
||||
#endif /* _DtosI_h */
|
||||
/* Do not add anything after this endif. */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
120
cde/include/DtI/HourGlassI.h
Normal file
120
cde/include/DtI/HourGlassI.h
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: HourGlassI.h /main/5 1995/10/26 12:27:38 rswiston $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: HourGlassI.h
|
||||
**
|
||||
** Project: Cache Creek
|
||||
**
|
||||
** Description: Internal include file for HourGlass Library.
|
||||
**
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
**
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
|
||||
#ifndef _hourglassI_h
|
||||
#define _hourglassI_h
|
||||
|
||||
/* DtHelpGetHourGlassCursor -
|
||||
*
|
||||
* Builds and returns the appropriate HourGlass cursor.
|
||||
*/
|
||||
|
||||
extern Cursor DtHelpGetHourGlassCursor(
|
||||
Display *dpy) ;
|
||||
|
||||
/* DtHelpTurnOnHourGlass -
|
||||
*
|
||||
* Gets and displays an hourglass cursor in the window of the widget
|
||||
* which is passed in to the funciton.
|
||||
*/
|
||||
|
||||
extern void _DtHelpTurnOnHourGlass(
|
||||
Widget w) ;
|
||||
|
||||
/* Widget widget;
|
||||
*
|
||||
* widget is the toplevel shell of the window you want
|
||||
* the hourglass cursor to appear in.
|
||||
*/
|
||||
|
||||
|
||||
/* DtHelpTurnOffHourGlass -
|
||||
*
|
||||
* Removes the hourglass cursor from the window of the widget
|
||||
* which is passed in to the funciton.
|
||||
*/
|
||||
|
||||
extern void _DtHelpTurnOffHourGlass(
|
||||
Widget w) ;
|
||||
|
||||
/* Widget widget;
|
||||
*
|
||||
* widget is the toplevel shell of the window you want
|
||||
* to remove hourglass cursor from.
|
||||
*/
|
||||
|
||||
/* DtHelpTurnOnNoEnter -
|
||||
*
|
||||
* Removes the hourglass cursor from the window of the widget
|
||||
* which is passed in to the funciton.
|
||||
*/
|
||||
|
||||
extern void _DtHelpTurnOnNoEnter(
|
||||
Widget w) ;
|
||||
|
||||
/* Widget widget;
|
||||
*
|
||||
* widget is the toplevel shell of the window you want
|
||||
* to remove hourglass cursor from.
|
||||
*/
|
||||
|
||||
/* DtHelpTurnOffNoEnter -
|
||||
*
|
||||
* Removes the hourglass cursor from the window of the widget
|
||||
* which is passed in to the funciton.
|
||||
*/
|
||||
|
||||
extern void _DtHelpTurnOffNoEnter(
|
||||
Widget w) ;
|
||||
|
||||
/* Widget widget;
|
||||
*
|
||||
* widget is the toplevel shell of the window you want
|
||||
* to remove hourglass cursor from.
|
||||
*/
|
||||
|
||||
|
||||
#endif /* _hourglassI_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
48
cde/include/DtI/JpegUtilsI.h
Normal file
48
cde/include/DtI/JpegUtilsI.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: JpegUtilsI.h /main/3 1996/10/06 19:37:31 rws $ */
|
||||
#ifndef _DtJpegUtilsI_h
|
||||
#define _DtJpegUtilsI_h
|
||||
|
||||
/* Include files */
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include "GraphicsP.h"
|
||||
|
||||
/* Function prototypes */
|
||||
|
||||
/* Creates a pixmap from a jpeg stream */
|
||||
enum _DtGrLoadStatus jpeg_to_ximage (
|
||||
_DtGrStream *stream,
|
||||
Screen *screen,
|
||||
Visual *visual,
|
||||
Dimension *in_out_width,
|
||||
Dimension *in_out_height,
|
||||
XImage **ximage,
|
||||
XColor **xcolors,
|
||||
int *ncolors,
|
||||
int *xres
|
||||
);
|
||||
|
||||
#endif /* _DtJpegUtilsI_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
81
cde/include/DtI/LinkMgrP.h
Normal file
81
cde/include/DtI/LinkMgrP.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: LinkMgrP.h /main/2 1996/05/09 03:43:50 drk $ */
|
||||
/*************************************<+>*************************************
|
||||
*****************************************************************************
|
||||
**
|
||||
** File: LinkMgrP.h
|
||||
**
|
||||
** Project:
|
||||
**
|
||||
** Description: Public Header file for the Ling Manager
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
*******************************************************************
|
||||
*************************************<+>*************************************/
|
||||
#ifndef _DtCvLinkMgrP_h
|
||||
#define _DtCvLinkMgrP_h
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/******** Typedef Structures Declarations ********/
|
||||
#if !defined(_DtCanvasI_h) && !defined(_DtCvLinkMgrI_h)
|
||||
typedef struct _dtCvLinkDb* _DtCvLinkDb;
|
||||
#endif
|
||||
|
||||
/******** Public Function Declarations ********/
|
||||
|
||||
extern int _DtLinkDbAddLink (
|
||||
_DtCvLinkDb link_db,
|
||||
char *id,
|
||||
char *spec,
|
||||
int type,
|
||||
int hint,
|
||||
char *description);
|
||||
extern int _DtLinkDbAddSwitch (
|
||||
_DtCvLinkDb link_db,
|
||||
char *id,
|
||||
char *interp,
|
||||
char *cmd,
|
||||
char *branches);
|
||||
extern _DtCvLinkDb _DtLinkDbCreate (void);
|
||||
extern void _DtLinkDbDestroy (_DtCvLinkDb link_db);
|
||||
extern void _DtLinkDbRemoveLink(
|
||||
_DtCvLinkDb link_data,
|
||||
int link_index);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtCvLinkMgrP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
67
cde/include/DtI/RegionI.h
Normal file
67
cde/include/DtI/RegionI.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: RegionI.h /main/3 1996/05/09 03:44:34 drk $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: RegionI.h
|
||||
**
|
||||
** Project: Cde Help System
|
||||
**
|
||||
** Description: Defines the Region structure.
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtHelpRegionI_h
|
||||
#define _DtHelpRegionI_h
|
||||
|
||||
/******** Public Enum Declarations ********/
|
||||
|
||||
enum _dtHelpDARegType
|
||||
{
|
||||
_DtHelpDAGraphic,
|
||||
_DtHelpDASpc
|
||||
};
|
||||
|
||||
typedef enum _dtHelpDARegType _DtHelpDARegType;
|
||||
|
||||
/******** Public Structure Declarations ********/
|
||||
|
||||
typedef struct _dtHelpDARegion {
|
||||
short inited;
|
||||
_DtHelpDARegType type;
|
||||
_DtCvPointer handle;
|
||||
} _DtHelpDARegion;
|
||||
|
||||
typedef struct _dtHelpDASpcInfo {
|
||||
char *name;
|
||||
_DtHelpFontHints spc_fonts;
|
||||
} _DtHelpDASpcInfo;
|
||||
|
||||
#endif /* _DtHelpRegionI_h */
|
||||
79
cde/include/DtI/SetListI.h
Normal file
79
cde/include/DtI/SetListI.h
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: SetListI.h /main/6 1995/12/08 13:00:59 cde-hal $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: SetList.h
|
||||
**
|
||||
** Project: TextGraphic Display routines
|
||||
**
|
||||
** Description: Header file for SetListTG.h
|
||||
**
|
||||
**
|
||||
** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Novell, Inc.
|
||||
**
|
||||
**
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
#ifndef _DtHelpSetListI_h
|
||||
#define _DtHelpSetListI_h
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern XtPointer _DtHelpDisplayAreaData(
|
||||
XtPointer client_data);
|
||||
extern void _DtHelpDisplayAreaDimensionsReturn (
|
||||
XtPointer client_data,
|
||||
short *ret_rows,
|
||||
short *ret_columns );
|
||||
extern void _DtHelpDisplayAreaSetList (
|
||||
XtPointer client_data,
|
||||
XtPointer topicHandle,
|
||||
Boolean append_flag,
|
||||
int scroll_percent);
|
||||
extern Widget _DtHelpDisplayAreaWidget(
|
||||
XtPointer client_data);
|
||||
extern int _DtHelpGetScrollbarValue (
|
||||
XtPointer client_data);
|
||||
extern Boolean _DtHelpSetScrollBars (
|
||||
XtPointer client_data,
|
||||
Dimension new_width,
|
||||
Dimension new_height );
|
||||
extern int _DtHelpUpdatePath (
|
||||
DtHelpDispAreaStruct *pDAS,
|
||||
_DtHelpVolumeHdl volume_handle,
|
||||
char *loc_id);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _DtHelpSetListI_h */
|
||||
117
cde/include/DtI/XUICreateI.h
Normal file
117
cde/include/DtI/XUICreateI.h
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: XUICreateI.h /main/10 1996/03/21 15:38:59 rcs $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: XUICreateI.h
|
||||
**
|
||||
** Project: Cde Help System
|
||||
**
|
||||
** Description: Internal file for XUICreate.c
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
/*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992,
|
||||
1993, 1994, 1996 Hewlett-Packard Company.
|
||||
* (c) Copyright 1993, 1994, 1996 International Business Machines Corp.
|
||||
* (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.
|
||||
* (c) Copyright 1993, 1994, 1996 Novell, Inc.
|
||||
* (c) Copyright 1996 FUJITSU LIMITED.
|
||||
* (c) Copyright 1996 Hitachi.
|
||||
*/
|
||||
|
||||
#ifndef _DtHelpCreateI_h
|
||||
#define _DtHelpCreateI_h
|
||||
|
||||
#include "Dt/CanvasP.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*****************************************************************************
|
||||
* Defines
|
||||
*****************************************************************************/
|
||||
/*
|
||||
* scroll bar flags
|
||||
*/
|
||||
#define _DtHelpNONE 0
|
||||
#define _DtHelpSTATIC 1
|
||||
#define _DtHelpAS_NEEDED 2
|
||||
|
||||
#define _DtHelpVERTICAL_SCROLLBAR 0
|
||||
#define _DtHelpHORIZONTAL_SCROLLBAR 1
|
||||
|
||||
/*
|
||||
* scroll bar macros
|
||||
*/
|
||||
#define _DtHelpSET_AS_NEEDED(x,y) ((x) | (1 << y))
|
||||
#define _DtHelpIS_AS_NEEDED(x, y) ((x) & (1 << y))
|
||||
|
||||
/*****************************************************************************
|
||||
* Semi-Public Routines
|
||||
*****************************************************************************/
|
||||
extern void __DtHelpInitializeFontList (
|
||||
Display *dpy,
|
||||
XFontStruct *default_font);
|
||||
|
||||
/*****************************************************************************
|
||||
* Public Routines
|
||||
*****************************************************************************/
|
||||
extern XtPointer _DtHelpCreateDisplayArea (
|
||||
Widget parent,
|
||||
char *name,
|
||||
short vert_flag,
|
||||
short horiz_flag,
|
||||
Boolean marker_flag,
|
||||
int rows,
|
||||
int columns,
|
||||
void (*hyperTextCB)(),
|
||||
void (*resizeCB)(),
|
||||
int (*exec_ok_routine)(),
|
||||
XtPointer client_data,
|
||||
XmFontList default_list );
|
||||
|
||||
extern XtPointer _DtHelpCreateOutputArea (
|
||||
Widget parent,
|
||||
char *name,
|
||||
short vert_flag,
|
||||
short horiz_flag,
|
||||
Boolean marker_flag,
|
||||
_DtCvValue honor_size,
|
||||
_DtCvRenderType render_type,
|
||||
Dimension width,
|
||||
Dimension height,
|
||||
unsigned short media_resolution,
|
||||
void (*hyperTextCB)(),
|
||||
void (*resizeCB)(),
|
||||
int (*exec_ok_routine)(),
|
||||
XtPointer client_data,
|
||||
XmFontList default_list );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _DtHelpCreateI_h */
|
||||
57
cde/include/DtI/XbmUtilsI.h
Normal file
57
cde/include/DtI/XbmUtilsI.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: XbmUtilsI.h /main/2 1996/05/09 03:45:01 drk $ */
|
||||
#ifndef _DtXbmUtilsI_h
|
||||
#define _DtXbmUtilsI_h
|
||||
|
||||
/* Include files */
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include "GraphicsP.h"
|
||||
|
||||
/* Function prototypes */
|
||||
|
||||
/* Reads an XBM stream into a data buffer */
|
||||
int _DtGrReadBitmapStreamData (
|
||||
_DtGrStream *fstream,
|
||||
unsigned int *width, /* RETURNED */
|
||||
unsigned int *height, /* RETURNED */
|
||||
unsigned char **data, /* RETURNED */
|
||||
int *x_hot, /* RETURNED */
|
||||
int *y_hot /* RETURNED */
|
||||
);
|
||||
|
||||
/* Converts an XBM stream into an X pixmap */
|
||||
int _DtGrReadBitmapStream (
|
||||
Display *display,
|
||||
Drawable d,
|
||||
_DtGrStream *stream,
|
||||
unsigned int *width, /* RETURNED */
|
||||
unsigned int *height, /* RETURNED */
|
||||
Pixmap *pixmap, /* RETURNED */
|
||||
int *x_hot, /* RETURNED */
|
||||
int *y_hot /* RETURNED */
|
||||
);
|
||||
|
||||
#endif /* _DtXbmUtilsI_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
93
cde/include/DtI/bufioI.h
Normal file
93
cde/include/DtI/bufioI.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: bufioI.h /main/5 1995/10/26 12:36:33 rswiston $ */
|
||||
#ifndef _DtHelpbufioI_h
|
||||
#define _DtHelpbufioI_h
|
||||
|
||||
#include <stdio.h> /* for FILE */
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL 0
|
||||
#endif
|
||||
|
||||
#define BUFFILESIZE 4096
|
||||
#define BUFFILEEOF -1
|
||||
|
||||
typedef unsigned char BufChar;
|
||||
|
||||
typedef struct _buffile {
|
||||
BufChar *bufp;
|
||||
int left;
|
||||
BufChar buffer[BUFFILESIZE];
|
||||
int (*io)(/* BufFilePtr f */);
|
||||
int (*skip)(/* BufFilePtr f, int count */);
|
||||
int (*close)(/* BufFilePtr f */);
|
||||
char *hidden;
|
||||
} BufFileRec, *BufFilePtr;
|
||||
|
||||
typedef struct _compressInfo{
|
||||
int fd;
|
||||
int size;
|
||||
} CECompressInfo, *CECompressInfoPtr;
|
||||
|
||||
extern BufFilePtr __DtBufFileCreate ();
|
||||
extern BufFilePtr _DtHelpCeBufFilePushZ ();
|
||||
extern BufFilePtr _DtHelpCeBufFileOpenWr ();
|
||||
extern int _DtHelpCeBufFileFlush ();
|
||||
#define BufFileGet(f) ((f)->left-- ? *(f)->bufp++ : (*(f)->io) (f))
|
||||
#define BufFilePut(c,f) (--(f)->left ? *(f)->bufp++ = (c) : (*(f)->io) (c,f))
|
||||
#define BufFilePutBack(c,f) { (f)->left++; *(--(f)->bufp) = (c); }
|
||||
#define BufFileSkip(f,c) ((*(f)->skip) (f, c))
|
||||
|
||||
#define FileStream(f) ((FILE *)(f)->hidden)
|
||||
|
||||
extern void _DtHelpCeBufFileClose (
|
||||
BufFilePtr f,
|
||||
int doClose);
|
||||
extern BufFilePtr _DtHelpCeBufFileCreate (
|
||||
char *hidden,
|
||||
int (*io)(),
|
||||
int (*skip)(),
|
||||
int (*close)());
|
||||
extern int _DtHelpCeBufFileRd (
|
||||
BufFilePtr f,
|
||||
char *buffer,
|
||||
int request_size);
|
||||
extern BufFilePtr _DtHelpCeBufFileRdWithFd (
|
||||
int fd);
|
||||
extern BufFilePtr _DtHelpCeBufFileRdRawZ (
|
||||
CECompressInfoPtr file_info);
|
||||
extern BufFilePtr _DtHelpCeCreatePipeBufFile (
|
||||
FILE *stream);
|
||||
extern int _DtHelpCeUncompressFile (
|
||||
char *in_file,
|
||||
char *out_file);
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
#endif /* _DtHelpbufioI_h */
|
||||
Reference in New Issue
Block a user