home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / Chip_2003-01_cd1.bin / zkuste / delphi / kolekce / d567 / FLEXCEL.ZIP / FlexCel / UFlxFormats.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2002-10-07  |  1.7 KB  |  75 lines

  1. unit UFlxFormats;
  2.  
  3. interface
  4. type
  5.   THFlxAlignment=(fha_general, fha_left, fha_center, fha_right, fha_fill,
  6.                   fha_justify, fha_center_across_selection);
  7.   TVFlxAlignment=(fva_top, fva_center, fva_bottom, fva_justify);
  8.  
  9.   TFlxBorderStyle= (fbs_None, fbs_Thin, fbs_Medium, fbs_Dashed, fbs_Dotted, fbs_Thick,
  10.                     fbs_Double, fbs_Hair, fbs_Medium_dashed, fbs_Dash_dot, fbs_Medium_dash_dot,
  11.                     fbs_Dash_dot_dot, fbs_Medium_dash_dot_dot, fbs_Slanted_dash_dot);
  12.  
  13.   TFlxPatternStyle=0..17;
  14.  
  15.   TFlxDiagonalBorder =(fdb_None, fdb_DiagDown, fdb_DiagUp, fdb_Both);
  16.  
  17.   TFlxFontStyle = (flsBold, flsItalic, flsStrikeOut, flsSuperscript, flsSubscript);
  18.  
  19.   TFlxUnderline = (fu_None, fu_Single, fu_Double, fu_SingleAccounting, fu_DoubleAccounting);
  20.  
  21.   SetOfTFlxFontStyle= Set of TFlxFontStyle;
  22.  
  23.   TFlxFont=record
  24.     Name: widestring;
  25.     Size20: Word;
  26.     ColorIndex: integer;
  27.     Style: SetOfTFlxFontStyle;
  28.     Underline: TFlxUnderline;
  29.   end;
  30.  
  31.   TFlxOneBorder=record
  32.     Style: TFlxBorderStyle;
  33.     ColorIndex: integer;
  34.   end;
  35.  
  36.   TFlxBorders=record
  37.     Left,
  38.     Right,
  39.     Top,
  40.     Bottom,
  41.     Diagonal: TFlxOneBorder;
  42.  
  43.     DiagonalStyle: TFlxDiagonalBorder;
  44.   end;
  45.  
  46.   TFlxFillPattern=record
  47.     Pattern: TFlxPatternStyle;
  48.     FgColorIndex: integer;
  49.     BgColorIndex: integer;
  50.   end;
  51.  
  52.   TFlxFormat=record
  53.     Font: TFlxFont;
  54.     Borders: TFlxBorders;
  55.     Format: Widestring;
  56.  
  57.     FillPattern: TFlxFillPattern;
  58.  
  59.     HAlignment: THFlxAlignment;
  60.     VAlignment: TVFlxAlignment;
  61.  
  62.     Locked: boolean;
  63.     Hidden: boolean;
  64.     Parent: integer;
  65.  
  66.     WrapText: boolean;
  67.     ShrinkToFit: boolean;
  68.     Rotation: byte;
  69.     Indent:   byte;
  70.   end;
  71.  
  72. implementation
  73.  
  74. end.
  75.