LibreOffice Module comphelper (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
comphelper::EmbeddedObjectContainer Class Reference

#include <embeddedobjectcontainer.hxx>

Public Member Functions

bool StoreEmbeddedObject (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, OUString &rName, bool bCopy, const OUString &rSrcShellID, const OUString &rDestShellID)
 
void AddEmbeddedObject (const css::uno::Reference< css::embed::XEmbeddedObject > &, const OUString &)
 
 EmbeddedObjectContainer ()
 
 EmbeddedObjectContainer (const css::uno::Reference< css::embed::XStorage > &)
 
 EmbeddedObjectContainer (const css::uno::Reference< css::embed::XStorage > &, const css::uno::Reference< css::uno::XInterface > &)
 
 ~EmbeddedObjectContainer ()
 
void SwitchPersistence (const css::uno::Reference< css::embed::XStorage > &)
 
bool CommitImageSubStorage ()
 
void ReleaseImageSubStorage ()
 
OUString CreateUniqueObjectName ()
 
css::uno::Sequence< OUString > GetObjectNames () const
 
bool HasEmbeddedObjects () const
 
bool HasEmbeddedObject (const OUString &)
 
bool HasEmbeddedObject (const css::uno::Reference< css::embed::XEmbeddedObject > &) const
 
bool HasInstantiatedEmbeddedObject (const OUString &)
 
OUString GetEmbeddedObjectName (const css::uno::Reference< css::embed::XEmbeddedObject > &) const
 
css::uno::Reference< css::embed::XEmbeddedObject > GetEmbeddedObject (const OUString &, OUString const *pBaseURL=nullptr)
 
css::uno::Reference< css::embed::XEmbeddedObject > CreateEmbeddedObject (const css::uno::Sequence< sal_Int8 > &, OUString &, OUString const *pBaseURL=nullptr)
 
css::uno::Reference< css::embed::XEmbeddedObject > CreateEmbeddedObject (const css::uno::Sequence< sal_Int8 > &, const css::uno::Sequence< css::beans::PropertyValue > &, OUString &, OUString const *pBaseURL=nullptr)
 
bool InsertEmbeddedObject (const css::uno::Reference< css::embed::XEmbeddedObject > &, OUString &)
 
css::uno::Reference< css::embed::XEmbeddedObject > InsertEmbeddedObject (const css::uno::Sequence< css::beans::PropertyValue > &, OUString &rName, OUString const *pBaseURL=nullptr)
 
css::uno::Reference< css::embed::XEmbeddedObject > InsertEmbeddedLink (const css::uno::Sequence< css::beans::PropertyValue > &, OUString &)
 
css::uno::Reference< css::embed::XEmbeddedObject > InsertEmbeddedObject (const css::uno::Reference< css::io::XInputStream > &, OUString &)
 
css::uno::Reference< css::embed::XEmbeddedObject > CopyAndGetEmbeddedObject (EmbeddedObjectContainer &rSrc, const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, OUString &rName, const OUString &rSrcShellID, const OUString &rDestShellID)
 
void RemoveEmbeddedObject (const OUString &rName, bool bKeepToTempStorage=true)
 
bool RemoveEmbeddedObject (const css::uno::Reference< css::embed::XEmbeddedObject > &, bool bKeepToTempStorage=true)
 
void CloseEmbeddedObject (const css::uno::Reference< css::embed::XEmbeddedObject > &)
 
bool MoveEmbeddedObject (const OUString &rName, EmbeddedObjectContainer &)
 
css::uno::Reference< css::io::XInputStream > GetGraphicStream (const css::uno::Reference< css::embed::XEmbeddedObject > &, OUString *pMediaType=nullptr)
 
css::uno::Reference< css::io::XInputStream > GetGraphicStream (const OUString &aName, OUString *pMediaType=nullptr)
 
bool InsertGraphicStream (const css::uno::Reference< css::io::XInputStream > &rStream, const OUString &rObjectName, const OUString &rMediaType)
 
bool InsertGraphicStreamDirectly (const css::uno::Reference< css::io::XInputStream > &rStream, const OUString &rObjectName, const OUString &rMediaType)
 
void RemoveGraphicStream (const OUString &rObjectName)
 
bool TryToCopyGraphReplacement (EmbeddedObjectContainer &rSrc, const OUString &aOrigName, const OUString &aTargetName)
 
void CloseEmbeddedObjects ()
 
bool StoreChildren (bool _bOasisFormat, bool _bObjectsOnly)
 
bool StoreAsChildren (bool _bOasisFormat, bool _bCreateEmbedded, const css::uno::Reference< css::embed::XStorage > &_xStorage)
 
bool SetPersistentEntries (const css::uno::Reference< css::embed::XStorage > &_xStorage, bool _bClearModifedFlag=true)
 call setPersistentEntry for each embedded object in the container More...
 
bool getUserAllowsLinkUpdate () const
 
void setUserAllowsLinkUpdate (bool bNew)
 

Static Public Member Functions

static css::uno::Reference< css::io::XInputStream > GetGraphicReplacementStream (sal_Int64 nViewAspect, const css::uno::Reference< css::embed::XEmbeddedObject > &, OUString *pMediaType)
 

Private Member Functions

css::uno::Reference< css::embed::XEmbeddedObject > Get_Impl (const OUString &, const css::uno::Reference< css::embed::XEmbeddedObject > &xCopy, OUString const *pBaseURL)
 

Private Attributes

std::unique_ptr< EmbedImplpImpl
 

Detailed Description

Definition at line 55 of file embeddedobjectcontainer.hxx.

Constructor & Destructor Documentation

comphelper::EmbeddedObjectContainer::EmbeddedObjectContainer ( )
comphelper::EmbeddedObjectContainer::EmbeddedObjectContainer ( const css::uno::Reference< css::embed::XStorage > &  )
comphelper::EmbeddedObjectContainer::EmbeddedObjectContainer ( const css::uno::Reference< css::embed::XStorage > &  ,
const css::uno::Reference< css::uno::XInterface > &   
)
comphelper::EmbeddedObjectContainer::~EmbeddedObjectContainer ( )

Definition at line 184 of file embeddedobjectcontainer.cxx.

References pImpl, and ReleaseImageSubStorage().

Member Function Documentation

void comphelper::EmbeddedObjectContainer::AddEmbeddedObject ( const css::uno::Reference< css::embed::XEmbeddedObject > &  xObj,
const OUString &  rName 
)
void comphelper::EmbeddedObjectContainer::CloseEmbeddedObject ( const css::uno::Reference< css::embed::XEmbeddedObject > &  )

Definition at line 990 of file embeddedobjectcontainer.cxx.

References pImpl.

void comphelper::EmbeddedObjectContainer::CloseEmbeddedObjects ( )

Definition at line 194 of file embeddedobjectcontainer.cxx.

References pImpl.

bool comphelper::EmbeddedObjectContainer::CommitImageSubStorage ( )

Definition at line 135 of file embeddedobjectcontainer.cxx.

References pImpl.

Referenced by ReleaseImageSubStorage(), StoreAsChildren(), and StoreChildren().

uno::Reference< embed::XEmbeddedObject > comphelper::EmbeddedObjectContainer::CopyAndGetEmbeddedObject ( EmbeddedObjectContainer rSrc,
const css::uno::Reference< css::embed::XEmbeddedObject > &  xObj,
OUString &  rName,
const OUString &  rSrcShellID,
const OUString &  rDestShellID 
)
css::uno::Reference< css::embed::XEmbeddedObject > comphelper::EmbeddedObjectContainer::CreateEmbeddedObject ( const css::uno::Sequence< sal_Int8 > &  ,
OUString &  ,
OUString const *  pBaseURL = nullptr 
)
css::uno::Reference< css::embed::XEmbeddedObject > comphelper::EmbeddedObjectContainer::CreateEmbeddedObject ( const css::uno::Sequence< sal_Int8 > &  ,
const css::uno::Sequence< css::beans::PropertyValue > &  ,
OUString &  ,
OUString const *  pBaseURL = nullptr 
)
OUString comphelper::EmbeddedObjectContainer::CreateUniqueObjectName ( )
uno::Reference< embed::XEmbeddedObject > comphelper::EmbeddedObjectContainer::Get_Impl ( const OUString &  ,
const css::uno::Reference< css::embed::XEmbeddedObject > &  xCopy,
OUString const *  pBaseURL 
)
private
uno::Reference< embed::XEmbeddedObject > comphelper::EmbeddedObjectContainer::GetEmbeddedObject ( const OUString &  rName,
OUString const *  pBaseURL = nullptr 
)
OUString comphelper::EmbeddedObjectContainer::GetEmbeddedObjectName ( const css::uno::Reference< css::embed::XEmbeddedObject > &  xObj) const

Definition at line 260 of file embeddedobjectcontainer.cxx.

References pImpl, and SAL_WARN.

Referenced by GetGraphicStream().

uno::Reference< io::XInputStream > comphelper::EmbeddedObjectContainer::GetGraphicReplacementStream ( sal_Int64  nViewAspect,
const css::uno::Reference< css::embed::XEmbeddedObject > &  ,
OUString *  pMediaType 
)
static

Definition at line 1399 of file embeddedobjectcontainer.cxx.

Referenced by StoreAsChildren(), and StoreChildren().

uno::Reference< io::XInputStream > comphelper::EmbeddedObjectContainer::GetGraphicStream ( const css::uno::Reference< css::embed::XEmbeddedObject > &  xObj,
OUString *  pMediaType = nullptr 
)
uno::Reference< io::XInputStream > comphelper::EmbeddedObjectContainer::GetGraphicStream ( const OUString &  aName,
OUString *  pMediaType = nullptr 
)

Definition at line 1013 of file embeddedobjectcontainer.cxx.

References pImpl, SAL_INFO, and SAL_WARN_IF.

uno::Sequence< OUString > comphelper::EmbeddedObjectContainer::GetObjectNames ( ) const
bool comphelper::EmbeddedObjectContainer::getUserAllowsLinkUpdate ( ) const

Definition at line 1475 of file embeddedobjectcontainer.cxx.

References pImpl.

Referenced by StoreAsChildren().

bool comphelper::EmbeddedObjectContainer::HasEmbeddedObject ( const OUString &  rName)

Definition at line 236 of file embeddedobjectcontainer.cxx.

References pImpl.

Referenced by CreateUniqueObjectName().

bool comphelper::EmbeddedObjectContainer::HasEmbeddedObject ( const css::uno::Reference< css::embed::XEmbeddedObject > &  ) const
bool comphelper::EmbeddedObjectContainer::HasEmbeddedObjects ( ) const

Definition at line 231 of file embeddedobjectcontainer.cxx.

References pImpl.

bool comphelper::EmbeddedObjectContainer::HasInstantiatedEmbeddedObject ( const OUString &  rName)

Definition at line 251 of file embeddedobjectcontainer.cxx.

References pImpl.

uno::Reference< embed::XEmbeddedObject > comphelper::EmbeddedObjectContainer::InsertEmbeddedLink ( const css::uno::Sequence< css::beans::PropertyValue > &  aMedium,
OUString &  rNewName 
)
bool comphelper::EmbeddedObjectContainer::InsertEmbeddedObject ( const css::uno::Reference< css::embed::XEmbeddedObject > &  ,
OUString &   
)

Referenced by MoveEmbeddedObject().

uno::Reference< embed::XEmbeddedObject > comphelper::EmbeddedObjectContainer::InsertEmbeddedObject ( const css::uno::Sequence< css::beans::PropertyValue > &  aMedium,
OUString &  rName,
OUString const *  pBaseURL = nullptr 
)
css::uno::Reference< css::embed::XEmbeddedObject > comphelper::EmbeddedObjectContainer::InsertEmbeddedObject ( const css::uno::Reference< css::io::XInputStream > &  ,
OUString &   
)
bool comphelper::EmbeddedObjectContainer::InsertGraphicStream ( const css::uno::Reference< css::io::XInputStream > &  rStream,
const OUString &  rObjectName,
const OUString &  rMediaType 
)
bool comphelper::EmbeddedObjectContainer::InsertGraphicStreamDirectly ( const css::uno::Reference< css::io::XInputStream > &  rStream,
const OUString &  rObjectName,
const OUString &  rMediaType 
)

Definition at line 1082 of file embeddedobjectcontainer.cxx.

References pImpl.

Referenced by StoreAsChildren(), and StoreChildren().

bool comphelper::EmbeddedObjectContainer::MoveEmbeddedObject ( const OUString &  rName,
EmbeddedObjectContainer rCnt 
)
void comphelper::EmbeddedObjectContainer::ReleaseImageSubStorage ( )
void comphelper::EmbeddedObjectContainer::RemoveEmbeddedObject ( const OUString &  rName,
bool  bKeepToTempStorage = true 
)

Definition at line 826 of file embeddedobjectcontainer.cxx.

References GetEmbeddedObject().

bool comphelper::EmbeddedObjectContainer::RemoveEmbeddedObject ( const css::uno::Reference< css::embed::XEmbeddedObject > &  ,
bool  bKeepToTempStorage = true 
)
void comphelper::EmbeddedObjectContainer::RemoveGraphicStream ( const OUString &  rObjectName)

Definition at line 1112 of file embeddedobjectcontainer.cxx.

References pImpl.

bool comphelper::EmbeddedObjectContainer::SetPersistentEntries ( const css::uno::Reference< css::embed::XStorage > &  _xStorage,
bool  _bClearModifedFlag = true 
)

call setPersistentEntry for each embedded object in the container

Parameters
_xStorageThe storage where to store the objects.
_bClearModifedFlagIf <TRUE> then the modified flag will be set to <FALSE> otherwise nothing happen.
Returns
<FALSE> if no error occurred, otherwise <TRUE>.

Definition at line 1426 of file embeddedobjectcontainer.cxx.

References GetEmbeddedObject(), GetObjectNames(), and SAL_WARN_IF.

void comphelper::EmbeddedObjectContainer::setUserAllowsLinkUpdate ( bool  bNew)

Definition at line 1480 of file embeddedobjectcontainer.cxx.

References pImpl.

bool comphelper::EmbeddedObjectContainer::StoreAsChildren ( bool  _bOasisFormat,
bool  _bCreateEmbedded,
const css::uno::Reference< css::embed::XStorage > &  _xStorage 
)
bool comphelper::EmbeddedObjectContainer::StoreChildren ( bool  _bOasisFormat,
bool  _bObjectsOnly 
)
bool comphelper::EmbeddedObjectContainer::StoreEmbeddedObject ( const css::uno::Reference< css::embed::XEmbeddedObject > &  xObj,
OUString &  rName,
bool  bCopy,
const OUString &  rSrcShellID,
const OUString &  rDestShellID 
)
void comphelper::EmbeddedObjectContainer::SwitchPersistence ( const css::uno::Reference< css::embed::XStorage > &  )

Definition at line 124 of file embeddedobjectcontainer.cxx.

References pImpl, and ReleaseImageSubStorage().

bool comphelper::EmbeddedObjectContainer::TryToCopyGraphReplacement ( EmbeddedObjectContainer rSrc,
const OUString &  aOrigName,
const OUString &  aTargetName 
)

Member Data Documentation

std::unique_ptr<EmbedImpl> comphelper::EmbeddedObjectContainer::pImpl
private

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