LibreOffice Module svx (master) 1
|
#include <xmleohlp.hxx>
Public Member Functions | |
SvXMLEmbeddedObjectHelper (::comphelper::IEmbeddedHelper &rDocPersist, SvXMLEmbeddedObjectHelperMode eCreateMode) | |
virtual OUString SAL_CALL | resolveEmbeddedObjectURL (const OUString &aURL) override |
virtual css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
virtual sal_Bool SAL_CALL | hasByName (const OUString &aName) override |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
Public Member Functions inherited from comphelper::WeakComponentImplHelper< css::document::XEmbeddedObjectResolver, css::container::XNameAccess > | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | dispose () noexcept final override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
Public Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
virtual | ~WeakComponentImplHelperBase () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual void | disposing (std::unique_lock< std::mutex > &) |
Public Member Functions inherited from comphelper::UnoImplBase | |
virtual | ~UnoImplBase () |
Static Public Member Functions | |
static rtl::Reference< SvXMLEmbeddedObjectHelper > | Create (const css::uno::Reference< css::embed::XStorage > &, ::comphelper::IEmbeddedHelper &rDocPersist, SvXMLEmbeddedObjectHelperMode eCreateMode) |
static rtl::Reference< SvXMLEmbeddedObjectHelper > | Create (::comphelper::IEmbeddedHelper &rDocPersist, SvXMLEmbeddedObjectHelperMode eCreateMode) |
static void | splitObjectURL (const OUString &aURLNoPar, OUString &rContainerStorageName, OUString &rObjectStorageName) |
Private Member Functions | |
SVX_DLLPRIVATE bool | ImplGetStorageNames (const OUString &rURLStr, OUString &rContainerStorageName, OUString &rObjectStorageName, bool bInternalToExternal, bool *pGraphicRepl=nullptr, bool *pOasisFormat=nullptr) const |
SVX_DLLPRIVATE css::uno::Reference< css::embed::XStorage > const & | ImplGetContainerStorage (const OUString &rStorageName) |
SVX_DLLPRIVATE void | ImplReadObject (const OUString &rContainerStorageName, OUString &rObjName, const SvGlobalName *pClassId, SvStream *pTemp) |
SVX_DLLPRIVATE OUString | ImplInsertEmbeddedObjectURL (const OUString &rURLStr) |
SVX_DLLPRIVATE css::uno::Reference< css::io::XInputStream > | ImplGetReplacementImage (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj) |
SvXMLEmbeddedObjectHelper () | |
virtual | ~SvXMLEmbeddedObjectHelper () override |
void | Init (const css::uno::Reference< css::embed::XStorage > &, ::comphelper::IEmbeddedHelper &rDocPersist, SvXMLEmbeddedObjectHelperMode eCreateMode) |
virtual void | disposing (std::unique_lock< std::mutex > &) override |
Private Attributes | |
OUString | maCurContainerStorageName |
css::uno::Reference< css::embed::XStorage > | mxRootStorage |
::comphelper::IEmbeddedHelper * | mpDocPersist |
css::uno::Reference< css::embed::XStorage > | mxContainerStorage |
css::uno::Reference< css::embed::XStorage > | mxTempStorage |
SvXMLEmbeddedObjectHelperMode | meCreateMode |
std::optional< std::map< OUString, rtl::Reference< OutputStorageWrapper_Impl > > > | mxStreamMap |
Additional Inherited Members | |
Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Protected Attributes inherited from comphelper::WeakComponentImplHelperBase | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
Protected Attributes inherited from comphelper::UnoImplBase | |
std::mutex | m_aMutex |
bool | m_bDisposed |
Definition at line 45 of file xmleohlp.hxx.
|
private |
Definition at line 121 of file xmleohlp.cxx.
References Read.
|
overrideprivatevirtual |
Definition at line 134 of file xmleohlp.cxx.
SvXMLEmbeddedObjectHelper::SvXMLEmbeddedObjectHelper | ( | ::comphelper::IEmbeddedHelper & | rDocPersist, |
SvXMLEmbeddedObjectHelperMode | eCreateMode | ||
) |
Definition at line 127 of file xmleohlp.cxx.
|
static |
Definition at line 534 of file xmleohlp.cxx.
|
static |
References Create().
Referenced by SvxDrawingLayerExport(), and SvxDrawingLayerImport().
|
overrideprivatevirtual |
Reimplemented from comphelper::WeakComponentImplHelperBase.
Definition at line 138 of file xmleohlp.cxx.
References mxTempStorage.
|
overridevirtual |
Definition at line 569 of file xmleohlp.cxx.
References Any, DBG_ASSERT, comphelper::EmbeddedObjectContainer::GetEmbeddedObject(), comphelper::IEmbeddedHelper::getEmbeddedObjectContainer(), comphelper::OStorageHelper::GetTemporaryStorage(), ImplGetReplacementImage(), ImplGetStorageNames(), comphelper::UnoImplBase::m_aMutex, comphelper::makePropertyValue(), meCreateMode, mpDocPersist, mxStreamMap, mxTempStorage, Read, and xStream.
|
overridevirtual |
Definition at line 666 of file xmleohlp.cxx.
|
overridevirtual |
Definition at line 693 of file xmleohlp.cxx.
References cppu::UnoType< typename T >::get(), comphelper::UnoImplBase::m_aMutex, meCreateMode, and Read.
|
overridevirtual |
Definition at line 671 of file xmleohlp.cxx.
References comphelper::IEmbeddedHelper::getEmbeddedObjectContainer(), comphelper::EmbeddedObjectContainer::HasEmbeddedObject(), ImplGetStorageNames(), comphelper::UnoImplBase::m_aMutex, meCreateMode, mpDocPersist, and Read.
|
overridevirtual |
Definition at line 702 of file xmleohlp.cxx.
References comphelper::IEmbeddedHelper::getEmbeddedObjectContainer(), comphelper::EmbeddedObjectContainer::HasEmbeddedObjects(), comphelper::UnoImplBase::m_aMutex, meCreateMode, mpDocPersist, and Read.
|
private |
Definition at line 299 of file xmleohlp.cxx.
References DBG_ASSERT, maCurContainerStorageName, meCreateMode, mxContainerStorage, mxRootStorage, and Write.
Referenced by ImplReadObject().
|
private |
Definition at line 468 of file xmleohlp.cxx.
References comphelper::IEmbeddedHelper::getEmbeddedObjectContainer(), svt::EmbeddedObjectRef::GetGraphicReplacementStream(), comphelper::EmbeddedObjectContainer::GetGraphicStream(), mpDocPersist, and xStream.
Referenced by getByName().
|
private |
Definition at line 189 of file xmleohlp.cxx.
References SotStorage::GetVersion(), mxRootStorage, nPos, SAL_WARN, SOFFICE_FILEFORMAT_60, splitObjectURL(), XML_CONTAINERSTORAGE_NAME, XML_CONTAINERSTORAGE_NAME_60, XML_EMBEDDEDOBJECT_URL_BASE, and XML_EMBEDDEDOBJECTGRAPHIC_URL_BASE.
Referenced by getByName(), hasByName(), and ImplInsertEmbeddedObjectURL().
|
private |
Definition at line 415 of file xmleohlp.cxx.
References ImplGetStorageNames(), ImplReadObject(), SvGlobalName::MakeId(), meCreateMode, mxStreamMap, nPos, pOut, Read, Write, and XML_EMBEDDEDOBJECT_URL_BASE.
Referenced by resolveEmbeddedObjectURL().
|
private |
Definition at line 335 of file xmleohlp.cxx.
References aName, utl::UcbStreamHelper::CreateStream(), comphelper::EmbeddedObjectContainer::CreateUniqueObjectName(), DBG_ASSERT, comphelper::IEmbeddedHelper::getDocumentBaseURL(), comphelper::EmbeddedObjectContainer::GetEmbeddedObject(), comphelper::IEmbeddedHelper::getEmbeddedObjectContainer(), comphelper::IEmbeddedHelper::getStorage(), comphelper::EmbeddedObjectContainer::HasInstantiatedEmbeddedObject(), ImplGetContainerStorage(), mpDocPersist, SvStream::ReadStream(), and SvStream::Seek().
Referenced by ImplInsertEmbeddedObjectURL().
|
private |
Definition at line 512 of file xmleohlp.cxx.
References meCreateMode, mpDocPersist, and mxRootStorage.
Referenced by SvXMLEmbeddedObjectHelper().
|
overridevirtual |
Definition at line 545 of file xmleohlp.cxx.
References Exception, cppu::getCaughtException(), ImplInsertEmbeddedObjectURL(), and comphelper::UnoImplBase::m_aMutex.
|
static |
Definition at line 147 of file xmleohlp.cxx.
References _nPos, DBG_ASSERT, and nCount.
Referenced by ImplGetStorageNames(), and SvXMLGraphicHelper::ImplGetStreamNames().
|
private |
Definition at line 48 of file xmleohlp.hxx.
Referenced by ImplGetContainerStorage().
|
private |
Definition at line 56 of file xmleohlp.hxx.
Referenced by getByName(), getElementType(), hasByName(), hasElements(), ImplGetContainerStorage(), ImplInsertEmbeddedObjectURL(), and Init().
|
private |
Definition at line 52 of file xmleohlp.hxx.
Referenced by getByName(), hasByName(), hasElements(), ImplGetReplacementImage(), ImplReadObject(), and Init().
|
private |
Definition at line 53 of file xmleohlp.hxx.
Referenced by ImplGetContainerStorage().
|
private |
Definition at line 51 of file xmleohlp.hxx.
Referenced by ImplGetContainerStorage(), ImplGetStorageNames(), and Init().
|
private |
Definition at line 58 of file xmleohlp.hxx.
Referenced by getByName(), and ImplInsertEmbeddedObjectURL().
|
private |
Definition at line 54 of file xmleohlp.hxx.
Referenced by disposing(), and getByName().