LibreOffice Module oox (master) 1
|
Provides access to attribute values of an element. More...
#include <attributelist.hxx>
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::FastAttributeList * | getAttribList () const |
Private Attributes | |
css::uno::Reference< css::xml::sax::XFastAttributeList > | mxAttribs |
sax_fastparser::FastAttributeList * | mpAttribList |
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.
|
explicit |
|
private |
Definition at line 143 of file attributelist.cxx.
References sax_fastparser::castToFastAttributeList(), mpAttribList, and mxAttribs.
Referenced by getBool(), getDouble(), getInteger(), and getView().
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().
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().
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().
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.
std::optional< double > oox::AttributeList::getDouble | ( | sal_Int32 | nAttrToken | ) | const |
Returns the double value of the specified attribute.
Definition at line 197 of file attributelist.cxx.
References sax_fastparser::FastAttributeList::getAsDouble(), getAttribList(), and nValue.
Referenced by getDouble(), oox::drawingml::ConstraintListContext::onCreateContext(), oox::ppt::AnimVariantContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::chart::AxisDispUnitsContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::ValAxisContext::onCreateContext(), oox::drawingml::chart::LayoutContext::onCreateContext(), oox::drawingml::chart::PictureOptionsContext::onCreateContext(), oox::drawingml::chart::ErrorBarContext::onCreateContext(), oox::drawingml::chart::TrendlineContext::onCreateContext(), and oox::drawingml::chart::PieTypeGroupContext::onCreateContext().
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().
|
inline |
Returns the wrapped com.sun.star.xml.sax.XFastAttributeList object.
Definition at line 90 of file attributelist.hxx.
Referenced by oox::drawingml::TextBodyContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::ppt::CustomShowListContext::onCreateContext(), oox::ppt::PresentationFragmentHandler::onCreateContext(), oox::ppt::TimeNodeListContext::onCreateContext(), oox::ppt::CommonBehaviorContext::onCreateContext(), oox::ppt::CommonTimeNodeContext::onCreateContext(), oox::ppt::CondListContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::BlipFillContext::onCreateContext(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
oox::drawingml::Color oox::AttributeList::getHighlightColor | ( | sal_Int32 | nAttrToken | ) | const |
Returns the Color object of highlight of the text.
Definition at line 157 of file attributelist.cxx.
References oox::getHighlightColorTokenFromString(), mxAttribs, and oox::drawingml::Color::setHighlight().
Referenced by oox::drawingml::TextCharacterPropertiesContext::onCreateContext().
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().
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().
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().
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().
std::optional< sal_Int32 > oox::AttributeList::getIntegerHex | ( | sal_Int32 | nAttrToken | ) | const |
Returns the 32-bit signed integer value of the specified attribute (hexadecimal).
Definition at line 225 of file attributelist.cxx.
References oox::AttributeConversion::decodeIntegerHex(), and mxAttribs.
Referenced by getIntegerHex(), oox::core::CodecHelper::getPasswordHash(), getUnsignedHex(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and oox::drawingml::ColorValueContext::onStartElement().
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().
std::optional< OUString > oox::AttributeList::getString | ( | sal_Int32 | nAttrToken | ) | const |
Returns the string value of the specified attribute.
Definition at line 173 of file attributelist.cxx.
References mxAttribs.
Referenced by oox::vml::ShapeTypeContext::decodeFragmentPath(), getTokenList(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::vml::ShapeContext::onCreateContext(), oox::drawingml::chart::AxisDispUnitsContext::onCreateContext(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::ColorValueContext::onStartElement(), oox::vml::TextPortionContext::onStartElement(), oox::vml::TextBoxContext::onStartElement(), oox::vml::ShapeTypeContext::ShapeTypeContext(), oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext(), and oox::vml::TextPortionContext::TextPortionContext().
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.
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().
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().
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.
std::vector< sal_Int32 > oox::AttributeList::getTokenList | ( | sal_Int32 | nAttrToken | ) | const |
Definition at line 357 of file attributelist.cxx.
References oox::AttributeConversion::decodeToken(), getString(), o3tl::getToken(), and nIndex.
Referenced by oox::drawingml::IteratorAttr::loadFromXAttr().
std::optional< sal_uInt32 > oox::AttributeList::getUnsigned | ( | sal_Int32 | nAttrToken | ) | const |
Returns the 32-bit unsigned integer value of the specified attribute (decimal).
Definition at line 211 of file attributelist.cxx.
References oox::AttributeConversion::decodeUnsigned(), and mxAttribs.
Referenced by oox::ppt::CommonTimeNodeContext::CommonTimeNodeContext(), getUnsigned(), oox::ppt::SlideTransitionContext::onCreateContext(), and oox::ppt::CommonTimeNodeContext::onCreateContext().
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().
sal_uInt32 oox::AttributeList::getUnsignedHex | ( | sal_Int32 | nAttrToken, |
sal_uInt32 | nDefault | ||
) | const |
Definition at line 342 of file attributelist.cxx.
References getIntegerHex().
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().
std::optional< OUString > oox::AttributeList::getXString | ( | sal_Int32 | nAttrToken | ) | const |
Returns the string value of the specified attribute.
All characters in the format 'xHHHH' (H being a hexadecimal digit), will be decoded.
Definition at line 189 of file attributelist.cxx.
References oox::AttributeConversion::decodeXString(), and mxAttribs.
Referenced by oox::vml::ControlShapeContext::ControlShapeContext(), getXString(), oox::drawingml::OleObjectGraphicDataContext::onCreateContext(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::vml::ShapeTypeContext::ShapeTypeContext(), and oox::vml::TextPortionContext::TextPortionContext().
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().
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().
|
mutableprivate |
Definition at line 186 of file attributelist.hxx.
Referenced by getAttribList().
|
private |
Definition at line 185 of file attributelist.hxx.
Referenced by getAttribList(), getHighlightColor(), getIntegerHex(), getString(), getStringDefaulted(), getToken(), getUnsigned(), getXString(), and hasAttribute().