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:
@@ -1,102 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,89 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,123 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,320 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,514 +0,0 @@
|
||||
/*
|
||||
* 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: CanvasP.h /main/17 1999/10/14 13:19:41 mgreess $ */
|
||||
/*************************************<+>*************************************
|
||||
*****************************************************************************
|
||||
**
|
||||
** File: CanvasP.h
|
||||
**
|
||||
** Project: Cde Help System
|
||||
**
|
||||
** Description: Private Header file for the UI independent core engine
|
||||
** of the help system. It contains function prototypes,
|
||||
** structure definitions, typedefs, etc.
|
||||
**
|
||||
** (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 _DtCanvasP_h
|
||||
#define _DtCanvasP_h
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/******** Public Re-defines ********/
|
||||
#if !defined(_AIX)
|
||||
#define _DtCvStrCaseCmp(s1,s2) strcasecmp(s1,s2)
|
||||
#define _DtCvStrNCaseCmp(s1,s2, n) strncasecmp(s1,s2,n)
|
||||
#else
|
||||
#define _DtCvStrCaseCmp(s1,s2) _DtHelpCeStrCaseCmp(s1,s2)
|
||||
#define _DtCvStrNCaseCmp(s1,s2,n) _DtHelpCeStrNCaseCmp(s1,s2, n)
|
||||
#endif /* _AIX */
|
||||
|
||||
/******** Public Defines Declarations ********/
|
||||
/*
|
||||
* true, false and null
|
||||
*/
|
||||
#ifndef Null
|
||||
#define Null 0
|
||||
#endif
|
||||
#ifndef NULL
|
||||
#define NULL 0
|
||||
#endif
|
||||
#ifndef False
|
||||
#define False 0
|
||||
#endif
|
||||
#ifndef True
|
||||
#define True 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Get Selection Type Declarations
|
||||
*/
|
||||
#define _DtCvSELECTED_TEXT (1 << 0)
|
||||
#define _DtCvSELECTED_REGION (1 << 1)
|
||||
#define _DtCvSELECTED_ALL (~((unsigned int) 0))
|
||||
|
||||
/*
|
||||
* hypertext link types
|
||||
*/
|
||||
#define _DtCvLinkType_Execute 3
|
||||
#define _DtCvLinkType_ManPage 4
|
||||
#define _DtCvLinkType_AppDefine 5
|
||||
#define _DtCvLinkType_SameVolume 6
|
||||
#define _DtCvLinkType_CrossLink 7
|
||||
#define _DtCvLinkType_TextFile 8
|
||||
|
||||
/*
|
||||
* hypertext window hints
|
||||
*/
|
||||
#define _DtCvWindowHint_PopupWindow 1
|
||||
#define _DtCvWindowHint_CurrentWindow 2
|
||||
#define _DtCvWindowHint_NewWindow 3
|
||||
#define _DtCvWindowHint_Original 4
|
||||
|
||||
/*********************
|
||||
* Rendering flags
|
||||
*********************/
|
||||
|
||||
/*
|
||||
* Rendering flags - Link
|
||||
*/
|
||||
#define _DtCvLINK_FLAG (0x01 << 0)
|
||||
#define _DtCvLINK_BEGIN (0x01 << 1)
|
||||
#define _DtCvLINK_END (0x01 << 2)
|
||||
|
||||
#define _DtCvLINK_POP_UP (0x01 << 3)
|
||||
#define _DtCvLINK_NEW_WINDOW (0x01 << 4)
|
||||
|
||||
/*
|
||||
* Rendering flags - Search
|
||||
*
|
||||
* a gap is left for the search flags on a segment in CanvasSegP.h. If these
|
||||
* change value, the other values must move to accommodate it. */
|
||||
#define _DtCvSEARCH_FLAG (0x01 << 5)
|
||||
#define _DtCvSEARCH_BEGIN (0x01 << 6)
|
||||
#define _DtCvSEARCH_END (0x01 << 7)
|
||||
#define _DtCvSEARCH_CURR (0x01 << 8)
|
||||
|
||||
/*
|
||||
* Rendering flags - Mark
|
||||
*/
|
||||
#define _DtCvMARK_FLAG (0x01 << 9)
|
||||
#define _DtCvMARK_BEGIN (0x01 << 10)
|
||||
#define _DtCvMARK_END (0x01 << 11)
|
||||
#define _DtCvMARK_ON (0x01 << 12)
|
||||
|
||||
/*
|
||||
* Rendering flags - Traversal
|
||||
*/
|
||||
#define _DtCvTRAVERSAL_FLAG (0x01 << 13)
|
||||
#define _DtCvTRAVERSAL_BEGIN (0x01 << 14)
|
||||
#define _DtCvTRAVERSAL_END (0x01 << 15)
|
||||
|
||||
/*
|
||||
* Rendering flags - Application defined flags.
|
||||
*/
|
||||
#define _DtCvAPP_FIELD_OFFSET (16)
|
||||
#define _DtCvAPP_FIELD_MASK (0x0f << _DtCvAPP_FIELD_OFFSET)
|
||||
#define _DtCvAPP_FIELD_S_MASK (0x03 << _DtCvAPP_FIELD_OFFSET)
|
||||
#define _DtCvAPP_FLAG1 (0x01 << (_DtCvAPP_FIELD_OFFSET + 0))
|
||||
#define _DtCvAPP_FLAG2 (0x01 << (_DtCvAPP_FIELD_OFFSET + 1))
|
||||
#define _DtCvAPP_FLAG3 (0x01 << (_DtCvAPP_FIELD_OFFSET + 2))
|
||||
#define _DtCvAPP_FLAG4 (0x01 << (_DtCvAPP_FIELD_OFFSET + 3))
|
||||
|
||||
/*
|
||||
* Rendering flags - Selection
|
||||
*/
|
||||
#define _DtCvSELECTED_FLAG (0x01 << 20)
|
||||
#define _DtCvEND_OF_LINE (0x01 << 21)
|
||||
|
||||
/*
|
||||
* Activation masks
|
||||
*/
|
||||
#define _DtCvACTIVATE_SELECTION (0x01 << 0)
|
||||
#define _DtCvACTIVATE_MARK (0x01 << 1)
|
||||
#define _DtCvDEACTIVATE (0x01 << 2)
|
||||
#define _DtCvACTIVATE_MARK_ON (0x01 << 3)
|
||||
#define _DtCvACTIVATE_MARK_OFF (0x01 << 4)
|
||||
|
||||
/******** Public Enum Declarations ********/
|
||||
|
||||
/*
|
||||
* Element types
|
||||
*/
|
||||
enum _dtCvElemType
|
||||
{
|
||||
_DtCvBAD_TYPE,
|
||||
_DtCvCANVAS_TYPE,
|
||||
_DtCvLINE_TYPE,
|
||||
_DtCvLINK_TYPE,
|
||||
_DtCvLOCALE_TYPE,
|
||||
_DtCvMARK_TYPE,
|
||||
_DtCvREGION_TYPE,
|
||||
_DtCvSTRING_TYPE,
|
||||
_DtCvTRAVERSAL_TYPE
|
||||
};
|
||||
|
||||
typedef enum _dtCvElemType _DtCvElemType;
|
||||
|
||||
/*
|
||||
* Canvas Engine values. Either parameters or return values.
|
||||
*/
|
||||
enum _dtCvValue
|
||||
{
|
||||
/*
|
||||
* status types. i.e. True/False, Ok/Bad, etc.
|
||||
*/
|
||||
_DtCvFALSE = False,
|
||||
_DtCvSTATUS_OK = False,
|
||||
_DtCvTRUE = True,
|
||||
_DtCvSTATUS_BAD = True,
|
||||
_DtCvSTATUS_ID_BAD,
|
||||
_DtCvSTATUS_NONE,
|
||||
_DtCvSTATUS_LINK,
|
||||
_DtCvSTATUS_MARK,
|
||||
/*
|
||||
* Render types
|
||||
*/
|
||||
_DtCvRENDER_PARTIAL,
|
||||
_DtCvRENDER_COMPLETE,
|
||||
/*
|
||||
* Traversal defines
|
||||
*/
|
||||
_DtCvTRAVERSAL_OFF,
|
||||
_DtCvTRAVERSAL_ON,
|
||||
_DtCvTRAVERSAL_TOP,
|
||||
_DtCvTRAVERSAL_NEXT,
|
||||
_DtCvTRAVERSAL_PREV,
|
||||
_DtCvTRAVERSAL_BOTTOM,
|
||||
_DtCvTRAVERSAL_ID,
|
||||
_DtCvTRAVERSAL_MARK,
|
||||
/*
|
||||
* processing a selection types
|
||||
*/
|
||||
_DtCvSELECTION_CLEAR,
|
||||
_DtCvSELECTION_START,
|
||||
_DtCvSELECTION_UPDATE,
|
||||
_DtCvSELECTION_END,
|
||||
/*
|
||||
* honor the right boundary when laying out information
|
||||
*/
|
||||
_DtCvUSE_BOUNDARY,
|
||||
_DtCvUSE_BOUNDARY_MOVE,
|
||||
_DtCvIGNORE_BOUNDARY
|
||||
};
|
||||
|
||||
typedef enum _dtCvValue _DtCvValue;
|
||||
typedef enum _dtCvValue _DtCvStatus;
|
||||
typedef enum _dtCvValue _DtCvRenderType;
|
||||
typedef enum _dtCvValue _DtCvTraversalCmd;
|
||||
typedef enum _dtCvValue _DtCvSelectMode;
|
||||
|
||||
/*
|
||||
* line wrap mode types.
|
||||
*/
|
||||
enum _dtCvModeType
|
||||
{
|
||||
_DtCvModeWrapNone,
|
||||
_DtCvModeWrapDown,
|
||||
_DtCvModeWrapUp
|
||||
};
|
||||
|
||||
typedef enum _dtCvModeType _DtCvModeType;
|
||||
|
||||
/******** Public Typedef Declarations ********/
|
||||
typedef void* _DtCvPointer;
|
||||
typedef void* _DtCvHandle;
|
||||
|
||||
typedef int _DtCvUnit;
|
||||
|
||||
typedef unsigned long _DtCvFlags;
|
||||
|
||||
typedef struct _dtCvSegPts _DtCvSegPts;
|
||||
typedef struct _dtCvSegment _DtCvSegment;
|
||||
|
||||
/******** Public Structures Declarations ********/
|
||||
typedef struct _dtCvMetrics {
|
||||
_DtCvUnit width; /* max width of canvas area */
|
||||
_DtCvUnit height; /* max height of canvas area */
|
||||
_DtCvUnit top_margin; /* top margin to allow for */
|
||||
_DtCvUnit side_margin; /* left margin to allow for */
|
||||
_DtCvUnit line_height; /* the height of an average line of */
|
||||
/* text */
|
||||
_DtCvUnit horiz_pad_hint; /* the optimul spacing to use if */
|
||||
/* lines have to be squeezed for */
|
||||
/* _DtCvUSE_BOUNDARY */
|
||||
} _DtCvMetrics;
|
||||
|
||||
typedef struct _dtCvSpaceMetrics {
|
||||
_DtCvUnit space_before;
|
||||
_DtCvUnit space_after;
|
||||
_DtCvUnit space_above;
|
||||
_DtCvUnit space_below;
|
||||
} _DtCvSpaceMetrics;
|
||||
|
||||
typedef struct _dtCvLocale {
|
||||
_DtCvModeType line_wrap_mode; /* specifies the wrap mode */
|
||||
const wchar_t *cant_begin_chars; /* specifies the characters */
|
||||
/* that can't begin a line */
|
||||
const wchar_t *cant_end_chars; /* specifies the characters */
|
||||
/* that can't end a line */
|
||||
} _DtCvLocale;
|
||||
|
||||
typedef struct _dtCvStringInfo {
|
||||
const void *string;
|
||||
int byte_len;
|
||||
int wc;
|
||||
_DtCvPointer font_ptr;
|
||||
_DtCvPointer csd;
|
||||
} _DtCvStringInfo;
|
||||
|
||||
typedef struct _dtCvLineInfo {
|
||||
_DtCvUnit x2;
|
||||
_DtCvUnit y2;
|
||||
_DtCvUnit width;
|
||||
_DtCvPointer data;
|
||||
} _DtCvLineInfo;
|
||||
|
||||
typedef struct _dtCvRenderInfo {
|
||||
_DtCvPointer info;
|
||||
_DtCvUnit box_x;
|
||||
_DtCvUnit box_y;
|
||||
_DtCvUnit box_height;
|
||||
_DtCvUnit box_width;
|
||||
} _DtCvRenderInfo;
|
||||
|
||||
typedef struct _dtCvLinkInfo {
|
||||
char *specification;
|
||||
char *description;
|
||||
int hyper_type;
|
||||
int win_hint;
|
||||
_DtCvUnit offset_x;
|
||||
_DtCvUnit offset_y;
|
||||
} _DtCvLinkInfo;
|
||||
|
||||
typedef struct _dtCvPointInfo {
|
||||
_DtCvPointer client_data;
|
||||
_DtCvSegPts **segs;
|
||||
} _DtCvPointInfo;
|
||||
|
||||
/******** Public Structure Typedef Declarations ********/
|
||||
typedef struct _dtCvTopicInfo* _DtCvTopicPtr;
|
||||
|
||||
/******** Public Prototyped Procedures ********/
|
||||
typedef void (*_DtCvGetMetrics)(
|
||||
_DtCvPointer /* client_data */,
|
||||
_DtCvElemType /* elem_type */,
|
||||
_DtCvPointer /* ret_metrics */
|
||||
);
|
||||
|
||||
typedef void (*_DtCvRenderElem)(
|
||||
_DtCvPointer /* client_data */,
|
||||
_DtCvElemType /* elem_type */,
|
||||
_DtCvUnit /* x */,
|
||||
_DtCvUnit /* y */,
|
||||
int /* link_type */,
|
||||
_DtCvFlags /* old_flags */,
|
||||
_DtCvFlags /* new_flags */,
|
||||
_DtCvElemType /* trav_type */,
|
||||
_DtCvPointer /* trav_data */,
|
||||
_DtCvPointer /* data */
|
||||
);
|
||||
|
||||
typedef _DtCvUnit (*_DtCvGetElemWidth)(
|
||||
_DtCvPointer /* client_data */,
|
||||
_DtCvElemType /* elem_type */,
|
||||
_DtCvPointer /* data */
|
||||
);
|
||||
|
||||
typedef void (*_DtCvGetFontMetrics)(
|
||||
_DtCvPointer /* client_data */,
|
||||
_DtCvPointer /* font_ptr */,
|
||||
_DtCvUnit* /* *ret_ascent */,
|
||||
_DtCvUnit* /* *ret_descent */,
|
||||
_DtCvUnit* /* *ret_width */,
|
||||
_DtCvUnit* /* *ret_super */,
|
||||
_DtCvUnit* /* *ret_sub */
|
||||
);
|
||||
|
||||
typedef _DtCvStatus (*_DtCvBuildSelection)(
|
||||
_DtCvPointer /* client_data */,
|
||||
_DtCvElemType /* elem_type */,
|
||||
unsigned int /* mask */,
|
||||
_DtCvPointer* /* prev_info */,
|
||||
_DtCvUnit /* space */,
|
||||
_DtCvUnit /* width */,
|
||||
_DtCvFlags /* flags */,
|
||||
_DtCvPointer /* data */
|
||||
);
|
||||
|
||||
typedef int (*_DtCvFilterExecCmd)(
|
||||
_DtCvPointer /* client_data */,
|
||||
const char* /* cmd */,
|
||||
char** /* ret_cmd */
|
||||
);
|
||||
|
||||
/******** Public Structures Declarations ********/
|
||||
typedef struct _dtCvVirtualInfo {
|
||||
_DtCvGetMetrics get_metrics;
|
||||
_DtCvRenderElem render_elem;
|
||||
_DtCvGetElemWidth get_width;
|
||||
_DtCvGetFontMetrics get_font_metrics;
|
||||
_DtCvBuildSelection build_selection;
|
||||
_DtCvFilterExecCmd exec_cmd_filter;
|
||||
} _DtCvVirtualInfo;
|
||||
|
||||
typedef struct _dtCvMarkPos {
|
||||
_DtCvPointer client_data;
|
||||
_DtCvUnit x1;
|
||||
_DtCvUnit y1;
|
||||
_DtCvUnit baseline1;
|
||||
_DtCvUnit x2;
|
||||
_DtCvUnit y2;
|
||||
_DtCvUnit baseline2;
|
||||
} _DtCvMarkPos;
|
||||
|
||||
/******** Public Macro Declarations ********/
|
||||
|
||||
/******** Semi-Public Function Declarations ********/
|
||||
extern int _DtCvGetSearchLineMetrics(
|
||||
_DtCvHandle canvas_handle,
|
||||
int search_hit_index,
|
||||
_DtCvUnit* baseline,
|
||||
_DtCvUnit* descent,
|
||||
_DtCvUnit* ascent);
|
||||
|
||||
/******** Public Function Declarations ********/
|
||||
extern _DtCvStatus _DtCanvasActivatePts(
|
||||
_DtCvHandle canvas_handle,
|
||||
unsigned int mask,
|
||||
_DtCvPointInfo *info,
|
||||
_DtCvUnit *ret_y1,
|
||||
_DtCvUnit *ret_y2);
|
||||
extern void _DtCanvasClean(
|
||||
_DtCvHandle canvas_handle);
|
||||
extern _DtCvHandle _DtCanvasCreate(
|
||||
_DtCvVirtualInfo virt_info,
|
||||
_DtCvPointer client_data);
|
||||
extern void _DtCanvasDestroy(
|
||||
_DtCvHandle canvas_handle);
|
||||
extern _DtCvStatus _DtCanvasGetCurLink(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvLinkInfo *ret_info);
|
||||
extern _DtCvStatus _DtCanvasGetCurTraversal(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvLinkInfo *ret_info,
|
||||
_DtCvPointer *ret_data);
|
||||
extern _DtCvStatus _DtCanvasGetMarkPositions(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvMarkPos ***ret_pos);
|
||||
extern _DtCvStatus _DtCanvasGetPosLink(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvUnit x1,
|
||||
_DtCvUnit y1,
|
||||
_DtCvUnit x2,
|
||||
_DtCvUnit y2,
|
||||
_DtCvLinkInfo *ret_info);
|
||||
extern _DtCvStatus _DtCanvasGetSelection(
|
||||
_DtCvHandle canvas_handle,
|
||||
unsigned int mask,
|
||||
_DtCvPointer *ret_select);
|
||||
extern _DtCvStatus _DtCanvasGetSelectionPoints(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvSegPts ***ret_segs,
|
||||
_DtCvUnit *ret_y1,
|
||||
_DtCvUnit *ret_y2);
|
||||
extern _DtCvStatus _DtCanvasGetSpotInfo(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvUnit x,
|
||||
_DtCvUnit y,
|
||||
_DtCvSegment **ret_seg,
|
||||
_DtCvUnit *ret_offx,
|
||||
_DtCvUnit *ret_offy,
|
||||
_DtCvElemType *ret_element);
|
||||
extern _DtCvStatus _DtCanvasMoveTraversal(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvTraversalCmd cmd,
|
||||
_DtCvValue wrap,
|
||||
_DtCvValue render,
|
||||
_DtCvPointer rid,
|
||||
_DtCvUnit *ret_x,
|
||||
_DtCvUnit *ret_y,
|
||||
_DtCvUnit *ret_baseline,
|
||||
_DtCvUnit *ret_height);
|
||||
extern void _DtCanvasProcessSelection (
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvUnit x,
|
||||
_DtCvUnit y,
|
||||
_DtCvSelectMode mode);
|
||||
extern void _DtCanvasRender(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvUnit x1,
|
||||
_DtCvUnit y1,
|
||||
_DtCvUnit x2,
|
||||
_DtCvUnit y2,
|
||||
_DtCvRenderType flag,
|
||||
_DtCvValue pg_break,
|
||||
_DtCvUnit *max_y,
|
||||
_DtCvUnit *next_y);
|
||||
extern _DtCvStatus _DtCanvasResize(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvValue force,
|
||||
_DtCvUnit *ret_width,
|
||||
_DtCvUnit *ret_height);
|
||||
extern _DtCvStatus _DtCanvasSetTopic(
|
||||
_DtCvHandle canvas_handle,
|
||||
_DtCvTopicPtr topic_handle,
|
||||
_DtCvValue honor_size,
|
||||
_DtCvUnit *ret_width,
|
||||
_DtCvUnit *ret_height,
|
||||
_DtCvUnit *ret_y);
|
||||
extern void _DtCanvasLoadMetrics(
|
||||
_DtCvHandle canvas_handle);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _DtCanvasP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
@@ -1,538 +0,0 @@
|
||||
/*
|
||||
* 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: CanvasSegP.h /main/19 1996/10/04 18:30:19 rswiston $ */
|
||||
/*************************************<+>*************************************
|
||||
*****************************************************************************
|
||||
**
|
||||
** File: CanvasSegP.h
|
||||
**
|
||||
** Project:
|
||||
**
|
||||
** Description: Public Header file for Canvas Engine
|
||||
**
|
||||
** (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 _DtCanvasSegP_h
|
||||
#define _DtCanvasSegP_h
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/******** Public Defines Declarations ********/
|
||||
/*****************************************************************************
|
||||
* Some bits in passed in as a _DtCvFlags and the 'type' in _DtCvSegment
|
||||
* must match because they are passed straight thought from the segment
|
||||
* to the application. The following map is to help prevent colisions.
|
||||
*
|
||||
* (-------------------------> _DtCvEND_OF_LINE
|
||||
* | (-----------------------> _DtCvSELECTED_FLAG
|
||||
* | |
|
||||
* | | (-------------------------> _DtCvAPP_FLAG4 \
|
||||
* | | | (-----------------------> _DtCvAPP_FLAG3 \
|
||||
* | | | | (---------------------> _DtCvAPP_FLAG2 / _DtCvAPP_FIELD
|
||||
* | | | | | (-------------------> _DtCvAPP_FLAG1 /
|
||||
* | | | | | |
|
||||
* | | | | | | (---------------------> _DtCvTRAVERSAL_END
|
||||
* | | | | | | | (-------------------> _DtCvTRAVERSAL_BEGIN
|
||||
* | | | | | | | | (-----------------> _DtCvTRAVERSAL_FLAG
|
||||
* | | | | | | | | |
|
||||
* | | | | | | | | | (-------------------> _DtCvMARK_ON
|
||||
* | | | | | | | | | | (-----------------> _DtCvMARK_END
|
||||
* | | | | | | | | | | | (---------------> _DtCvMARK_BEGIN
|
||||
* | | | | | | | | | | | | (-------------> _DtCvMARK_FLAG
|
||||
* | | | | | | | | | | | | |
|
||||
* | | | | | | | | | | | | | (-------------> _DtCvSEARCH_CURR
|
||||
* | | | | | | | | | | | | | | (-----------> _DtCvSEARCH_END
|
||||
* | | | | | | | | | | | | | | | (---------> _DtCvSEARCH_BEGIN
|
||||
* | | | | | | | | | | | | | | | | (-------> _DtCvSEARCH_FLAG
|
||||
* | | | | | | | | | | | | | | | | |
|
||||
* | | | | | | | | | | | | | | | | | (---------> _DtCvLINK_NEW_WINDOW
|
||||
* | | | | | | | | | | | | | | | | | | (-------> _DtCvLINK_POP_UP
|
||||
* | | | | | | | | | | | | | | | | | | | (-----> _DtCvLINK_END
|
||||
* | | | | | | | | | | | | | | | | | | | | (---> _DtCvLINK_BEGIN
|
||||
* | | | | | | | | | | | | | | | | | | | | | (-> _DtCvLINK_FLAG
|
||||
* | | | | | | | | | | | | | | | | | | | | | |
|
||||
* v v v v v v#v v v v v v v v#v v v v v v v v
|
||||
* 1 0 9 8 7 6#5 4 3 2 1 0 9 8#7 6 5 4 3 2 1 0
|
||||
* ------------#---------------#----------------
|
||||
* |.|.|.|.|.|.#.|.|.|.|.|.|.|.#.|.|.|.|.|.|.|.|
|
||||
* ------------#---------------#----------------
|
||||
* ^ ^ ^ ^ ^#^ ^ ^ ^ ^ ^ ^ ^#^ ^ ^ ^ ^^^^^
|
||||
* | | | | | | | | | | | | | | | | | \|/
|
||||
* | | | | | | | | | | | | | | | | | |
|
||||
* | | | | | | | | | | | | | | | | | (-> Segment type
|
||||
* | | | | | | | | | | | | | | | | (-----> _DtCvWIDE_CHAR
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* | | | | | | | | | | | | | | | (-----> _DtCvSEARCH_FLAG
|
||||
* | | | | | | | | | | | | | | (-------> _DtCvSEARCH_BEGIN
|
||||
* | | | | | | | | | | | | | (---------> _DtCvSEARCH_END
|
||||
* | | | | | | | | | | | | (-----------> _DtCvSEARCH_CURR
|
||||
* | | | | | | | | | | | |
|
||||
* | | | | | | | | | | | (---------> _DtCvCONTROLLER/_DtCvBLOCK_LINE/
|
||||
* | | | | | | | | | | | _DtCvNEW_LINE
|
||||
* | | | | | | | | | | (-----------> _DtCvSUB_SCRIPT
|
||||
* | | | | | | | | | (-------------> _DtCvSUPER_SCRIPT
|
||||
* | | | | | | | | (---------------> _DtCvGHOST_LINK
|
||||
* | | | | | | | (-----------------> _DtCvHYPER_TEXT
|
||||
* | | | | | | (-------------------> _DtCvNON_BREAK
|
||||
* | | | | | (---------------------> _DtCvIN_LINE
|
||||
* | | | | |
|
||||
* | | | | (---------------> _DtCvAPP_FLAG1 \
|
||||
* | | | (-----------------> _DtCvAPP_FLAG2 \ _DtCvAPP_FIELD
|
||||
* | | (-------------------> _DtCvAPP_FLAG3 /
|
||||
* | (---------------------> _DtCvAPP_FLAG4 /
|
||||
* |
|
||||
* (------------------> _DtCvPAGE_BREAK
|
||||
*
|
||||
*****************************************************************************/
|
||||
/*
|
||||
* segment types
|
||||
*/
|
||||
#define _DtCvNOOP (0x00)
|
||||
#define _DtCvCONTAINER (0x01)
|
||||
#define _DtCvLINE (0x02)
|
||||
#define _DtCvMARKER (0x03)
|
||||
#define _DtCvREGION (0x04)
|
||||
#define _DtCvSTRING (0x05)
|
||||
#define _DtCvTABLE (0x06)
|
||||
|
||||
#define _DtCvPRIMARY_MASK (0x07)
|
||||
#define _DtCvSHIFT_PAST_PRIMARY 3
|
||||
|
||||
/*
|
||||
* character size manipulation
|
||||
*/
|
||||
#define _DtCvWIDE_CHAR (0x01 << _DtCvSHIFT_PAST_PRIMARY)
|
||||
|
||||
/*
|
||||
* segment flags
|
||||
*/
|
||||
/* leave a gap for the search flags defined in CanvasP.h */
|
||||
#define _DtCvSHIFT_TO_FLAGS 9
|
||||
|
||||
/* container only */
|
||||
#define _DtCvCONTROLLER (0x01 << (_DtCvSHIFT_TO_FLAGS + 0))
|
||||
|
||||
/* line type */
|
||||
#define _DtCvBLOCK_LINE (0x01 << (_DtCvSHIFT_TO_FLAGS + 0))
|
||||
|
||||
/* string & region (_DtCvNEW_LINE works on _DtCvNOOP too) */
|
||||
#define _DtCvNEW_LINE (0x01 << (_DtCvSHIFT_TO_FLAGS + 0))
|
||||
#define _DtCvSUB_SCRIPT (0x01 << (_DtCvSHIFT_TO_FLAGS + 1))
|
||||
#define _DtCvSUPER_SCRIPT (0x01 << (_DtCvSHIFT_TO_FLAGS + 2))
|
||||
#define _DtCvGHOST_LINK (0x01 << (_DtCvSHIFT_TO_FLAGS + 3))
|
||||
#define _DtCvHYPER_TEXT (0x01 << (_DtCvSHIFT_TO_FLAGS + 4))
|
||||
#define _DtCvNON_BREAK (0x01 << (_DtCvSHIFT_TO_FLAGS + 5))
|
||||
|
||||
/* region only */
|
||||
#define _DtCvIN_LINE (0x01 << (_DtCvSHIFT_TO_FLAGS + 6))
|
||||
|
||||
/* application flags - defined in CanvasP.h (starting at 16th bit for 4 bits) */
|
||||
|
||||
/* valid on any segment */
|
||||
#define _DtCvPAGE_BREAK (0x01 << (_DtCvSHIFT_TO_FLAGS + 11))
|
||||
|
||||
/* highlight macros */
|
||||
#define HILITE_OVERLINE 0
|
||||
#define HILITE_STRIKETHROUGH 1
|
||||
#define HILITE_UNDERLINE 2
|
||||
|
||||
/******** Public Enum Declarations ********/
|
||||
enum _dtCvFrmtOption
|
||||
{
|
||||
_DtCvOPTION_BAD,
|
||||
/*
|
||||
* string breaking types
|
||||
*/
|
||||
_DtCvLITERAL,
|
||||
_DtCvDYNAMIC,
|
||||
/*
|
||||
* table border types
|
||||
*/
|
||||
_DtCvBORDER_NONE,
|
||||
_DtCvBORDER_FULL,
|
||||
_DtCvBORDER_HORZ,
|
||||
_DtCvBORDER_VERT,
|
||||
_DtCvBORDER_TOP,
|
||||
_DtCvBORDER_BOTTOM,
|
||||
_DtCvBORDER_LEFT,
|
||||
_DtCvBORDER_RIGHT,
|
||||
_DtCvBORDER_TOP_LEFT,
|
||||
_DtCvBORDER_TOP_RIGHT,
|
||||
_DtCvBORDER_BOTTOM_LEFT,
|
||||
_DtCvBORDER_BOTTOM_RIGHT,
|
||||
/*
|
||||
* controller horizontal orientation
|
||||
*/
|
||||
_DtCvJUSTIFY_LEFT_CORNER,
|
||||
_DtCvJUSTIFY_LEFT, /* also container horizontal text placement */
|
||||
_DtCvJUSTIFY_LEFT_MARGIN,
|
||||
_DtCvJUSTIFY_CENTER, /* also container horiz/vert text placement */
|
||||
_DtCvJUSTIFY_RIGHT_MARGIN,
|
||||
_DtCvJUSTIFY_RIGHT, /* also container horizontal text placement */
|
||||
_DtCvJUSTIFY_RIGHT_CORNER,
|
||||
/*
|
||||
* extra container horizontal text placement
|
||||
*/
|
||||
_DtCvJUSTIFY_NUM,
|
||||
_DtCvJUSTIFY_CHAR,
|
||||
/*
|
||||
* inherit the parent's horizontal text placement
|
||||
*/
|
||||
_DtCvINHERIT,
|
||||
/*
|
||||
* controller vertical orientation, includes _DtCvJUSTIFY_CENTER
|
||||
*/
|
||||
_DtCvJUSTIFY_TOP, /* also container vertical text placement */
|
||||
_DtCvJUSTIFY_BOTTOM, /* also container vertical text placement */
|
||||
/*
|
||||
* controller flow types
|
||||
*/
|
||||
_DtCvWRAP,
|
||||
_DtCvWRAP_NONE,
|
||||
_DtCvWRAP_JOIN
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
hilite_overline = 0x01 << HILITE_OVERLINE,
|
||||
hilite_strikethrough = 0x01 << HILITE_STRIKETHROUGH,
|
||||
hilite_underline = 0x01 << HILITE_UNDERLINE
|
||||
} text_hilite_t;
|
||||
|
||||
/******** Public Enum Typedef Declarations ********/
|
||||
typedef enum _dtCvFrmtOption _DtCvFrmtOption;
|
||||
|
||||
/******** Public Structures Declarations ********/
|
||||
typedef struct _dtCvLine {
|
||||
_DtCvUnit width;
|
||||
_DtCvPointer data;
|
||||
} _DtCvLine;
|
||||
|
||||
typedef struct _dtCvContainer {
|
||||
char *id;
|
||||
char *justify_char;
|
||||
_DtCvFrmtOption type;
|
||||
_DtCvFrmtOption border;
|
||||
_DtCvFrmtOption justify;
|
||||
_DtCvFrmtOption vjustify;
|
||||
_DtCvFrmtOption orient;
|
||||
_DtCvFrmtOption vorient;
|
||||
_DtCvFrmtOption flow;
|
||||
int percent;
|
||||
_DtCvUnit leading;
|
||||
_DtCvUnit fmargin;
|
||||
_DtCvUnit lmargin;
|
||||
_DtCvUnit rmargin;
|
||||
_DtCvUnit tmargin;
|
||||
_DtCvUnit bmargin;
|
||||
_DtCvLine bdr_info;
|
||||
struct _dtCvSegment *seg_list;
|
||||
} _DtCvContainer;
|
||||
|
||||
typedef struct _DtCvString {
|
||||
void *string;
|
||||
_DtCvPointer font;
|
||||
} _DtCvString;
|
||||
|
||||
typedef struct _dtCvRegion {
|
||||
_DtCvPointer info;
|
||||
_DtCvUnit width;
|
||||
_DtCvUnit height;
|
||||
_DtCvUnit ascent;
|
||||
} _DtCvRegion;
|
||||
|
||||
typedef struct _dtCvTable {
|
||||
int num_cols;
|
||||
char **col_w;
|
||||
_DtCvFrmtOption *col_justify;
|
||||
char *justify_chars;
|
||||
char **cell_ids;
|
||||
struct _dtCvSegment **cells;
|
||||
} _DtCvTable;
|
||||
|
||||
typedef union _dtCvSegHandles {
|
||||
_DtCvContainer container;
|
||||
_DtCvString string;
|
||||
_DtCvRegion region;
|
||||
_DtCvTable table;
|
||||
_DtCvLine rule;
|
||||
char *marker;
|
||||
} _DtCvSegHandles;
|
||||
|
||||
struct _dtCvSegment {
|
||||
unsigned long type;
|
||||
int link_idx;
|
||||
_DtCvSegHandles handle;
|
||||
struct _dtCvSegment *next_seg;
|
||||
struct _dtCvSegment *next_disp;
|
||||
_DtCvPointer client_use;
|
||||
_DtCvPointer internal_use;
|
||||
};
|
||||
|
||||
struct _dtCvSegPts {
|
||||
struct _dtCvSegment *segment;
|
||||
int offset;
|
||||
int len;
|
||||
};
|
||||
|
||||
typedef struct _dtCvTopicInfo {
|
||||
char *id_str;
|
||||
struct _dtCvSegment *seg_list;
|
||||
_DtCvPointInfo **mark_list;
|
||||
struct _dtCvLinkDb *link_data;
|
||||
} _DtCvTopicInfo;
|
||||
|
||||
typedef struct _dtCvStringClientData {
|
||||
unsigned int vcc;
|
||||
unsigned int vclen;
|
||||
|
||||
unsigned int hilite_type;
|
||||
|
||||
char* bg_color;
|
||||
char* fg_color;
|
||||
unsigned long bg_pixel;
|
||||
unsigned long fg_pixel;
|
||||
} _DtCvStringClientData;
|
||||
|
||||
typedef struct _dtCvRegionClientData {
|
||||
_DtCvPointer GraphicHandle;
|
||||
} _DtCvRegionClientData;
|
||||
|
||||
typedef union _dtCvClientData {
|
||||
_DtCvRegionClientData region;
|
||||
_DtCvStringClientData string;
|
||||
} _DtCvClientData;
|
||||
|
||||
/******** Public Structure Typedef Declarations ********/
|
||||
|
||||
/******** Public Prototyped Procedures ********/
|
||||
|
||||
/******** Public Macro Declarations ********/
|
||||
/*
|
||||
* set segment type
|
||||
*/
|
||||
#define _DtCvSetTypeToContainer(x) \
|
||||
(((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvCONTAINER)
|
||||
#define _DtCvSetTypeToLine(x) \
|
||||
(((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvLINE)
|
||||
#define _DtCvSetTypeToMarker(x) \
|
||||
(((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvMARKER)
|
||||
#define _DtCvSetTypeToNoop(x) \
|
||||
(((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvNOOP)
|
||||
#define _DtCvSetTypeToRegion(x) \
|
||||
(((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvREGION)
|
||||
#define _DtCvSetTypeToString(x) \
|
||||
(((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvSTRING)
|
||||
#define _DtCvSetTypeToTable(x) \
|
||||
(((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvTABLE)
|
||||
/*
|
||||
* set segment flags
|
||||
*/
|
||||
#define _DtCvSetTypeToBlockLine(x) ((x) | _DtCvBLOCK_LINE)
|
||||
#define _DtCvSetTypeToController(x) ((x) | _DtCvCONTROLLER)
|
||||
#define _DtCvSetTypeToGhostLink(x) ((x) | _DtCvGHOST_LINK)
|
||||
#define _DtCvSetTypeToHyperText(x) ((x) | _DtCvHYPER_TEXT)
|
||||
#define _DtCvSetTypeToInLine(x) ((x) | _DtCvIN_LINE)
|
||||
#define _DtCvSetTypeToNewLine(x) ((x) | _DtCvNEW_LINE)
|
||||
#define _DtCvSetTypeToNonBreak(x) ((x) | _DtCvNON_BREAK)
|
||||
#define _DtCvSetTypeToSearch(x) ((x) | _DtCvSEARCH_FLAG)
|
||||
#define _DtCvSetTypeToSearchBegin(x) ((x) | _DtCvSEARCH_BEGIN)
|
||||
#define _DtCvSetTypeToSearchEnd(x) ((x) | _DtCvSEARCH_END)
|
||||
#define _DtCvSetTypeToSubScript(x) ((x) | _DtCvSUB_SCRIPT)
|
||||
#define _DtCvSetTypeToSuperScript(x) ((x) | _DtCvSUPER_SCRIPT)
|
||||
|
||||
/*
|
||||
* set character size
|
||||
*/
|
||||
#define _DtCvSetTypeToWideChar(x) ((x) | _DtCvWIDE_CHAR)
|
||||
|
||||
/*
|
||||
* set application flags and/or field
|
||||
*/
|
||||
#define _DtCvSetAppFlag1(x) ((x) | _DtCvAPP_FLAG1)
|
||||
#define _DtCvSetAppFlag2(x) ((x) | _DtCvAPP_FLAG2)
|
||||
#define _DtCvSetAppFlag3(x) ((x) | _DtCvAPP_FLAG3)
|
||||
#define _DtCvSetAppFlag4(x) ((x) | _DtCvAPP_FLAG4)
|
||||
#define _DtCvSetAppField(x,y) \
|
||||
(((x) & ~(_DtCvAPP_FIELD_MASK)) | \
|
||||
((y & _DtCvAPP_FIELD_MASK) << _DtCvAPP_FIELD_OFFSET))
|
||||
#define _DtCvSetAppFieldSmall(x,y) \
|
||||
(((x) & ~(_DtCvAPP_FIELD_S_MASK)) | \
|
||||
((y & _DtCvAPP_FIELD_S_MASK) << _DtCvAPP_FIELD_OFFSET))
|
||||
|
||||
/*
|
||||
* get the application field value
|
||||
*/
|
||||
#define _DtCvGetAppField(x) \
|
||||
(((x) & _DtCvAPP_FIELD_MASK) >> _DtCvAPP_FIELD_OFFSET)
|
||||
#define _DtCvGetAppFieldSmall(x) \
|
||||
(((x) & _DtCvAPP_FIELD_S_MASK) >> _DtCvAPP_FIELD_OFFSET)
|
||||
|
||||
/******** Semi-Public Macro Declarations ********/
|
||||
/*
|
||||
* get segment type
|
||||
*/
|
||||
#define _DtCvPrimaryTypeOfSeg(x) ((x->type) & _DtCvPRIMARY_MASK)
|
||||
#define _DtCvIsSegContainer(x) \
|
||||
(((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvCONTAINER) ? 1 : 0)
|
||||
#define _DtCvIsSegLine(x) \
|
||||
(((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvLINE) ? 1 : 0)
|
||||
#define _DtCvIsSegMarker(x) \
|
||||
(((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvMARKER) ? 1 : 0)
|
||||
#define _DtCvIsSegNoop(x) \
|
||||
(((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0)
|
||||
#define _DtCvIsSegRegion(x) \
|
||||
(((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvREGION) ? 1 : 0)
|
||||
#define _DtCvIsSegString(x) \
|
||||
(((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvSTRING) ? 1 : 0)
|
||||
#define _DtCvIsSegTable(x) \
|
||||
(((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvTABLE) ? 1 : 0)
|
||||
|
||||
/*
|
||||
* get segment flags
|
||||
*/
|
||||
#define _DtCvIsSegController(x) \
|
||||
((((x)->type) & _DtCvCONTROLLER) ? 1 : 0)
|
||||
#define _DtCvIsSegBlockLine(x) \
|
||||
((((x)->type) & _DtCvBLOCK_LINE) ? 1 : 0)
|
||||
#define _DtCvIsSegGhostLink(x) \
|
||||
((((x)->type) & _DtCvGHOST_LINK) ? 1 : 0)
|
||||
#define _DtCvIsSegHyperText(x) \
|
||||
((((x)->type) & _DtCvHYPER_TEXT) ? 1 : 0)
|
||||
#define _DtCvIsSegInLine(x) \
|
||||
((((x)->type) & _DtCvIN_LINE) ? 1 : 0)
|
||||
#define _DtCvIsSegNewLine(x) \
|
||||
((((x)->type) & _DtCvNEW_LINE) ? 1 : 0)
|
||||
#define _DtCvIsSegNonBreakingChar(x) \
|
||||
((((x)->type) & _DtCvNON_BREAK) ? 1 : 0)
|
||||
#define _DtCvIsSegPageBreak(x) \
|
||||
((((x)->type) & _DtCvPAGE_BREAK) ? 1 : 0)
|
||||
#define _DtCvIsSegRegChar(x) \
|
||||
((((x)->type) & _DtCvWIDE_CHAR) ? 0 : 1)
|
||||
#define _DtCvIsSegSubScript(x) \
|
||||
((((x)->type) & _DtCvSUB_SCRIPT) ? 1 : 0)
|
||||
#define _DtCvIsSegSuperScript(x) \
|
||||
((((x)->type) & _DtCvSUPER_SCRIPT) ? 1 : 0)
|
||||
#define _DtCvIsSegWideChar(x) \
|
||||
((((x)->type) & _DtCvWIDE_CHAR) ? 1 : 0)
|
||||
/*
|
||||
* segment access
|
||||
*/
|
||||
#define _DtCvNextSeg(x) ((x)->next_seg)
|
||||
#define _DtCvNextDisp(x) ((x)->next_disp)
|
||||
|
||||
/*
|
||||
* container access
|
||||
*/
|
||||
#define _DtCvContainerOfSeg(x) \
|
||||
((x)->handle.container)
|
||||
#define _DtCvContainerBMarginOfSeg(x) \
|
||||
((x)->handle.container.bmargin)
|
||||
#define _DtCvContainerBorderOfSeg(x) \
|
||||
((x)->handle.container.border)
|
||||
#define _DtCvContainerFlowOfSeg(x) \
|
||||
((x)->handle.container.flow)
|
||||
#define _DtCvContainerFMarginOfSeg(x) \
|
||||
((x)->handle.container.fmargin)
|
||||
#define _DtCvContainerIdOfSeg(x) \
|
||||
((x)->handle.container.id)
|
||||
#define _DtCvContainerJustifyCharOfSeg(x) \
|
||||
((x)->handle.container.justify_char)
|
||||
#define _DtCvContainerJustifyOfSeg(x) \
|
||||
((x)->handle.container.justify)
|
||||
#define _DtCvContainerLeadingOfSeg(x) \
|
||||
((x)->handle.container.leading)
|
||||
#define _DtCvContainerLineWidthOfSeg(x) \
|
||||
((x)->handle.container.bdr_info.width)
|
||||
#define _DtCvContainerLineDataOfSeg(x) \
|
||||
((x)->handle.container.bdr_info.data)
|
||||
#define _DtCvContainerListOfSeg(x) \
|
||||
((x)->handle.container.seg_list)
|
||||
#define _DtCvContainerLMarginOfSeg(x) \
|
||||
((x)->handle.container.lmargin)
|
||||
#define _DtCvContainerOrientOfSeg(x) \
|
||||
((x)->handle.container.orient)
|
||||
#define _DtCvContainerPercentOfSeg(x) \
|
||||
((x)->handle.container.percent)
|
||||
#define _DtCvContainerRMarginOfSeg(x) \
|
||||
((x)->handle.container.rmargin)
|
||||
#define _DtCvContainerTMarginOfSeg(x) \
|
||||
((x)->handle.container.tmargin)
|
||||
#define _DtCvContainerTypeOfSeg(x) \
|
||||
((x)->handle.container.type)
|
||||
#define _DtCvContainerVJustifyOfSeg(x) \
|
||||
((x)->handle.container.vjustify)
|
||||
#define _DtCvContainerVOrientOfSeg(x) \
|
||||
((x)->handle.container.vorient)
|
||||
|
||||
/*
|
||||
* marker access
|
||||
*/
|
||||
#define _DtCvIdOfMarkerSeg(x) ((x)->handle.marker)
|
||||
|
||||
/*
|
||||
* marker access
|
||||
*/
|
||||
#define _DtCvDataOfLineSeg(x) ((x)->handle.rule.data)
|
||||
#define _DtCvWidthOfLineSeg(x) ((x)->handle.rule.width)
|
||||
|
||||
/*
|
||||
* string access
|
||||
*/
|
||||
#define _DtCvStringOfStringSeg(x) ((x)->handle.string.string)
|
||||
#define _DtCvFontOfStringSeg(x) ((x)->handle.string.font)
|
||||
|
||||
/*
|
||||
* region access
|
||||
*/
|
||||
#define _DtCvInfoOfRegionSeg(x) ((x)->handle.region.info)
|
||||
#define _DtCvWidthOfRegionSeg(x) ((x)->handle.region.width)
|
||||
#define _DtCvHeightOfRegionSeg(x) ((x)->handle.region.height)
|
||||
#define _DtCvAscentOfRegionSeg(x) ((x)->handle.region.ascent)
|
||||
|
||||
/*
|
||||
* table access
|
||||
*/
|
||||
#define _DtCvNumColsOfTableSeg(x) ((x)->handle.table.num_cols)
|
||||
#define _DtCvColWOfTableSeg(x) ((x)->handle.table.col_w)
|
||||
#define _DtCvColJustifyOfTableSeg(x) ((x)->handle.table.col_justify)
|
||||
#define _DtCvJustifyCharsOfTableSeg(x) ((x)->handle.table.justify_chars)
|
||||
#define _DtCvCellIdsOfTableSeg(x) ((x)->handle.table.cell_ids)
|
||||
#define _DtCvCellsOfTableSeg(x) ((x)->handle.table.cells)
|
||||
|
||||
/******** Semi-Public Function Declarations ********/
|
||||
/******** Public Function Declarations ********/
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtCanvasSegP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,264 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
|
||||
@@ -1,191 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,125 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,146 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,197 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,266 +0,0 @@
|
||||
/*
|
||||
* 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: Help.h /main/3 1995/10/26 12:23:24 rswiston $ */
|
||||
/*
|
||||
* (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 _Dt_Help_h
|
||||
#define _Dt_Help_h
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
|
||||
/* Common DtHelp Resources */
|
||||
|
||||
#ifndef DtNcloseCallback
|
||||
#define DtNcloseCallback "closeCallback"
|
||||
#endif
|
||||
#ifndef DtNcolumns
|
||||
#define DtNcolumns XmNcolumns
|
||||
#endif
|
||||
#ifndef DtNexecutionPolicy
|
||||
#define DtNexecutionPolicy "executionPolicy"
|
||||
#endif
|
||||
#ifndef DtNhelpFile
|
||||
#define DtNhelpFile "helpFile"
|
||||
#endif
|
||||
#ifndef DtNhelpOnHelpVolume
|
||||
#define DtNhelpOnHelpVolume "helpOnHelpVolume"
|
||||
#endif
|
||||
#ifndef DtNhelpPrint
|
||||
#define DtNhelpPrint "helpPrint"
|
||||
#endif
|
||||
#ifndef DtNhelpType
|
||||
#define DtNhelpType "helpType"
|
||||
#endif
|
||||
#ifndef DtNhelpVolume
|
||||
#define DtNhelpVolume "helpVolume"
|
||||
#endif
|
||||
#ifndef DtNhyperLinkCallback
|
||||
#define DtNhyperLinkCallback "hyperLinkCallback"
|
||||
#endif
|
||||
#ifndef DtNlocationId
|
||||
#define DtNlocationId "locationId"
|
||||
#endif
|
||||
#ifndef DtNmanPage
|
||||
#define DtNmanPage "manPage"
|
||||
#endif
|
||||
#ifndef DtNminimizeButtons
|
||||
#define DtNminimizeButtons XmNminimizeButtons
|
||||
#endif
|
||||
#ifndef DtNpaperSize
|
||||
#define DtNpaperSize "paperSize"
|
||||
#endif
|
||||
#ifndef DtNprinter
|
||||
#define DtNprinter "printer"
|
||||
#endif
|
||||
#ifndef DtNrows
|
||||
#define DtNrows XmNrows
|
||||
#endif
|
||||
#ifndef DtNscrollBarPolicy
|
||||
#define DtNscrollBarPolicy "scrollBarPolicy"
|
||||
#endif
|
||||
#ifndef DtNstringData
|
||||
#define DtNstringData "stringData"
|
||||
#endif
|
||||
|
||||
#ifndef DtCCallback
|
||||
#define DtCCallback XmCCallback
|
||||
#endif
|
||||
|
||||
#ifndef DtCCloseCallback
|
||||
#define DtCCloseCallback "CloseCallback"
|
||||
#endif
|
||||
#ifndef DtCColumns
|
||||
#define DtCColumns XmCColumns
|
||||
#endif
|
||||
#ifndef DtCExecutionPolicy
|
||||
#define DtCExecutionPolicy "ExecutionPolicy"
|
||||
#endif
|
||||
#ifndef DtCHelpFile
|
||||
#define DtCHelpFile "HelpFile"
|
||||
#endif
|
||||
#ifndef DtCHelpOnHelpVolume
|
||||
#define DtCHelpOnHelpVolume "HelpOnHelpVolume"
|
||||
#endif
|
||||
#ifndef DtCHelpPrint
|
||||
#define DtCHelpPrint "HelpPrint"
|
||||
#endif
|
||||
#ifndef DtCHelpType
|
||||
#define DtCHelpType "HelpType"
|
||||
#endif
|
||||
#ifndef DtCHelpVolume
|
||||
#define DtCHelpVolume "HelpVolume"
|
||||
#endif
|
||||
#ifndef DtCHyperLinkCallback
|
||||
#define DtCHyperLinkCallback "HyperLinkCallback"
|
||||
#endif
|
||||
#ifndef DtCLocationId
|
||||
#define DtCLocationId "LocationId"
|
||||
#endif
|
||||
#ifndef DtCManPage
|
||||
#define DtCManPage "ManPage"
|
||||
#endif
|
||||
#ifndef DtCMinimizeButtons
|
||||
#define DtCMinimizeButtons XmCMinimizeButtons
|
||||
#endif
|
||||
#ifndef DtCPaperSize
|
||||
#define DtCPaperSize "PaperSize"
|
||||
#endif
|
||||
#ifndef DtCPrinter
|
||||
#define DtCPrinter "Printer"
|
||||
#endif
|
||||
#ifndef DtCRows
|
||||
#define DtCRows XmCRows
|
||||
#endif
|
||||
#ifndef DtCScrollBarPolicy
|
||||
#define DtCScrollBarPolicy "ScrollBarPolicy"
|
||||
#endif
|
||||
#ifndef DtCStringData
|
||||
#define DtCStringData "StringData"
|
||||
#endif
|
||||
|
||||
/* Representation types */
|
||||
|
||||
#ifndef DtRDtExecutionPolicy
|
||||
#define DtRDtExecutionPolicy "DtExecutionPolicy"
|
||||
#endif
|
||||
#ifndef DtRDtHelpType
|
||||
#define DtRDtHelpType "DtHelpType"
|
||||
#endif
|
||||
#ifndef DtRDtPaperSize
|
||||
#define DtRDtPaperSize "DtPaperSize"
|
||||
#endif
|
||||
#ifndef DtRDtScrollBarPolicy
|
||||
#define DtRDtScrollBarPolicy "DtScrollBarPolicy"
|
||||
#endif
|
||||
|
||||
/* DtHelpDialogCallbackStruct windowHint field */
|
||||
|
||||
#define DtHELP_POPUP_WINDOW 1
|
||||
#define DtHELP_CURRENT_WINDOW 2
|
||||
#define DtHELP_NEW_WINDOW 3
|
||||
|
||||
/* DtHelpDialogCallbackStruct hyperType field */
|
||||
|
||||
#define DtHELP_LINK_JUMP_NEW 1
|
||||
#define DtHELP_LINK_TOPIC 1
|
||||
#define DtHELP_LINK_MAN_PAGE 4
|
||||
#define DtHELP_LINK_APP_DEFINE 5
|
||||
#define DtHELP_LINK_TEXT_FILE 8
|
||||
|
||||
/* DtHelpDialogCallbackStruct reason field */
|
||||
|
||||
#define DtCR_HELP_LINK_ACTIVATE 1
|
||||
#define DtCR_HELP_CLOSE 2
|
||||
#define DtCR_HELP_HELP 3
|
||||
|
||||
/* Possible values for DtNscrollBarPolicy resource */
|
||||
|
||||
#define DtHELP_NO_SCROLLBARS 0
|
||||
#define DtHELP_STATIC_SCROLLBARS 1
|
||||
#define DtHELP_AS_NEEDED_SCROLLBARS 2
|
||||
|
||||
/* Possible values for DtNexecutionPolicy resource */
|
||||
#define DtHELP_EXECUTE_NONE 0
|
||||
#define DtHELP_EXECUTE_QUERY_ALL 1
|
||||
#define DtHELP_EXECUTE_QUERY_UNALIASED 2
|
||||
#define DtHELP_EXECUTE_ALL 3
|
||||
|
||||
/* Possible values for DtNhelpType resource */
|
||||
|
||||
#define DtHELP_TYPE_TOPIC 0
|
||||
#define DtHELP_TYPE_STRING 1
|
||||
#define DtHELP_TYPE_MAN_PAGE 2
|
||||
#define DtHELP_TYPE_FILE 3
|
||||
#define DtHELP_TYPE_DYNAMIC_STRING 4
|
||||
|
||||
/* Possible values for DtNpaperSize resource */
|
||||
|
||||
#define DtHELP_PAPERSIZE_LETTER 0
|
||||
#define DtHELP_PAPERSIZE_LEGAL 1
|
||||
#define DtHELP_PAPERSIZE_EXECUTIVE 2
|
||||
#define DtHELP_PAPERSIZE_A4 3
|
||||
#define DtHELP_PAPERSIZE_B5 4
|
||||
|
||||
/* DtHelpQuickGetChildGetChild() function */
|
||||
|
||||
#define DtHELP_QUICK_CLOSE_BUTTON 1
|
||||
#define DtHELP_QUICK_PRINT_BUTTON 2
|
||||
#define DtHELP_QUICK_HELP_BUTTON 3
|
||||
#define DtHELP_QUICK_SEPARATOR 4
|
||||
#define DtHELP_QUICK_MORE_BUTTON 5
|
||||
#define DtHELP_QUICK_BACK_BUTTON 6
|
||||
|
||||
/* Return values for DtHelpReturnSelectedWidgetId() */
|
||||
|
||||
#define DtHELP_SELECT_ERROR -1
|
||||
#define DtHELP_SELECT_VALID 0
|
||||
#define DtHELP_SELECT_ABORT 1
|
||||
#define DtHELP_SELECT_INVALID 2
|
||||
|
||||
|
||||
/*
|
||||
* Types
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
int reason;
|
||||
XEvent *event;
|
||||
char *locationId;
|
||||
char *helpVolume;
|
||||
char *specification;
|
||||
int hyperType;
|
||||
int windowHint;
|
||||
} DtHelpDialogCallbackStruct;
|
||||
|
||||
|
||||
/*
|
||||
* Functions
|
||||
*/
|
||||
|
||||
extern void DtHelpSetCatalogName(
|
||||
char *catFile);
|
||||
|
||||
extern int DtHelpReturnSelectedWidgetId(
|
||||
Widget parent,
|
||||
Cursor cursor,
|
||||
Widget *widget);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _Dt_Help_h */
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* 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: HelpDialog.h /main/3 1995/10/26 12:24:05 rswiston $ */
|
||||
/*
|
||||
* (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 _Dt_HelpDialog_h
|
||||
#define _Dt_HelpDialog_h
|
||||
|
||||
#include <Dt/Help.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
|
||||
/* General Help Dialog-specific Resources */
|
||||
|
||||
#ifndef DtNmarginWidth
|
||||
#define DtNmarginWidth XmNmarginWidth
|
||||
#endif
|
||||
#ifndef DtNmarginHeight
|
||||
#define DtNmarginHeight XmNmarginHeight
|
||||
#endif
|
||||
#ifndef DtNshowNewWindowButton
|
||||
#define DtNshowNewWindowButton "showNewWindowButton"
|
||||
#endif
|
||||
#ifndef DtNtopicTitle
|
||||
#define DtNtopicTitle "topicTitle"
|
||||
#endif
|
||||
#ifndef DtNvisiblePathCount
|
||||
#define DtNvisiblePathCount "visiblePathCount"
|
||||
#endif
|
||||
|
||||
#ifndef DtCCallback
|
||||
#define DtCCallback XmCCallback
|
||||
#endif
|
||||
|
||||
#ifndef DtCMarginWidth
|
||||
#define DtCMarginWidth XmCMarginWidth
|
||||
#endif
|
||||
#ifndef DtCMarginHeight
|
||||
#define DtCMarginHeight XmCMarginHeight
|
||||
#endif
|
||||
#ifndef DtCShowNewWindowButton
|
||||
#define DtCShowNewWindowButton "ShowNewWindowButton"
|
||||
#endif
|
||||
#ifndef DtCTopicTitle
|
||||
#define DtCTopicTitle "TopicTitle"
|
||||
#endif
|
||||
#ifndef DtCVisiblePathCount
|
||||
#define DtCVisiblePathCount "VisiblePathCount"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Types
|
||||
*/
|
||||
|
||||
/* Widget class and instance */
|
||||
|
||||
typedef struct _DtHelpDialogWidgetClassRec * DtHelpDialogWidgetClass;
|
||||
typedef struct _DtHelpDialogWidgetRec * DtHelpDialogWidget;
|
||||
|
||||
|
||||
/*
|
||||
* Data
|
||||
*/
|
||||
|
||||
/* Widget class record */
|
||||
|
||||
externalref WidgetClass dtHelpDialogWidgetClass;
|
||||
|
||||
|
||||
/*
|
||||
* Functions
|
||||
*/
|
||||
|
||||
extern Widget DtCreateHelpDialog(
|
||||
Widget parent,
|
||||
char *name,
|
||||
ArgList arglist,
|
||||
Cardinal argcount);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _Dt_HelpDialog_h */
|
||||
@@ -1,392 +0,0 @@
|
||||
/*
|
||||
* 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: HelpDialogP.h /main/6 1996/04/13 11:55:10 ageorge $ */
|
||||
/*************************************<+>*************************************
|
||||
*****************************************************************************
|
||||
**
|
||||
** File: HelpDialogP.h
|
||||
**
|
||||
** Project: Cache Creek (Rivers) Project:
|
||||
**
|
||||
** Description: Privite Header file for HelpDialog.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 _DtHelpDialogP_h
|
||||
#define _DtHelpDialogP_h
|
||||
|
||||
#include <Xm/BulletinBP.h>
|
||||
|
||||
#include <Dt/HelpDialog.h>
|
||||
|
||||
#include "FileListUtilsI.h"
|
||||
#include "GlobSearchP.h"
|
||||
|
||||
#define XmDIALOG_SUFFIX "_popup"
|
||||
#define XmDIALOG_SUFFIX_SIZE 6
|
||||
|
||||
|
||||
/* Defines for use in allocation geometry matrix. */
|
||||
#define TB_MAX_WIDGETS_VERT 7
|
||||
#define TB_MAX_NUM_WIDGETS 12
|
||||
|
||||
|
||||
/****************************************************************
|
||||
*
|
||||
* Topic List Info Structure Definition (History & Jump Back Lists)
|
||||
*
|
||||
****************************************************************/
|
||||
typedef struct _DtTopicListStruct {
|
||||
char *locationId;
|
||||
XmString topicTitleLbl;
|
||||
char *helpVolume;
|
||||
int topicType;
|
||||
int pathLevel;
|
||||
int scrollPosition;
|
||||
struct _DtTopicListStruct *pNext;
|
||||
struct _DtTopicListStruct *pPrevious;
|
||||
} DtTopicListStruct;
|
||||
|
||||
|
||||
/****************************************************************
|
||||
*
|
||||
* Volume List Info: History Dialog only.
|
||||
*
|
||||
****************************************************************/
|
||||
typedef struct _DtHistoryListStruct {
|
||||
XmString itemTitle;
|
||||
int topicType;
|
||||
int totalNodes;
|
||||
struct _DtHistoryListStruct *pNext;
|
||||
struct _DtTopicListStruct *pTopicHead;
|
||||
struct _DtTopicListStruct *pTopicTale;
|
||||
} DtHistoryListStruct;
|
||||
|
||||
|
||||
/****************************************************************
|
||||
*
|
||||
* Help Callback return structure
|
||||
*
|
||||
****************************************************************/
|
||||
typedef struct _DtHelpListStruct {
|
||||
char * locationId;
|
||||
Widget widget;
|
||||
struct _DtHelpCommonHelpStuff * help;
|
||||
struct _DtHelpListStruct * pNext;
|
||||
struct _DtHelpListStruct * pPrevious;
|
||||
} DtHelpListStruct;
|
||||
|
||||
|
||||
|
||||
/****************************************************************
|
||||
*
|
||||
* Kewword Search entry structure.
|
||||
*
|
||||
****************************************************************/
|
||||
|
||||
typedef struct {
|
||||
char * keyWord;
|
||||
Boolean matchesFindPattern;
|
||||
} KeyEntry;
|
||||
|
||||
|
||||
|
||||
|
||||
/* Class Part Structure Definition */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XtPointer extension; /* Pointer to extension record */
|
||||
} DtHelpDialogWidgetClassPart;
|
||||
|
||||
|
||||
|
||||
|
||||
/* Full class record declaration */
|
||||
|
||||
typedef struct _DtHelpDialogWidgetClassRec
|
||||
{
|
||||
CoreClassPart core_class;
|
||||
CompositeClassPart composite_class;
|
||||
ConstraintClassPart constraint_class;
|
||||
XmManagerClassPart manager_class;
|
||||
XmBulletinBoardClassPart bulletin_board_class;
|
||||
DtHelpDialogWidgetClassPart selection_box_class;
|
||||
} DtHelpDialogWidgetClassRec;
|
||||
|
||||
externalref DtHelpDialogWidgetClassRec dtHelpDialogWidgetClassRec;
|
||||
|
||||
|
||||
typedef struct _DtHelpDisplayWidgetStuff
|
||||
{
|
||||
short textColumns; /* Columns Resource Value resource */
|
||||
short textRows; /* Rows Resource Value resource */
|
||||
char * locationId; /* Current Topic String resource */
|
||||
char * helpVolume; /* Current Project File resource */
|
||||
char * manPage; /* man page resource */
|
||||
char * stringData; /* string data resource */
|
||||
char * helpFile; /* help file resource */
|
||||
unsigned char scrollBarPolicy; /* Scrollbar policy resource */
|
||||
unsigned char executionPolicy; /* Link/script exec policy resource */
|
||||
XtCallbackList hyperLinkCallback; /* Hypertext Callback resource */
|
||||
_DtHelpVolumeHdl volumeHandle; /* handle of current volume */
|
||||
unsigned char helpType; /* Current displayed file type resource */
|
||||
char * topicTitleStr; /* title of topic */
|
||||
int count; /* Nonexistent topic title count */
|
||||
XmString topicTitleLbl; /* XmString title of topic */
|
||||
Boolean firstTimePopupFlag; /* False, untel we map the widget */
|
||||
|
||||
|
||||
} _DtHelpDisplayWidgetStuff;
|
||||
|
||||
typedef struct _DtHelpCommonHelpStuff
|
||||
{
|
||||
XtPointer pDisplayArea; /* Display widget handle */
|
||||
|
||||
/* for help on help */
|
||||
char * helpOnHelpVolume; /* help on help volume resource */
|
||||
DtHelpListStruct * pHelpListHead; /* Help List Pointer */
|
||||
Widget onHelpDialog; /* help on help dialog */
|
||||
|
||||
char * sysVolumeSearchPath; /* system search path */
|
||||
char * userVolumeSearchPath; /* user search path */
|
||||
|
||||
char * currentHelpFile; /* Current help file */
|
||||
int topicOffset; /* Offset into help file */
|
||||
|
||||
char * topLevelId; /* Toplevel topic volume displayed */
|
||||
int topLevelTopicOffset;
|
||||
} _DtHelpCommonHelpStuff;
|
||||
|
||||
typedef struct _DtHelpGeneralHelpStuff
|
||||
{
|
||||
char * parentId; /* used for "Up" menu */
|
||||
|
||||
Boolean volumeFlag; /* set when to process new vol */
|
||||
|
||||
Widget definitionBox;
|
||||
XtCallbackList closeCallback; /* Window Close Callback */
|
||||
|
||||
Dimension marginHeight;
|
||||
Dimension marginWidth;
|
||||
} _DtHelpGeneralHelpStuff;
|
||||
|
||||
|
||||
typedef struct _DtHelpBrowserStuff
|
||||
{
|
||||
int visiblePathCount; /* Number of path lines shown */
|
||||
XtPointer pTocArea; /* Toc area handle */
|
||||
|
||||
Widget volumeLabel;
|
||||
Widget panedWindow;
|
||||
Widget pathArea;
|
||||
|
||||
Boolean showTopLevelBtn;
|
||||
Widget btnBoxBackBtn;
|
||||
Widget btnBoxHistoryBtn;
|
||||
Widget btnBoxIndexBtn;
|
||||
Widget btnBoxTopLevelBtn;
|
||||
} _DtHelpBrowserStuff;
|
||||
|
||||
typedef struct _DtHelpMenuStuff
|
||||
{
|
||||
Boolean showDupBtn;
|
||||
|
||||
/* Help Dialog Widgets */
|
||||
Widget menuBar;
|
||||
|
||||
Widget topBtn;
|
||||
Widget keyBtn;
|
||||
Widget backBtn;
|
||||
Widget historyBtn;
|
||||
Widget printBtn;
|
||||
Widget closeBtn;
|
||||
Widget helpBtn;
|
||||
Widget newWindowBtn;
|
||||
Widget copyBtn;
|
||||
|
||||
Widget popupMenu;
|
||||
Widget popupBackBtn;
|
||||
Widget popupTopBtn;
|
||||
} _DtHelpMenuStuff;
|
||||
|
||||
typedef struct _DtHelpHistoryStuff
|
||||
{
|
||||
/* Path Area Variables */
|
||||
DtTopicListStruct * pPathListHead;
|
||||
DtTopicListStruct * pPathListTale;
|
||||
int totalPathNodes;
|
||||
|
||||
/* History Dialog Widgets & variables */
|
||||
Widget volumeList; /* Scrolled volume list */
|
||||
Widget topicList; /* Scrolled topic list */
|
||||
Widget historyWidget; /* Top Level History Shell */
|
||||
Widget topicsListLabel;
|
||||
DtHistoryListStruct * pHistoryListHead; /* Head pointer to history */
|
||||
} _DtHelpHistoryStuff;
|
||||
|
||||
typedef struct _DtHelpBacktrackStuff
|
||||
{
|
||||
/* Jump List variables */
|
||||
DtTopicListStruct * pJumpListHead;
|
||||
DtTopicListStruct * pJumpListTale;
|
||||
int totalJumpNodes;
|
||||
int scrollPosition;
|
||||
} _DtHelpBacktrackStuff;
|
||||
|
||||
typedef struct _DtHelpGlobSearchStuff
|
||||
{
|
||||
/* search dialog resource (undocumented) */
|
||||
char * hitPrefixFont; /* hit prefix mono-space font resource */
|
||||
|
||||
/* host application locale settings */
|
||||
char * iconv3Codeset; /* iconv3-ok codeset of app */
|
||||
_DtHelpCeIconvContext iconv3Context; /* from vol to app locale */
|
||||
|
||||
/* File Selection Dialog font list */
|
||||
XmFontList volTitlesFontList; /*font list req'd by font titles*/
|
||||
|
||||
/* Search Dialog Widgets & variables */
|
||||
Widget srchForm;
|
||||
Widget actionBtn;
|
||||
Widget curVolRadBtn;
|
||||
Widget allVolRadBtn;
|
||||
Widget selVolRadBtn;
|
||||
Widget selectBtn;
|
||||
Widget fullIndexRadBtn;
|
||||
Widget containsRadBtn;
|
||||
Widget wordField;
|
||||
Widget statusLabel;
|
||||
Widget resultList;
|
||||
Widget gotoBtn;
|
||||
Widget closeBtn;
|
||||
Widget helpBtn;
|
||||
Widget selectionDlg; /* selectionBox (child of dlg) */
|
||||
char * curVolPath; /* cur vol shown in btn label */
|
||||
char * rawWordStr; /* word as taken from srchWord */
|
||||
char * normWordStr; /* normalized word str */
|
||||
char * localeWordStr; /* after iconv() of NormWordStr */
|
||||
wchar_t wordFieldFirstChar;
|
||||
short wordFieldLen;
|
||||
short statusLineUsage;
|
||||
_DtHelpGlobSrchSources srchSources; /* current state of radio but */
|
||||
_DtHelpFileEntry curSrchVol; /* vol currently being searched */
|
||||
unsigned int hitsFontLoaded:1; /* is font loaded? */
|
||||
unsigned int volScanDone:1; /* is the volume list complete? */
|
||||
unsigned int fullIndex:1; /* state of search */
|
||||
unsigned int readyToStart:1; /* state of search */
|
||||
unsigned int hitsFound:1; /* state of search */
|
||||
unsigned int searchInProgress:1; /* state of search */
|
||||
unsigned int curVolRadBtnSens:1; /* state of curVol sens */
|
||||
short volLeftCnt; /* updated during search */
|
||||
_DtHelpFileList volListHead; /* info on search topics found */
|
||||
XtWorkProcId workProcId; /* ID of search proc */
|
||||
} _DtHelpGlobSearchStuff;
|
||||
|
||||
typedef struct _DtHelpPrintStuff
|
||||
{
|
||||
/* printing resources */
|
||||
char * helpPrint; /* help print command resource */
|
||||
unsigned char paperSize; /* paper size resource */
|
||||
char * printer; /* printer destination resource */
|
||||
char * printVolume; /* volume to print resource */
|
||||
|
||||
/* Print Dialog widgets & variables */
|
||||
Widget printForm; /* Form inside top level print shell */
|
||||
Widget subject; /* label for subject matter to print */
|
||||
Widget printerField; /* text field for printer */
|
||||
Widget copiesField; /* text field for copies */
|
||||
Widget letterBtn; /* menu item for letter paper */
|
||||
Widget legalBtn; /* menu item for legal paper */
|
||||
Widget execBtn; /* menu item for executive paper */
|
||||
Widget a4Btn; /* menu item for A4 paper */
|
||||
Widget b5Btn; /* menu item for B5 paper */
|
||||
Widget paperSizeOptMenu; /* menu item for A4 paper */
|
||||
Widget topicsFrame; /* frame holding print topic selection */
|
||||
Widget curTopicBtn; /* radio btn for cur topic */
|
||||
Widget subTopicsBtn; /* radio btn for cur & sub topics */
|
||||
Widget tocBtn; /* radio btn for table of contents */
|
||||
Widget allTopicsBtn; /* radio btn for all topics */
|
||||
Widget paperTopicsSeparator; /* hidden sep btwn paper size & topic sel */
|
||||
Widget topicsBtnsSeparator; /* sep between topic sel & btns */
|
||||
} _DtHelpPrintStuff;
|
||||
|
||||
|
||||
/* fields for the GeneralHelp widget record */
|
||||
typedef struct
|
||||
{
|
||||
_DtHelpDisplayWidgetStuff display;
|
||||
_DtHelpCommonHelpStuff help;
|
||||
_DtHelpGeneralHelpStuff ghelp;
|
||||
_DtHelpBrowserStuff browser;
|
||||
_DtHelpMenuStuff menu;
|
||||
_DtHelpHistoryStuff history;
|
||||
_DtHelpBacktrackStuff backtr;
|
||||
_DtHelpGlobSearchStuff srch;
|
||||
_DtHelpPrintStuff print;
|
||||
} DtHelpDialogWidgetPart;
|
||||
|
||||
|
||||
/****************************************************************
|
||||
*
|
||||
* Full instance record declaration
|
||||
*
|
||||
****************************************************************/
|
||||
|
||||
typedef struct _DtHelpDialogWidgetRec
|
||||
{
|
||||
CorePart core;
|
||||
CompositePart composite;
|
||||
ConstraintPart constraint;
|
||||
XmManagerPart manager;
|
||||
XmBulletinBoardPart bulletin_board;
|
||||
DtHelpDialogWidgetPart help_dialog;
|
||||
} DtHelpDialogWidgetRec;
|
||||
|
||||
|
||||
|
||||
/******** Private Function Declarations ********/
|
||||
|
||||
extern XmGeoMatrix _DtHelpDialogWidgetGeoMatrixCreate(
|
||||
Widget wid,
|
||||
Widget instigator,
|
||||
XtWidgetGeometry *desired) ;
|
||||
extern Boolean _DtHelpDialogWidgetNoGeoRequest(
|
||||
XmGeoMatrix geoSpec) ;
|
||||
|
||||
/******** End Private Function Declarations ********/
|
||||
|
||||
|
||||
|
||||
#endif /* _XmTemplateBP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
/*
|
||||
* 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: HelpP.h /main/3 1995/10/26 12:24:50 rswiston $ */
|
||||
/************************************<+>*************************************
|
||||
****************************************************************************
|
||||
**
|
||||
** File: HelpP.h
|
||||
**
|
||||
** Project: CacheCreeek (Rivers) Project.
|
||||
**
|
||||
**
|
||||
** Description: Private header file for Dts.
|
||||
**
|
||||
**
|
||||
** (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 _DtHelpP_h
|
||||
#define _DtHelpP_h
|
||||
|
||||
/* Privite Argument Resource Definitions for Help Widget */
|
||||
|
||||
#define DtNshowTopLevelButton "showTopLevelButton"
|
||||
#ifndef XmNshowTopLevelButton
|
||||
#define XmNshowTopLevelButton DtNshowTopLevelButton
|
||||
#endif
|
||||
#define DtCShowTopLevelButton "ShowTopLevelButton"
|
||||
#ifndef XmCShowTopLevelButton
|
||||
#define XmCShowTopLevelButton DtCShowTopLevelButton
|
||||
#endif
|
||||
|
||||
#define DtNsrchHitPrefixFont "srchHitPrefixFont"
|
||||
#ifndef XmNsrchHitPrefixFont
|
||||
#define XmNsrchHitPrefixFont DtNsrchHitPrefixFont
|
||||
#endif
|
||||
#define DtCSrchHitPrefixFont "SrchHitPrefixFont"
|
||||
#ifndef XmCSrchHitPrefixFont
|
||||
#define XmCSrchHitPrefixFont DtCSrchHitPrefixFont
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef CDE_CONFIGURATION_TOP
|
||||
#define CDE_CONFIGURATION_TOP "/etc/dt"
|
||||
#endif
|
||||
|
||||
#ifndef CDE_INSTALLATION_TOP
|
||||
#define CDE_INSTALLATION_TOP "/usr/dt"
|
||||
#endif
|
||||
|
||||
|
||||
#define DtDEFAULT_SYSTEM_PATH \
|
||||
CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H:" \
|
||||
CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.sdl:" \
|
||||
CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.hv:" \
|
||||
CDE_CONFIGURATION_TOP "/appconfig/help/C/%H:" \
|
||||
CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.sdl:" \
|
||||
CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.hv:" \
|
||||
CDE_INSTALLATION_TOP "/appconfig/help/%L/%H:" \
|
||||
CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.sdl:" \
|
||||
CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.hv" \
|
||||
CDE_INSTALLATION_TOP "/appconfig/help/C/%H:" \
|
||||
CDE_INSTALLATION_TOP "/appconfig/help/C/%H.sdl:" \
|
||||
CDE_INSTALLATION_TOP "/appconfig/help/C/%H.hv:"
|
||||
|
||||
|
||||
#define DtDEFAULT_USER_PATH_FORMAT \
|
||||
"%s/.dt/help/%s/%%H:" \
|
||||
"%s/.dt/help/%s/%%H.sdl:" \
|
||||
"%s/.dt/help/%s/%%H.hv:" \
|
||||
"%s/.dt/help/%%H:" \
|
||||
"%s/.dt/help/%%H.sdl:" \
|
||||
"%s/.dt/help/%%H.hv"
|
||||
|
||||
/* this path expects a sprintf usage as follows:
|
||||
sprintf(buf,DtDEFAULT_USER_PATH_FORMAT,
|
||||
homedir, dtusersessionname,
|
||||
homedir, dtusersessionname,
|
||||
homedir, dtusersessionname,
|
||||
homedir, homedir, homedir);
|
||||
*/
|
||||
|
||||
/* #define DtVOLUMES_TYPE "volumes" */
|
||||
|
||||
#endif /* _DtHelpP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
* 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: HelpQuickD.h /main/3 1995/10/26 12:25:25 rswiston $ */
|
||||
/*
|
||||
* (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 _Dt_HelpQuickD_h
|
||||
#define _Dt_HelpQuickD_h
|
||||
|
||||
#include <Dt/Help.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
|
||||
/* Quick help dialog-specific Resources */
|
||||
|
||||
#ifndef DtNbackLabelString
|
||||
#define DtNbackLabelString "backLabelString"
|
||||
#endif
|
||||
#ifndef DtNhelpLabelString
|
||||
#define DtNhelpLabelString XmNhelpLabelString
|
||||
#endif
|
||||
#ifndef DtNmoreLabelString
|
||||
#define DtNmoreLabelString "moreLabelString"
|
||||
#endif
|
||||
#ifndef DtNcloseLabelString
|
||||
#define DtNcloseLabelString "closeLabelString"
|
||||
#endif
|
||||
#ifndef DtNprintLabelString
|
||||
#define DtNprintLabelString "printLabelString"
|
||||
#endif
|
||||
|
||||
#ifndef DtCCallback
|
||||
#define DtCCallback XmCCallback
|
||||
#endif
|
||||
|
||||
#ifndef DtCBackLabelString
|
||||
#define DtCBackLabelString "BackLabelString"
|
||||
#endif
|
||||
#ifndef DtCHelpLabelString
|
||||
#define DtCHelpLabelString XmCHelpLabelString
|
||||
#endif
|
||||
#ifndef DtCMoreLabelString
|
||||
#define DtCMoreLabelString "MoreLabelString"
|
||||
#endif
|
||||
#ifndef DtCCloseLabelString
|
||||
#define DtCCloseLabelString "CloseLabelString"
|
||||
#endif
|
||||
#ifndef DtCPrintLabelString
|
||||
#define DtCPrintLabelString "PrintLabelString"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Types
|
||||
*/
|
||||
|
||||
/* Widget class and instance */
|
||||
|
||||
typedef struct _DtHelpQuickDialogWidgetClassRec * DtHelpQuickDialogWidgetClass;
|
||||
typedef struct _DtHelpQuickDialogWidgetRec * DtHelpQuickDialogWidget;
|
||||
|
||||
|
||||
/*
|
||||
* Data
|
||||
*/
|
||||
|
||||
/* Widget class record */
|
||||
|
||||
externalref WidgetClass dtHelpQuickDialogWidgetClass;
|
||||
|
||||
|
||||
/*
|
||||
* Functions
|
||||
*/
|
||||
|
||||
/* tmp backwards compat */
|
||||
#define DtCreateQuickHelpDialog DtCreateHelpQuickDialog
|
||||
|
||||
extern Widget DtCreateHelpQuickDialog(
|
||||
Widget parent,
|
||||
char *name,
|
||||
ArgList arglist,
|
||||
Cardinal argcount);
|
||||
|
||||
extern Widget DtHelpQuickDialogGetChild(
|
||||
Widget widget,
|
||||
unsigned char child);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _Dt_HelpQuickD_h */
|
||||
@@ -1,177 +0,0 @@
|
||||
/*
|
||||
* 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: HelpQuickDP.h /main/6 1996/04/05 14:41:19 mgreess $ */
|
||||
/*************************************<+>*************************************
|
||||
*****************************************************************************
|
||||
**
|
||||
** File: HelpQuickDP.h
|
||||
**
|
||||
** Project: CDE 1.0 Common Desktop Environment
|
||||
**
|
||||
** Description: Privite Header file for HelpQuickD.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 _DtHelpQuickDP_h
|
||||
#define _DtHelpQuickDP_h
|
||||
|
||||
#include <Xm/BulletinBP.h>
|
||||
|
||||
#include <Dt/HelpQuickD.h>
|
||||
|
||||
#include "HelpQuickDI.h"
|
||||
#include "HelpDialogP.h"
|
||||
|
||||
|
||||
#define DtNO_JUMP_UPDATE 1
|
||||
#define DtJUMP_UPDATE 2
|
||||
|
||||
|
||||
#define XmDIALOG_SUFFIX "_popup"
|
||||
#define XmDIALOG_SUFFIX_SIZE 6
|
||||
|
||||
|
||||
/* Defines for use in allocation geometry matrix. */
|
||||
#define TB_MAX_WIDGETS_VERT 7
|
||||
#define TB_MAX_NUM_WIDGETS 12
|
||||
|
||||
|
||||
|
||||
/* Class Part Structure Definition */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XtPointer extension; /* Pointer to extension record */
|
||||
} DtHelpQuickDialogWidgetClassPart;
|
||||
|
||||
|
||||
|
||||
|
||||
/* Full class record declaration */
|
||||
|
||||
typedef struct _DtHelpQuickDialogWidgetClassRec
|
||||
{
|
||||
CoreClassPart core_class;
|
||||
CompositeClassPart composite_class;
|
||||
ConstraintClassPart constraint_class;
|
||||
XmManagerClassPart manager_class;
|
||||
XmBulletinBoardClassPart bulletin_board_class;
|
||||
DtHelpQuickDialogWidgetClassPart selection_box_class;
|
||||
} DtHelpQuickDialogWidgetClassRec;
|
||||
|
||||
externalref DtHelpQuickDialogWidgetClassRec dtHelpQuickDialogWidgetClassRec;
|
||||
|
||||
|
||||
/* fields for the Quick Help widget record */
|
||||
|
||||
/* reuse the CommonHelpStuff structure from HelpDialogP.h */
|
||||
/* reuse the BacktrackStuff structure from HelpDialogP.h */
|
||||
/* reuse the PrintStuff structure from HelpDialogP.h */
|
||||
|
||||
typedef struct _DtHelpQuickHelpStuff
|
||||
{
|
||||
int pad;
|
||||
Widget definitionBox;
|
||||
Boolean minimize_buttons;
|
||||
|
||||
/* Help Dialog Widgets */
|
||||
|
||||
Widget displayAreaFrame;
|
||||
Widget separator;
|
||||
|
||||
Widget closeButton; /* close button */
|
||||
XmString closeLabelString;
|
||||
XtCallbackList closeCallback;
|
||||
|
||||
Widget moreButton; /* Application button */
|
||||
XmString moreLabelString;
|
||||
|
||||
Widget backButton; /* Backtrack button */
|
||||
XmString backLabelString;
|
||||
|
||||
Widget printButton; /* print button */
|
||||
XmString printLabelString;
|
||||
|
||||
Widget helpButton; /* help button */
|
||||
XmString helpLabelString;
|
||||
} _DtHelpQuickHelpStuff;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
_DtHelpDisplayWidgetStuff display;
|
||||
_DtHelpCommonHelpStuff help;
|
||||
_DtHelpQuickHelpStuff qhelp;
|
||||
_DtHelpBacktrackStuff backtr;
|
||||
_DtHelpPrintStuff print;
|
||||
} _DtHelpQuickDialogWidgetPart;
|
||||
|
||||
|
||||
/****************************************************************
|
||||
*
|
||||
* Full instance record declaration
|
||||
*
|
||||
****************************************************************/
|
||||
|
||||
typedef struct _DtHelpQuickDialogWidgetRec
|
||||
{
|
||||
CorePart core;
|
||||
CompositePart composite;
|
||||
ConstraintPart constraint;
|
||||
XmManagerPart manager;
|
||||
XmBulletinBoardPart bulletin_board;
|
||||
_DtHelpQuickDialogWidgetPart qhelp_dialog;
|
||||
} DtHelpQuickDialogWidgetRec;
|
||||
|
||||
|
||||
|
||||
/******** Private Function Declarations ********/
|
||||
extern XmGeoMatrix _DtHelpQuickDialogWidgetGeoMatrixCreate(
|
||||
Widget wid,
|
||||
Widget instigator,
|
||||
XtWidgetGeometry *desired) ;
|
||||
extern Boolean _DtHelpQuickDialogWidgetNoGeoRequest(
|
||||
XmGeoMatrix geoSpec) ;
|
||||
extern void _DtHelpQuickDialogGetCloseLabelString(
|
||||
Widget wid,
|
||||
int resource_offset,
|
||||
XtArgVal *value );
|
||||
extern void _DtHelpQuickDialogGetHelpLabelString(
|
||||
Widget wid,
|
||||
int resource_offset,
|
||||
XtArgVal *value );
|
||||
|
||||
/******** End Private Function Declarations ********/
|
||||
|
||||
|
||||
|
||||
#endif /* _DtHelpDialogP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
@@ -1,201 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,159 +0,0 @@
|
||||
/*
|
||||
* 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. */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,120 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,48 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,79 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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