class to store the paragraph properties More...
#include <MWAWParagraph.hxx>
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 | |
MWAWParagraph (MWAWParagraph const &)=default | |
MWAWParagraph & | operator= (MWAWParagraph const &)=default |
MWAWParagraph & | operator= (MWAWParagraph &&)=default |
virtual | ~MWAWParagraph () |
destructor | |
bool | operator== (MWAWParagraph const &p) const |
operator== | |
bool | operator!= (MWAWParagraph const &p) const |
operator!= | |
int | cmp (MWAWParagraph const &p) const |
a comparison function | |
double | getMarginsWidth () const |
return the paragraph margin width (in inches) | |
bool | hasBorders () const |
check if the paragraph has some borders | |
bool | hasDifferentBorders () const |
check if the paragraph has different borders | |
void | resizeBorders (size_t newSize) |
a function used to resize the borders list ( adding empty borders if needed ) | |
void | setInterline (double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed) |
set the interline | |
void | addTo (librevenge::RVNGPropertyList &propList, bool inTable) const |
add to the propList | |
void | insert (MWAWParagraph const ¶) |
insert the set values of para in the actual paragraph | |
Public Attributes | |
MWAWVariable< double > | m_margins [3] |
the margins | |
MWAWVariable< librevenge::RVNGUnit > | m_marginsUnit |
the margins INCH, ... | |
MWAWVariable< double > | m_spacings [3] |
the line spacing | |
MWAWVariable< librevenge::RVNGUnit > | m_spacingsInterlineUnit |
the interline unit PERCENT or INCH, ... | |
MWAWVariable< LineSpacingType > | m_spacingsInterlineType |
the interline type: fixed, atLeast, ... | |
MWAWVariable< std::vector< MWAWTabStop > > | m_tabs |
the tabulations | |
MWAWVariable< bool > | m_tabsRelativeToLeftMargin |
true if the tabs are relative to left margin, false if there are relative to the page margin (default) | |
MWAWVariable< Justification > | m_justify |
the justification | |
MWAWVariable< int > | m_breakStatus |
a list of bits: 0x1 (unbreakable), 0x2 (do not break after) | |
MWAWVariable< libmwaw::WritingMode > | m_writingMode |
the writing mode | |
MWAWVariable< int > | m_listLevelIndex |
the actual level index | |
MWAWVariable< int > | m_listId |
the list id (if know ) | |
MWAWVariable< int > | m_listStartValue |
the list start value (if set ) | |
MWAWVariable< MWAWListLevel > | m_listLevel |
the actual level | |
MWAWVariable< MWAWColor > | m_backgroundColor |
the background color | |
std::vector< MWAWVariable< MWAWBorder > > | m_borders |
list of border ( order MWAWBorder::Pos) | |
MWAWVariable< int > | m_dropNumCharacters |
the drop number character | |
MWAWVariable< int > | m_dropNumLines |
the drop number of lines | |
std::string | m_styleName |
the style name | |
std::string | m_extra |
a string to store some errors | |
Friends | |
std::ostream & | operator<< (std::ostream &o, MWAWParagraph const &ft) |
operator << | |
class to store the paragraph properties
MWAWParagraph::MWAWParagraph | ( | ) |
constructor
|
default |
|
virtual |
destructor
Referenced by MsWrdStruct::Paragraph::read().
void MWAWParagraph::addTo | ( | librevenge::RVNGPropertyList & | propList, |
bool | inTable | ||
) | const |
add to the propList
int MWAWParagraph::cmp | ( | MWAWParagraph const & | p | ) | const |
a comparison function
Referenced by operator!=(), and operator==().
double MWAWParagraph::getMarginsWidth | ( | ) | const |
return the paragraph margin width (in inches)
bool MWAWParagraph::hasBorders | ( | ) | const |
check if the paragraph has some borders
Referenced by addTo(), and hasDifferentBorders().
bool MWAWParagraph::hasDifferentBorders | ( | ) | const |
check if the paragraph has different borders
Referenced by addTo().
void MWAWParagraph::insert | ( | MWAWParagraph const & | para | ) |
insert the set values of para in the actual paragraph
Referenced by insert(), and MsWrdStruct::Paragraph::insert().
|
inline |
operator!=
|
default |
|
default |
Referenced by FullWrtTextInternal::Paragraph::updateFromRuler().
|
inline |
operator==
|
inline |
a function used to resize the borders list ( adding empty borders if needed )
Referenced by MsWrdStruct::Paragraph::read(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), and MarinerWrtTextInternal::Paragraph::update().
|
inline |
set the interline
Referenced by SpringBoardParser::parseParagraphStyle(), MacWrtParser::readGraphic(), MacDraftParser::readLabel(), MacDraftParser::readObject(), ClarisDrawText::readParagraph(), ClarisWksText::readParagraph(), MsWrd1Parser::readParagraph(), WordMakerParser::readParagraph(), MacWrtParser::readParagraph(), JazzWriterParser::readParagraph(), WriteNowText::readParagraph(), MsWks4Text::readParagraph(), ScoopParser::readParagraph(), BeagleWksText::readParagraph(), PowerPoint3Parser::readParagraph(), MacWrtProStructures::readParagraph(), StudentWritingCParser::readParagraph(), MouseWrtParser::readParagraphPLCs(), NisusWrtText::readParagraphs(), RagTimeText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), Canvas5StyleManager::readParaStyle(), MindWrtParser::readRuler(), GreatWksText::readRuler(), MarinerWrtText::readRulers(), StyleParser::readRules(), CricketDrawParser::readShape(), ReadySetGoStyleManager::readStyle(), MacWrtParser::readText(), WriterPlsParser::readText(), MacDrawProParser::readTextII(), PowerPoint7Text::readTextZone(), ScriptWriterParser::send(), MindWrtParser::sendHeaderFooterFields(), DrawTableParser::sendShape(), CanvasGraph::sendText(), BeagleWksDRParser::sendText(), SuperPaintParser::sendText(), MsWks3Text::sendText(), PowerPoint1Parser::sendText(), ReadySetGoGraph::sendText(), ScriptWriterParser::sendText(), MindWrtParser::sendZone(), MsWrdStruct::Paragraph::updateParagraphToFinalState(), RagTime5StyleManager::updateTextStyles(), and FullWrtTextInternal::Paragraph::updateToSent().
|
friend |
operator <<
MWAWVariable<MWAWColor> MWAWParagraph::m_backgroundColor |
the background color
Referenced by addTo(), cmp(), insert(), MarinerWrtTextInternal::Paragraph::update(), and FullWrtTextInternal::Paragraph::updateToSent().
std::vector<MWAWVariable<MWAWBorder> > MWAWParagraph::m_borders |
list of border ( order MWAWBorder::Pos)
Referenced by addTo(), cmp(), hasBorders(), hasDifferentBorders(), insert(), MsWrdStruct::Paragraph::read(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), StyleParser::readRules(), resizeBorders(), MarinerWrtTextInternal::Paragraph::update(), and FullWrtTextInternal::Paragraph::updateToSent().
MWAWVariable<int> MWAWParagraph::m_breakStatus |
a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
Referenced by addTo(), cmp(), insert(), MsWrdStruct::Paragraph::read(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), MacWrtProStructures::readParagraph(), Canvas5StyleManager::readStyleEnd(), and RagTime5StyleManager::updateTextStyles().
MWAWVariable<int> MWAWParagraph::m_dropNumCharacters |
the drop number character
Referenced by addTo(), cmp(), insert(), and Canvas5StyleManager::readParaStyle().
MWAWVariable<int> MWAWParagraph::m_dropNumLines |
the drop number of lines
Referenced by addTo(), cmp(), insert(), and Canvas5StyleManager::readParaStyle().
std::string MWAWParagraph::m_extra |
a string to store some errors
Referenced by insert(), MsWrdStruct::Paragraph::read(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), ClarisDrawText::readParagraph(), ClarisWksText::readParagraph(), MsWrd1Parser::readParagraph(), MsWks3Text::readParagraph(), MsWrdTextStyles::readParagraph(), WriteNowText::readParagraph(), MsWks4Text::readParagraph(), BeagleWksText::readParagraph(), PowerPoint3Parser::readParagraph(), MacWrtProStructures::readParagraph(), NisusWrtText::readParagraphs(), MindWrtParser::readRuler(), GreatWksText::readRuler(), MarinerWrtText::readRulers(), and LightWayTxtText::readRulers().
MWAWVariable<Justification> MWAWParagraph::m_justify |
the justification
Referenced by addTo(), cmp(), WriteNowTextInternal::State::getDefaultParagraph(), insert(), MWAWHeaderFooter::insertPageNumberParagraph(), Canvas5GraphInternal::SubDocument::parse(), CanvasGraphInternal::SubDocument::parse(), ClarisDrawGraphInternal::SubDocument::parse(), SpringBoardParser::parseParagraphStyle(), MsWrdStruct::Paragraph::read(), MacDraftParser::readLabel(), MacDraftParser::readObject(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), ClarisDrawText::readParagraph(), ClarisWksText::readParagraph(), MsWrd1Parser::readParagraph(), WordMakerParser::readParagraph(), MacWrtParser::readParagraph(), MsWks3Text::readParagraph(), JazzWriterParser::readParagraph(), WriteNowText::readParagraph(), MsWks4Text::readParagraph(), ScoopParser::readParagraph(), BeagleWksText::readParagraph(), PowerPoint3Parser::readParagraph(), MacWrtProStructures::readParagraph(), StudentWritingCParser::readParagraph(), MouseWrtParser::readParagraphPLCs(), NisusWrtText::readParagraphs(), RagTimeText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), Canvas5StyleManager::readParaStyle(), MindWrtParser::readRuler(), GreatWksText::readRuler(), MarinerWrtText::readRulers(), LightWayTxtText::readRulers(), StyleParser::readRules(), CricketDrawParser::readShape(), ReadySetGoStyleManager::readStyle(), MacWrtParser::readText(), MacDrawProParser::readTextII(), PowerPoint7Text::readTextZone(), ClarisWksDbaseContent::send(), ScriptWriterParser::send(), ActaParser::sendHeaderFooter(), LightWayTxtText::sendHeaderFooter(), SpringBoardParser::sendHeaderFooter(), MacDocParser::sendIndex(), MouseWrtParser::sendMainZone(), DrawTableParser::sendShape(), GreatWksText::sendSimpleTextbox(), MsWksTable::sendTable(), CanvasGraph::sendText(), DocMkrText::sendText(), BeagleWksDRParser::sendText(), SuperPaintParser::sendText(), FreeHandParser::sendText(), CorelPainterParser::sendText(), Canvas5Graph::sendText(), PowerPoint1Parser::sendText(), ReadySetGoGraph::sendText(), ScriptWriterParser::sendText(), ZWrtText::sendText(), MsWksGraph::sendTextBox(), StudentWritingCParser::sendZone(), MindWrtParserInternal::ZoneInfo::updateListId(), RagTime5StyleManager::updateTextStyles(), and FullWrtTextInternal::Paragraph::updateToSent().
MWAWVariable<int> MWAWParagraph::m_listId |
the list id (if know )
Referenced by cmp(), insert(), MsWks4Text::readParagraph(), MarinerWrtText::readRulers(), ActaText::sendTopic(), ClarisWksText::setProperty(), and MoreTextInternal::Paragraph::updateToFinalState().
MWAWVariable<MWAWListLevel> MWAWParagraph::m_listLevel |
the actual level
Referenced by cmp(), ClarisWksText::findListId(), insert(), PowerPoint3Parser::readParagraph(), PowerPoint7Text::readTextZone(), ClarisDrawTextInternal::Paragraph::updateListLevel(), ClarisWksTextInternal::Paragraph::updateListLevel(), and MoreTextInternal::Paragraph::updateToFinalState().
MWAWVariable<int> MWAWParagraph::m_listLevelIndex |
the actual level index
Referenced by cmp(), ClarisWksText::findListId(), insert(), ClarisWksText::readParagraph(), MsWks4Text::readParagraph(), PowerPoint3Parser::readParagraph(), MarinerWrtText::readRulers(), PowerPoint7Text::readTextZone(), ActaText::sendTopic(), MindWrtParserInternal::ZoneInfo::updateListId(), ClarisDrawTextInternal::Paragraph::updateListLevel(), ClarisWksTextInternal::Paragraph::updateListLevel(), and MoreTextInternal::Paragraph::updateToFinalState().
MWAWVariable<int> MWAWParagraph::m_listStartValue |
the list start value (if set )
Referenced by cmp(), insert(), and MindWrtParserInternal::ZoneInfo::updateListId().
MWAWVariable<double> MWAWParagraph::m_margins[3] |
the margins
Referenced by addTo(), cmp(), WriteNowTextInternal::State::getDefaultParagraph(), getMarginsWidth(), WriterPlsParser::getParagraph(), FullWrtTextInternal::Paragraph::getTableDimensions(), insert(), MWAWParagraph(), SpringBoardParser::parseParagraphStyle(), MsWrdStruct::Paragraph::read(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), ClarisDrawText::readParagraph(), ClarisWksText::readParagraph(), MsWrd1Parser::readParagraph(), WordMakerParser::readParagraph(), MacWrtParser::readParagraph(), MsWks3Text::readParagraph(), JazzWriterParser::readParagraph(), WriteNowText::readParagraph(), MsWks4Text::readParagraph(), ScoopParser::readParagraph(), BeagleWksText::readParagraph(), MacWrtProStructures::readParagraph(), StudentWritingCParser::readParagraph(), MouseWrtParser::readParagraphPLCs(), NisusWrtText::readParagraphs(), RagTimeText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), FullWrtText::readParagraphTabs(), Canvas5StyleManager::readParaStyle(), MindWrtParser::readRuler(), GreatWksText::readRuler(), MarinerWrtText::readRulers(), LightWayTxtText::readRulers(), StyleParser::readRules(), ReadySetGoGraph::readShapeV1(), ReadySetGoGraph::readShapeV2(), ReadySetGoStyleManager::readStyle(), EDocParser::sendIndex(), MacDocParser::sendIndex(), MouseWrtParser::sendMainZone(), PowerPoint1Parser::sendText(), ScriptWriterParser::sendText(), ActaText::sendTopic(), MoreTextInternal::Paragraph::setLeftMargin(), NisusWrtText::setProperty(), MoreTextInternal::Paragraph::setRightMargin(), MindWrtParserInternal::ZoneInfo::updateListId(), ClarisDrawTextInternal::Paragraph::updateListLevel(), ClarisWksTextInternal::Paragraph::updateListLevel(), PowerPoint7TextInternal::Ruler::updateParagraph(), PowerPoint3ParserInternal::Ruler::updateParagraph(), RagTime5StyleManager::updateTextStyles(), and MoreTextInternal::Paragraph::updateToFinalState().
MWAWVariable<librevenge::RVNGUnit> MWAWParagraph::m_marginsUnit |
the margins INCH, ...
Referenced by addTo(), cmp(), getMarginsWidth(), WriterPlsParser::getParagraph(), insert(), WriteNowTextInternal::Paragraph::Paragraph(), SpringBoardParser::parseParagraphStyle(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), WordMakerParser::readParagraph(), JazzWriterParser::readParagraph(), ScoopParser::readParagraph(), BeagleWksText::readParagraph(), StudentWritingCParser::readParagraph(), MouseWrtParser::readParagraphPLCs(), NisusWrtText::readParagraphs(), RagTimeText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), Canvas5StyleManager::readParaStyle(), MindWrtParser::readRuler(), GreatWksText::readRuler(), LightWayTxtText::readRulers(), ReadySetGoGraph::readShapeV1(), ReadySetGoGraph::readShapeV2(), ReadySetGoStyleManager::readStyle(), EDocParser::sendIndex(), PowerPoint1Parser::sendText(), ScriptWriterParser::sendText(), PowerPoint7TextInternal::Ruler::updateParagraph(), PowerPoint3ParserInternal::Ruler::updateParagraph(), and RagTime5StyleManager::updateTextStyles().
MWAWVariable<double> MWAWParagraph::m_spacings[3] |
the line spacing
Referenced by addTo(), cmp(), insert(), MWAWParagraph(), SpringBoardParser::parseParagraphStyle(), MsWrdStruct::Paragraph::read(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), ClarisDrawText::readParagraph(), ClarisWksText::readParagraph(), MsWrd1Parser::readParagraph(), WordMakerParser::readParagraph(), ScoopParser::readParagraph(), BeagleWksText::readParagraph(), PowerPoint3Parser::readParagraph(), MacWrtProStructures::readParagraph(), NisusWrtText::readParagraphs(), RagTimeText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), Canvas5StyleManager::readParaStyle(), MindWrtParser::readRuler(), GreatWksText::readRuler(), MarinerWrtText::readRulers(), LightWayTxtText::readRulers(), StyleParser::readRules(), ReadySetGoStyleManager::readStyle(), PowerPoint7Text::readTextZone(), PowerPoint1Parser::sendText(), setInterline(), RagTime5StyleManager::updateTextStyles(), and FullWrtTextInternal::Paragraph::updateToSent().
MWAWVariable<LineSpacingType> MWAWParagraph::m_spacingsInterlineType |
the interline type: fixed, atLeast, ...
Referenced by addTo(), cmp(), insert(), MsWks4Text::readParagraph(), NisusWrtText::readParagraphs(), and setInterline().
MWAWVariable<librevenge::RVNGUnit> MWAWParagraph::m_spacingsInterlineUnit |
the interline unit PERCENT or INCH, ...
Referenced by addTo(), cmp(), insert(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), NisusWrtText::readParagraphs(), and setInterline().
MWAWVariable<std::vector<MWAWTabStop> > MWAWParagraph::m_tabs |
the tabulations
Referenced by addTo(), cmp(), WriteNowTextInternal::State::getDefaultParagraph(), FullWrtTextInternal::Paragraph::getTableDimensions(), insert(), MsWrdStruct::Paragraph::insert(), MsWrdStruct::Paragraph::read(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), ClarisDrawText::readParagraph(), ClarisWksText::readParagraph(), MsWrd1Parser::readParagraph(), WordMakerParser::readParagraph(), MacWrtParser::readParagraph(), MsWks3Text::readParagraph(), JazzWriterParser::readParagraph(), WriteNowText::readParagraph(), MsWks4Text::readParagraph(), ScoopParser::readParagraph(), BeagleWksText::readParagraph(), MacWrtProStructures::readParagraph(), StudentWritingCParser::readParagraph(), MouseWrtParser::readParagraphPLCs(), NisusWrtText::readParagraphs(), RagTimeText::readParagraphs(), MacDrawProStyleManager::readParagraphStyles(), FullWrtText::readParagraphTabs(), MindWrtParser::readRuler(), PowerPoint3Parser::readRuler(), GreatWksText::readRuler(), MarinerWrtText::readRulers(), LightWayTxtText::readRulers(), PowerPoint7Text::readRulerTabs(), ReadySetGoGraph::readShapeV1(), ReadySetGoGraph::readShapeV2(), MoreText::readTabs(), WordMakerParser::readTabulations(), WriteNowText::send(), DocMkrText::sendFooter(), MindWrtParser::sendHeaderFooterFields(), EDocParser::sendIndex(), MacDocParser::sendIndex(), PowerPoint1Parser::sendText(), ReadySetGoGraph::sendText(), ScriptWriterParser::sendText(), DocMkrText::sendTOC(), PowerPoint3ParserInternal::Ruler::updateParagraph(), RagTime5StyleManager::updateTextStyles(), and FullWrtTextInternal::Paragraph::updateToSent().
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(), insert(), and MsWrdStruct::Paragraph::Paragraph().
MWAWVariable<libmwaw::WritingMode> MWAWParagraph::m_writingMode |
the writing mode
Referenced by addTo(), cmp(), insert(), MouseWrtParser::readParagraphPLCs(), and MouseWrtParser::sendZone().