LibreOffice Module oox (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
oox::AttributeList Class Reference

Provides access to attribute values of an element. More...

#include <attributelist.hxx>

Collaboration diagram for oox::AttributeList:
[legend]

Public Member Functions

 AttributeList (const css::uno::Reference< css::xml::sax::XFastAttributeList > &rxAttribs)
 
const css::uno::Reference< css::xml::sax::XFastAttributeList > & getFastAttributeList () const
 Returns the wrapped com.sun.star.xml.sax.XFastAttributeList object. More...
 
bool hasAttribute (sal_Int32 nAttrToken) const
 Returns true, if the specified attribute is present. More...
 
std::optional< sal_Int32 > getToken (sal_Int32 nAttrToken) const
 Returns the token identifier of the value of the specified attribute. More...
 
oox::drawingml::Color getHighlightColor (sal_Int32 nAttrToken) const
 Returns the Color object of highlight of the text. More...
 
std::optional< OUString > getString (sal_Int32 nAttrToken) const
 Returns the string value of the specified attribute. More...
 
OUString getStringDefaulted (sal_Int32 nAttrToken) const
 Returns the string value of the specified attribute, returns an empty string if attribute not present. More...
 
std::optional< OUString > getXString (sal_Int32 nAttrToken) const
 Returns the string value of the specified attribute. More...
 
std::optional< double > getDouble (sal_Int32 nAttrToken) const
 Returns the double value of the specified attribute. More...
 
std::optional< sal_Int32 > getInteger (sal_Int32 nAttrToken) const
 Returns the 32-bit signed integer value of the specified attribute (decimal). More...
 
std::optional< sal_uInt32 > getUnsigned (sal_Int32 nAttrToken) const
 Returns the 32-bit unsigned integer value of the specified attribute (decimal). More...
 
std::optional< sal_Int64 > getHyper (sal_Int32 nAttrToken) const
 Returns the 64-bit signed integer value of the specified attribute (decimal). More...
 
std::optional< sal_Int32 > getIntegerHex (sal_Int32 nAttrToken) const
 Returns the 32-bit signed integer value of the specified attribute (hexadecimal). More...
 
std::optional< bool > getBool (sal_Int32 nAttrToken) const
 Returns the boolean value of the specified attribute. More...
 
std::optional< css::util::DateTime > getDateTime (sal_Int32 nAttrToken) const
 Returns the date/time value of the specified attribute. More...
 
sal_Int32 getToken (sal_Int32 nAttrToken, sal_Int32 nDefault) const
 Returns the token identifier of the value of the specified attribute, or the passed default identifier if the attribute is missing. More...
 
OUString getString (sal_Int32 nAttrToken, const OUString &rDefault) const
 Returns the string value of the specified attribute, or the passed default string if the attribute is missing. More...
 
OUString getXString (sal_Int32 nAttrToken, const OUString &rDefault) const
 Returns the decoded string value of the specified attribute, or the passed default string if the attribute is missing. More...
 
std::string_view getView (sal_Int32 nAttrToken) const
 
double getDouble (sal_Int32 nAttrToken, double fDefault) const
 Returns the double value of the specified attribute, or the passed default value if the attribute is missing or not convertible to a double. More...
 
sal_Int32 getInteger (sal_Int32 nAttrToken, sal_Int32 nDefault) const
 Returns the 32-bit signed integer value of the specified attribute, or the passed default value if the attribute is missing or not convertible to integer. More...
 
sal_uInt32 getUnsigned (sal_Int32 nAttrToken, sal_uInt32 nDefault) const
 Returns the 32-bit unsigned integer value of the specified attribute, or the passed default value if the attribute is missing or not convertible to unsigned. More...
 
sal_Int64 getHyper (sal_Int32 nAttrToken, sal_Int64 nDefault) const
 Returns the 64-bit signed integer value of the specified attribute, or the passed default value if the attribute is missing or not convertible to integer. More...
 
sal_Int32 getIntegerHex (sal_Int32 nAttrToken, sal_Int32 nDefault) const
 Returns the 32-bit signed integer value of the specified attribute (hexadecimal), or the passed default value if the attribute is missing or not convertible. More...
 
sal_uInt32 getUnsignedHex (sal_Int32 nAttrToken, sal_uInt32 nDefault) const
 
bool getBool (sal_Int32 nAttrToken, bool bDefault) const
 Returns the boolean value of the specified attribute, or the passed default value if the attribute is missing or not convertible to bool. More...
 
css::util::DateTime getDateTime (sal_Int32 nAttrToken, const css::util::DateTime &rDefault) const
 Returns the date/time value of the specified attribute, or the default value if the attribute is missing or not convertible to a date/time value. More...
 
std::vector< sal_Int32 > getTokenList (sal_Int32 nAttrToken) const
 

Private Member Functions

sax_fastparser::FastAttributeListgetAttribList () const
 

Private Attributes

css::uno::Reference< css::xml::sax::XFastAttributeList > mxAttribs
 
sax_fastparser::FastAttributeListmpAttribList
 

Detailed Description

Provides access to attribute values of an element.

Wraps a com.sun.star.xml.sax.XFastAttributeList object. Provides convenience functions that convert the string value of an attribute to various other data types.

Definition at line 82 of file attributelist.hxx.

Constructor & Destructor Documentation

◆ AttributeList()

oox::AttributeList::AttributeList ( const css::uno::Reference< css::xml::sax::XFastAttributeList > &  rxAttribs)
explicit

Member Function Documentation

◆ getAttribList()

sax_fastparser::FastAttributeList * oox::AttributeList::getAttribList ( ) const
private

◆ getBool() [1/2]

std::optional< bool > oox::AttributeList::getBool ( sal_Int32  nAttrToken) const

Returns the boolean value of the specified attribute.

Definition at line 232 of file attributelist.cxx.

References sax_fastparser::FastAttributeList::getAsView(), getAttribList(), getInteger(), getToken(), and XML_TOKEN_INVALID.

Referenced by oox::drawingml::BlipFillContext::BlipFillContext(), oox::drawingml::ColorChangeContext::ColorChangeContext(), oox::ppt::CommonTimeNodeContext::CommonTimeNodeContext(), getBool(), oox::drawingml::getEmbeddedWAVAudioFile(), oox::drawingml::GradientFillContext::GradientFillContext(), oox::drawingml::IteratorAttr::loadFromXAttr(), oox::drawingml::OleObjectGraphicDataContext::onCreateContext(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::drawingml::EffectPropertiesContext::onCreateContext(), oox::drawingml::table::TableCellContext::onCreateContext(), oox::drawingml::table::TableContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::ppt::LayoutFragmentHandler::onCreateContext(), oox::ppt::PresPropsFragmentHandler::onCreateContext(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::ppt::SlideTransitionContext::onCreateContext(), oox::ppt::SoundActionContext::onCreateContext(), oox::ppt::AnimVariantContext::onCreateContext(), oox::ppt::CommonTimeNodeContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::CatAxisContext::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::ChartSpaceFragment::onCreateContext(), oox::drawingml::chart::DataTableContext::onCreateContext(), oox::drawingml::chart::View3DContext::onCreateContext(), oox::drawingml::chart::DataLabelContext::onCreateContext(), oox::drawingml::chart::DataLabelsContext::onCreateContext(), oox::drawingml::chart::PictureOptionsContext::onCreateContext(), oox::drawingml::chart::ErrorBarContext::onCreateContext(), oox::drawingml::chart::TrendlineContext::onCreateContext(), oox::drawingml::chart::DataPointContext::onCreateContext(), oox::drawingml::chart::BarSeriesContext::onCreateContext(), oox::drawingml::chart::BubbleSeriesContext::onCreateContext(), oox::drawingml::chart::LineSeriesContext::onCreateContext(), oox::drawingml::chart::RadarSeriesContext::onCreateContext(), oox::drawingml::chart::ScatterSeriesContext::onCreateContext(), oox::drawingml::chart::TitleContext::onCreateContext(), oox::drawingml::chart::LegendEntryContext::onCreateContext(), oox::drawingml::chart::LegendContext::onCreateContext(), oox::drawingml::chart::AreaTypeGroupContext::onCreateContext(), oox::drawingml::chart::BarTypeGroupContext::onCreateContext(), oox::drawingml::chart::BubbleTypeGroupContext::onCreateContext(), oox::drawingml::chart::LineTypeGroupContext::onCreateContext(), oox::drawingml::chart::PieTypeGroupContext::onCreateContext(), oox::drawingml::chart::RadarTypeGroupContext::onCreateContext(), oox::drawingml::chart::ScatterTypeGroupContext::onCreateContext(), oox::drawingml::chart::SurfaceTypeGroupContext::onCreateContext(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::chart::NumberFormat::setAttributes(), oox::ppt::SlideTransitionContext::SlideTransitionContext(), oox::drawingml::table::TableCellContext::TableCellContext(), oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext(), oox::drawingml::TextParagraphPropertiesContext::TextParagraphPropertiesContext(), and oox::drawingml::Transform2DContext::Transform2DContext().

◆ getBool() [2/2]

bool oox::AttributeList::getBool ( sal_Int32  nAttrToken,
bool  bDefault 
) const

Returns the boolean value of the specified attribute, or the passed default value if the attribute is missing or not convertible to bool.

Definition at line 347 of file attributelist.cxx.

References getBool().

◆ getDateTime() [1/2]

std::optional< util::DateTime > oox::AttributeList::getDateTime ( sal_Int32  nAttrToken) const

Returns the date/time value of the specified attribute.

Definition at line 261 of file attributelist.cxx.

References getView(), SAL_WARN, and o3tl::toInt32().

◆ getDateTime() [2/2]

css::util::DateTime oox::AttributeList::getDateTime ( sal_Int32  nAttrToken,
const css::util::DateTime &  rDefault 
) const

Returns the date/time value of the specified attribute, or the default value if the attribute is missing or not convertible to a date/time value.

◆ getDouble() [1/2]

std::optional< double > oox::AttributeList::getDouble ( sal_Int32  nAttrToken) const

◆ getDouble() [2/2]

double oox::AttributeList::getDouble ( sal_Int32  nAttrToken,
double  fDefault 
) const

Returns the double value of the specified attribute, or the passed default value if the attribute is missing or not convertible to a double.

Definition at line 317 of file attributelist.cxx.

References getDouble().

◆ getFastAttributeList()

const css::uno::Reference< css::xml::sax::XFastAttributeList > & oox::AttributeList::getFastAttributeList ( ) const
inline

◆ getHighlightColor()

oox::drawingml::Color oox::AttributeList::getHighlightColor ( sal_Int32  nAttrToken) const

◆ getHyper() [1/2]

std::optional< sal_Int64 > oox::AttributeList::getHyper ( sal_Int32  nAttrToken) const

Returns the 64-bit signed integer value of the specified attribute (decimal).

Definition at line 218 of file attributelist.cxx.

References getView(), and o3tl::toInt64().

Referenced by getHyper(), and oox::drawingml::chart::ShapeAnchor::importExt().

◆ getHyper() [2/2]

sal_Int64 oox::AttributeList::getHyper ( sal_Int32  nAttrToken,
sal_Int64  nDefault 
) const

Returns the 64-bit signed integer value of the specified attribute, or the passed default value if the attribute is missing or not convertible to integer.

Definition at line 332 of file attributelist.cxx.

References getHyper().

◆ getInteger() [1/2]

std::optional< sal_Int32 > oox::AttributeList::getInteger ( sal_Int32  nAttrToken) const

Returns the 32-bit signed integer value of the specified attribute (decimal).

Definition at line 204 of file attributelist.cxx.

References sax_fastparser::FastAttributeList::getAsInteger(), getAttribList(), and nValue.

Referenced by oox::ppt::CommonTimeNodeContext::CommonTimeNodeContext(), oox::drawingml::DiagramQStylesFragmentHandler::createStyleMatrixContext(), getBool(), getInteger(), oox::drawingml::IteratorAttr::loadFromXAttr(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::drawingml::EffectPropertiesContext::onCreateContext(), oox::drawingml::LinePropertiesContext::onCreateContext(), oox::drawingml::Scene3DRotationPropertiesContext::onCreateContext(), oox::drawingml::Scene3DPropertiesContext::onCreateContext(), oox::drawingml::SceneText3DPropertiesContext::onCreateContext(), oox::drawingml::Shape3DPropertiesContext::onCreateContext(), oox::drawingml::ShapeStyleContext::onCreateContext(), oox::drawingml::table::TableBackgroundStyleContext::onCreateContext(), oox::drawingml::table::TableCellContext::onCreateContext(), oox::drawingml::table::TableContext::onCreateContext(), oox::drawingml::table::TableStyleCellStyleContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::drawingml::Transform2DContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::ppt::PresentationFragmentHandler::onCreateContext(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::ppt::AnimVariantContext::onCreateContext(), oox::drawingml::ColorValueContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::ArtisticEffectContext::onCreateContext(), oox::drawingml::BlipContext::onCreateContext(), oox::drawingml::BlipFillContext::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::CatAxisContext::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::SerAxisContext::onCreateContext(), oox::drawingml::chart::ChartSpaceFragment::onCreateContext(), oox::drawingml::chart::DoubleSequenceContext::onCreateContext(), oox::drawingml::chart::StringSequenceContext::onCreateContext(), oox::drawingml::chart::View3DContext::onCreateContext(), oox::drawingml::chart::DataLabelContext::onCreateContext(), oox::drawingml::chart::TrendlineContext::onCreateContext(), oox::drawingml::chart::DataPointContext::onCreateContext(), oox::drawingml::chart::SeriesContextBase::onCreateContext(), oox::drawingml::chart::PieSeriesContext::onCreateContext(), oox::drawingml::chart::LegendEntryContext::onCreateContext(), oox::drawingml::chart::UpDownBarsContext::onCreateContext(), oox::drawingml::chart::AreaTypeGroupContext::onCreateContext(), oox::drawingml::chart::BarTypeGroupContext::onCreateContext(), oox::drawingml::chart::BubbleTypeGroupContext::onCreateContext(), oox::drawingml::chart::LineTypeGroupContext::onCreateContext(), oox::drawingml::chart::PieTypeGroupContext::onCreateContext(), oox::drawingml::chart::RadarTypeGroupContext::onCreateContext(), oox::drawingml::chart::ScatterTypeGroupContext::onCreateContext(), oox::drawingml::chart::SurfaceTypeGroupContext::onCreateContext(), oox::drawingml::ColorValueContext::onStartElement(), oox::vml::TextPortionContext::onStartElement(), oox::drawingml::EffectPropertiesContext::saveUnsupportedAttribs(), oox::drawingml::TextFont::setAttributes(), oox::vml::ShapeTypeContext::ShapeTypeContext(), oox::ppt::SlideTransitionContext::SlideTransitionContext(), oox::drawingml::table::TableCellContext::TableCellContext(), oox::drawingml::table::TableRowContext::TableRowContext(), oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext(), oox::drawingml::TextParagraphPropertiesContext::TextParagraphPropertiesContext(), oox::vml::TextPortionContext::TextPortionContext(), and oox::drawingml::Transform2DContext::Transform2DContext().

◆ getInteger() [2/2]

sal_Int32 oox::AttributeList::getInteger ( sal_Int32  nAttrToken,
sal_Int32  nDefault 
) const

Returns the 32-bit signed integer value of the specified attribute, or the passed default value if the attribute is missing or not convertible to integer.

Definition at line 322 of file attributelist.cxx.

References getInteger().

◆ getIntegerHex() [1/2]

std::optional< sal_Int32 > oox::AttributeList::getIntegerHex ( sal_Int32  nAttrToken) const

◆ getIntegerHex() [2/2]

sal_Int32 oox::AttributeList::getIntegerHex ( sal_Int32  nAttrToken,
sal_Int32  nDefault 
) const

Returns the 32-bit signed integer value of the specified attribute (hexadecimal), or the passed default value if the attribute is missing or not convertible.

Definition at line 337 of file attributelist.cxx.

References getIntegerHex().

◆ getString() [1/2]

std::optional< OUString > oox::AttributeList::getString ( sal_Int32  nAttrToken) const

◆ getString() [2/2]

OUString oox::AttributeList::getString ( sal_Int32  nAttrToken,
const OUString &  rDefault 
) const

Returns the string value of the specified attribute, or the passed default string if the attribute is missing.

Definition at line 289 of file attributelist.cxx.

References Exception, and mxAttribs.

◆ getStringDefaulted()

OUString oox::AttributeList::getStringDefaulted ( sal_Int32  nAttrToken) const

Returns the string value of the specified attribute, returns an empty string if attribute not present.

Definition at line 181 of file attributelist.cxx.

References mxAttribs.

Referenced by oox::drawingml::BlipContext::BlipContext(), oox::vml::ControlShapeContext::ControlShapeContext(), oox::core::RelationsFragment::createFastChildContext(), oox::vml::ShapeContextBase::createShapeContext(), oox::drawingml::DiagramDefinitionContext::DiagramDefinitionContext(), oox::drawingml::getEmbeddedWAVAudioFile(), oox::drawingml::HyperLinkContext::HyperLinkContext(), oox::drawingml::LayoutNodeContext::LayoutNodeContext(), oox::drawingml::CustomShapeGeometryContext::onCreateContext(), oox::drawingml::GraphicShapeContext::onCreateContext(), oox::drawingml::GraphicalObjectFrameContext::onCreateContext(), oox::drawingml::OleObjectGraphicDataContext::onCreateContext(), oox::drawingml::DiagramGraphicDataContext::onCreateContext(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::ppt::PPTGraphicShapeContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::drawingml::EffectPropertiesContext::onCreateContext(), oox::drawingml::LinePropertiesContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::drawingml::Transform2DContext::onCreateContext(), oox::drawingml::DataModelContext::onCreateContext(), oox::drawingml::DiagramDefinitionContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::drawingml::TextSpacingContext::onCreateContext(), oox::drawingml::TextTabStopListContext::onCreateContext(), oox::drawingml::table::TableStyleListFragmentHandler::onCreateContext(), oox::drawingml::ConstraintListContext::onCreateContext(), oox::ppt::PresentationFragmentHandler::onCreateContext(), oox::ppt::PresPropsFragmentHandler::onCreateContext(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::ppt::SlideTransitionContext::onCreateContext(), oox::ppt::AnimVariantContext::onCreateContext(), oox::ppt::CondContext::onCreateContext(), oox::ppt::TimeAnimValueListContext::onCreateContext(), oox::ppt::TimeTargetElementContext::onCreateContext(), oox::drawingml::ChartGraphicDataContext::onCreateContext(), oox::drawingml::ColorValueContext::onCreateContext(), oox::drawingml::ArtisticEffectContext::onCreateContext(), oox::drawingml::ThemeElementsContext::onCreateContext(), oox::ole::AxControlPropertyContext::onCreateContext(), oox::ole::AxControlFragment::onCreateContext(), oox::vml::ShapeLayoutContext::onCreateContext(), oox::vml::ShapeContext::onCreateContext(), oox::drawingml::chart::ChartSpaceFragment::onCreateContext(), oox::drawingml::RuleListContext::onCreateContext(), oox::drawingml::ThemeFragmentHandler::onStartElement(), oox::drawingml::DiagramQStylesFragmentHandler::onStartElement(), oox::drawingml::ColorFragmentHandler::onStartElement(), oox::core::FilterDetectDocHandler::parseContentTypesDefault(), oox::core::FilterDetectDocHandler::parseContentTypesOverride(), oox::core::FilterDetectDocHandler::parseRelationship(), oox::drawingml::TextEffectsContext::pushAttributeToGrabBag(), oox::drawingml::EffectPropertiesContext::saveUnsupportedAttribs(), oox::drawingml::chart::NumberFormat::setAttributes(), oox::drawingml::TextFont::setAttributes(), oox::vml::ShapeTypeContext::ShapeTypeContext(), oox::drawingml::table::TableStyleContext::TableStyleContext(), oox::vml::TextBoxContext::TextBoxContext(), oox::drawingml::TextFieldContext::TextFieldContext(), and oox::drawingml::TextParagraphPropertiesContext::TextParagraphPropertiesContext().

◆ getToken() [1/2]

std::optional< sal_Int32 > oox::AttributeList::getToken ( sal_Int32  nAttrToken) const

Returns the token identifier of the value of the specified attribute.

Definition at line 167 of file attributelist.cxx.

References mxAttribs, nToken, and XML_TOKEN_INVALID.

Referenced by oox::vml::ClientDataContext::ClientDataContext(), oox::core::RelationsFragment::createFastChildContext(), oox::drawingml::DiagramQStylesFragmentHandler::createStyleMatrixContext(), getBool(), oox::drawingml::GradientFillContext::GradientFillContext(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::ppt::PPTGraphicShapeContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::drawingml::EffectPropertiesContext::onCreateContext(), oox::drawingml::LinePropertiesContext::onCreateContext(), oox::drawingml::Scene3DPropertiesContext::onCreateContext(), oox::drawingml::SceneText3DPropertiesContext::onCreateContext(), oox::drawingml::Shape3DPropertiesContext::onCreateContext(), oox::drawingml::ShapePropertiesContext::onCreateContext(), oox::drawingml::ShapeStyleContext::onCreateContext(), oox::drawingml::table::TableCellContext::onCreateContext(), oox::drawingml::table::TableStyleTextStyleContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::drawingml::DiagramDefinitionContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::drawingml::TextTabStopListContext::onCreateContext(), oox::drawingml::ConstraintListContext::onCreateContext(), oox::ppt::LayoutFragmentHandler::onCreateContext(), oox::ppt::SlideTransitionContext::onCreateContext(), oox::ppt::CommonTimeNodeContext::onCreateContext(), oox::ppt::CondContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::BlipFillContext::onCreateContext(), oox::ole::AxControlPropertyContext::onCreateContext(), oox::ole::AxControlFragment::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::CatAxisContext::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::ValAxisContext::onCreateContext(), oox::drawingml::chart::LayoutContext::onCreateContext(), oox::drawingml::chart::ChartSpaceFragment::onCreateContext(), oox::drawingml::chart::PictureOptionsContext::onCreateContext(), oox::drawingml::chart::ErrorBarContext::onCreateContext(), oox::drawingml::chart::TrendlineContext::onCreateContext(), oox::drawingml::chart::DataPointContext::onCreateContext(), oox::drawingml::chart::SeriesContextBase::onCreateContext(), oox::drawingml::chart::BarSeriesContext::onCreateContext(), oox::drawingml::chart::LegendContext::onCreateContext(), oox::drawingml::chart::AreaTypeGroupContext::onCreateContext(), oox::drawingml::chart::BarTypeGroupContext::onCreateContext(), oox::drawingml::chart::BubbleTypeGroupContext::onCreateContext(), oox::drawingml::chart::LineTypeGroupContext::onCreateContext(), oox::drawingml::chart::PieTypeGroupContext::onCreateContext(), oox::drawingml::chart::RadarTypeGroupContext::onCreateContext(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::ColorValueContext::onStartElement(), oox::drawingml::PatternFillContext::PatternFillContext(), oox::drawingml::PresetShapeGeometryContext::PresetShapeGeometryContext(), oox::drawingml::PresetTextShapeContext::PresetTextShapeContext(), oox::ppt::SlideTransitionContext::SlideTransitionContext(), oox::drawingml::table::TableStyleTextStyleContext::TableStyleTextStyleContext(), oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext(), oox::drawingml::TextParagraphPropertiesContext::TextParagraphPropertiesContext(), and oox::vml::TextPortionContext::TextPortionContext().

◆ getToken() [2/2]

sal_Int32 oox::AttributeList::getToken ( sal_Int32  nAttrToken,
sal_Int32  nDefault 
) const

Returns the token identifier of the value of the specified attribute, or the passed default identifier if the attribute is missing.

Definition at line 284 of file attributelist.cxx.

References mxAttribs.

◆ getTokenList()

std::vector< sal_Int32 > oox::AttributeList::getTokenList ( sal_Int32  nAttrToken) const

◆ getUnsigned() [1/2]

std::optional< sal_uInt32 > oox::AttributeList::getUnsigned ( sal_Int32  nAttrToken) const

◆ getUnsigned() [2/2]

sal_uInt32 oox::AttributeList::getUnsigned ( sal_Int32  nAttrToken,
sal_uInt32  nDefault 
) const

Returns the 32-bit unsigned integer value of the specified attribute, or the passed default value if the attribute is missing or not convertible to unsigned.

Definition at line 327 of file attributelist.cxx.

References getUnsigned().

◆ getUnsignedHex()

sal_uInt32 oox::AttributeList::getUnsignedHex ( sal_Int32  nAttrToken,
sal_uInt32  nDefault 
) const

Definition at line 342 of file attributelist.cxx.

References getIntegerHex().

◆ getView()

std::string_view oox::AttributeList::getView ( sal_Int32  nAttrToken) const

Definition at line 310 of file attributelist.cxx.

References sax_fastparser::FastAttributeList::getAsView(), getAttribList(), and p.

Referenced by getDateTime(), and getHyper().

◆ getXString() [1/2]

std::optional< OUString > oox::AttributeList::getXString ( sal_Int32  nAttrToken) const

◆ getXString() [2/2]

OUString oox::AttributeList::getXString ( sal_Int32  nAttrToken,
const OUString &  rDefault 
) const

Returns the decoded string value of the specified attribute, or the passed default string if the attribute is missing.

Definition at line 305 of file attributelist.cxx.

References getXString().

◆ hasAttribute()

bool oox::AttributeList::hasAttribute ( sal_Int32  nAttrToken) const

Returns true, if the specified attribute is present.

Definition at line 152 of file attributelist.cxx.

References mxAttribs.

Referenced by oox::drawingml::BlipContext::BlipContext(), oox::ppt::CommonTimeNodeContext::CommonTimeNodeContext(), oox::ppt::CondContext::CondContext(), oox::vml::ShapeContextBase::createShapeContext(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::ppt::PPTGraphicShapeContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::drawingml::Scene3DPropertiesContext::onCreateContext(), oox::drawingml::SceneText3DPropertiesContext::onCreateContext(), oox::drawingml::Shape3DPropertiesContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::ArtisticEffectContext::onCreateContext(), oox::drawingml::ThemeElementsContext::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::TextEffectsContext::pushAttributeToGrabBag(), oox::drawingml::EffectPropertiesContext::saveUnsupportedAttribs(), oox::vml::ShapeTypeContext::ShapeTypeContext(), oox::ppt::SlideTransitionContext::SlideTransitionContext(), oox::drawingml::table::TableCellContext::TableCellContext(), oox::drawingml::table::TableStyleTextStyleContext::TableStyleTextStyleContext(), oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext(), oox::drawingml::TextParagraphPropertiesContext::TextParagraphPropertiesContext(), and oox::drawingml::Transform2DContext::Transform2DContext().

Member Data Documentation

◆ mpAttribList

sax_fastparser::FastAttributeList* oox::AttributeList::mpAttribList
mutableprivate

Definition at line 186 of file attributelist.hxx.

Referenced by getAttribList().

◆ mxAttribs

css::uno::Reference< css::xml::sax::XFastAttributeList > oox::AttributeList::mxAttribs
private

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