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... | |
OptValue< 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... | |
OptValue< OUString > | getString (sal_Int32 nAttrToken) const |
Returns the string value of the specified attribute. More... | |
OptValue< OUString > | getXString (sal_Int32 nAttrToken) const |
Returns the string value of the specified attribute. More... | |
OptValue< double > | getDouble (sal_Int32 nAttrToken) const |
Returns the double value of the specified attribute. More... | |
OptValue< sal_Int32 > | getInteger (sal_Int32 nAttrToken) const |
Returns the 32-bit signed integer value of the specified attribute (decimal). More... | |
OptValue< sal_uInt32 > | getUnsigned (sal_Int32 nAttrToken) const |
Returns the 32-bit unsigned integer value of the specified attribute (decimal). More... | |
OptValue< sal_Int64 > | getHyper (sal_Int32 nAttrToken) const |
Returns the 64-bit signed integer value of the specified attribute (decimal). More... | |
OptValue< sal_Int32 > | getIntegerHex (sal_Int32 nAttrToken) const |
Returns the 32-bit signed integer value of the specified attribute (hexadecimal). More... | |
OptValue< bool > | getBool (sal_Int32 nAttrToken) const |
Returns the boolean value of the specified attribute. More... | |
OptValue< 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... | |
const char * | getChar (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 138 of file attributelist.cxx.
References sax_fastparser::castToFastAttributeList(), mpAttribList, and mxAttribs.
Referenced by getBool(), getChar(), getDouble(), and getInteger().
OptValue< bool > oox::AttributeList::getBool | ( | sal_Int32 | nAttrToken | ) | const |
Returns the boolean value of the specified attribute.
Definition at line 219 of file attributelist.cxx.
References oox::OptValue< Type >::get(), sax_fastparser::FastAttributeList::getAsChar(), getAttribList(), getInteger(), getToken(), oox::OptValue< Type >::has(), 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::ppt::PresPropsFragmentHandler::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::table::TableCellContext::onCreateContext(), oox::drawingml::table::TableContext::onCreateContext(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::ppt::AnimVariantContext::onCreateContext(), oox::ppt::CommonTimeNodeContext::onCreateContext(), oox::drawingml::chart::View3DContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::ppt::LayoutFragmentHandler::onCreateContext(), oox::drawingml::chart::ChartSpaceFragment::onCreateContext(), oox::ppt::SoundActionContext::onCreateContext(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::ppt::SlideTransitionContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::chart::TitleContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::DataLabelsContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::drawingml::chart::AreaTypeGroupContext::onCreateContext(), oox::drawingml::OleObjectGraphicDataContext::onCreateContext(), oox::drawingml::chart::CatAxisContext::onCreateContext(), oox::drawingml::chart::LegendEntryContext::onCreateContext(), oox::drawingml::chart::BarTypeGroupContext::onCreateContext(), oox::drawingml::chart::DataTableContext::onCreateContext(), oox::drawingml::chart::PictureOptionsContext::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::BubbleTypeGroupContext::onCreateContext(), oox::drawingml::chart::LegendContext::onCreateContext(), oox::drawingml::chart::ErrorBarContext::onCreateContext(), oox::drawingml::chart::LineTypeGroupContext::onCreateContext(), oox::drawingml::chart::PieTypeGroupContext::onCreateContext(), oox::drawingml::chart::TrendlineContext::onCreateContext(), oox::drawingml::chart::RadarTypeGroupContext::onCreateContext(), oox::drawingml::chart::DataPointContext::onCreateContext(), oox::drawingml::chart::ScatterTypeGroupContext::onCreateContext(), oox::drawingml::chart::SurfaceTypeGroupContext::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::NumberFormat::setAttributes(), oox::drawingml::table::TableCellContext::TableCellContext(), oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext(), and oox::drawingml::TextParagraphPropertiesContext::TextParagraphPropertiesContext().
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 334 of file attributelist.cxx.
References oox::OptValue< Type >::get(), and getBool().
const char * oox::AttributeList::getChar | ( | sal_Int32 | nAttrToken | ) | const |
Definition at line 294 of file attributelist.cxx.
References sax_fastparser::FastAttributeList::getAsChar(), getAttribList(), and p.
OptValue< util::DateTime > oox::AttributeList::getDateTime | ( | sal_Int32 | nAttrToken | ) | const |
Returns the date/time value of the specified attribute.
Definition at line 248 of file attributelist.cxx.
References mxAttribs.
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.
OptValue< double > oox::AttributeList::getDouble | ( | sal_Int32 | nAttrToken | ) | const |
Returns the double value of the specified attribute.
Definition at line 184 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::chart::AxisDispUnitsContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::PictureOptionsContext::onCreateContext(), oox::drawingml::chart::LayoutContext::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::ErrorBarContext::onCreateContext(), oox::drawingml::chart::ValAxisContext::onCreateContext(), oox::drawingml::chart::PieTypeGroupContext::onCreateContext(), and oox::drawingml::chart::TrendlineContext::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 304 of file attributelist.cxx.
References oox::OptValue< Type >::get(), and getDouble().
|
inline |
Returns the wrapped com.sun.star.xml.sax.XFastAttributeList object.
Definition at line 90 of file attributelist.hxx.
Referenced by oox::drawingml::LayoutNodeContext::onCreateContext(), oox::ppt::CommonTimeNodeContext::onCreateContext(), oox::ppt::PresentationFragmentHandler::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::ppt::CommonBehaviorContext::onCreateContext(), oox::ppt::CustomShowListContext::onCreateContext(), oox::ppt::CondListContext::onCreateContext(), oox::ppt::TimeNodeListContext::onCreateContext(), and oox::drawingml::BlipFillContext::onCreateContext().
oox::drawingml::Color oox::AttributeList::getHighlightColor | ( | sal_Int32 | nAttrToken | ) | const |
Returns the Color object of highlight of the text.
Definition at line 152 of file attributelist.cxx.
References oox::getHighlightColorTokenFromString(), mxAttribs, and oox::drawingml::Color::setHighlight().
Referenced by oox::drawingml::TextCharacterPropertiesContext::onCreateContext().
OptValue< sal_Int64 > oox::AttributeList::getHyper | ( | sal_Int32 | nAttrToken | ) | const |
Returns the 64-bit signed integer value of the specified attribute (decimal).
Definition at line 205 of file attributelist.cxx.
References oox::AttributeConversion::decodeHyper(), and mxAttribs.
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 319 of file attributelist.cxx.
References oox::OptValue< Type >::get(), and getHyper().
OptValue< sal_Int32 > oox::AttributeList::getInteger | ( | sal_Int32 | nAttrToken | ) | const |
Returns the 32-bit signed integer value of the specified attribute (decimal).
Definition at line 191 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::EffectPropertiesContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::drawingml::table::TableBackgroundStyleContext::onCreateContext(), oox::drawingml::table::TableStyleCellStyleContext::onCreateContext(), oox::drawingml::ShapeStyleContext::onCreateContext(), oox::drawingml::Scene3DRotationPropertiesContext::onCreateContext(), oox::drawingml::table::TableCellContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::ppt::AnimVariantContext::onCreateContext(), oox::drawingml::chart::UpDownBarsContext::onCreateContext(), oox::drawingml::chart::View3DContext::onCreateContext(), oox::drawingml::chart::DataLabelContext::onCreateContext(), oox::drawingml::LinePropertiesContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::drawingml::chart::ChartSpaceFragment::onCreateContext(), oox::drawingml::chart::DoubleSequenceContext::onCreateContext(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::drawingml::ColorValueContext::onCreateContext(), oox::drawingml::Scene3DPropertiesContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::AreaTypeGroupContext::onCreateContext(), oox::drawingml::SceneText3DPropertiesContext::onCreateContext(), oox::drawingml::chart::CatAxisContext::onCreateContext(), oox::drawingml::chart::StringSequenceContext::onCreateContext(), oox::drawingml::chart::LegendEntryContext::onCreateContext(), oox::drawingml::chart::BarTypeGroupContext::onCreateContext(), oox::drawingml::Shape3DPropertiesContext::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::BubbleTypeGroupContext::onCreateContext(), oox::drawingml::ArtisticEffectContext::onCreateContext(), oox::drawingml::chart::SerAxisContext::onCreateContext(), oox::drawingml::chart::LineTypeGroupContext::onCreateContext(), oox::drawingml::chart::PieTypeGroupContext::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::drawingml::chart::TrendlineContext::onCreateContext(), oox::drawingml::chart::RadarTypeGroupContext::onCreateContext(), oox::drawingml::chart::DataPointContext::onCreateContext(), oox::drawingml::chart::ScatterTypeGroupContext::onCreateContext(), oox::drawingml::chart::SeriesContextBase::onCreateContext(), oox::drawingml::chart::SurfaceTypeGroupContext::onCreateContext(), oox::drawingml::BlipContext::onCreateContext(), oox::drawingml::BlipFillContext::onCreateContext(), oox::drawingml::chart::PieSeriesContext::onCreateContext(), oox::drawingml::ColorValueContext::onStartElement(), oox::vml::TextPortionContext::onStartElement(), oox::drawingml::EffectPropertiesContext::saveUnsupportedAttribs(), oox::drawingml::TextFont::setAttributes(), oox::vml::ShapeTypeContext::ShapeTypeContext(), oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext(), oox::drawingml::TextParagraphPropertiesContext::TextParagraphPropertiesContext(), and oox::vml::TextPortionContext::TextPortionContext().
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 309 of file attributelist.cxx.
References oox::OptValue< Type >::get(), and getInteger().
OptValue< sal_Int32 > oox::AttributeList::getIntegerHex | ( | sal_Int32 | nAttrToken | ) | const |
Returns the 32-bit signed integer value of the specified attribute (hexadecimal).
Definition at line 212 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 324 of file attributelist.cxx.
References oox::OptValue< Type >::get(), and getIntegerHex().
OptValue< OUString > oox::AttributeList::getString | ( | sal_Int32 | nAttrToken | ) | const |
Returns the string value of the specified attribute.
Definition at line 168 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::vml::ShapeTypeContext::decodeFragmentPath(), oox::drawingml::DiagramDefinitionContext::DiagramDefinitionContext(), oox::drawingml::getEmbeddedWAVAudioFile(), getTokenList(), oox::drawingml::HyperLinkContext::HyperLinkContext(), oox::drawingml::LayoutNodeContext::LayoutNodeContext(), oox::drawingml::ConstraintListContext::onCreateContext(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::CustomShapeGeometryContext::onCreateContext(), oox::drawingml::RuleListContext::onCreateContext(), oox::drawingml::DiagramDefinitionContext::onCreateContext(), oox::drawingml::ThemeElementsContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::drawingml::DataModelContext::onCreateContext(), oox::drawingml::TextSpacingContext::onCreateContext(), oox::ppt::TimeTargetElementContext::onCreateContext(), oox::drawingml::Transform2DContext::onCreateContext(), oox::drawingml::table::TableContext::onCreateContext(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::drawingml::table::TableStyleListFragmentHandler::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::chart::AxisDispUnitsContext::onCreateContext(), oox::ppt::AnimVariantContext::onCreateContext(), oox::drawingml::TextTabStopListContext::onCreateContext(), oox::drawingml::LinePropertiesContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::ppt::PPTGraphicShapeContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::ppt::CondContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::ppt::TimeAnimValueListContext::onCreateContext(), oox::drawingml::GraphicShapeContext::onCreateContext(), oox::drawingml::chart::ChartSpaceFragment::onCreateContext(), oox::drawingml::ColorValueContext::onCreateContext(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::ppt::SlideTransitionContext::onCreateContext(), oox::ppt::PresentationFragmentHandler::onCreateContext(), oox::ole::AxControlPropertyContext::onCreateContext(), oox::drawingml::GraphicalObjectFrameContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::vml::ShapeLayoutContext::onCreateContext(), oox::drawingml::OleObjectGraphicDataContext::onCreateContext(), oox::ole::AxControlFragment::onCreateContext(), oox::drawingml::DiagramGraphicDataContext::onCreateContext(), oox::drawingml::ArtisticEffectContext::onCreateContext(), oox::drawingml::ChartGraphicDataContext::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::vml::ShapeContext::onCreateContext(), oox::drawingml::ColorValueContext::onStartElement(), oox::vml::TextPortionContext::onStartElement(), oox::drawingml::DiagramQStylesFragmentHandler::onStartElement(), oox::vml::TextBoxContext::onStartElement(), oox::drawingml::ColorFragmentHandler::onStartElement(), oox::core::FilterDetectDocHandler::parseContentTypesDefault(), oox::core::FilterDetectDocHandler::parseContentTypesOverride(), oox::core::FilterDetectDocHandler::parseRelationship(), oox::core::FragmentHandler2::prepareMceContext(), oox::drawingml::TextEffectsContext::pushAttributeToGrabBag(), oox::drawingml::EffectPropertiesContext::saveUnsupportedAttribs(), oox::drawingml::TextFont::setAttributes(), oox::drawingml::chart::NumberFormat::setAttributes(), oox::vml::ShapeTypeContext::ShapeTypeContext(), 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().
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 273 of file attributelist.cxx.
OptValue< sal_Int32 > oox::AttributeList::getToken | ( | sal_Int32 | nAttrToken | ) | const |
Returns the token identifier of the value of the specified attribute.
Definition at line 162 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::core::ContextHandler2Helper::implStartElement(), oox::drawingml::DiagramDefinitionContext::onCreateContext(), oox::drawingml::ShapePropertiesContext::onCreateContext(), oox::drawingml::LayoutNodeContext::onCreateContext(), oox::drawingml::ConstraintListContext::onCreateContext(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::ShapeStyleContext::onCreateContext(), oox::drawingml::table::TableCellContext::onCreateContext(), oox::drawingml::table::TableStyleTextStyleContext::onCreateContext(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::ppt::CommonTimeNodeContext::onCreateContext(), oox::drawingml::TextTabStopListContext::onCreateContext(), oox::drawingml::LinePropertiesContext::onCreateContext(), oox::drawingml::TextParagraphPropertiesContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::ppt::CondContext::onCreateContext(), oox::ppt::PPTGraphicShapeContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::ppt::LayoutFragmentHandler::onCreateContext(), oox::drawingml::chart::ChartSpaceFragment::onCreateContext(), oox::ppt::SlideTransitionContext::onCreateContext(), oox::drawingml::Scene3DPropertiesContext::onCreateContext(), oox::ole::AxControlPropertyContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::AreaTypeGroupContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::drawingml::SceneText3DPropertiesContext::onCreateContext(), oox::ole::AxControlFragment::onCreateContext(), oox::drawingml::chart::CatAxisContext::onCreateContext(), oox::drawingml::Shape3DPropertiesContext::onCreateContext(), oox::drawingml::chart::BarTypeGroupContext::onCreateContext(), oox::drawingml::chart::PictureOptionsContext::onCreateContext(), oox::drawingml::chart::LayoutContext::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::BubbleTypeGroupContext::onCreateContext(), oox::drawingml::chart::LegendContext::onCreateContext(), oox::drawingml::chart::ErrorBarContext::onCreateContext(), oox::drawingml::chart::LineTypeGroupContext::onCreateContext(), oox::drawingml::chart::ValAxisContext::onCreateContext(), oox::drawingml::chart::PieTypeGroupContext::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::drawingml::chart::TrendlineContext::onCreateContext(), oox::drawingml::chart::RadarTypeGroupContext::onCreateContext(), oox::drawingml::chart::DataPointContext::onCreateContext(), oox::drawingml::chart::SeriesContextBase::onCreateContext(), oox::drawingml::chart::BarSeriesContext::onCreateContext(), oox::drawingml::BlipFillContext::onCreateContext(), oox::drawingml::ColorValueContext::onStartElement(), oox::drawingml::PatternFillContext::PatternFillContext(), oox::drawingml::PresetShapeGeometryContext::PresetShapeGeometryContext(), oox::drawingml::PresetTextShapeContext::PresetTextShapeContext(), 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 268 of file attributelist.cxx.
References mxAttribs.
std::vector< sal_Int32 > oox::AttributeList::getTokenList | ( | sal_Int32 | nAttrToken | ) | const |
Definition at line 344 of file attributelist.cxx.
References oox::AttributeConversion::decodeToken(), getString(), and nIndex.
Referenced by oox::drawingml::IteratorAttr::loadFromXAttr().
OptValue< sal_uInt32 > oox::AttributeList::getUnsigned | ( | sal_Int32 | nAttrToken | ) | const |
Returns the 32-bit unsigned integer value of the specified attribute (decimal).
Definition at line 198 of file attributelist.cxx.
References oox::AttributeConversion::decodeUnsigned(), and mxAttribs.
Referenced by oox::ppt::CommonTimeNodeContext::CommonTimeNodeContext(), getUnsigned(), oox::ppt::CommonTimeNodeContext::onCreateContext(), and oox::ppt::SlideTransitionContext::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 314 of file attributelist.cxx.
References getUnsigned().
sal_uInt32 oox::AttributeList::getUnsignedHex | ( | sal_Int32 | nAttrToken, |
sal_uInt32 | nDefault | ||
) | const |
Definition at line 329 of file attributelist.cxx.
References oox::OptValue< Type >::get(), and getIntegerHex().
OptValue< 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 176 of file attributelist.cxx.
References oox::AttributeConversion::decodeXString(), and mxAttribs.
Referenced by oox::vml::ControlShapeContext::ControlShapeContext(), getXString(), oox::ppt::SlideFragmentHandler::onCreateContext(), oox::drawingml::OleObjectGraphicDataContext::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 289 of file attributelist.cxx.
References oox::OptValue< Type >::get(), and getXString().
bool oox::AttributeList::hasAttribute | ( | sal_Int32 | nAttrToken | ) | const |
Returns true, if the specified attribute is present.
Definition at line 147 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::LayoutNodeContext::onCreateContext(), oox::shape::WpsContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::ShapeGroupContext::onCreateContext(), oox::ppt::PPTGraphicShapeContext::onCreateContext(), oox::drawingml::TextBodyPropertiesContext::onCreateContext(), oox::ppt::PPTShapeContext::onCreateContext(), oox::drawingml::Scene3DPropertiesContext::onCreateContext(), oox::drawingml::GradientFillContext::onCreateContext(), oox::ppt::PPTShapeGroupContext::onCreateContext(), oox::drawingml::SceneText3DPropertiesContext::onCreateContext(), oox::drawingml::Shape3DPropertiesContext::onCreateContext(), oox::drawingml::ArtisticEffectContext::onCreateContext(), oox::vml::ShapeTypeContext::onCreateContext(), oox::drawingml::TextEffectsContext::pushAttributeToGrabBag(), oox::drawingml::EffectPropertiesContext::saveUnsupportedAttribs(), oox::vml::ShapeTypeContext::ShapeTypeContext(), oox::drawingml::table::TableCellContext::TableCellContext(), oox::drawingml::table::TableStyleTextStyleContext::TableStyleTextStyleContext(), oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext(), and oox::drawingml::TextParagraphPropertiesContext::TextParagraphPropertiesContext().
|
mutableprivate |
Definition at line 183 of file attributelist.hxx.
Referenced by getAttribList().
|
private |
Definition at line 182 of file attributelist.hxx.
Referenced by getAttribList(), getDateTime(), getHighlightColor(), getHyper(), getIntegerHex(), getString(), getToken(), getUnsigned(), getXString(), and hasAttribute().