Source: /app/hbasic/hbasic/src/sheet_cell_data.h


Annotated List
Files
Globals
Hierarchy
Index
/* **************************************************************************
 File: sheet_cell_data.h
 Desc: Data handler for sheets
 ----------------------------------------------------------------------------
	copyright            : (C) 2001 HBasic project (Marcus Engels)
 ***************************************************************************/

/* **************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

/* ----------------------------------------------------------------------- */
/* Classlist: List of classes that will be defined in this source file.    */
/* ----------------------------------------------------------------------- */
/*
 * class CSheetEditor: Editor widget for calc sheets.
 */

/* ----------------------------------------------------------------------- */
/* Changelog: Description of important changes within this file.           */
/*            Please report with date, maintainer and change description.  */
/* ----------------------------------------------------------------------- */

#ifndef SHEET_DATA_H
#define SHEET_DATA_H

class CSourceEditData;

/* Header for description of one calc sheet cell/entry/item */

class CSheetCellHeader
{
public:
	CSheetCellHeader( void );

//	short row_number;
	short entry_type;
	short column_number;
	short flags;
	short calc_state;
	long source_code_start;      /* Start offset of sourcecode in sheet data */
	long source_code_length;     /* length of content description in byte. */
	void *runtime_code;  /* Address of appropriate code after compile */
	QVariant *value;

//	CSheetCellHeader *next_column_cell;
};

class CSheetLineHeader 
{
public:
	CSheetLineHeader( void );

	short position;

	/* Width of row or column */
	short pix_size;
	QPtrList  row_cells;
//	QString *name;
};

class CSheetTableData 
{
public:
	CSheetTableData( void );

	QString *name;

	CSourceEditData *cell_contents;
	QPtrList  rows;

	/* Pointer to sheet editor if available */
	CSheetEditor *sheet_edit_ptr;

	void saveSheetToFile( QFile *f );
	void loadSheetFromFile( QFile *f, FILE_TAG_HEADER *start_block );
	void correctFieldOffsets( char *store_adr_ptr, long change_offset );
};

#endif


Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54.