LibreOffice Module oox (master) 1
|
#include <relations.hxx>
Public Member Functions | |
Relations (OUString aFragmentPath) | |
size_t | size () const |
size_t | count (const OUString &rId) const |
::std::map< OUString, Relation >::const_iterator | begin () const |
::std::map< OUString, Relation >::const_iterator | end () const |
template<class... Args> | |
void | emplace (Args &&... args) |
const OUString & | getFragmentPath () const |
Returns the path of the fragment this relations collection is related to. More... | |
const Relation * | getRelationFromRelId (const OUString &rId) const |
Returns the relation with the passed relation identifier. More... | |
const Relation * | getRelationFromFirstType (std::u16string_view rType) const |
Returns the first relation with the passed type. More... | |
RelationsRef | getRelationsFromTypeFromOfficeDoc (std::u16string_view rType) const |
Finds all relations associated with the passed type. More... | |
OUString | getExternalTargetFromRelId (const OUString &rRelId) const |
Returns the external target of the relation with the passed relation identifier. More... | |
OUString | getInternalTargetFromRelId (const OUString &rRelId) const |
Returns the internal target of the relation with the passed relation identifier. More... | |
OUString | getFragmentPathFromRelation (const Relation &rRelation) const |
Returns the full fragment path for the target of the passed relation. More... | |
OUString | getFragmentPathFromRelId (const OUString &rRelId) const |
Returns the full fragment path for the passed relation identifier. More... | |
OUString | getFragmentPathFromFirstType (std::u16string_view rType) const |
Returns the full fragment path for the first relation of the passed type. More... | |
OUString | getFragmentPathFromFirstTypeFromOfficeDoc (std::u16string_view rType) const |
Private Attributes | |
::std::map< OUString, Relation > | maMap |
OUString | maFragmentPath |
Definition at line 66 of file relations.hxx.
|
explicit |
Definition at line 59 of file relations.cxx.
|
inline |
Definition at line 73 of file relations.hxx.
|
inline |
Definition at line 72 of file relations.hxx.
|
inline |
Definition at line 82 of file relations.hxx.
References args.
|
inline |
Definition at line 77 of file relations.hxx.
OUString oox::core::Relations::getExternalTargetFromRelId | ( | const OUString & | rRelId | ) | const |
Returns the external target of the relation with the passed relation identifier.
Definition at line 88 of file relations.cxx.
References getRelationFromRelId(), oox::core::Relation::maTarget, and oox::core::Relation::mbExternal.
Referenced by oox::drawingml::HyperLinkContext::HyperLinkContext(), and oox::drawingml::GraphicShapeContext::onCreateContext().
|
inline |
Returns the path of the fragment this relations collection is related to.
Definition at line 88 of file relations.hxx.
OUString oox::core::Relations::getFragmentPathFromFirstType | ( | std::u16string_view | rType | ) | const |
Returns the full fragment path for the first relation of the passed type.
Definition at line 139 of file relations.cxx.
References getFragmentPathFromRelation(), and getRelationFromFirstType().
OUString oox::core::Relations::getFragmentPathFromFirstTypeFromOfficeDoc | ( | std::u16string_view | rType | ) | const |
Definition at line 145 of file relations.cxx.
References getFragmentPathFromRelation(), and getRelationFromFirstType().
OUString oox::core::Relations::getFragmentPathFromRelation | ( | const Relation & | rRelation | ) | const |
Returns the full fragment path for the target of the passed relation.
Definition at line 100 of file relations.cxx.
References maFragmentPath, oox::core::Relation::maTarget, and oox::core::Relation::mbExternal.
Referenced by getFragmentPathFromFirstType(), getFragmentPathFromFirstTypeFromOfficeDoc(), and getFragmentPathFromRelId().
OUString oox::core::Relations::getFragmentPathFromRelId | ( | const OUString & | rRelId | ) | const |
Returns the full fragment path for the passed relation identifier.
Definition at line 133 of file relations.cxx.
References getFragmentPathFromRelation(), and getRelationFromRelId().
Referenced by oox::drawingml::getEmbeddedWAVAudioFile(), oox::drawingml::loadDiagram(), and oox::drawingml::GraphicShapeContext::onCreateContext().
OUString oox::core::Relations::getInternalTargetFromRelId | ( | const OUString & | rRelId | ) | const |
Returns the internal target of the relation with the passed relation identifier.
Definition at line 94 of file relations.cxx.
References getRelationFromRelId(), oox::core::Relation::maTarget, and oox::core::Relation::mbExternal.
Referenced by oox::drawingml::HyperLinkContext::HyperLinkContext().
const Relation * oox::core::Relations::getRelationFromFirstType | ( | std::u16string_view | rType | ) | const |
Returns the first relation with the passed type.
Definition at line 70 of file relations.cxx.
References maMap.
Referenced by getFragmentPathFromFirstType(), and getFragmentPathFromFirstTypeFromOfficeDoc().
const Relation * oox::core::Relations::getRelationFromRelId | ( | const OUString & | rId | ) | const |
Returns the relation with the passed relation identifier.
Definition at line 64 of file relations.cxx.
References maMap.
Referenced by getExternalTargetFromRelId(), getFragmentPathFromRelId(), getInternalTargetFromRelId(), and oox::drawingml::OleObjectGraphicDataContext::onCreateContext().
RelationsRef oox::core::Relations::getRelationsFromTypeFromOfficeDoc | ( | std::u16string_view | rType | ) | const |
Finds all relations associated with the passed type.
Definition at line 78 of file relations.cxx.
References maFragmentPath, and maMap.
|
inline |
Definition at line 71 of file relations.hxx.
|
private |
Definition at line 112 of file relations.hxx.
Referenced by getFragmentPathFromRelation(), and getRelationsFromTypeFromOfficeDoc().
|
private |
Definition at line 111 of file relations.hxx.
Referenced by getRelationFromFirstType(), getRelationFromRelId(), and getRelationsFromTypeFromOfficeDoc().