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