a generic variable template: value + flag to know if the variable is set More...
#include <libmwaw_internal.hxx>
Public Member Functions | |
Variable () | |
constructor More... | |
Variable (T def) | |
constructor with a default value More... | |
Variable (Variable const &orig) | |
copy constructor More... | |
Variable & | operator= (Variable const &orig) |
copy operator More... | |
Variable & | operator= (T val) |
set a value More... | |
void | insert (Variable 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 |
return the current value
Referenced by MWAWParagraph::addTabsTo(), MWAWFont::Line::addTo(), MWAWFont::addTo(), MWAWFont::Line::cmp(), MSWStruct::Font::cmp(), MWAWFont::cmp(), MWAWFont::deltaLetterSpacing(), MWAWFont::flags(), MWAWFont::getBackgroundColor(), MWAWFont::getColor(), MWAWFont::getDebugString(), MWAWFont::hasColor(), MWAWFont::id(), MSWStruct::Font::insert(), MSWStruct::Paragraph::insert(), MSWStruct::Paragraph::inTable(), MSWStruct::ParagraphInfo::isLineSet(), MWAWFont::language(), MSWStruct::operator<<(), operator<<(), MSWText::prepareData(), MSWText::prepareTables(), MSWStruct::Paragraph::read(), MSWTextStyles::readParagraph(), MSW1Parser::readParagraph(), HMWJText::readParagraph(), HMWKText::readParagraph(), MWParser::readParagraph(), MSK3Text::readParagraph(), CWText::readParagraph(), WNText::readParagraph(), NSText::readParagraphs(), LWText::readRulers(), MSWTextStyles::readSection(), MSWTextStyles::readStylesFont(), FWText::send(), MSWText::sendTable(), MSWText::sendText(), NSText::setProperty(), MSWTextStyles::setProperty(), MWAWFont::size(), MWAWFont::texteWidthScaling(), MSWStruct::Font::updateFontToFinalState(), and CWTextInternal::Paragraph::updateListLevel().
update the current value if orig is set
Referenced by MWAWFont::addTo(), MSWStruct::Font::insert(), MSWStruct::Section::insert(), MWAWParagraph::insert(), MSWStruct::Table::insert(), MWAWFont::insert(), MSWStruct::Table::Cell::insert(), MSWStruct::ParagraphInfo::insert(), and MSWStruct::Paragraph::insert().
|
inline |
return true if the variable is set
Referenced by MWAWFont::Line::addTo(), MWAWFont::addTo(), MWAWFont::Line::cmp(), MWAWFont::getDebugString(), MSWTextStyles::getSectionFont(), MSWTextStyles::getSectionParagraph(), MWAWFont::hasColor(), MSWStruct::Font::insert(), MWAWFont::insert(), MSWStruct::Paragraph::insert(), MWAWFont::isSet(), MSWStruct::operator<<(), operator<<(), MSWTextStyles::readParagraph(), MSW1Parser::readParagraph(), MSWText::sendTable(), and MSWStruct::Font::updateFontToFinalState().
|
inline |
operator*
|
inline |
operator*
|
inline |
operator*
|
inline |
operator*
copy operator
|
inline |
define if the variable is set
Referenced by MSWStruct::Paragraph::insert(), and MWAWParagraph::MWAWParagraph().
|
protected |
|
protected |
a flag to know if the variable is set or not
Referenced by Variable< LineSpacingType >::insert(), Variable< LineSpacingType >::isSet(), Variable< LineSpacingType >::operator*(), Variable< LineSpacingType >::operator->(), Variable< LineSpacingType >::operator=(), and Variable< LineSpacingType >::setSet().