"Fossies" - the Fresh Open Source Software Archive

Member "Ted-2.23/Ted/tedColumnTool.h" (1 Feb 2013, 3055 Bytes) of archive /linux/misc/ted-2.23.src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "tedColumnTool.h" see the Fossies "Dox" file reference documentation.

    1 /************************************************************************/
    2 /*                                  */
    3 /*  Column Tool.                            */
    4 /*                                  */
    5 /************************************************************************/
    6 
    7 #   ifndef  TED_COLUMN_TOOL_H
    8 #   define  TED_COLUMN_TOOL_H
    9 
   10 #   include "tedBorderTool.h"
   11 #   include <docSelectionDescription.h>
   12 #   include <docSelectionGeometry.h>
   13 
   14 /************************************************************************/
   15 /*                                  */
   16 /*  Resources for the 'Column' page.                    */
   17 /*                                  */
   18 /************************************************************************/
   19 
   20 typedef struct ColumnPageResources
   21     {
   22     char *      cprColumn;
   23 
   24     char *      cprWidth;
   25     char *      cprBorders;
   26     char *      cprLeftBorder;
   27     char *      cprRightBorder;
   28 
   29     BorderToolResources cprBorderToolResources;
   30     } ColumnPageResources;
   31 
   32 /************************************************************************/
   33 /*                                  */
   34 /*  A Column tool, i.e. the 'Column' page of the format tool.       */
   35 /*                                  */
   36 /************************************************************************/
   37 
   38 typedef struct ColumnTool
   39     {
   40     EditApplication *       ctApplication;
   41     AppInspector *      ctInspector;
   42     const ColumnPageResources * ctPageResources;
   43 
   44     TableRectangle      ctTableRectangle;
   45 
   46     int             ctBlockFrameWide;
   47 
   48     CellProperties      ctPropertiesSet;
   49     CellProperties      ctPropertiesChosen;
   50     int             ctWidthSet;
   51     int             ctWidthChosen;
   52     int             ctHalfGapWidthTwips;
   53     unsigned char       ctCanChange;
   54 
   55     APP_WIDGET          ctColumnRow;
   56     APP_WIDGET          ctColumnLabel;
   57     APP_WIDGET          ctColumnText;
   58 
   59     APP_WIDGET          ctWidthRow;
   60     APP_WIDGET          ctWidthLabel;
   61     APP_WIDGET          ctWidthText;
   62 
   63     APP_WIDGET          ctBordersFrame;
   64     APP_WIDGET          ctBordersPaned;
   65     BorderTool          ctLeftBorderTool;
   66     BorderTool          ctRightBorderTool;
   67     } ColumnTool;
   68 
   69 /************************************************************************/
   70 /*                                  */
   71 /*  Routine declarations.                       */
   72 /*                                  */
   73 /************************************************************************/
   74 
   75 extern void tedFormatFillColumnPage(    ColumnTool *        ct,
   76                 const ColumnPageResources * cpr,
   77                 AppInspector *          ai,
   78                 int             subjectPage,
   79                 InspectorSubject *      is,
   80                 APP_WIDGET          pageWidget,
   81                 const InspectorSubjectResources * isr );
   82 
   83 extern void tedRefreshColumnTool(
   84                 ColumnTool *            ct,
   85                 int *               pEnabled,
   86                 int *               pPref,
   87                 InspectorSubject *      is,
   88                 const DocumentSelection *   ds,
   89                 const SelectionGeometry *   sg,
   90                 const SelectionDescription *    sd,
   91                 const unsigned char *       cmdEnabled );
   92 
   93 extern void tedInitColumnTool(  ColumnTool *    ct );
   94 extern void tedCleanColumnTool( ColumnTool *    ct );
   95 
   96 extern void tedFormatFinishColumnPage(  ColumnTool *            ct,
   97                     const ColumnPageResources * cpr );
   98 
   99 extern void tedColumnToolFillChoosers( ColumnTool *         ct,
  100                     const ColumnPageResources * cpr );
  101 
  102 extern void tedFormatToolGetColumnResourceTable(
  103                     EditApplication *       ea,
  104                     ColumnPageResources *       cpr,
  105                     InspectorSubjectResources * isr );
  106 
  107 #   endif   /*  TED_COLUMN_TOOL_H */