* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * 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
*/
** Project: Cde Help System
**
** Description: This is the UI dependant layer to the Help System.
- ** It recieves requests from the Core Engine for
+ ** It receives requests from the Core Engine for
** information or to do rendering. It does the
** appropriate work based on a Motif and X Lib
** interface.
{"[spades]", {'\252','\0'}, SymbolString}, /*ISOpub , spades suit symbol */
{"[sub ]", {'\314','\0'}, SymbolString}, /*ISOtech, subset/is implied by */
{"[sube ]", {'\315','\0'}, SymbolString}, /*ISOtech, subset, equals */
-/*"[sung ]", { ?? ,'\0'}, }, /*ISOnum , musical note(sung txt)*/
+/*"[sung ]", { ?? ,'\0'}, }, *ISOnum , musical note(sung txt)*/
{"[sup ]", {'\311','\0'}, SymbolString}, /*ISOtech, superset or implies */
{"[sup1 ]", {'\271','\0'}, IsoString }, /*ISOnum , superscript one */
{"[sup2 ]", {'\262','\0'}, IsoString }, /*ISOnum , superscript two */
Display *dpy,
Drawable d,
GC gc,
- int font_index,
- int x,
- int y,
+ long font_index,
+ long x,
+ long y,
const void *string,
int length,
int wc,
char *lang,
const char *charset,
_DtHelpFontHints font_attr,
- int *ret_idx )
+ long *ret_idx )
{
int result = -1;
char *xlfdSpec = font_attr.xlfd;
* box_x,box_y Specifies the upper left hand corner of
* the bounding box for this string. This
* includes any traversal and/or link offsets
- * relevent for the line this segment occupies.
+ * relevant for the line this segment occupies.
* box_height Specifies the maximum height of the bounding
* box for this string. This includes any
- * traversal and/or offsets relevent to this
+ * traversal and/or offsets relevant to this
* line.
* old_flags Specifies .............
* new_flags Specifies .............
if (strWidth)
{
MyDrawString (dpy, win, drawGC,
- (int) font_ptr,
- (int) x, (int) y, string, byte_len,
+ (long) font_ptr,
+ (long) x, (long) y, string, byte_len,
wc, False, pDAS->font_info);
if (pDAS->dtinfo && NULL != pSCD) {
* box_x,box_y Specifies the upper left hand corner of
* the bounding box for this string. This
* includes any traversal and/or link offsets
- * relevent for the line this segment occupies.
+ * relevant for the line this segment occupies.
* box_height Specifies the maximum height of the bounding
* box for this string. This includes any
- * traversal and/or offsets relevent to this
+ * traversal and/or offsets relevant to this
* line.
* link_type Specifies the link type if this spc is
* part of a link.
_DtCvFlags new_flags )
{
int i;
- int spcLstIdx = (int) spc_handle;
+ long spcLstIdx = (long) spc_handle;
_DtCvUnit ascent;
_DtCvUnit descent;
const char *spcStr;
_DtCvUnit space,
_DtCvFlags flags )
{
- int spcIdx = (int) spc_handle;
+ long spcIdx = (long) spc_handle;
int i;
int totalLen;
int spaceNum = 0;
* note - if the mod_string comes in with a NULL pointer,
* it came from our own call rather than the Core Engine.
*/
- int idx;
+ long idx;
(void) ResolveFont(client_data, lang, charset, font_attr, &idx);
*ret_font = (_DtCvPointer) idx;
{
register int i = 0;
int result = -1;
- int fontIdx;
- int spcTbIdx = 0;
+ long fontIdx;
+ long spcTbIdx = 0;
_DtCvUnit ascent;
_DtCvUnit descent;
const char *newSet;
if (result == 0)
{
- int spcLstIdx = 0;
+ long spcLstIdx = 0;
_DtCvUnit maxWidth;
_DtHelpDARegion *pReg;
if (fileName != file_xid)
free (fileName);
- if (pGS->pix == NULL)
+ if (pGS->pix == 0)
{
free(pReg);
free(pGS);
_DtCvPointer graphic_ptr )
{
Arg args[5];
- int i;
Colormap colormap;
_DtCvPointer client_data,
_DtCvPointer spc_handle)
{
- int spc_index = (int) spc_handle;
+ long spc_index = (long) spc_handle;
DtHelpDispAreaStruct *pDAS = (DtHelpDispAreaStruct *) client_data;
if (pDAS->max_spc == 0)
_DtCvPointer client_data,
_DtCvPointer reg_info)
{
- DtHelpDispAreaStruct *pDAS = (DtHelpDispAreaStruct *) client_data;
_DtHelpDARegion *pReg = (_DtHelpDARegion *) reg_info;
if (True == pReg->inited)
{
DtHelpDispAreaStruct *pDAS = (DtHelpDispAreaStruct *) client_data;
- __DtHelpFontMetrics (pDAS->font_info, (int) font_ptr,
+ __DtHelpFontMetrics (pDAS->font_info, (long) font_ptr,
ret_ascent, ret_descent, ret_width, ret_super, ret_sub);
}
{
DtHelpDispAreaStruct *pDAS = (DtHelpDispAreaStruct *) client_data;
int length;
- int font_index;
+ long font_index;
_DtCvStringInfo *strInfo;
if (elem_type != _DtCvSTRING_TYPE)
* was opened for this string. Use the X11R5 I18N routine to figure
* out its length. Otherwise use the standard X11 text width call.
*/
- font_index = (int) strInfo->font_ptr;
+ font_index = (long) strInfo->font_ptr;
if (font_index < 0)
{
if (0 == strInfo->wc)