Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations
celldata.h File Reference
#include "nsISupports.h"
#include "nsCoord.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CellData
 Data stored by nsCellMap to rationalize rowspan and colspan cells. More...
class  BCData
class  BCCellData

Defines

#define MAX_ROWSPAN   8190
#define MAX_COLSPAN   1000
#define MAX_BORDER_WIDTH   nscoord(PR_BITMASK(sizeof(BCPixelSize) * 8))
#define BC_BORDER_TOP_HALF_COORD(p2t, px)   NSToCoordRound(float((px) - (px) / 2) * (p2t) )
#define BC_BORDER_RIGHT_HALF_COORD(p2t, px)   NSToCoordRound(float( (px) / 2) * (p2t) )
#define BC_BORDER_BOTTOM_HALF_COORD(p2t, px)   NSToCoordRound(float( (px) / 2) * (p2t) )
#define BC_BORDER_LEFT_HALF_COORD(p2t, px)   NSToCoordRound(float((px) - (px) / 2) * (p2t) )
#define BC_BORDER_TOP_HALF(px)   ((px) - (px) / 2)
#define BC_BORDER_RIGHT_HALF(px)   ((px) / 2)
#define BC_BORDER_BOTTOM_HALF(px)   ((px) / 2)
#define BC_BORDER_LEFT_HALF(px)   ((px) - (px) / 2)
#define SPAN   0x00000001
#define ROW_SPAN   0x00000002
#define ROW_SPAN_0   0x00000004
#define ROW_SPAN_OFFSET   0x0000FFF8
#define COL_SPAN   0x00010000
#define COL_SPAN_0   0x00020000
#define OVERLAP   0x00040000
#define COL_SPAN_OFFSET   0xFFF80000
#define ROW_SPAN_SHIFT   3
#define COL_SPAN_SHIFT   19

Typedefs

typedef PRUint16 BCPixelSize

Enumerations

enum  BCBorderOwner {
  eTableOwner = 0, eColGroupOwner = 1, eAjaColGroupOwner = 2, eColOwner = 3,
  eAjaColOwner = 4, eRowGroupOwner = 5, eAjaRowGroupOwner = 6, eRowOwner = 7,
  eAjaRowOwner = 8, eCellOwner = 9, eAjaCellOwner = 10
}

Define Documentation

#define BC_BORDER_BOTTOM_HALF (   px)    ((px) / 2)

Definition at line 198 of file celldata.h.

#define BC_BORDER_BOTTOM_HALF_COORD (   p2t,
  px 
)    NSToCoordRound(float( (px) / 2) * (p2t) )

Definition at line 193 of file celldata.h.

#define BC_BORDER_LEFT_HALF (   px)    ((px) - (px) / 2)

Definition at line 199 of file celldata.h.

#define BC_BORDER_LEFT_HALF_COORD (   p2t,
  px 
)    NSToCoordRound(float((px) - (px) / 2) * (p2t) )

Definition at line 194 of file celldata.h.

#define BC_BORDER_RIGHT_HALF (   px)    ((px) / 2)

Definition at line 197 of file celldata.h.

#define BC_BORDER_RIGHT_HALF_COORD (   p2t,
  px 
)    NSToCoordRound(float( (px) / 2) * (p2t) )

Definition at line 192 of file celldata.h.

#define BC_BORDER_TOP_HALF (   px)    ((px) - (px) / 2)

Definition at line 196 of file celldata.h.

#define BC_BORDER_TOP_HALF_COORD (   p2t,
  px 
)    NSToCoordRound(float((px) - (px) / 2) * (p2t) )

Definition at line 191 of file celldata.h.

#define COL_SPAN   0x00010000

Definition at line 273 of file celldata.h.

#define COL_SPAN_0   0x00020000

Definition at line 274 of file celldata.h.

#define COL_SPAN_OFFSET   0xFFF80000

Definition at line 276 of file celldata.h.

Definition at line 278 of file celldata.h.

Definition at line 189 of file celldata.h.

#define MAX_COLSPAN   1000

Definition at line 44 of file celldata.h.

#define MAX_ROWSPAN   8190

Definition at line 43 of file celldata.h.

#define OVERLAP   0x00040000

Definition at line 275 of file celldata.h.

#define ROW_SPAN   0x00000002

Definition at line 270 of file celldata.h.

#define ROW_SPAN_0   0x00000004

Definition at line 271 of file celldata.h.

#define ROW_SPAN_OFFSET   0x0000FFF8

Definition at line 272 of file celldata.h.

Definition at line 277 of file celldata.h.

#define SPAN   0x00000001

Definition at line 269 of file celldata.h.


Typedef Documentation

Definition at line 185 of file celldata.h.


Enumeration Type Documentation

Enumerator:
eTableOwner 
eColGroupOwner 
eAjaColGroupOwner 
eColOwner 
eAjaColOwner 
eRowGroupOwner 
eAjaRowGroupOwner 
eRowOwner 
eAjaRowOwner 
eCellOwner 
eAjaCellOwner 

Definition at line 170 of file celldata.h.

{
  eTableOwner        =  0,
  eColGroupOwner     =  1, 
  eAjaColGroupOwner  =  2, // col group to the left 
  eColOwner          =  3,
  eAjaColOwner       =  4, // col to the left
  eRowGroupOwner     =  5, 
  eAjaRowGroupOwner  =  6, // row group above
  eRowOwner          =  7, 
  eAjaRowOwner       =  8, // row above
  eCellOwner         =  9,
  eAjaCellOwner      = 10  // cell to the top or to the left
};