MWAWCell.hxx
Go to the documentation of this file.
/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
/* libmwaw
* Version: MPL 2.0 / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 2.0 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
* Copyright (C) 2006, 2007 Andrew Ziem
* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
*
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
* in which case the provisions of the LGPLv2+ are applicable
* instead of those above.
*/
#ifndef MWAW_CELL_H
# define MWAW_CELL_H
#include <string>
#include <vector>
#include "libmwaw_internal.hxx"
#include "MWAWEntry.hxx"
#include "MWAWFont.hxx"
class MWAWTable;
class MWAWCell
{
public:
enum FormatType { F_TEXT, F_BOOLEAN, F_NUMBER, F_DATE, F_TIME, F_UNKNOWN };
enum NumberType { F_NUMBER_CURRENCY, F_NUMBER_DECIMAL, F_NUMBER_FRACTION, F_NUMBER_GENERIC, F_NUMBER_SCIENTIFIC, F_NUMBER_PERCENT, F_NUMBER_UNKNOWN };
struct Format {
Format()
: m_format(F_UNKNOWN)
, m_numberFormat(F_NUMBER_UNKNOWN)
, m_digits(-1000)
, m_integerDigits(-1)
, m_numeratorDigits(-1)
, m_denominatorDigits(-1)
, m_thousandHasSeparator(false)
, m_parenthesesForNegative(false)
, m_currencySymbol("$")
, m_DTFormat("")
{
}
Format(Format const &)=default;
Format &operator=(Format const &)=default;
Format &operator=(Format &&)=default;
virtual ~Format();
bool hasBasicFormat() const
{
return m_format==F_TEXT || m_format==F_UNKNOWN;
}
std::string getValueType() const;
bool getNumberingProperties(librevenge::RVNGPropertyList &propList) const;
friend std::ostream &operator<<(std::ostream &o, Format const &format);
int compare(Format const &format) const;
FormatType m_format;
NumberType m_numberFormat;
int m_digits;
int m_integerDigits;
int m_numeratorDigits;
int m_denominatorDigits;
bool m_thousandHasSeparator;
bool m_parenthesesForNegative;
std::string m_currencySymbol;
std::string m_DTFormat;
};
struct CompareFormat {
CompareFormat() {}
bool operator()(Format const &c1, Format const &c2) const
{
return c1.compare(c2) < 0;
}
};
enum HorizontalAlignment { HALIGN_LEFT, HALIGN_RIGHT, HALIGN_CENTER,
HALIGN_FULL, HALIGN_DEFAULT
};
enum VerticalAlignment { VALIGN_TOP, VALIGN_CENTER, VALIGN_BOTTOM, VALIGN_DEFAULT };
enum ExtraLine { E_None, E_Line1, E_Line2, E_Cross };
MWAWCell()
: m_position(0,0)
, m_numberCellSpanned(1,1)
, m_bdBox()
, m_bdSize()
, m_format()
, m_font(3,12)
, m_fontSet(false)
, m_hAlign(HALIGN_DEFAULT)
, m_vAlign(VALIGN_DEFAULT)
, m_rotation(0)
, m_backgroundColor(MWAWColor::white())
, m_protected(false)
, m_bordersList()
, m_extraLine(E_None)
, m_extraLineType() { }
MWAWCell(MWAWCell const &)=default;
MWAWCell &operator=(MWAWCell const &)=default;
MWAWCell &operator=(MWAWCell &&)=default;
virtual ~MWAWCell() {}
void addTo(librevenge::RVNGPropertyList &propList, std::shared_ptr<MWAWFontConverter> fontConverter) const;
friend std::ostream &operator<<(std::ostream &o, MWAWCell const &cell);
// interface with MWAWTable:
virtual bool send(MWAWListenerPtr listener, MWAWTable &table);
virtual bool sendContent(MWAWListenerPtr listener, MWAWTable &table);
// position
MWAWVec2i const &position() const
{
return m_position;
}
void setPosition(MWAWVec2i posi)
{
m_position = posi;
}
MWAWVec2i const &numSpannedCells() const
{
return m_numberCellSpanned;
}
void setNumSpannedCells(MWAWVec2i numSpanned)
{
m_numberCellSpanned=numSpanned;
}
MWAWBox2f const &bdBox() const
{
return m_bdBox;
}
void setBdBox(MWAWBox2f box)
{
m_bdBox = box;
}
MWAWVec2f const &bdSize() const
{
return m_bdSize;
}
void setBdSize(MWAWVec2f sz)
{
m_bdSize = sz;
}
static std::string getBasicCellName(MWAWVec2i const &pos);
static std::string getCellName(MWAWVec2i const &pos, MWAWVec2b const &absolute);
static std::string getColumnName(int col);
// format
Format const &getFormat() const
{
return m_format;
}
void setFormat(Format const &format)
{
m_format=format;
}
bool isFontSet() const
{
return m_fontSet;
}
MWAWFont getFont() const
{
return m_font;
}
void setFont(MWAWFont const &font, bool isDefault=false)
{
m_font=font;
m_fontSet=!isDefault;
}
bool isProtected() const
{
return m_protected;
}
void setProtected(bool fl)
{
m_protected = fl;
}
HorizontalAlignment hAlignment() const
{
return m_hAlign;
}
void setHAlignment(HorizontalAlignment align)
{
m_hAlign = align;
}
VerticalAlignment vAlignment() const
{
return m_vAlign;
}
void setVAlignment(VerticalAlignment align)
{
m_vAlign = align;
}
double rotation() const
{
return m_rotation;
}
void setRotation(double angle)
{
m_rotation = angle;
}
bool hasBorders() const
{
return m_bordersList.size() != 0;
}
std::vector<MWAWBorder> const &borders() const
{
return m_bordersList;
}
void resetBorders()
{
m_bordersList.resize(0);
}
void setBorders(int wh, MWAWBorder const &border);
MWAWColor backgroundColor() const
{
return m_backgroundColor;
}
void setBackgroundColor(MWAWColor color)
{
m_backgroundColor = color;
}
bool hasExtraLine() const
{
return m_extraLine!=E_None && !m_extraLineType.isEmpty();
}
ExtraLine extraLine() const
{
return m_extraLine;
}
MWAWBorder const &extraLineType() const
{
return m_extraLineType;
}
void setExtraLine(ExtraLine extrLine, MWAWBorder const &type=MWAWBorder())
{
m_extraLine = extrLine;
m_extraLineType=type;
}
protected:
MWAWVec2i m_position;
MWAWVec2i m_numberCellSpanned;
MWAWBox2f m_bdBox;
MWAWVec2f m_bdSize;
Format m_format;
MWAWFont m_font;
bool m_fontSet;
HorizontalAlignment m_hAlign;
VerticalAlignment m_vAlign;
double m_rotation;
MWAWColor m_backgroundColor;
bool m_protected;
std::vector<MWAWBorder> m_bordersList;
ExtraLine m_extraLine;
MWAWBorder m_extraLineType;
};
class MWAWCellContent
{
public:
struct FormulaInstruction {
enum Type { F_Operator, F_Function, F_Cell, F_CellList, F_Long, F_Double, F_Text, F_Unicode };
FormulaInstruction()
: m_type(F_Text)
, m_content("")
, m_longValue(0)
, m_doubleValue(0)
, m_fileName()
{
for (auto &pos : m_position) pos=MWAWVec2i(0,0);
for (auto &rel : m_positionRelative) rel=MWAWVec2b(false,false);
}
librevenge::RVNGPropertyList getPropertyList(MWAWFontConverter &fontConverter, int fontId) const;
friend std::ostream &operator<<(std::ostream &o, FormulaInstruction const &inst);
Type m_type;
std::string m_content;
double m_longValue;
double m_doubleValue;
MWAWVec2i m_position[2];
MWAWVec2b m_positionRelative[2];
librevenge::RVNGString m_sheet[2];
librevenge::RVNGString m_fileName;
};
enum Type { C_NONE, C_TEXT, C_NUMBER, C_FORMULA, C_UNKNOWN };
MWAWCellContent()
: m_contentType(C_UNKNOWN)
, m_value(0.0)
, m_valueSet(false)
, m_textEntry()
, m_formula() { }
MWAWCellContent(MWAWCellContent const &)=default;
MWAWCellContent &operator=(MWAWCellContent const &)=default;
MWAWCellContent &operator=(MWAWCellContent &&)=default;
~MWAWCellContent() {}
friend std::ostream &operator<<(std::ostream &o, MWAWCellContent const &cell);
bool empty() const
{
if (m_contentType == C_NUMBER) return false;
if (m_contentType == C_TEXT && m_textEntry.valid()) return false;
if (m_contentType == C_FORMULA && (m_formula.size() || isValueSet())) return false;
return true;
}
void setValue(double value)
{
m_value = value;
m_valueSet = true;
}
bool isValueSet() const
{
return m_valueSet;
}
bool hasText() const
{
return m_textEntry.valid();
}
static bool double2Date(double val, int &Y, int &M, int &D);
static bool double2Time(double val, int &H, int &M, int &S);
static bool double2String(double val, MWAWCell::Format const &format, std::string &str);
static bool date2Double(int Y, int M, int D, double &val);
Type m_contentType;
double m_value;
bool m_valueSet;
MWAWEntry m_textEntry;
std::vector<FormulaInstruction> m_formula;
};
#endif
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWEntry.hxx
MWAWFont.hxx
MWAWCellContent
small class use to define a sheet cell content
Definition MWAWCell.hxx:394
MWAWCellContent::empty
bool empty() const
returns true if the cell has no content
Definition MWAWCell.hxx:450
MWAWCellContent::MWAWCellContent
MWAWCellContent()
constructor
Definition MWAWCell.hxx:435
MWAWCellContent::date2Double
static bool date2Double(int Y, int M, int D, double &val)
conversion beetween date and double days since 1900 date
Definition MWAWCell.cxx:560
MWAWCellContent::MWAWCellContent
MWAWCellContent(MWAWCellContent const &)=default
MWAWCellContent::Type
Type
the different types of cell's field
Definition MWAWCell.hxx:433
MWAWCellContent::C_FORMULA
@ C_FORMULA
Definition MWAWCell.hxx:433
MWAWCellContent::C_UNKNOWN
@ C_UNKNOWN
Definition MWAWCell.hxx:433
MWAWCellContent::C_TEXT
@ C_TEXT
Definition MWAWCell.hxx:433
MWAWCellContent::C_NUMBER
@ C_NUMBER
Definition MWAWCell.hxx:433
MWAWCellContent::C_NONE
@ C_NONE
Definition MWAWCell.hxx:433
MWAWCellContent::double2Date
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
MWAWCellContent::hasText
bool hasText() const
returns true if the text is set
Definition MWAWCell.hxx:469
MWAWCellContent::double2Time
static bool double2Time(double val, int &H, int &M, int &S)
conversion beetween double: second since 0:00 and time
Definition MWAWCell.cxx:590
MWAWCellContent::~MWAWCellContent
~MWAWCellContent()
destructor
Definition MWAWCell.hxx:445
MWAWCellContent::isValueSet
bool isValueSet() const
returns true if the value has been setted
Definition MWAWCell.hxx:464
MWAWCellContent::setValue
void setValue(double value)
sets the double value
Definition MWAWCell.hxx:458
MWAWCellContent::m_value
double m_value
the cell value
Definition MWAWCell.hxx:485
MWAWCellContent::operator=
MWAWCellContent & operator=(MWAWCellContent &&)=default
MWAWCellContent::double2String
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
MWAWCellContent::operator=
MWAWCellContent & operator=(MWAWCellContent const &)=default
MWAWCellContent::m_textEntry
MWAWEntry m_textEntry
the cell string
Definition MWAWCell.hxx:489
MWAWCellContent::m_formula
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition MWAWCell.hxx:491
MWAWCellContent::operator<<
friend std::ostream & operator<<(std::ostream &o, MWAWCellContent const &cell)
operator<<
Definition MWAWCell.cxx:691
MWAWCellContent::m_valueSet
bool m_valueSet
true if the value has been set
Definition MWAWCell.hxx:487
MWAWCellContent::m_contentType
Type m_contentType
the content type ( by default unknown )
Definition MWAWCell.hxx:483
MWAWCell
a structure used to define a cell and its format
Definition MWAWCell.hxx:53
MWAWCell::addTo
void addTo(librevenge::RVNGPropertyList &propList, std::shared_ptr< MWAWFontConverter > fontConverter) const
adds to the propList
Definition MWAWCell.cxx:255
MWAWCell::m_position
MWAWVec2i m_position
the cell row and column : 0,0 -> A1, 0,1 -> A2
Definition MWAWCell.hxx:359
MWAWCell::getCellName
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
MWAWCell::setFont
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition MWAWCell.hxx:258
MWAWCell::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition MWAWCell.cxx:382
MWAWCell::operator=
MWAWCell & operator=(MWAWCell &&)=default
MWAWCell::getFormat
Format const & getFormat() const
returns the cell format
Definition MWAWCell.hxx:237
MWAWCell::backgroundColor
MWAWColor backgroundColor() const
returns the background color
Definition MWAWCell.hxx:327
MWAWCell::m_bordersList
std::vector< MWAWBorder > m_bordersList
the cell border MWAWBorder::Pos
Definition MWAWCell.hxx:385
MWAWCell::position
MWAWVec2i const & position() const
position accessor
Definition MWAWCell.hxx:184
MWAWCell::~MWAWCell
virtual ~MWAWCell()
destructor
Definition MWAWCell.hxx:160
MWAWCell::setProtected
void setProtected(bool fl)
sets the cell's protected flag
Definition MWAWCell.hxx:270
MWAWCell::m_bdBox
MWAWBox2f m_bdBox
the cell bounding box (unit in point)
Definition MWAWCell.hxx:363
MWAWCell::MWAWCell
MWAWCell(MWAWCell const &)=default
MWAWCell::m_extraLine
ExtraLine m_extraLine
extra line
Definition MWAWCell.hxx:387
MWAWCell::setHAlignment
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition MWAWCell.hxx:281
MWAWCell::m_protected
bool m_protected
cell protected
Definition MWAWCell.hxx:382
MWAWCell::setNumSpannedCells
void setNumSpannedCells(MWAWVec2i numSpanned)
sets the number of spanned cells : MWAWVec2i(1,1) means 1 cellule
Definition MWAWCell.hxx:200
MWAWCell::m_font
MWAWFont m_font
the cell font
Definition MWAWCell.hxx:370
MWAWCell::VerticalAlignment
VerticalAlignment
the default vertical alignment.
Definition MWAWCell.hxx:134
MWAWCell::VALIGN_BOTTOM
@ VALIGN_BOTTOM
Definition MWAWCell.hxx:134
MWAWCell::VALIGN_TOP
@ VALIGN_TOP
Definition MWAWCell.hxx:134
MWAWCell::VALIGN_CENTER
@ VALIGN_CENTER
Definition MWAWCell.hxx:134
MWAWCell::VALIGN_DEFAULT
@ VALIGN_DEFAULT
Definition MWAWCell.hxx:134
MWAWCell::ExtraLine
ExtraLine
an enum to defined potential internal line: E_Line1=TL to RB, E_Line2=BL to RT
Definition MWAWCell.hxx:137
MWAWCell::E_Line1
@ E_Line1
Definition MWAWCell.hxx:137
MWAWCell::E_None
@ E_None
Definition MWAWCell.hxx:137
MWAWCell::E_Line2
@ E_Line2
Definition MWAWCell.hxx:137
MWAWCell::E_Cross
@ E_Cross
Definition MWAWCell.hxx:137
MWAWCell::setBdSize
void setBdSize(MWAWVec2f sz)
set the bdbox size(unit point)
Definition MWAWCell.hxx:222
MWAWCell::HorizontalAlignment
HorizontalAlignment
the default horizontal alignment.
Definition MWAWCell.hxx:128
MWAWCell::HALIGN_FULL
@ HALIGN_FULL
Definition MWAWCell.hxx:129
MWAWCell::HALIGN_DEFAULT
@ HALIGN_DEFAULT
Definition MWAWCell.hxx:129
MWAWCell::HALIGN_RIGHT
@ HALIGN_RIGHT
Definition MWAWCell.hxx:128
MWAWCell::HALIGN_LEFT
@ HALIGN_LEFT
Definition MWAWCell.hxx:128
MWAWCell::HALIGN_CENTER
@ HALIGN_CENTER
Definition MWAWCell.hxx:128
MWAWCell::getColumnName
static std::string getColumnName(int col)
return the column name
Definition MWAWCell.cxx:335
MWAWCell::m_format
Format m_format
the cell format
Definition MWAWCell.hxx:368
MWAWCell::m_vAlign
VerticalAlignment m_vAlign
the vertical cell alignment : by default nothing
Definition MWAWCell.hxx:376
MWAWCell::operator=
MWAWCell & operator=(MWAWCell const &)=default
MWAWCell::FormatType
FormatType
the different format of a cell's content
Definition MWAWCell.hxx:56
MWAWCell::F_TIME
@ F_TIME
Definition MWAWCell.hxx:56
MWAWCell::F_NUMBER
@ F_NUMBER
Definition MWAWCell.hxx:56
MWAWCell::F_BOOLEAN
@ F_BOOLEAN
Definition MWAWCell.hxx:56
MWAWCell::F_UNKNOWN
@ F_UNKNOWN
Definition MWAWCell.hxx:56
MWAWCell::F_DATE
@ F_DATE
Definition MWAWCell.hxx:56
MWAWCell::F_TEXT
@ F_TEXT
Definition MWAWCell.hxx:56
MWAWCell::MWAWCell
MWAWCell()
constructor
Definition MWAWCell.hxx:140
MWAWCell::setPosition
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition MWAWCell.hxx:189
MWAWCell::rotation
double rotation() const
returns the rotation angle in degree
Definition MWAWCell.hxx:297
MWAWCell::m_extraLineType
MWAWBorder m_extraLineType
extra line type
Definition MWAWCell.hxx:389
MWAWCell::hAlignment
HorizontalAlignment hAlignment() const
returns the horizontal alignment
Definition MWAWCell.hxx:276
MWAWCell::borders
std::vector< MWAWBorder > const & borders() const
return the cell border: libmwaw::Left | ...
Definition MWAWCell.hxx:313
MWAWCell::m_bdSize
MWAWVec2f m_bdSize
the cell bounding size : unit point
Definition MWAWCell.hxx:365
MWAWCell::m_fontSet
bool m_fontSet
a flag to know if the font has been set
Definition MWAWCell.hxx:372
MWAWCell::m_numberCellSpanned
MWAWVec2i m_numberCellSpanned
the cell spanned : by default (1,1)
Definition MWAWCell.hxx:361
MWAWCell::getFont
MWAWFont getFont() const
returns the font
Definition MWAWCell.hxx:253
MWAWCell::setFormat
void setFormat(Format const &format)
set the cell format
Definition MWAWCell.hxx:242
MWAWCell::setExtraLine
void setExtraLine(ExtraLine extrLine, MWAWBorder const &type=MWAWBorder())
sets the extraline
Definition MWAWCell.hxx:352
MWAWCell::isProtected
bool isProtected() const
returns true if the cell is protected
Definition MWAWCell.hxx:265
MWAWCell::sendContent
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
MWAWCell::hasExtraLine
bool hasExtraLine() const
returns true if we have some extra lines
Definition MWAWCell.hxx:337
MWAWCell::getBasicCellName
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
MWAWCell::m_hAlign
HorizontalAlignment m_hAlign
the cell alignment : by default nothing
Definition MWAWCell.hxx:374
MWAWCell::send
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
MWAWCell::bdBox
MWAWBox2f const & bdBox() const
bdbox accessor
Definition MWAWCell.hxx:206
MWAWCell::m_backgroundColor
MWAWColor m_backgroundColor
the backgroung color
Definition MWAWCell.hxx:380
MWAWCell::extraLine
ExtraLine extraLine() const
returns the extra lines
Definition MWAWCell.hxx:342
MWAWCell::m_rotation
double m_rotation
the content's rotation in degree
Definition MWAWCell.hxx:378
MWAWCell::hasBorders
bool hasBorders() const
return true if the cell has some border
Definition MWAWCell.hxx:308
MWAWCell::NumberType
NumberType
the different number format of a cell's content
Definition MWAWCell.hxx:58
MWAWCell::F_NUMBER_UNKNOWN
@ F_NUMBER_UNKNOWN
Definition MWAWCell.hxx:58
MWAWCell::F_NUMBER_SCIENTIFIC
@ F_NUMBER_SCIENTIFIC
Definition MWAWCell.hxx:58
MWAWCell::F_NUMBER_GENERIC
@ F_NUMBER_GENERIC
Definition MWAWCell.hxx:58
MWAWCell::F_NUMBER_PERCENT
@ F_NUMBER_PERCENT
Definition MWAWCell.hxx:58
MWAWCell::F_NUMBER_FRACTION
@ F_NUMBER_FRACTION
Definition MWAWCell.hxx:58
MWAWCell::F_NUMBER_DECIMAL
@ F_NUMBER_DECIMAL
Definition MWAWCell.hxx:58
MWAWCell::F_NUMBER_CURRENCY
@ F_NUMBER_CURRENCY
Definition MWAWCell.hxx:58
MWAWCell::extraLineType
MWAWBorder const & extraLineType() const
returns the extra line border
Definition MWAWCell.hxx:347
MWAWCell::resetBorders
void resetBorders()
reset the border
Definition MWAWCell.hxx:319
MWAWCell::bdSize
MWAWVec2f const & bdSize() const
bdbox size accessor
Definition MWAWCell.hxx:217
MWAWCell::vAlignment
VerticalAlignment vAlignment() const
returns the vertical alignment
Definition MWAWCell.hxx:287
MWAWCell::operator<<
friend std::ostream & operator<<(std::ostream &o, MWAWCell const &cell)
operator<<
Definition MWAWCell.cxx:405
MWAWCell::setVAlignment
void setVAlignment(VerticalAlignment align)
sets the vertical alignment
Definition MWAWCell.hxx:292
MWAWCell::isFontSet
bool isFontSet() const
returns true if the font has been set
Definition MWAWCell.hxx:248
MWAWCell::setBackgroundColor
void setBackgroundColor(MWAWColor color)
sets the background color
Definition MWAWCell.hxx:332
MWAWCell::setRotation
void setRotation(double angle)
sets the rotation angle
Definition MWAWCell.hxx:302
MWAWCell::setBdBox
void setBdBox(MWAWBox2f box)
set the bdbox (unit point)
Definition MWAWCell.hxx:211
MWAWCell::numSpannedCells
MWAWVec2i const & numSpannedCells() const
returns the number of spanned cells
Definition MWAWCell.hxx:195
MWAWEntry
basic class to store an entry in a file This contained :
Definition MWAWEntry.hxx:47
MWAWFontConverter
a namespace used to convert Mac font characters in unicode
Definition MWAWFontConverter.hxx:63
MWAWFont
Class to store font.
Definition MWAWFont.hxx:44
MWAWTable
a class used to recreate the table structure using cell informations, ....
Definition MWAWTable.hxx:52
libmwaw_internal.hxx
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition libmwaw_internal.hxx:838
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition libmwaw_internal.hxx:1193
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition libmwaw_internal.hxx:553
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition libmwaw_internal.hxx:842
MWAWVec2b
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition libmwaw_internal.hxx:836
MWAWBorder
a border
Definition libmwaw_internal.hxx:333
MWAWCellContent::FormulaInstruction
small class use to define a formula instruction
Definition MWAWCell.hxx:397
MWAWCellContent::FormulaInstruction::getPropertyList
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
MWAWCellContent::FormulaInstruction::m_content
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition MWAWCell.hxx:417
MWAWCellContent::FormulaInstruction::operator<<
friend std::ostream & operator<<(std::ostream &o, FormulaInstruction const &inst)
operator<<
Definition MWAWCell.cxx:823
MWAWCellContent::FormulaInstruction::Type
Type
Definition MWAWCell.hxx:398
MWAWCellContent::FormulaInstruction::F_Cell
@ F_Cell
Definition MWAWCell.hxx:398
MWAWCellContent::FormulaInstruction::F_Long
@ F_Long
Definition MWAWCell.hxx:398
MWAWCellContent::FormulaInstruction::F_Function
@ F_Function
Definition MWAWCell.hxx:398
MWAWCellContent::FormulaInstruction::F_Unicode
@ F_Unicode
Definition MWAWCell.hxx:398
MWAWCellContent::FormulaInstruction::F_Text
@ F_Text
Definition MWAWCell.hxx:398
MWAWCellContent::FormulaInstruction::F_Operator
@ F_Operator
Definition MWAWCell.hxx:398
MWAWCellContent::FormulaInstruction::F_CellList
@ F_CellList
Definition MWAWCell.hxx:398
MWAWCellContent::FormulaInstruction::F_Double
@ F_Double
Definition MWAWCell.hxx:398
MWAWCellContent::FormulaInstruction::m_positionRelative
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition MWAWCell.hxx:425
MWAWCellContent::FormulaInstruction::m_position
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition MWAWCell.hxx:423
MWAWCellContent::FormulaInstruction::FormulaInstruction
FormulaInstruction()
constructor
Definition MWAWCell.hxx:400
MWAWCellContent::FormulaInstruction::m_doubleValue
double m_doubleValue
value ( if type==F_Double )
Definition MWAWCell.hxx:421
MWAWCellContent::FormulaInstruction::m_type
Type m_type
the type
Definition MWAWCell.hxx:415
MWAWCellContent::FormulaInstruction::m_sheet
librevenge::RVNGString m_sheet[2]
the sheet names (if not empty)
Definition MWAWCell.hxx:427
MWAWCellContent::FormulaInstruction::m_fileName
librevenge::RVNGString m_fileName
the file name (if not empty)
Definition MWAWCell.hxx:429
MWAWCellContent::FormulaInstruction::m_longValue
double m_longValue
value ( if type==F_Long )
Definition MWAWCell.hxx:419
MWAWCell::CompareFormat::CompareFormat
CompareFormat()
constructor
Definition MWAWCell.hxx:118
MWAWCell::CompareFormat::operator()
bool operator()(Format const &c1, Format const &c2) const
comparaison function
Definition MWAWCell.hxx:120
MWAWCell::Format
a structure uses to define the format of a cell content
Definition MWAWCell.hxx:60
MWAWCell::Format::operator=
Format & operator=(Format const &)=default
MWAWCell::Format::compare
int compare(Format const &format) const
a comparison function
Definition MWAWCell.cxx:230
MWAWCell::Format::m_parenthesesForNegative
bool m_parenthesesForNegative
true if we use parenthese to print negative number
Definition MWAWCell.hxx:109
MWAWCell::Format::~Format
virtual ~Format()
destructor
Definition MWAWCell.cxx:54
MWAWCell::Format::operator<<
friend std::ostream & operator<<(std::ostream &o, Format const &format)
operator<<
Definition MWAWCell.cxx:167
MWAWCell::Format::hasBasicFormat
bool hasBasicFormat() const
returns true if this is a basic format style
Definition MWAWCell.hxx:81
MWAWCell::Format::m_numberFormat
NumberType m_numberFormat
the numeric format
Definition MWAWCell.hxx:97
MWAWCell::Format::getValueType
std::string getValueType() const
returns a value type
Definition MWAWCell.cxx:58
MWAWCell::Format::getNumberingProperties
bool getNumberingProperties(librevenge::RVNGPropertyList &propList) const
get the numbering style
Definition MWAWCell.cxx:82
MWAWCell::Format::Format
Format()
constructor
Definition MWAWCell.hxx:62
MWAWCell::Format::m_digits
int m_digits
the number of digits
Definition MWAWCell.hxx:99
MWAWCell::Format::m_thousandHasSeparator
bool m_thousandHasSeparator
true if we must separate the thousand
Definition MWAWCell.hxx:107
MWAWCell::Format::Format
Format(Format const &)=default
MWAWCell::Format::m_denominatorDigits
int m_denominatorDigits
the number of denominator digits
Definition MWAWCell.hxx:105
MWAWCell::Format::m_DTFormat
std::string m_DTFormat
a date/time format ( using a subset of strftime format )
Definition MWAWCell.hxx:113
MWAWCell::Format::m_currencySymbol
std::string m_currencySymbol
the currency symbol ( default '$')
Definition MWAWCell.hxx:111
MWAWCell::Format::m_format
FormatType m_format
the cell format : by default unknown
Definition MWAWCell.hxx:95
MWAWCell::Format::operator=
Format & operator=(Format &&)=default
MWAWCell::Format::m_integerDigits
int m_integerDigits
the number of main digits
Definition MWAWCell.hxx:101
MWAWCell::Format::m_numeratorDigits
int m_numeratorDigits
the number of numerator digits
Definition MWAWCell.hxx:103
MWAWColor
the class to store a color
Definition libmwaw_internal.hxx:192