XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations
sheet_types.h File Reference

Core types, constants, and limits for XESheets spreadsheet application. More...

#include <stdint.h>
#include <stdbool.h>
Include dependency graph for sheet_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _SheetCell
 
struct  _SheetTab
 
struct  _SheetWorkbook
 
struct  _SheetCoord
 
struct  _SheetRange
 
struct  _SheetStats
 

Macros

#define SHEET_MAX_COLS   26 /* Columns A to Z */
 
#define SHEET_MAX_ROWS   100 /* Rows 1 to 100 */
 
#define SHEET_MAX_TABS   8 /* Up to 8 multi-sheet tabs */
 
#define SHEET_TAB_NAME_LEN   32
 
#define SHEET_CELL_TEXT_LEN   64
 
#define SHEET_DISP_TEXT_LEN   32
 
#define SHEET_PATH_MAX   128
 
#define SHEET_DEFAULT_COL_W   72
 
#define SHEET_DEFAULT_ROW_H   22
 
#define SHEET_ROW_HEADER_W   42
 
#define SHEET_COL_HEADER_H   22
 
#define CELL_FMT_BOLD   (1 << 0)
 
#define CELL_FMT_ALIGN_LEFT   (0)
 
#define CELL_FMT_ALIGN_CENTER   (1 << 1)
 
#define CELL_FMT_ALIGN_RIGHT   (1 << 2)
 

Typedefs

typedef struct _SheetCell SheetCell
 
typedef struct _SheetTab SheetTab
 
typedef struct _SheetWorkbook SheetWorkbook
 
typedef struct _SheetCoord SheetCoord
 
typedef struct _SheetRange SheetRange
 
typedef struct _SheetStats SheetStats
 

Enumerations

enum  CellType { CELL_TYPE_EMPTY = 0 , CELL_TYPE_TEXT , CELL_TYPE_NUMBER , CELL_TYPE_FORMULA }
 
enum  CellError {
  CELL_ERR_NONE = 0 , CELL_ERR_DIV0 , CELL_ERR_VALUE , CELL_ERR_NAME ,
  CELL_ERR_CYCLE , CELL_ERR_REF
}
 

Detailed Description

Core types, constants, and limits for XESheets spreadsheet application.

Macro Definition Documentation

◆ CELL_FMT_ALIGN_CENTER

#define CELL_FMT_ALIGN_CENTER   (1 << 1)

◆ CELL_FMT_ALIGN_LEFT

#define CELL_FMT_ALIGN_LEFT   (0)

◆ CELL_FMT_ALIGN_RIGHT

#define CELL_FMT_ALIGN_RIGHT   (1 << 2)

◆ CELL_FMT_BOLD

#define CELL_FMT_BOLD   (1 << 0)

◆ SHEET_CELL_TEXT_LEN

#define SHEET_CELL_TEXT_LEN   64

◆ SHEET_COL_HEADER_H

#define SHEET_COL_HEADER_H   22

◆ SHEET_DEFAULT_COL_W

#define SHEET_DEFAULT_COL_W   72

◆ SHEET_DEFAULT_ROW_H

#define SHEET_DEFAULT_ROW_H   22

◆ SHEET_DISP_TEXT_LEN

#define SHEET_DISP_TEXT_LEN   32

◆ SHEET_MAX_COLS

#define SHEET_MAX_COLS   26 /* Columns A to Z */

◆ SHEET_MAX_ROWS

#define SHEET_MAX_ROWS   100 /* Rows 1 to 100 */

◆ SHEET_MAX_TABS

#define SHEET_MAX_TABS   8 /* Up to 8 multi-sheet tabs */

◆ SHEET_PATH_MAX

#define SHEET_PATH_MAX   128

◆ SHEET_ROW_HEADER_W

#define SHEET_ROW_HEADER_W   42

◆ SHEET_TAB_NAME_LEN

#define SHEET_TAB_NAME_LEN   32

Typedef Documentation

◆ SheetCell

typedef struct _SheetCell SheetCell

◆ SheetCoord

typedef struct _SheetCoord SheetCoord

◆ SheetRange

typedef struct _SheetRange SheetRange

◆ SheetStats

typedef struct _SheetStats SheetStats

◆ SheetTab

typedef struct _SheetTab SheetTab

◆ SheetWorkbook

typedef struct _SheetWorkbook SheetWorkbook

Enumeration Type Documentation

◆ CellError

enum CellError
Enumerator
CELL_ERR_NONE 
CELL_ERR_DIV0 
CELL_ERR_VALUE 
CELL_ERR_NAME 
CELL_ERR_CYCLE 
CELL_ERR_REF 

◆ CellType

enum CellType
Enumerator
CELL_TYPE_EMPTY 
CELL_TYPE_TEXT 
CELL_TYPE_NUMBER 
CELL_TYPE_FORMULA