home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / Microline3.0 / XmL / Grid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.7 KB  |  127 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. /*
  20.  * The following source code is part of the Microline Widget Library.
  21.  * The Microline widget library is made available to Mozilla developers
  22.  * under the Netscape Public License (NPL) by Neuron Data.  To learn
  23.  * more about Neuron Data, please visit the Neuron Data Home Page at
  24.  * http://www.neurondata.com.
  25.  */
  26.  
  27.  
  28. #ifndef XmLGridH
  29. #define XmLGridH
  30.  
  31. #include <XmL/XmL.h>
  32. #include <stdio.h>
  33.  
  34. #ifdef XmL_CPP
  35. extern "C" {
  36. #endif
  37.  
  38. extern WidgetClass xmlGridWidgetClass;
  39. typedef struct _XmLGridClassRec *XmLGridWidgetClass;
  40. typedef struct _XmLGridRec *XmLGridWidget;
  41. typedef struct _XmLGridRowRec *XmLGridRow;
  42. typedef struct _XmLGridColumnRec *XmLGridColumn;
  43. typedef struct _XmLGridCellRec *XmLGridCell;
  44.  
  45. #define XmLIsGrid(w) XtIsSubclass((w), xmlGridWidgetClass)
  46.  
  47. Widget XmLCreateGrid(Widget parent, char *name, ArgList arglist,
  48.     Cardinal argcount);
  49. void XmLGridAddColumns(Widget w, unsigned char type, int position, int count);
  50. void XmLGridAddRows(Widget w, unsigned char type, int position, int count);
  51. Boolean XmLGridColumnIsVisible(Widget w, int column);
  52. Boolean XmLGridCopyPos(Widget w, Time time, unsigned char rowType, int row,
  53.     unsigned char columnType, int column, int nrow, int ncolumn);
  54. Boolean XmLGridCopySelected(Widget w, Time time);
  55. void XmLGridDeleteAllColumns(Widget w, unsigned char type);
  56. void XmLGridDeleteAllRows(Widget w, unsigned char type);
  57. void XmLGridDeleteColumns(Widget w, unsigned char type, int position,
  58.     int count);
  59. void XmLGridDeleteRows(Widget w, unsigned char type, int position, int count);
  60. void XmLGridDeselectAllCells(Widget w, Boolean notify);
  61. void XmLGridDeselectAllColumns(Widget w, Boolean notify);
  62. void XmLGridDeselectAllRows(Widget w, Boolean notify);
  63. void XmLGridDeselectCell(Widget w, int row, int column, Boolean notify);
  64. void XmLGridDeselectColumn(Widget w, int column, Boolean notify);
  65. void XmLGridDeselectRow(Widget w, int row, Boolean notify);
  66. int XmLGridEditBegin(Widget w, Boolean insert, int row, int column);
  67. void XmLGridEditCancel(Widget w);
  68. void XmLGridEditComplete(Widget w);
  69. XmLGridColumn XmLGridGetColumn(Widget w, unsigned char columnType, int column);
  70. void XmLGridGetFocus(Widget w, int *row, int *column, Boolean *focusIn);
  71. XmLGridRow XmLGridGetRow(Widget w, unsigned char rowType, int row);
  72. int XmLGridGetSelectedCellCount(Widget w);
  73. int XmLGridGetSelectedCells(Widget w, int *rowPositions,
  74.     int *columnPositions, int count);
  75. int XmLGridGetSelectedColumnCount(Widget w);
  76. int XmLGridGetSelectedColumns(Widget w, int *positions, int count);
  77. int XmLGridGetSelectedRow(Widget w);
  78. int XmLGridGetSelectedRowCount(Widget w);
  79. int XmLGridGetSelectedRows(Widget w, int *positions, int count);
  80. void XmLGridMoveColumns(Widget w, int newPosition, int position, int count);
  81. void XmLGridMoveRows(Widget w, int newPosition, int position, int count);
  82. Boolean XmLGridPaste(Widget w);
  83. Boolean XmLGridPastePos(Widget w, unsigned char rowType, int row,
  84.     unsigned char columnType, int column);
  85. void XmLGridInstallHideButtonTranslations(Widget w);
  86. int XmLGridRead(Widget w, FILE *file, int format, char delimiter);
  87. int XmLGridReadPos(Widget w, FILE *file, int format, char delimiter,
  88.     unsigned char rowType, int row, unsigned char columnType, int column);
  89. void XmLGridRedrawAll(Widget w);
  90. void XmLGridRedrawCell(Widget w, unsigned char rowType, int row,
  91.     unsigned char columnType, int column);
  92. void XmLGridRedrawColumn(Widget w, unsigned char type, int column);
  93. void XmLGridRedrawRow(Widget w, unsigned char type, int row);
  94. void XmLGridReorderColumns(Widget w, int *newPositions,
  95.     int position, int count);
  96. void XmLGridReorderRows(Widget w, int *newPositions,
  97.     int position, int count);
  98. int XmLGridRowColumnToXY(Widget w, unsigned char rowType, int row,
  99.     unsigned char columnType, int column, Boolean clipped, XRectangle *rect);
  100. Boolean XmLGridRowIsVisible(Widget w, int row);
  101. void XmLGridSelectAllCells(Widget w, Boolean notify);
  102. void XmLGridSelectAllColumns(Widget w, Boolean notify);
  103. void XmLGridSelectAllRows(Widget w, Boolean notify);
  104. void XmLGridSelectCell(Widget w, int row, int column, Boolean notify);
  105. void XmLGridSelectColumn(Widget w, int column, Boolean notify);
  106. void XmLGridSelectRow(Widget w, int row, Boolean notify);
  107. int XmLGridSetFocus(Widget w, int row, int column);
  108. int XmLGridSetStrings(Widget w, char *data);
  109. int XmLGridSetStringsPos(Widget w, unsigned char rowType, int row,
  110.     unsigned char columnType, int column, char *data);
  111. int XmLGridWrite(Widget w, FILE *file, int format, char delimiter,
  112.     Boolean skipHidden);
  113. int XmLGridWritePos(Widget w, FILE *file, int format, char delimiter,
  114.     Boolean skipHidden, unsigned char rowType, int row,
  115.     unsigned char columnType, int column, int nrow, int ncolumn);
  116. int XmLGridXYToRowColumn(Widget w, int x, int y, unsigned char *rowType,
  117.     int *row, unsigned char *columnType, int *column);
  118.  
  119. int XmLGridPosIsResize(Widget g, int x, int y);
  120.  
  121. void XmLGridSetVisibleColumnCount(Widget w, int num_visible);
  122.  
  123. #ifdef XmL_CPP
  124. }
  125. #endif
  126. #endif
  127.