filters
cell.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SWINDER_CELL_H
00021 #define SWINDER_CELL_H
00022
00023 #include "ustring.h"
00024 #include "format.h"
00025 #include "value.h"
00026
00027 namespace Swinder
00028 {
00029
00030 class Workbook;
00031 class Sheet;
00032
00033
00034 class CellPrivate;
00035
00036 class Cell
00037 {
00038 public:
00039
00040 Cell( Sheet* sheet, unsigned column, unsigned row );
00041
00042 virtual ~Cell();
00043
00044 Sheet* sheet();
00045
00046 unsigned column() const;
00047
00048 unsigned row() const;
00049
00050 UString name() const;
00051
00052 static UString name( unsigned column, unsigned row );
00053
00054 UString columnLabel() const;
00055
00056 static UString columnLabel( unsigned column );
00057
00058 const Value& value() const;
00059
00060 void setValue( const Value& value );
00061
00062 const UString& formula() const;
00063
00064 void setFormula( const UString& formula );
00065
00066 Format format() const;
00067
00068 void setFormat( const Format& format );
00069
00070 void setFormatIndex( int index );
00071
00072 int formatIndex() const;
00073
00074 unsigned columnSpan() const;
00075
00076 void setColumnSpan( unsigned span );
00077
00078 unsigned rowSpan() const;
00079
00080 void setRowSpan( unsigned span );
00081
00082 private:
00083
00084 Cell( const Cell& );
00085 Cell& operator=( const Cell& );
00086
00087 CellPrivate *d;
00088 };
00089
00090 }
00091
00092
00093 #endif // SWINDER_CELL_H
00094
|