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 class Cell
00034 {
00035 public:
00036
00037 Cell( Sheet* sheet, unsigned column, unsigned row );
00038
00039 virtual ~Cell();
00040
00041 Sheet* sheet();
00042
00043 unsigned column() const;
00044
00045 unsigned row() const;
00046
00047 UString name() const;
00048
00049 static UString name( unsigned column, unsigned row );
00050
00051 UString columnLabel() const;
00052
00053 static UString columnLabel( unsigned column );
00054
00055 Value value() const;
00056
00057 void setValue( const Value& value );
00058
00059 UString formula() const;
00060
00061 void setFormula( const UString& formula );
00062
00063 Format format() const;
00064
00065 void setFormat( const Format& format );
00066
00067 unsigned columnSpan() const;
00068
00069 void setColumnSpan( unsigned span );
00070
00071 unsigned rowSpan() const;
00072
00073 void setRowSpan( unsigned span );
00074
00075 private:
00076
00077 Cell( const Cell& );
00078 Cell& operator=( const Cell& );
00079
00080 class Private;
00081 Private* d;
00082
00083 };
00084
00085 }
00086
00087
00088 #endif // SWINDER_CELL_H
00089
|