Go to the documentation of this file.
78 static bool convertDTFormat(std::string
const &dtFormat, librevenge::RVNGPropertyListVector &propListVector);
101 void addTo(librevenge::RVNGPropertyList &propList)
const;
244 for (
int i=0; i<2; ++i) {
310 static bool double2Date(
double val,
int &Y,
int &M,
int &D);
312 static bool double2Time(
double val,
int &H,
int &M,
int &S);
314 static bool date2Double(
int Y,
int M,
int D,
double &val);
Definition: STOFFCell.hxx:57
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:487
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: STOFFCell.hxx:324
small class use to define a sheet cell content
Definition: STOFFCell.hxx:234
double m_doubleValue
value ( if type==F_Double )
Definition: STOFFCell.hxx:260
librevenge::RVNGString getString(std::vector< uint32_t > const &unicode)
transform a unicode string in a RNVGString
Definition: libstaroffice_internal.cxx:63
STOFFCellStyle & getCellStyle()
returns the cell style
Definition: STOFFCell.hxx:190
Type m_contentType
the content type ( by default unknown )
Definition: STOFFCell.hxx:316
Definition: STOFFCell.hxx:276
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
friend std::ostream & operator<<(std::ostream &o, FormulaInstruction const &inst)
operator<<
Definition: STOFFCell.cxx:486
STOFFFont m_font
the cell font
Definition: STOFFCell.hxx:226
~STOFFCellContent()
destructor
Definition: STOFFCell.hxx:280
Definition: STOFFCell.hxx:59
std::vector< uint32_t > m_text
the text value (for C_TEXT_BASIC)
Definition: STOFFCell.hxx:322
long m_longValue
value ( if type==F_Long )
Definition: STOFFCell.hxx:258
librevenge::RVNGString m_sheet
the sheet name (if not empty)
Definition: STOFFCell.hxx:266
const STOFFCellStyle & getCellStyle() const
returns the cell style
Definition: STOFFCell.hxx:185
void setCellStyle(STOFFCellStyle const &cellStyle)
set the cell style
Definition: STOFFCell.hxx:195
Definition: STOFFCell.hxx:59
STOFFCell()
constructor
Definition: STOFFCell.hxx:88
Definition: STOFFCell.hxx:239
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFFont.cxx:81
bool isValueSet() const
returns true if the value has been setted
Definition: STOFFCell.hxx:299
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
std::string getCellName(STOFFVec2i const &cellPos, STOFFVec2b const &relative)
returns the cell name corresponding to a cell's position
Definition: libstaroffice_internal.cxx:455
librevenge::RVNGPropertyList & getNumberingStyle()
returns the numbering style
Definition: STOFFCell.hxx:206
STOFFCellStyle m_cellStyle
the cell cell style
Definition: STOFFCell.hxx:228
void setBdSize(STOFFVec2f sz)
set the bdbox size(unit point)
Definition: STOFFCell.hxx:149
int m_sheetId
the sheet id (if set)
Definition: STOFFCell.hxx:268
static bool double2Date(double val, int &Y, int &M, int &D)
conversion beetween double days since 1900 and a date, ie val=0 corresponds to 1/1/1900,...
Definition: STOFFCell.cxx:302
const librevenge::RVNGPropertyList & getNumberingStyle() const
returns the numbering style
Definition: STOFFCell.hxx:201
Definition: STOFFCell.hxx:59
Type
the different types of cell's field
Definition: STOFFCell.hxx:276
Definition: STOFFCell.hxx:239
librevenge::RVNGPropertyList getPropertyList() const
returns a proplist corresponding to a instruction
Definition: STOFFCell.cxx:424
#define STOFF_FALLTHROUGH
fall through attributes
Definition: libstaroffice_internal.hxx:110
void setBdBox(STOFFBox2f box)
set the bdbox (unit point)
Definition: STOFFCell.hxx:138
Definition: STOFFCell.hxx:57
const Format & getFormat() const
returns the cell format
Definition: STOFFCell.hxx:163
const STOFFVec2f & bdSize() const
bdbox size accessor
Definition: STOFFCell.hxx:144
Definition: STOFFCell.hxx:59
Type
Definition: STOFFCell.hxx:239
STOFFVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: STOFFCell.hxx:264
static bool date2Double(int Y, int M, int D, double &val)
conversion beetween date and double days since 1900 date
Definition: STOFFCell.cxx:352
STOFFVec2< T > size() const
the box size
Definition: libstaroffice_internal.hxx:995
friend std::ostream & operator<<(std::ostream &o, STOFFCell const &cell)
operator<<
Definition: STOFFCell.cxx:272
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFCellStyle.cxx:60
static std::string getCellName(STOFFVec2i const &pos, STOFFVec2b const &absolute)
return the name of a cell (given row and column) : 0,0 -> A1, 0,1 -> A2
Definition: STOFFCell.cxx:265
bool m_sheetIdRelative
the sheet id relative flag
Definition: STOFFCell.hxx:270
Definition: STOFFCell.hxx:239
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
Definition: STOFFCell.hxx:59
Definition: STOFFCell.hxx:57
Type m_type
the type
Definition: STOFFCell.hxx:254
void setPosition(STOFFVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: STOFFCell.hxx:127
Definition: STOFFCell.hxx:59
STOFFVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: STOFFCell.hxx:262
void setFormat(Format const &format)
set the cell format
Definition: STOFFCell.hxx:168
Class to store a cell style.
Definition: STOFFCellStyle.hxx:43
STOFFVec2i m_position
the cell row and column : 0,0 -> A1, 0,1 -> A2
Definition: STOFFCell.hxx:217
Definition: STOFFCell.hxx:57
Class to store font.
Definition: STOFFFont.hxx:43
const STOFFBox2f & bdBox() const
bdbox accessor
Definition: STOFFCell.hxx:133
STOFFBox2f m_bdBox
the cell bounding box (unit in point)
Definition: STOFFCell.hxx:219
void setNumberingStyle(librevenge::RVNGPropertyList const &numberStyle)
set the numbering style
Definition: STOFFCell.hxx:211
void addTo(librevenge::RVNGPropertyList &propList) const
adds to the propList
Definition: STOFFCell.cxx:246
bool empty() const
returns true if the cell has no content
Definition: STOFFCell.hxx:285
void setValue(double value)
sets the double value
Definition: STOFFCell.hxx:293
static bool double2Time(double val, int &H, int &M, int &S)
conversion beetween double: second since 0:00 and time
Definition: STOFFCell.cxx:382
STOFFCellContent()
constructor
Definition: STOFFCell.hxx:278
const STOFFFont & getFont() const
returns the font
Definition: STOFFCell.hxx:174
librevenge::RVNGString m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: STOFFCell.hxx:256
NumberType
the different number format of a cell's content
Definition: STOFFCell.hxx:59
Definition: STOFFCell.hxx:276
librevenge::RVNGPropertyList m_numberingStyle
the numbering style
Definition: STOFFCell.hxx:230
Definition: STOFFCell.hxx:276
Format m_format
the cell format
Definition: STOFFCell.hxx:224
Definition: STOFFCell.hxx:57
Definition: STOFFCell.hxx:239
friend std::ostream & operator<<(std::ostream &o, STOFFCellContent const &cell)
operator<<
Definition: STOFFCell.cxx:394
std::string m_extra
extra data
Definition: STOFFCell.hxx:272
Definition: STOFFCell.hxx:57
STOFFVec2< bool > STOFFVec2b
STOFFVec2 of bool.
Definition: libstaroffice_internal.hxx:761
STOFFVec2f m_bdSize
the cell bounding size : unit point
Definition: STOFFCell.hxx:221
virtual ~STOFFCell()
destructor
Definition: STOFFCell.hxx:98
Definition: STOFFCell.hxx:239
double m_value
the cell value
Definition: STOFFCell.hxx:318
virtual bool send(STOFFListenerPtr listener, STOFFTable &table)
function called when a cell is send by STOFFTable to send a cell to a listener.
Definition: STOFFCell.cxx:284
Definition: STOFFCell.hxx:276
void setFont(STOFFFont const &font)
set the font
Definition: STOFFCell.hxx:179
Definition: STOFFCell.hxx:276
Definition: STOFFCell.hxx:59
Definition: STOFFCell.hxx:276
FormatType
the different format of a cell's content
Definition: STOFFCell.hxx:57
Definition: STOFFCell.hxx:239
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:763
Definition: STOFFCell.hxx:239
bool m_valueSet
true if the value has been set
Definition: STOFFCell.hxx:320
FormulaInstruction()
constructor
Definition: STOFFCell.hxx:241
Definition: STOFFCell.hxx:239
const STOFFVec2i & position() const
position accessor
Definition: STOFFCell.hxx:122
virtual bool sendContent(STOFFListenerPtr listener, STOFFTable &table)
function called when the content of a cell must be send to the listener, ie.
Definition: STOFFCell.cxx:293
Definition: STOFFCell.hxx:239
bool hasText() const
returns true if the text is set
Definition: STOFFCell.hxx:304
static std::string getColumnName(int col)
return the column name
Definition: STOFFCell.cxx:255
Definition: STOFFCell.hxx:57
small class use to define a formula instruction
Definition: STOFFCell.hxx:238
Generated on Mon Jan 20 2020 23:02:18 for libstaroffice by
doxygen 1.8.16