Revert "remove unused code oox::core::Relations::getRelationsFromType"
we need it again now This reverts commit 77c45eb25eb462bacdf7d658d6cb485f755beaa5. Change-Id: I3e171d95e4f50c8e26824da2f6e6817d3b597d4d
This commit is contained in:
parent
19a28edc63
commit
d2c0856937
@ -82,6 +82,7 @@ public:
|
|||||||
/** Returns the first relation with the passed type. */
|
/** Returns the first relation with the passed type. */
|
||||||
const Relation* getRelationFromFirstTypeFromOfficeDoc( const OUString& rType ) const;
|
const Relation* getRelationFromFirstTypeFromOfficeDoc( const OUString& rType ) const;
|
||||||
/** Finds all relations associated with the passed type. */
|
/** Finds all relations associated with the passed type. */
|
||||||
|
RelationsRef getRelationsFromType( const OUString& rType ) const;
|
||||||
RelationsRef getRelationsFromTypeFromOfficeDoc( const OUString& rType ) const;
|
RelationsRef getRelationsFromTypeFromOfficeDoc( const OUString& rType ) const;
|
||||||
|
|
||||||
/** Returns the external target of the relation with the passed relation identifier. */
|
/** Returns the external target of the relation with the passed relation identifier. */
|
||||||
|
@ -71,6 +71,15 @@ const Relation* Relations::getRelationFromFirstType( const OUString& rType ) con
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RelationsRef Relations::getRelationsFromType( const OUString& rType ) const
|
||||||
|
{
|
||||||
|
RelationsRef xRelations( new Relations( maFragmentPath ) );
|
||||||
|
for( const_iterator aIt = begin(), aEnd = end(); aIt != aEnd; ++aIt )
|
||||||
|
if( aIt->second.maType.equalsIgnoreAsciiCase( rType ) )
|
||||||
|
(*xRelations)[ aIt->first ] = aIt->second;
|
||||||
|
return xRelations;
|
||||||
|
}
|
||||||
|
|
||||||
RelationsRef Relations::getRelationsFromTypeFromOfficeDoc( const OUString& rType ) const
|
RelationsRef Relations::getRelationsFromTypeFromOfficeDoc( const OUString& rType ) const
|
||||||
{
|
{
|
||||||
RelationsRef xRelations( new Relations( maFragmentPath ) );
|
RelationsRef xRelations( new Relations( maFragmentPath ) );
|
||||||
|
@ -1208,7 +1208,7 @@ uno::Sequence< uno::Sequence< uno::Any > > Shape::resolveRelationshipsOfType(co
|
|||||||
core::RelationsRef xRels = rFilter.importRelations( sFragment );
|
core::RelationsRef xRels = rFilter.importRelations( sFragment );
|
||||||
if ( xRels )
|
if ( xRels )
|
||||||
{
|
{
|
||||||
core::RelationsRef xImageRels = xRels->getRelationsFromTypeFromOfficeDoc( sType );
|
core::RelationsRef xImageRels = xRels->getRelationsFromType( sType );
|
||||||
if ( xImageRels )
|
if ( xImageRels )
|
||||||
{
|
{
|
||||||
xRelListTemp.realloc( xImageRels->size() );
|
xRelListTemp.realloc( xImageRels->size() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user