Public Types | Public Member Functions | Public Attributes | Friends | List of all members
MWAWParagraph Class Reference

class to store the paragraph properties More...

`#include <MWAWParagraph.hxx>`

Inheritance diagram for MWAWParagraph:

## Public Types
enum | { NoBreakBit = 0x1, NoBreakWithNextBit =0x2 }
| some bit use to defined the break status More...
enum | Justification { JustificationLeft, JustificationFull, JustificationCenter, JustificationRight, JustificationFullAllLines }
| an enum used to defined the paragraph justification: left, center, right, full ... More...
enum | LineSpacingType { Fixed, AtLeast }
| the line spacing type: fixed or at least More...

## Public Member Functions
| MWAWParagraph ()
| constructor More...
virtual | ~MWAWParagraph ()
| destructor More...
bool | operator== (MWAWParagraph const &p) const
| operator== More...
bool | operator!= (MWAWParagraph const &p) const
| operator!= More...
int | cmp (MWAWParagraph const &p) const
| a comparison function More...
double | getMarginsWidth () const
| return the paragraph margin width (in inches) More...
bool | hasBorders () const
| check if the paragraph has some borders More...
bool | hasDifferentBorders () const
| check if the paragraph has different borders More...
void | resizeBorders (size_t newSize)
| a function used to resize the borders list ( adding empty borders if needed ) More...
void | setInterline (double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
| set the interline More...
void | addTo (librevenge::RVNGPropertyList &propList, bool inTable) const
| add to the propList More...
void | insert (MWAWParagraph const &para)
| insert the set values of para in the actual paragraph More...

## Public Attributes
MWAWVariable< double > | m_margins [3]
| the margins More...
MWAWVariable< librevenge::RVNGUnit > | m_marginsUnit
| the margins INCH, ... More...
MWAWVariable< double > | m_spacings [3]
| the line spacing More...
MWAWVariable< librevenge::RVNGUnit > | m_spacingsInterlineUnit
| the interline unit PERCENT or INCH, ... More...
MWAWVariable< LineSpacingType > | m_spacingsInterlineType
| the interline type: fixed, atLeast, ... More...
MWAWVariable< std::vector< MWAWTabStop > > | m_tabs
| the tabulations More...
MWAWVariable< bool > | m_tabsRelativeToLeftMargin
| true if the tabs are relative to left margin, false if there are relative to the page margin (default) More...
MWAWVariable< Justification > | m_justify
| the justification More...
MWAWVariable< int > | m_breakStatus
| a list of bits: 0x1 (unbreakable), 0x2 (do not break after) More...
MWAWVariable< libmwaw::WritingMode > | m_writingMode
| the writing mode More...
MWAWVariable< int > | m_listLevelIndex
| the actual level index More...
MWAWVariable< int > | m_listId
| the list id (if know ) More...
MWAWVariable< int > | m_listStartValue
| the list start value (if set ) More...
MWAWVariable< MWAWListLevel > | m_listLevel
| the actual level More...
MWAWVariable< MWAWColor > | m_backgroundColor
| the background color More...
std::vector< MWAWVariable< MWAWBorder > > | m_borders
| list of border ( order MWAWBorder::Pos) More...
std::string | m_styleName
| the style name More...
std::string | m_extra
| a string to store some errors More...

## Friends
std::ostream & | operator<< (std::ostream &o, MWAWParagraph const &ft)
| operator << More...

## Detailed Description

class to store the paragraph properties

## Member Enumeration Documentation

## ◆ anonymous enum

anonymous enum

some bit use to defined the break status

Enumerator
NoBreakBit |
NoBreakWithNextBit |

## ◆ Justification

enum MWAWParagraph::Justification

an enum used to defined the paragraph justification: left, center, right, full ...

Enumerator
JustificationLeft |
JustificationFull |
JustificationCenter |
JustificationRight |
JustificationFullAllLines |

## ◆ LineSpacingType

enum MWAWParagraph::LineSpacingType

the line spacing type: fixed or at least

Enumerator
Fixed |
AtLeast |

## Constructor & Destructor Documentation

## ◆ MWAWParagraph()

MWAWParagraph::MWAWParagraph | ( |  | ) |

constructor

## ◆ ~MWAWParagraph()

MWAWParagraph::~MWAWParagraph | ( |  | ) |
| virtual

destructor

## Member Function Documentation

## ◆ addTo()

void MWAWParagraph::addTo | ( | librevenge::RVNGPropertyList & | propList,
|  | bool | inTable
| ) |  | const

add to the propList

## ◆ cmp()

int MWAWParagraph::cmp | ( | MWAWParagraph const & | p | ) | const

a comparison function

## ◆ getMarginsWidth()

double MWAWParagraph::getMarginsWidth | ( |  | ) | const

return the paragraph margin width (in inches)

## ◆ hasBorders()

bool MWAWParagraph::hasBorders | ( |  | ) | const

check if the paragraph has some borders

Referenced by addTo(), and hasDifferentBorders().

## ◆ hasDifferentBorders()

bool MWAWParagraph::hasDifferentBorders | ( |  | ) | const

check if the paragraph has different borders

Referenced by addTo().

## ◆ insert()

void MWAWParagraph::insert | ( | MWAWParagraph const & | para | ) |

insert the set values of para in the actual paragraph

Referenced by MsWrdStruct::Paragraph::insert().

## ◆ operator!=()

bool MWAWParagraph::operator!= | ( | MWAWParagraph const & | p | ) | const
| inline

operator!=

Referenced by MoreTextInternal::SubDocument::operator==(), and MoreTextInternal::SubDocument::~SubDocument().

## ◆ operator==()

bool MWAWParagraph::operator== | ( | MWAWParagraph const & | p | ) | const
| inline

operator==

## ◆ resizeBorders()

void MWAWParagraph::resizeBorders | ( | size_t | newSize | ) |
| inline

a function used to resize the borders list ( adding empty borders if needed )

Referenced by HanMacWrdJText::readParagraph(), and HanMacWrdKText::readParagraph().

## ◆ setInterline()

void MWAWParagraph::setInterline | ( | double | value,
|  | librevenge::RVNGUnit | unit,
|  | LineSpacingType | type = `Fixed`
| ) |  |
| inline

set the interline

Referenced by MacWrtParser::readGraphic(), WriterPlsParser::readGraphic(), MacDraftParser::readLabel(), MacDraftParser::readObject(), MacDrawParser::readObject(), MoreText::readOutline(), MsWrd1Parser::readParagraph(), BeagleWksText::readParagraph(), MacWrtParser::readParagraph(), ClarisDrawText::readParagraph(), PowerPoint3Parser::readParagraph(), WriteNowText::readParagraph(), ClarisWksText::readParagraph(), MsWks4Text::readParagraph(), MouseWrtParser::readParagraphPLCs(), RagTimeText::readParagraphs(), NisusWrtText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), MindWrtParser::readRuler(), GreatWksText::readRuler(), MarinerWrtText::readRulers(), StyleParser::readRules(), CricketDrawParser::readShape(), MacWrtParser::readText(), MacDrawProParser::readTextII(), PowerPoint7Text::readTextZone(), MindWrtParser::sendHeaderFooterFields(), BeagleWksDRParser::sendText(), SuperPaintParser::sendText(), MsWks3Text::sendText(), PowerPoint1Parser::sendText(), MindWrtParser::sendZone(), RagTime5StyleManager::updateTextStyles(), and FullWrtTextInternal::Paragraph::updateToSent().

## Friends And Related Function Documentation

## ◆ operator<<

std::ostream& operator<< | ( | std::ostream & | o,
|  | MWAWParagraph const & | ft
| ) |  |
| friend

operator <<

## Member Data Documentation

## ◆ m_backgroundColor

MWAWVariable<MWAWColor> MWAWParagraph::m_backgroundColor

the background color

Referenced by addTo(), cmp(), insert(), operator<<(), and FullWrtTextInternal::Paragraph::updateToSent().

## ◆ m_borders

std::vector<MWAWVariable<MWAWBorder> > MWAWParagraph::m_borders

list of border ( order MWAWBorder::Pos)

Referenced by addTo(), cmp(), hasBorders(), hasDifferentBorders(), insert(), operator<<(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), StyleParser::readRules(), and FullWrtTextInternal::Paragraph::updateToSent().

## ◆ m_breakStatus

MWAWVariable<int> MWAWParagraph::m_breakStatus

a list of bits: 0x1 (unbreakable), 0x2 (do not break after)

Referenced by addTo(), cmp(), insert(), operator<<(), MoreText::readOutline(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), and RagTime5StyleManager::updateTextStyles().

## ◆ m_extra

std::string MWAWParagraph::m_extra

a string to store some errors

Referenced by insert(), operator<<(), MsWrdTextStyles::readParagraph(), MsWrd1Parser::readParagraph(), BeagleWksText::readParagraph(), ClarisDrawText::readParagraph(), PowerPoint3Parser::readParagraph(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), MsWks3Text::readParagraph(), WriteNowText::readParagraph(), ClarisWksText::readParagraph(), MsWks4Text::readParagraph(), NisusWrtText::readParagraphs(), MindWrtParser::readRuler(), GreatWksText::readRuler(), LightWayTxtText::readRulers(), and MarinerWrtText::readRulers().

## ◆ m_justify

MWAWVariable<Justification> MWAWParagraph::m_justify

the justification

Referenced by addTo(), cmp(), WriteNowTextInternal::State::getDefaultParagraph(), insert(), MWAWHeaderFooter::insertPageNumberParagraph(), operator<<(), ClarisDrawGraphInternal::SubDocument::parse(), MacDraftParser::readLabel(), MacDraftParser::readObject(), MacDrawParser::readObject(), MoreText::readOutline(), MsWrd1Parser::readParagraph(), BeagleWksText::readParagraph(), MacWrtParser::readParagraph(), ClarisDrawText::readParagraph(), PowerPoint3Parser::readParagraph(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), MsWks3Text::readParagraph(), WriteNowText::readParagraph(), ClarisWksText::readParagraph(), MsWks4Text::readParagraph(), MouseWrtParser::readParagraphPLCs(), RagTimeText::readParagraphs(), NisusWrtText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), MindWrtParser::readRuler(), GreatWksText::readRuler(), LightWayTxtText::readRulers(), MarinerWrtText::readRulers(), StyleParser::readRules(), CricketDrawParser::readShape(), MacWrtParser::readText(), MacDrawProParser::readTextII(), PowerPoint7Text::readTextZone(), ClarisWksDbaseContent::send(), ActaParser::sendHeaderFooter(), LightWayTxtText::sendHeaderFooter(), MacDocParser::sendIndex(), MouseWrtParser::sendMainZone(), GreatWksText::sendSimpleTextbox(), MsWksTable::sendTable(), ZWrtText::sendText(), BeagleWksDRParser::sendText(), DocMkrText::sendText(), SuperPaintParser::sendText(), PowerPoint1Parser::sendText(), FreeHandParser::sendText(), MsWksGraph::sendTextBox(), MindWrtParserInternal::ZoneInfo::updateListId(), RagTime5StyleManager::updateTextStyles(), and FullWrtTextInternal::Paragraph::updateToSent().

## ◆ m_listId

MWAWVariable<int> MWAWParagraph::m_listId

the list id (if know )

Referenced by cmp(), insert(), operator<<(), MsWks4Text::readParagraph(), MarinerWrtText::readRulers(), ClarisDrawText::sendText(), ActaText::sendTopic(), ClarisWksText::setProperty(), MindWrtParserInternal::ZoneInfo::updateListId(), and MoreTextInternal::Paragraph::updateToFinalState().

## ◆ m_listLevel

MWAWVariable<MWAWListLevel> MWAWParagraph::m_listLevel

the actual level

Referenced by cmp(), ClarisWksText::findListId(), insert(), operator<<(), PowerPoint3Parser::readParagraph(), PowerPoint7Text::readTextZone(), ClarisDrawText::sendText(), and MoreTextInternal::Paragraph::updateToFinalState().

## ◆ m_listLevelIndex

MWAWVariable<int> MWAWParagraph::m_listLevelIndex

the actual level index

Referenced by cmp(), ClarisWksText::findListId(), insert(), operator<<(), PowerPoint3Parser::readParagraph(), ClarisWksText::readParagraph(), MsWks4Text::readParagraph(), MarinerWrtText::readRulers(), PowerPoint7Text::readTextZone(), ClarisDrawText::sendText(), ClarisWksText::sendText(), ActaText::sendTopic(), MindWrtParserInternal::ZoneInfo::updateListId(), and MoreTextInternal::Paragraph::updateToFinalState().

## ◆ m_listStartValue

MWAWVariable<int> MWAWParagraph::m_listStartValue

the list start value (if set )

Referenced by cmp(), insert(), and MindWrtParserInternal::ZoneInfo::updateListId().

## ◆ m_margins

MWAWVariable<double> MWAWParagraph::m_margins[3]

the margins

- 0: first line left margin
- 1: left margin
- 2: right margin

Referenced by addTo(), cmp(), WriteNowTextInternal::State::getDefaultParagraph(), getMarginsWidth(), WriterPlsParser::getParagraph(), insert(), MWAWParagraph(), operator<<(), MoreText::readOutline(), MsWrd1Parser::readParagraph(), BeagleWksText::readParagraph(), MacWrtParser::readParagraph(), ClarisDrawText::readParagraph(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), MsWks3Text::readParagraph(), WriteNowText::readParagraph(), ClarisWksText::readParagraph(), MsWks4Text::readParagraph(), MouseWrtParser::readParagraphPLCs(), RagTimeText::readParagraphs(), NisusWrtText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), FullWrtText::readParagraphTabs(), MindWrtParser::readRuler(), GreatWksText::readRuler(), LightWayTxtText::readRulers(), MarinerWrtText::readRulers(), StyleParser::readRules(), EDocParser::sendIndex(), MacDocParser::sendIndex(), MouseWrtParser::sendMainZone(), PowerPoint1Parser::sendText(), ActaText::sendTopic(), MoreTextInternal::Paragraph::setLeftMargin(), NisusWrtText::setProperty(), MoreTextInternal::Paragraph::setRightMargin(), MindWrtParserInternal::ZoneInfo::updateListId(), PowerPoint7TextInternal::Ruler::updateParagraph(), PowerPoint3ParserInternal::Ruler::updateParagraph(), RagTime5StyleManager::updateTextStyles(), and MoreTextInternal::Paragraph::updateToFinalState().

## ◆ m_marginsUnit

MWAWVariable<librevenge::RVNGUnit> MWAWParagraph::m_marginsUnit

the margins INCH, ...

Referenced by addTo(), cmp(), getMarginsWidth(), WriterPlsParser::getParagraph(), insert(), BeagleWksText::readParagraph(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), MouseWrtParser::readParagraphPLCs(), RagTimeText::readParagraphs(), NisusWrtText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), MindWrtParser::readRuler(), GreatWksText::readRuler(), LightWayTxtText::readRulers(), EDocParser::sendIndex(), PowerPoint1Parser::sendText(), PowerPoint7TextInternal::Ruler::updateParagraph(), PowerPoint3ParserInternal::Ruler::updateParagraph(), and RagTime5StyleManager::updateTextStyles().

## ◆ m_spacings

MWAWVariable<double> MWAWParagraph::m_spacings[3]

the line spacing

- 0: interline
- 1: before
- 2: after

Referenced by addTo(), cmp(), insert(), MWAWParagraph(), operator<<(), MoreText::readOutline(), MsWrd1Parser::readParagraph(), BeagleWksText::readParagraph(), ClarisDrawText::readParagraph(), PowerPoint3Parser::readParagraph(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), ClarisWksText::readParagraph(), RagTimeText::readParagraphs(), NisusWrtText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), MindWrtParser::readRuler(), GreatWksText::readRuler(), LightWayTxtText::readRulers(), MarinerWrtText::readRulers(), StyleParser::readRules(), PowerPoint7Text::readTextZone(), PowerPoint1Parser::sendText(), RagTime5StyleManager::updateTextStyles(), and FullWrtTextInternal::Paragraph::updateToSent().

## ◆ m_spacingsInterlineType

MWAWVariable<LineSpacingType> MWAWParagraph::m_spacingsInterlineType

the interline type: fixed, atLeast, ...

Referenced by addTo(), cmp(), insert(), operator<<(), MsWks4Text::readParagraph(), and NisusWrtText::readParagraphs().

## ◆ m_spacingsInterlineUnit

MWAWVariable<librevenge::RVNGUnit> MWAWParagraph::m_spacingsInterlineUnit

the interline unit PERCENT or INCH, ...

Referenced by addTo(), cmp(), insert(), operator<<(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), and NisusWrtText::readParagraphs().

## ◆ m_styleName

std::string MWAWParagraph::m_styleName

the style name

Referenced by addTo(), cmp(), insert(), operator<<(), and ClarisWksText::sendText().

## ◆ m_tabs

MWAWVariable<std::vector<MWAWTabStop> > MWAWParagraph::m_tabs

the tabulations

Referenced by addTo(), cmp(), WriteNowTextInternal::State::getDefaultParagraph(), insert(), operator<<(), MsWrd1Parser::readParagraph(), BeagleWksText::readParagraph(), MacWrtParser::readParagraph(), ClarisDrawText::readParagraph(), MsWks3Text::readParagraph(), WriteNowText::readParagraph(), ClarisWksText::readParagraph(), MsWks4Text::readParagraph(), MouseWrtParser::readParagraphPLCs(), RagTimeText::readParagraphs(), NisusWrtText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), FullWrtText::readParagraphTabs(), MindWrtParser::readRuler(), GreatWksText::readRuler(), PowerPoint3Parser::readRuler(), LightWayTxtText::readRulers(), MarinerWrtText::readRulers(), PowerPoint7Text::readRulerTabs(), MoreText::readTabs(), WriteNowText::send(), DocMkrText::sendFooter(), MindWrtParser::sendHeaderFooterFields(), EDocParser::sendIndex(), MacDocParser::sendIndex(), MacWrtProStructuresListenerState::sendParagraph(), PowerPoint1Parser::sendText(), DocMkrText::sendTOC(), PowerPoint3ParserInternal::Ruler::updateParagraph(), RagTime5StyleManager::updateTextStyles(), and FullWrtTextInternal::Paragraph::updateToSent().

## ◆ m_tabsRelativeToLeftMargin

MWAWVariable<bool> MWAWParagraph::m_tabsRelativeToLeftMargin

true if the tabs are relative to left margin, false if there are relative to the page margin (default)

Referenced by addTo(), cmp(), and insert().

## ◆ m_writingMode

MWAWVariable<libmwaw::WritingMode> MWAWParagraph::m_writingMode

the writing mode

Referenced by addTo(), cmp(), insert(), operator<<(), MouseWrtParser::readParagraphPLCs(), and MouseWrtParser::sendZone().

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

- MWAWParagraph.hxx
- MWAWParagraph.cxx