Go to the documentation of this file.
163 void addTo(librevenge::RVNGPropertyList &propList, std::shared_ptr<MWAWFontConverter> fontConverter)
const;
313 std::vector<MWAWBorder>
const &
borders()
const
475 static bool double2Date(
double val,
int &Y,
int &M,
int &D);
477 static bool double2Time(
double val,
int &H,
int &M,
int &S);
481 static bool date2Double(
int Y,
int M,
int D,
double &val);
@ F_CellList
Definition: MWAWCell.hxx:398
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
Format const & getFormat() const
returns the cell format
Definition: MWAWCell.hxx:237
friend std::ostream & operator<<(std::ostream &o, MWAWCellContent const &cell)
operator<<
Definition: MWAWCell.cxx:691
@ F_BOOLEAN
Definition: MWAWCell.hxx:56
HorizontalAlignment m_hAlign
the cell alignment : by default nothing
Definition: MWAWCell.hxx:374
Type
the different types of cell's field
Definition: MWAWCell.hxx:433
std::vector< MWAWBorder > m_bordersList
the cell border MWAWBorder::Pos
Definition: MWAWCell.hxx:385
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:489
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
@ F_NUMBER_UNKNOWN
Definition: MWAWCell.hxx:58
MWAWColor m_backgroundColor
the backgroung color
Definition: MWAWCell.hxx:380
~MWAWCellContent()
destructor
Definition: MWAWCell.hxx:445
void setValue(double value)
sets the double value
Definition: MWAWCell.hxx:458
void setBdBox(MWAWBox2f box)
set the bdbox (unit point)
Definition: MWAWCell.hxx:211
bool isProtected() const
returns true if the cell is protected
Definition: MWAWCell.hxx:265
@ F_DATE
Definition: MWAWCell.hxx:56
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:356
MWAWVec2i const & numSpannedCells() const
returns the number of spanned cells
Definition: MWAWCell.hxx:195
MWAWCellContent()
constructor
Definition: MWAWCell.hxx:435
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:189
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:281
@ F_Operator
Definition: MWAWCell.hxx:398
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:464
void resetBorders()
reset the border
Definition: MWAWCell.hxx:319
@ BottomBit
Definition: libmwaw_internal.hxx:178
@ F_UNKNOWN
Definition: MWAWCell.hxx:56
static bool date2Double(int Y, int M, int D, double &val)
conversion beetween date and double days since 1900 date
Definition: MWAWCell.cxx:560
small class use to define a formula instruction
Definition: MWAWCell.hxx:397
FormatType
the different format of a cell's content
Definition: MWAWCell.hxx:56
@ C_NONE
Definition: MWAWCell.hxx:433
the class to store a color
Definition: libmwaw_internal.hxx:192
static std::string getBasicCellName(MWAWVec2i const &pos)
return the name of a cell (given row and column) : 0,0 -> A1, 0,1 -> A2...
Definition: MWAWCell.cxx:345
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
ExtraLine
an enum to defined potential internal line: E_Line1=TL to RB, E_Line2=BL to RT
Definition: MWAWCell.hxx:137
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
bool convertDTFormat(std::string const &dtFormat, librevenge::RVNGPropertyListVector &propVect)
convert a DTFormat in a propertyList
Definition: libmwaw_internal.cxx:324
ExtraLine m_extraLine
extra line
Definition: MWAWCell.hxx:387
double rotation() const
returns the rotation angle in degree
Definition: MWAWCell.hxx:297
static bool double2Time(double val, int &H, int &M, int &S)
conversion beetween double: second since 0:00 and time
Definition: MWAWCell.cxx:590
@ F_Function
Definition: MWAWCell.hxx:398
bool m_fontSet
a flag to know if the font has been set
Definition: MWAWCell.hxx:372
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:242
@ None
Definition: libmwaw_internal.hxx:335
@ VALIGN_TOP
Definition: MWAWCell.hxx:134
@ HMiddle
Definition: libmwaw_internal.hxx:176
HorizontalAlignment hAlignment() const
returns the horizontal alignment
Definition: MWAWCell.hxx:276
@ F_NUMBER_GENERIC
Definition: MWAWCell.hxx:58
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:332
FormulaInstruction()
constructor
Definition: MWAWCell.hxx:400
Format m_format
the cell format
Definition: MWAWCell.hxx:368
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: MWAWCell.hxx:417
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:258
std::vector< MWAWBorder > const & borders() const
return the cell border: libmwaw::Left | ...
Definition: MWAWCell.hxx:313
librevenge::RVNGString m_fileName
the file name (if not empty)
Definition: MWAWCell.hxx:429
void setVAlignment(VerticalAlignment align)
sets the vertical alignment
Definition: MWAWCell.hxx:292
bool hasExtraLine() const
returns true if we have some extra lines
Definition: MWAWCell.hxx:337
void setExtraLine(ExtraLine extrLine, MWAWBorder const &type=MWAWBorder())
sets the extraline
Definition: MWAWCell.hxx:352
friend std::ostream & operator<<(std::ostream &o, FormulaInstruction const &inst)
operator<<
Definition: MWAWCell.cxx:823
ExtraLine extraLine() const
returns the extra lines
Definition: MWAWCell.hxx:342
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: MWAWCell.cxx:510
Defines MWAWCell (cell content and format)
void addTo(librevenge::RVNGPropertyList &propList, std::shared_ptr< MWAWFontConverter > fontConverter) const
adds to the propList
Definition: MWAWCell.cxx:255
VerticalAlignment
the default vertical alignment.
Definition: MWAWCell.hxx:134
@ F_Text
Definition: MWAWCell.hxx:398
void setProtected(bool fl)
sets the cell's protected flag
Definition: MWAWCell.hxx:270
void setNumSpannedCells(MWAWVec2i numSpanned)
sets the number of spanned cells : MWAWVec2i(1,1) means 1 cellule
Definition: MWAWCell.hxx:200
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:491
@ E_None
Definition: MWAWCell.hxx:137
int unicode(int macId, unsigned char c) const
converts a character in unicode
Definition: MWAWFontConverter.cxx:1316
@ Bottom
Definition: libmwaw_internal.hxx:176
MWAWCellContent(MWAWCellContent const &)=default
Type m_type
the type
Definition: MWAWCell.hxx:415
NumberType
the different number format of a cell's content
Definition: MWAWCell.hxx:58
void addTo(librevenge::RVNGPropertyList &propList, std::shared_ptr< MWAWFontConverter > fontConverter) const
add to the propList
Definition: MWAWFont.cxx:245
@ VMiddleBit
Definition: libmwaw_internal.hxx:178
a border
Definition: libmwaw_internal.hxx:333
MWAWCellContent & operator=(MWAWCellContent &&)=default
@ VALIGN_BOTTOM
Definition: MWAWCell.hxx:134
@ VMiddle
Definition: libmwaw_internal.hxx:176
double m_value
the cell value
Definition: MWAWCell.hxx:485
MWAWFont m_font
the cell font
Definition: MWAWCell.hxx:370
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
@ HALIGN_FULL
Definition: MWAWCell.hxx:129
@ RightBit
Definition: libmwaw_internal.hxx:178
friend std::ostream & operator<<(std::ostream &o, MWAWCell const &cell)
operator<<
Definition: MWAWCell.cxx:405
@ F_NUMBER_FRACTION
Definition: MWAWCell.hxx:58
small class use to define a sheet cell content
Definition: MWAWCell.hxx:394
MWAWVec2i m_numberCellSpanned
the cell spanned : by default (1,1)
Definition: MWAWCell.hxx:361
MWAWCell()
constructor
Definition: MWAWCell.hxx:140
bool isFontSet() const
returns true if the font has been set
Definition: MWAWCell.hxx:248
VerticalAlignment vAlignment() const
returns the vertical alignment
Definition: MWAWCell.hxx:287
double m_longValue
value ( if type==F_Long )
Definition: MWAWCell.hxx:419
bool m_protected
cell protected
Definition: MWAWCell.hxx:382
@ HMiddleBit
Definition: libmwaw_internal.hxx:178
double m_doubleValue
value ( if type==F_Double )
Definition: MWAWCell.hxx:421
static bool double2String(double val, MWAWCell::Format const &format, std::string &str)
conversion of the value in string knowing the cell format
Definition: MWAWCell.cxx:602
@ C_FORMULA
Definition: MWAWCell.hxx:433
MWAWBox2f m_bdBox
the cell bounding box (unit in point)
Definition: MWAWCell.hxx:363
bool m_valueSet
true if the value has been set
Definition: MWAWCell.hxx:487
@ F_Cell
Definition: MWAWCell.hxx:398
@ Top
Definition: libmwaw_internal.hxx:176
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
virtual bool sendContent(MWAWListenerPtr listener, MWAWTable &table)
function called when the content of a cell must be send to the listener, ie.
Definition: MWAWCell.cxx:501
@ VALIGN_CENTER
Definition: MWAWCell.hxx:134
@ F_Long
Definition: MWAWCell.hxx:398
@ F_NUMBER
Definition: MWAWCell.hxx:56
@ F_TIME
Definition: MWAWCell.hxx:56
MWAWBorder m_extraLineType
extra line type
Definition: MWAWCell.hxx:389
MWAWBorder const & extraLineType() const
returns the extra line border
Definition: MWAWCell.hxx:347
@ E_Cross
Definition: MWAWCell.hxx:137
@ LeftBit
Definition: libmwaw_internal.hxx:178
static std::string getCellName(MWAWVec2i const &pos, MWAWVec2b const &absolute)
return the name of a cell (given row and column) : 0,0 -> [.A1], 0,1 -> [.A2]
Definition: MWAWCell.cxx:362
@ HALIGN_DEFAULT
Definition: MWAWCell.hxx:129
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
MWAWVec2f m_bdSize
the cell bounding size : unit point
Definition: MWAWCell.hxx:365
double m_rotation
the content's rotation in degree
Definition: MWAWCell.hxx:378
@ C_TEXT
Definition: MWAWCell.hxx:433
bool hasText() const
returns true if the text is set
Definition: MWAWCell.hxx:469
@ Right
Definition: libmwaw_internal.hxx:176
@ E_Line1
Definition: MWAWCell.hxx:137
MWAWVec2i m_position
the cell row and column : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:359
@ F_Double
Definition: MWAWCell.hxx:398
VerticalAlignment m_vAlign
the vertical cell alignment : by default nothing
Definition: MWAWCell.hxx:376
HorizontalAlignment
the default horizontal alignment.
Definition: MWAWCell.hxx:128
@ TopBit
Definition: libmwaw_internal.hxx:178
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:423
bool hasBorders() const
return true if the cell has some border
Definition: MWAWCell.hxx:308
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:382
librevenge::RVNGString m_sheet[2]
the sheet names (if not empty)
Definition: MWAWCell.hxx:427
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MWAWCell & operator=(MWAWCell &&)=default
a namespace used to convert Mac font characters in unicode
Definition: MWAWFontConverter.hxx:63
@ F_Unicode
Definition: MWAWCell.hxx:398
@ Left
Definition: libmwaw_internal.hxx:176
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
virtual ~MWAWCell()
destructor
Definition: MWAWCell.hxx:160
static std::string getColumnName(int col)
return the column name
Definition: MWAWCell.cxx:335
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:425
bool empty() const
returns true if the cell has no content
Definition: MWAWCell.hxx:450
Type
Definition: MWAWCell.hxx:398
MWAWColor backgroundColor() const
returns the background color
Definition: MWAWCell.hxx:327
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
@ E_Line2
Definition: MWAWCell.hxx:137
@ VALIGN_DEFAULT
Definition: MWAWCell.hxx:134
@ HALIGN_LEFT
Definition: MWAWCell.hxx:128
Class to store font.
Definition: MWAWFont.hxx:44
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
librevenge::RVNGPropertyList getPropertyList(MWAWFontConverter &fontConverter, int fontId) const
returns a proplist corresponding to a instruction using a font converter to send the text
Definition: MWAWCell.cxx:729
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:483
@ C_NUMBER
Definition: MWAWCell.hxx:433
virtual bool send(MWAWListenerPtr listener, MWAWTable &table)
function called when a cell is send by MWAWTable to send a cell to a listener.
Definition: MWAWCell.cxx:492
MWAWVec2i const & position() const
position accessor
Definition: MWAWCell.hxx:184
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:836
MWAWCellContent & operator=(MWAWCellContent const &)=default
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:128
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
MWAWBox2f const & bdBox() const
bdbox accessor
Definition: MWAWCell.hxx:206
MWAWCell & operator=(MWAWCell const &)=default
MWAWVec2f const & bdSize() const
bdbox size accessor
Definition: MWAWCell.hxx:217
MWAWCell(MWAWCell const &)=default
@ C_UNKNOWN
Definition: MWAWCell.hxx:433
void setBdSize(MWAWVec2f sz)
set the bdbox size(unit point)
Definition: MWAWCell.hxx:222
@ HALIGN_CENTER
Definition: MWAWCell.hxx:128
@ F_TEXT
Definition: MWAWCell.hxx:56
MWAWFont getFont() const
returns the font
Definition: MWAWCell.hxx:253
void setRotation(double angle)
sets the rotation angle
Definition: MWAWCell.hxx:302
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20