MWAWBorder Struct Reference documentation

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Public Attributes | Friends | List of all members
MWAWBorder Struct Reference

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 (librevenge::RVNGPropertyList &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...

## Detailed Description

a border

## Member Enumeration Documentation

enum MWAWBorder::Style

the line style

Enumerator
None |
Simple |
Dot |
LargeDot |
Dash |

enum MWAWBorder::Type

the line repetition

Enumerator
Single |
Double |
Triple |

## Constructor & Destructor Documentation

MWAWBorder::MWAWBorder | ( |  | ) |
| inline

constructor

## Member Function Documentation

bool MWAWBorder::addTo | ( | librevenge::RVNGPropertyList & | propList,
|  | std::string | which = `""`
| ) |  | const

add the border property to proplist (if needed )

Note
  if set which must be equal to "left", "top", ...

Referenced by MWAWParagraph::addTo().

int MWAWBorder::compare | ( | MWAWBorder const & | orig | ) | const

compare two borders

bool MWAWBorder::isEmpty | ( |  | ) | const
| inline

returns true if the border is empty

Referenced by FullWrtStruct::Border::addTo(), MWAWParagraph::addTo(), MacWrtProStructuresInternal::Block::fillFrame(), RagTimeSpreadsheetInternal::CellBorder::hasBorders(), MacWrtProStructuresInternal::Block::hasBorders(), MWAWCell::hasExtraLine(), FullWrtStruct::operator<<(), operator<<(), and WriteNowTextInternal::TableData::updateCell().

bool MWAWBorder::operator!= | ( | MWAWBorder const & | orig | ) | const
| inline

operator!=

Referenced by operator==().

bool MWAWBorder::operator== | ( | MWAWBorder const & | orig | ) | const
| inline

operator==

## Friends And Related Function Documentation

std::ostream& operator<< | ( | std::ostream & | o,
|  | MWAWBorder const & | border
| ) |  |
| friend

operator<<

std::ostream& operator<< | ( | std::ostream & | o,
|  | MWAWBorder::Style const & | style
| ) |  |
| friend

operator<<: prints data in form "none|dot|..."

## Member Data Documentation

MWAWColor MWAWBorder::m_color

the border color

Referenced by MarinerWrtGraphInternal::Token::addPictBorder(), FullWrtStruct::Border::addTo(), MWAWSection::addTo(), HanMacWrdJGraphInternal::FrameFormat::addTo(), addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), compare(), MarinerWrtTextInternal::Paragraph::BorderFill::getBorder(), FullWrtStruct::Border::getParagraphBorders(), MacWrtProStructuresInternal::Block::hasBorders(), operator!=(), operator<<(), MacWrtProStructures::readBlock(), RagTimeSpreadsheet::readResource(), HanMacWrdKGraph::readTable(), ClarisWksTable::readTableCells(), HanMacWrdJGraph::readTableFormatsList(), RagTimeParser::send(), MacDrawProParser::send(), HanMacWrdJGraph::sendComment(), MWAWTable::sendExtraLines(), ClarisWksGraph::sendGroupChild(), RagTimeParser::sendPicture(), MsWksTable::sendTable(), FullWrtText::sendTable(), ClarisWksTableInternal::TableCell::update(), and HanMacWrdJGraphInternal::TableCell::update().

std::string MWAWBorder::m_extra

extra data ( if needed)

Referenced by operator<<(), MacWrtProStructures::readBlock(), and RagTimeSpreadsheet::readResource().

Style MWAWBorder::m_style

the border style

Referenced by MarinerWrtGraphInternal::Token::addPictBorder(), MWAWSection::addTo(), addTo(), FullWrtStruct::Border::Border(), compare(), MarinerWrtTextInternal::Paragraph::BorderFill::getBorder(), MsWrdStruct::getBorder(), isEmpty(), MWAWSection::MWAWSection(), operator!=(), operator<<(), FullWrtStruct::Border::read(), HanMacWrdKText::readParagraph(), HanMacWrdKGraph::readTable(), HanMacWrdJGraph::readTableFormatsList(), MWAWParagraph::resizeBorders(), MWAWCell::setBorders(), MWAWGraphicStyle::setBorders(), ClarisWksTableInternal::TableCell::update(), and WriteNowTextInternal::TableData::updateCell().

Type MWAWBorder::m_type

the border repetition

Referenced by MarinerWrtGraphInternal::Token::addPictBorder(), HanMacWrdJGraphInternal::FrameFormat::addTo(), addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), compare(), FullWrtStruct::Border::getBorder(), MarinerWrtTextInternal::Paragraph::BorderFill::getBorder(), MsWrdStruct::getBorder(), operator!=(), operator<<(), FullWrtStruct::Border::read(), MsWrdStruct::Paragraph::read(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), HanMacWrdKGraph::readTable(), HanMacWrdJGraph::readTableFormatsList(), ClarisWksTableInternal::TableCell::update(), WriteNowTextInternal::TableData::updateCell(), and MacWrtProStructuresInternal::State::updateLineType().

double MWAWBorder::m_width

the border total width in point

Referenced by MarinerWrtGraphInternal::Token::addPictBorder(), MWAWSection::addTo(), HanMacWrdJGraphInternal::FrameFormat::addTo(), addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), compare(), MacWrtProStructuresInternal::Block::fillFrame(), FullWrtStruct::Border::getBorder(), MarinerWrtTextInternal::Paragraph::BorderFill::getBorder(), MsWrdStruct::getBorder(), isEmpty(), operator!=(), operator<<(), FullWrtStruct::Border::read(), MsWrdStruct::Paragraph::read(), MacWrtProStructures::readBlock(), RagTimeSpreadsheet::readResource(), HanMacWrdKGraph::readTable(), ClarisWksTable::readTableCells(), HanMacWrdJGraph::readTableFormatsList(), RagTimeParser::send(), MacDrawProParser::send(), HanMacWrdJGraph::sendComment(), MWAWTable::sendExtraLines(), RagTimeParser::sendPicture(), MsWksTable::sendTable(), FullWrtText::sendTable(), ClarisWksTableInternal::TableCell::update(), HanMacWrdJGraphInternal::TableCell::update(), and WriteNowTextInternal::TableData::updateCell().

std::vector<double> MWAWBorder::m_widthsList

the different length used for each line/sep (if defined)

Note
  when defined, the size of this list must be equal to 2*Type-1

Referenced by MarinerWrtGraphInternal::Token::addPictBorder(), HanMacWrdJGraphInternal::FrameFormat::addTo(), addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), MarinerWrtTextInternal::Paragraph::BorderFill::getBorder(), operator<<(), FullWrtStruct::Border::read(), HanMacWrdKGraph::readTable(), HanMacWrdJGraph::readTableFormatsList(), and MacWrtProStructuresInternal::State::updateLineType().

The documentation for this struct was generated from the following files:

- libmwaw_internal.hxx
- libmwaw_internal.cxx