a generic variable template: value + flag to know if the variable is set More...
#include <libmwaw_internal.hxx>
| Public Member Functions | |
| MWAWVariable () | |
| constructor  More... | |
| MWAWVariable (T const &def) | |
| constructor with a default value  More... | |
| MWAWVariable (MWAWVariable const &orig) | |
| copy constructor  More... | |
| MWAWVariable & | operator= (MWAWVariable const &)=default | 
| copy operator  More... | |
| MWAWVariable & | operator= (T const &val) | 
| set a value  More... | |
| void | insert (MWAWVariable const &orig) | 
| update the current value if orig is set  More... | |
| T const * | operator-> () const | 
| operator*  More... | |
| T * | operator-> () | 
| operator*  More... | |
| T const & | operator * () const | 
| operator*  More... | |
| T & | operator * () | 
| operator*  More... | |
| T const & | get () const | 
| return the current value  More... | |
| bool | isSet () const | 
| return true if the variable is set  More... | |
| void | setSet (bool newVal) | 
| define if the variable is set  More... | |
| Protected Attributes | |
| T | m_data | 
| the value  More... | |
| bool | m_set | 
| a flag to know if the variable is set or not  More... | |
a generic variable template: value + flag to know if the variable is set
| 
 | inline | 
constructor
| 
 | inlineexplicit | 
constructor with a default value
| 
 | inline | 
copy constructor
| 
 | inline | 
return the current value
Referenced by MWAWFont::Line::addTo(), MWAWParagraph::addTo(), MWAWFont::addTo(), MWAWFont::addToListLevel(), MWAWFont::Line::cmp(), MsWrdStruct::Font::cmp(), MWAWFont::cmp(), MWAWFont::deltaLetterSpacing(), MWAWFont::deltaLetterSpacingUnit(), MWAWFont::flags(), MWAWFont::getBackgroundColor(), MWAWFont::getColor(), MWAWFont::getDebugString(), RagTime5StyleManager::getLineColor(), MWAWFont::hasColor(), MWAWFont::id(), MsWrdStruct::Font::insert(), MsWrdStruct::Table::insert(), MsWrdStruct::Paragraph::inTable(), MWAWFont::language(), MsWrdStruct::operator<<(), operator<<(), MsWrdText::prepareTableLimits(), MsWrdStruct::Paragraph::read(), MsWrd1Parser::readParagraph(), MacWrtParser::readParagraph(), ClarisDrawText::readParagraph(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), MsWks3Text::readParagraph(), ClarisWksText::readParagraph(), WriteNowText::readParagraph(), NisusWrtText::readParagraphs(), LightWayTxtText::readRulers(), MsWrdTextStyles::readSection(), MsWrdTextStyles::readStylesFont(), NisusWrtText::setProperty(), MsWrdTextStyles::setProperty(), MWAWFont::size(), MsWrdStruct::Font::updateFontToFinalState(), ClarisDrawTextInternal::Paragraph::updateListLevel(), ClarisWksTextInternal::Paragraph::updateListLevel(), RagTime5StyleManager::updateTextStyles(), MoreTextInternal::Paragraph::updateToFinalState(), and MWAWFont::widthStreching().
| 
 | inline | 
update the current value if orig is set
Referenced by MWAWFont::addTo(), MsWrdStruct::Font::insert(), MsWrdStruct::Section::insert(), MWAWParagraph::insert(), MsWrdStruct::Table::insert(), MsWrdStruct::Table::Cell::insert(), MWAWFont::insert(), MsWrdStruct::ParagraphInfo::insert(), and MsWrdStruct::Paragraph::insert().
| 
 | inline | 
return true if the variable is set
Referenced by MWAWFont::Line::addTo(), MWAWFont::addTo(), MWAWFont::addToListLevel(), MWAWFont::Line::cmp(), ClarisWksStruct::DSET::findForbiddenPagesBreaking(), MWAWFont::getDebugString(), MsWrdTextStyles::getSectionFont(), MsWrdTextStyles::getSectionParagraph(), MWAWFont::hasColor(), MsWrdStruct::Font::insert(), MWAWParagraph::insert(), RagTime5StyleManager::GraphicStyle::insert(), MsWrdStruct::Table::insert(), MWAWFont::insert(), RagTime5StyleManager::TextStyle::insert(), MsWrdStruct::Paragraph::insert(), RagTime5StyleManager::GraphicStyle::isDefault(), RagTime5StyleManager::TextStyle::isDefault(), MWAWFont::isSet(), MsWrdStruct::operator<<(), operator<<(), MsWrdText::prepareParagraphProperties(), MsWrdText::prepareTableLimits(), MsWrd1Parser::readParagraph(), ClarisWksDocument::updateChildPositions(), MsWrdStruct::Font::updateFontToFinalState(), MsWrdStruct::Paragraph::updateParagraphToFinalState(), and RagTime5StyleManager::updateTextStyles().
| 
 | inline | 
operator*
| 
 | inline | 
operator*
| 
 | inline | 
operator*
| 
 | inline | 
operator*
| 
 | default | 
copy operator
| 
 | inline | 
set a value
| 
 | inline | 
define if the variable is set
Referenced by MWAWParagraph::MWAWParagraph().
| 
 | protected | 
| 
 | protected | 
a flag to know if the variable is set or not
Referenced by MWAWVariable< MsWrdStruct::Table >::insert(), MWAWVariable< MsWrdStruct::Table >::isSet(), MWAWVariable< MsWrdStruct::Table >::operator *(), MWAWVariable< MsWrdStruct::Table >::operator->(), MWAWVariable< MsWrdStruct::Table >::operator=(), and MWAWVariable< MsWrdStruct::Table >::setSet().