a border More...
#include <libmwaw_internal.hxx>
Public Types | |
enum | Style { None, Simple, Dot, LargeDot, Dash } |
the line style More... | |
enum | Type { Single, Double, Triple } |
the line repetition More... | |
Public Member Functions | |
MWAWBorder () | |
constructor More... | |
bool | addTo (WPXPropertyList &propList, std::string which="") const |
add the border property to proplist (if needed ) More... | |
bool | isEmpty () const |
returns true if the border is empty More... | |
bool | operator== (MWAWBorder const &orig) const |
operator== More... | |
bool | operator!= (MWAWBorder const &orig) const |
operator!= More... | |
int | compare (MWAWBorder const &orig) const |
compare two borders More... | |
Public Attributes | |
Style | m_style |
the border style More... | |
Type | m_type |
the border repetition More... | |
double | m_width |
the border total width in point More... | |
std::vector< double > | m_widthsList |
the different length used for each line/sep (if defined) More... | |
MWAWColor | m_color |
the border color More... | |
std::string | m_extra |
extra data ( if needed) More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, MWAWBorder const &border) |
operator<< More... | |
std::ostream & | operator<< (std::ostream &o, MWAWBorder::Style const &style) |
operator<<: prints data in form "none|dot|..." More... | |
a border
enum MWAWBorder::Style |
enum MWAWBorder::Type |
|
inline |
constructor
bool MWAWBorder::addTo | ( | WPXPropertyList & | propList, |
std::string | which = "" |
||
) | const |
add the border property to proplist (if needed )
Referenced by MRWGraphInternal::Token::addPictBorderProperties(), MWAWParagraph::addTo(), HMWJGraphInternal::FrameFormat::addTo(), HMWKGraphInternal::TextBox::addTo(), FWStruct::Border::addToFrame(), MWProStructuresInternal::Block::fillFramePropertyList(), and BWParser::sendFrame().
int MWAWBorder::compare | ( | MWAWBorder const & | orig | ) | const |
compare two borders
|
inline |
returns true if the border is empty
Referenced by MWAWParagraph::addTo(), FWStruct::Border::addToFrame(), MWProStructuresInternal::Block::fillFramePropertyList(), MWProStructuresInternal::Block::hasBorders(), MWAWCell::hasExtraLine(), FWStruct::operator<<(), operator<<(), BWParser::sendFrame(), and WNTextInternal::TableData::updateCell().
|
inline |
operator!=
Referenced by operator==().
|
inline |
operator==
|
friend |
operator<<
|
friend |
operator<<: prints data in form "none|dot|..."
MWAWColor MWAWBorder::m_color |
the border color
Referenced by MRWGraphInternal::Token::addPictBorderProperties(), MWAWSection::addTo(), HMWJGraphInternal::FrameFormat::addTo(), addTo(), HMWKGraphInternal::TextBox::addTo(), FWStruct::Border::addToFrame(), compare(), MRWTextInternal::Paragraph::BorderFill::getBorder(), FWStruct::Border::getParagraphBorders(), MWProStructuresInternal::Block::hasBorders(), operator!=(), operator<<(), MWProStructures::readBlock(), HMWKGraph::readTable(), CWTable::readTableCells(), HMWJGraph::readTableFormatsList(), MWAWTable::sendExtraLines(), MSKTable::sendTable(), FWText::sendTable(), CWTableInternal::TableCell::update(), and HMWJGraphInternal::TableCell::update().
std::string MWAWBorder::m_extra |
extra data ( if needed)
Referenced by operator<<(), and MWProStructures::readBlock().
Style MWAWBorder::m_style |
the border style
Referenced by MRWGraphInternal::Token::addPictBorderProperties(), MWAWSection::addTo(), addTo(), FWStruct::Border::Border(), compare(), MRWTextInternal::Paragraph::BorderFill::getBorder(), MSWStruct::getBorder(), isEmpty(), MWAWSection::MWAWSection(), operator!=(), operator<<(), FWStruct::Border::read(), HMWKText::readParagraph(), HMWKGraph::readTable(), HMWJGraph::readTableFormatsList(), MWAWParagraph::resizeBorders(), MWAWCell::setBorders(), CWTableInternal::TableCell::update(), and WNTextInternal::TableData::updateCell().
Type MWAWBorder::m_type |
the border repetition
Referenced by MRWGraphInternal::Token::addPictBorderProperties(), HMWJGraphInternal::FrameFormat::addTo(), addTo(), HMWKGraphInternal::TextBox::addTo(), compare(), FWStruct::Border::getBorder(), MRWTextInternal::Paragraph::BorderFill::getBorder(), MSWStruct::getBorder(), operator!=(), operator<<(), FWStruct::Border::read(), MSWStruct::Paragraph::read(), HMWJText::readParagraph(), HMWKText::readParagraph(), HMWKGraph::readTable(), HMWJGraph::readTableFormatsList(), CWTableInternal::TableCell::update(), WNTextInternal::TableData::updateCell(), and MWProStructuresInternal::State::updateLineType().
double MWAWBorder::m_width |
the border total width in point
Referenced by MRWGraphInternal::Token::addPictBorderProperties(), MWAWSection::addTo(), HMWJGraphInternal::FrameFormat::addTo(), addTo(), HMWKGraphInternal::TextBox::addTo(), compare(), MWProStructuresInternal::Block::fillFramePropertyList(), FWStruct::Border::getBorder(), MRWTextInternal::Paragraph::BorderFill::getBorder(), MSWStruct::getBorder(), isEmpty(), operator!=(), operator<<(), FWStruct::Border::read(), MSWStruct::Paragraph::read(), MWProStructures::readBlock(), HMWKGraph::readTable(), CWTable::readTableCells(), HMWJGraph::readTableFormatsList(), MWAWTable::sendExtraLines(), MSKTable::sendTable(), FWText::sendTable(), CWTableInternal::TableCell::update(), HMWJGraphInternal::TableCell::update(), and WNTextInternal::TableData::updateCell().
std::vector<double> MWAWBorder::m_widthsList |
the different length used for each line/sep (if defined)
Referenced by MRWGraphInternal::Token::addPictBorderProperties(), HMWJGraphInternal::FrameFormat::addTo(), addTo(), HMWKGraphInternal::TextBox::addTo(), MRWTextInternal::Paragraph::BorderFill::getBorder(), operator<<(), FWStruct::Border::read(), HMWKGraph::readTable(), HMWJGraph::readTableFormatsList(), and MWProStructuresInternal::State::updateLineType().