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 &orig) |
| 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
| MWAWVariable< T >::MWAWVariable | ( | ) | [inline] |
constructor
| MWAWVariable< T >::MWAWVariable | ( | T const & | def | ) | [inline] |
constructor with a default value
| MWAWVariable< T >::MWAWVariable | ( | MWAWVariable< T > const & | orig | ) | [inline] |
copy constructor
| T const& MWAWVariable< T >::get | ( | ) | const [inline] |
return the current value
Referenced by MWAWFont::Line::addTo(), MWAWParagraph::addTo(), MWAWFont::addTo(), MWAWFont::Line::cmp(), MsWrdStruct::Font::cmp(), MWAWFont::cmp(), MWAWFont::deltaLetterSpacing(), MWAWFont::flags(), MWAWFont::getBackgroundColor(), MWAWFont::getColor(), MWAWFont::getDebugString(), MsWrdStruct::Paragraph::getFont(), MsWrdStruct::Paragraph::getNumLines(), MWAWFont::getOverline(), MsWrdTextStyles::getSectionFont(), MWAWFont::getStrikeOut(), MWAWFont::getUnderline(), MWAWFont::hasColor(), MWAWFont::id(), MsWrdStruct::Font::insert(), MsWrdStruct::Table::insert(), MsWrdStruct::Paragraph::insert(), MsWrdStruct::Paragraph::inTable(), MWAWFont::language(), MsWrdStruct::operator<<(), operator<<(), MsWrdText::prepareTableLimits(), MsWrdStruct::Paragraph::print(), MsWrdStruct::Paragraph::read(), MsWrd1Parser::readParagraph(), MacWrtParser::readParagraph(), ClarisDrawText::readParagraph(), HanMacWrdJText::readParagraph(), HanMacWrdKText::readParagraph(), MsWks3Text::readParagraph(), WriteNowText::readParagraph(), ClarisWksText::readParagraph(), NisusWrtText::readParagraphs(), LightWayTxtText::readRulers(), MsWrdTextStyles::readSection(), MsWrdTextStyles::readStylesFont(), MWAWFont::script(), MsWrdText::sendTable(), MsWrdText::sendText(), NisusWrtText::setProperty(), MsWrdTextStyles::setProperty(), MWAWFont::size(), MWAWFont::texteWidthScaling(), MsWrdStruct::Font::updateFontToFinalState(), ClarisDrawTextInternal::Paragraph::updateListLevel(), ClarisWksTextInternal::Paragraph::updateListLevel(), and MoreTextInternal::Paragraph::updateToFinalState().
| void MWAWVariable< T >::insert | ( | MWAWVariable< T > const & | orig | ) | [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().
| bool MWAWVariable< T >::isSet | ( | ) | const [inline] |
return true if the variable is set
Referenced by MWAWFont::Line::addTo(), MWAWFont::addTo(), MWAWFont::Line::cmp(), MWAWFont::getDebugString(), MsWrdStruct::Paragraph::getFont(), MsWrdTextStyles::getSectionFont(), MsWrdTextStyles::getSectionParagraph(), MWAWFont::hasColor(), MWAWFont::hasDecorationLines(), MsWrdStruct::Font::insert(), MWAWParagraph::insert(), MsWrdStruct::Table::insert(), MWAWFont::insert(), MsWrdStruct::Paragraph::insert(), RagTime5StructManager::TextStyle::isDefault(), MsWrdStruct::ParagraphInfo::isEmpty(), MWAWFont::isSet(), MsWrdStruct::operator<<(), operator<<(), MsWrdText::prepareFontProperties(), MsWrdText::prepareParagraphProperties(), MsWrdText::prepareTableLimits(), MsWrdStruct::Paragraph::print(), MsWrdStruct::Paragraph::read(), MsWrd1Parser::readParagraph(), MWAWFont::resetDecorationLines(), MsWrdTextStyles::sendSection(), MsWrdText::sendTable(), MsWrdStruct::Font::updateFontToFinalState(), and MsWrdStruct::Paragraph::updateParagraphToFinalState().
| T const& MWAWVariable< T >::operator* | ( | ) | const [inline] |
operator*
| T& MWAWVariable< T >::operator* | ( | ) | [inline] |
operator*
| T const* MWAWVariable< T >::operator-> | ( | ) | const [inline] |
operator*
| T* MWAWVariable< T >::operator-> | ( | ) | [inline] |
operator*
| MWAWVariable& MWAWVariable< T >::operator= | ( | MWAWVariable< T > const & | orig | ) | [inline] |
copy operator
| MWAWVariable& MWAWVariable< T >::operator= | ( | T const & | val | ) | [inline] |
set a value
| void MWAWVariable< T >::setSet | ( | bool | newVal | ) | [inline] |
define if the variable is set
Referenced by MWAWParagraph::MWAWParagraph(), and MsWrdStruct::Paragraph::read().
T MWAWVariable< T >::m_data [protected] |
bool MWAWVariable< T >::m_set [protected] |
a flag to know if the variable is set or not
Referenced by MWAWVariable< LineSpacingType >::insert(), MWAWVariable< LineSpacingType >::isSet(), MWAWVariable< LineSpacingType >::operator*(), MWAWVariable< LineSpacingType >::operator->(), MWAWVariable< LineSpacingType >::operator=(), and MWAWVariable< LineSpacingType >::setSet().