LibreOffice Module oox (master)
1
|
Optional value, similar to ::std::optional<>, with convenience accessors. More...
#include <helper.hxx>
Public Member Functions | |
OptValue () | |
OptValue (const Type &rValue) | |
OptValue (bool bHasValue, const Type &rValue) | |
bool | has () const |
bool | operator! () const |
bool | differsFrom (const Type &rValue) const |
const Type & | get () const |
const Type & | get (const Type &rDefValue) const |
void | set (const Type &rValue) |
Type & | use () |
OptValue & | operator= (const Type &rValue) |
bool | operator== (const OptValue &rValue) const |
void | assignIfUsed (const OptValue &rValue) |
Private Attributes | |
Type | maValue |
bool | mbHasValue |
Optional value, similar to ::std::optional<>, with convenience accessors.
Definition at line 174 of file helper.hxx.
|
inline |
Definition at line 177 of file helper.hxx.
|
inlineexplicit |
Definition at line 178 of file helper.hxx.
|
inlineexplicit |
Definition at line 179 of file helper.hxx.
|
inline |
Definition at line 196 of file helper.hxx.
Referenced by oox::drawingml::EffectGlowProperties::assignUsed(), oox::drawingml::EffectSoftEdgeProperties::assignUsed(), oox::drawingml::LineArrowProperties::assignUsed(), oox::drawingml::EffectShadowProperties::assignUsed(), oox::drawingml::GradientFillProperties::assignUsed(), oox::drawingml::LineProperties::assignUsed(), oox::drawingml::TextCharacterProperties::assignUsed(), oox::drawingml::PatternFillProperties::assignUsed(), oox::drawingml::BlipFillProperties::assignUsed(), oox::vml::ShapeTypeModel::assignUsed(), oox::drawingml::FillProperties::assignUsed(), oox::vml::StrokeArrowModel::assignUsed(), oox::vml::StrokeModel::assignUsed(), oox::vml::FillModel::assignUsed(), and oox::vml::ShapeTypeContext::onCreateContext().
|
inline |
Definition at line 183 of file helper.hxx.
Referenced by oox::drawingml::table::applyLineAttributes(), oox::drawingml::chart::DataPointConverter::convertFromModel(), oox::drawingml::LineProperties::getLineStyle(), and oox::drawingml::LineProperties::pushToPropMap().
|
inline |
Definition at line 185 of file helper.hxx.
Referenced by oox::drawingml::table::applyLineAttributes(), oox::vml::TextBox::convert(), oox::drawingml::chart::View3DConverter::convertFromModel(), oox::drawingml::chart::DataLabelConverter::convertFromModel(), oox::drawingml::chart::AxisConverter::convertFromModel(), oox::drawingml::chart::TrendlineConverter::convertFromModel(), oox::drawingml::chart::DataPointConverter::convertFromModel(), oox::vml::ShapeBase::convertShapeProperties(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::chart::SeriesConverter::createDataSeries(), oox::vml::SimpleShape::createPictureObject(), oox::vml::ConversionHelper::decodeColor(), oox::vml::ShapeTypeContext::decodeFragmentPath(), oox::drawingml::DiagramDefinitionContext::DiagramDefinitionContext(), oox::drawingml::Shape::getActualFillProperties(), oox::drawingml::FillProperties::getBestSolidColor(), oox::AttributeList::getBool(), oox::drawingml::TextCharacterProperties::getCharHeightPoints(), oox::vml::ShapeType::getCoordSystem(), oox::AttributeList::getDouble(), oox::drawingml::getEmbeddedWAVAudioFile(), oox::vml::ShapeType::getGraphicPath(), oox::AttributeList::getHyper(), oox::AttributeList::getInteger(), oox::AttributeList::getIntegerHex(), oox::drawingml::LineProperties::getLineCap(), oox::drawingml::LineProperties::getLineJoint(), oox::drawingml::LineProperties::getLineStyle(), oox::drawingml::LineProperties::getLineWidth(), oox::vml::ShapeType::getShapeType(), oox::AttributeList::getUnsignedHex(), oox::AttributeList::getXString(), oox::drawingml::HyperLinkContext::HyperLinkContext(), oox::drawingml::TextField::insertAt(), oox::drawingml::TextRun::insertAt(), oox::drawingml::TextParagraph::insertAt(), oox::drawingml::LayoutNodeContext::LayoutNodeContext(), oox::drawingml::AlgAtom::layoutShape(), oox::drawingml::lcl_createPresetShape(), oox::vml::lcl_setSurround(), oox::ppt::PresPropsFragmentHandler::onCreateContext(), oox::drawingml::ThemeElementsContext::onCreateContext(), oox::drawingml::CustomShapeGeometryContext::onCreateContext(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::DiagramDefinitionContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::drawingml::TextSpacingContext::onCreateContext(), oox::drawingml::Transform2DContext::onCreateContext(), oox::drawingml::DataModelContext::onCreateContext(), oox::drawingml::table::TableContext::onCreateContext(), oox::drawingml::table::TableStyleListFragmentHandler::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::drawingml::TextTabStopListContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::ppt::PPTGraphicShapeContext::onCreateContext(), oox::drawingml::GraphicShapeContext::onCreateContext(), oox::ppt::LayoutFragmentHandler::onCreateContext(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::drawingml::ThemeFragmentHandler::onCreateContext(), oox::drawingml::GraphicalObjectFrameContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::drawingml::DiagramGraphicDataContext::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::drawingml::TextEffectsContext::pushAttributeToGrabBag(), oox::drawingml::TextBodyProperties::pushRotationAdjustments(), oox::drawingml::GraphicProperties::pushToPropMap(), oox::drawingml::LineProperties::pushToPropMap(), oox::drawingml::TextCharacterProperties::pushToPropMap(), oox::drawingml::FillProperties::pushToPropMap(), oox::vml::StrokeModel::pushToPropMap(), oox::vml::FillModel::pushToPropMap(), oox::vml::ShadowModel::pushToPropMap(), oox::vml::TextpathModel::pushToPropMap(), oox::drawingml::table::TableCell::pushToXCell(), oox::drawingml::TextBodyProperties::pushVertSimulation(), oox::vml::ShapeContext::setPoints(), oox::drawingml::table::TableCellContext::TableCellContext(), oox::drawingml::table::TableRowContext::TableRowContext(), oox::drawingml::table::TableStyleContext::TableStyleContext(), oox::vml::TextBoxContext::TextBoxContext(), oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext(), oox::drawingml::TextFieldContext::TextFieldContext(), oox::drawingml::TextParagraphPropertiesContext::TextParagraphPropertiesContext(), and oox::vml::TextPortionContext::TextPortionContext().
|
inline |
Definition at line 186 of file helper.hxx.
|
inline |
Definition at line 181 of file helper.hxx.
Referenced by oox::drawingml::table::applyLineAttributes(), oox::vml::TextBox::convert(), oox::drawingml::chart::DataLabelConverter::convertFromModel(), oox::drawingml::chart::AxisConverter::convertFromModel(), oox::drawingml::chart::TrendlineConverter::convertFromModel(), oox::vml::ShapeBase::convertShapeProperties(), oox::drawingml::Shape::createAndInsert(), oox::vml::SimpleShape::createPictureObject(), oox::vml::ConversionHelper::decodeColor(), oox::vml::ShapeTypeContext::decodeFragmentPath(), oox::drawingml::FillProperties::getBestSolidColor(), oox::drawingml::Generic3DProperties::getBevelAttributes(), oox::AttributeList::getBool(), oox::drawingml::Generic3DProperties::getCameraAttributes(), oox::drawingml::TextCharacterProperties::getCharHeightPoints(), oox::drawingml::Generic3DProperties::getLightRigAttributes(), oox::drawingml::LineProperties::getLineCap(), oox::drawingml::LineProperties::getLineJoint(), oox::drawingml::Generic3DProperties::getShape3DAttributes(), oox::drawingml::TextField::insertAt(), oox::drawingml::TextRun::insertAt(), oox::drawingml::TextParagraph::insertAt(), oox::drawingml::AlgAtom::layoutShape(), oox::drawingml::lcl_createPresetShape(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::ppt::LayoutFragmentHandler::onCreateContext(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::drawingml::ColorValueContext::onStartElement(), oox::drawingml::GraphicProperties::pushToPropMap(), oox::drawingml::LineProperties::pushToPropMap(), oox::drawingml::TextCharacterProperties::pushToPropMap(), oox::drawingml::FillProperties::pushToPropMap(), oox::vml::FillModel::pushToPropMap(), oox::vml::ShadowModel::pushToPropMap(), oox::vml::TextpathModel::pushToPropMap(), oox::drawingml::table::TableCell::pushToXCell(), oox::vml::ShapeContext::setPoints(), and oox::vml::TextPortionContext::TextPortionContext().
|
inline |
Definition at line 182 of file helper.hxx.
|
inline |
Definition at line 191 of file helper.hxx.
|
inline |
Definition at line 192 of file helper.hxx.
|
inline |
Definition at line 188 of file helper.hxx.
Referenced by oox::drawingml::table::applyTableStylePart(), oox::OptValue< DoublePair >::assignIfUsed(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::TextRun::insertAt(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::OptValue< DoublePair >::operator=(), oox::drawingml::table::TableCell::pushToXCell(), and oox::vml::ShapeContext::setPoints().
|
inline |
Definition at line 189 of file helper.hxx.
Referenced by oox::drawingml::chart::DataLabelConverter::convertFromModel(), oox::drawingml::Generic3DProperties::getBevelAttributes(), oox::drawingml::Generic3DProperties::getCameraAttributes(), oox::drawingml::Generic3DProperties::getLightRigAttributes(), oox::drawingml::Generic3DProperties::getShape3DAttributes(), and oox::drawingml::ColorValueContext::onStartElement().
|
private |
Definition at line 199 of file helper.hxx.
Referenced by oox::OptValue< DoublePair >::assignIfUsed(), oox::OptValue< DoublePair >::differsFrom(), oox::OptValue< DoublePair >::get(), oox::OptValue< DoublePair >::operator==(), oox::OptValue< DoublePair >::set(), and oox::OptValue< DoublePair >::use().
|
private |
Definition at line 200 of file helper.hxx.
Referenced by oox::OptValue< DoublePair >::assignIfUsed(), oox::OptValue< DoublePair >::differsFrom(), oox::OptValue< DoublePair >::get(), oox::OptValue< DoublePair >::has(), oox::OptValue< DoublePair >::operator!(), oox::OptValue< DoublePair >::operator==(), oox::OptValue< DoublePair >::set(), and oox::OptValue< DoublePair >::use().