LibreOffice Module oox (master)  1
Public Member Functions | Private Attributes | List of all members
oox::OptValue< Type > Class Template Reference

Optional value, similar to ::std::optional<>, with convenience accessors. More...

#include <helper.hxx>

Inheritance diagram for oox::OptValue< Type >:
[legend]
Collaboration diagram for oox::OptValue< Type >:
[legend]

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 Typeget () const
 
const Typeget (const Type &rDefValue) const
 
void set (const Type &rValue)
 
Typeuse ()
 
OptValueoperator= (const Type &rValue)
 
bool operator== (const OptValue &rValue) const
 
void assignIfUsed (const OptValue &rValue)
 

Private Attributes

Type maValue
 
bool mbHasValue
 

Detailed Description

template<typename Type>
class oox::OptValue< Type >

Optional value, similar to ::std::optional<>, with convenience accessors.

Definition at line 174 of file helper.hxx.

Constructor & Destructor Documentation

template<typename Type>
oox::OptValue< Type >::OptValue ( )
inline

Definition at line 177 of file helper.hxx.

template<typename Type>
oox::OptValue< Type >::OptValue ( const Type rValue)
inlineexplicit

Definition at line 178 of file helper.hxx.

template<typename Type>
oox::OptValue< Type >::OptValue ( bool  bHasValue,
const Type rValue 
)
inlineexplicit

Definition at line 179 of file helper.hxx.

Member Function Documentation

template<typename Type>
void oox::OptValue< Type >::assignIfUsed ( const OptValue< Type > &  rValue)
inline
template<typename Type>
bool oox::OptValue< Type >::differsFrom ( const Type rValue) const
inline
template<typename Type>
const Type& oox::OptValue< Type >::get ( ) const
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::drawingml::ConditionAtom::getDecision(), 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::ShapeGroupContext::onCreateContext(), oox::drawingml::table::TableStyleListFragmentHandler::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::TextTabStopListContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::ppt::PPTGraphicShapeContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::drawingml::GraphicShapeContext::onCreateContext(), oox::ppt::LayoutFragmentHandler::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().

template<typename Type>
const Type& oox::OptValue< Type >::get ( const Type rDefValue) const
inline

Definition at line 186 of file helper.hxx.

template<typename Type>
bool oox::OptValue< Type >::has ( ) const
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::ConditionAtom::getDecision(), 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::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().

template<typename Type>
bool oox::OptValue< Type >::operator! ( ) const
inline

Definition at line 182 of file helper.hxx.

template<typename Type>
OptValue& oox::OptValue< Type >::operator= ( const Type rValue)
inline

Definition at line 191 of file helper.hxx.

template<typename Type>
bool oox::OptValue< Type >::operator== ( const OptValue< Type > &  rValue) const
inline

Definition at line 192 of file helper.hxx.

template<typename Type>
void oox::OptValue< Type >::set ( const Type rValue)
inline
template<typename Type>
Type& oox::OptValue< Type >::use ( )
inline

Member Data Documentation

template<typename Type>
Type oox::OptValue< Type >::maValue
private
template<typename Type>
bool oox::OptValue< Type >::mbHasValue
private

The documentation for this class was generated from the following file: