LibreOffice Module embeddedobj (master) 1
|
#include <olecomponent.hxx>
Public Member Functions | |
OleComponent (const css::uno::Reference< css::uno::XComponentContext > &xContext, OleEmbeddedObject *pOleObj) | |
virtual | ~OleComponent () override |
OleComponent * | createEmbeddedCopyOfLink () |
void | disconnectEmbeddedObject () |
css::awt::Size | CalculateTheRealSize (const css::awt::Size &aContSize, bool bUpdate) |
void | LoadEmbeddedObject (const OUString &aTempURL) |
void | CreateObjectFromClipboard () |
void | CreateNewEmbeddedObject (const css::uno::Sequence< sal_Int8 > &aSeqCLSID) |
void | CreateObjectFromFile (const OUString &aFileName) |
void | CreateLinkFromFile (const OUString &aFileName) |
void | InitEmbeddedCopyOfLink (rtl::Reference< OleComponent > const &pOleLinkComponent) |
void | RunObject () |
void | CloseObject () |
css::uno::Sequence< css::embed::VerbDescriptor > | GetVerbList () |
void | ExecuteVerb (sal_Int32 nVerbID) |
void | SetHostName (const OUString &aEmbDocName) |
void | SetExtent (const css::awt::Size &aVisAreaSize, sal_Int64 nAspect) |
css::awt::Size | GetExtent (sal_Int64 nAspect) |
css::awt::Size | GetCachedExtent (sal_Int64 nAspect) |
css::awt::Size | GetRecommendedExtent (sal_Int64 nAspect) |
sal_Int64 | GetMiscStatus (sal_Int64 nAspect) |
css::uno::Sequence< sal_Int8 > | GetCLSID () |
bool | IsWorkaroundActive () const |
bool | IsDirty () |
void | StoreOwnTmpIfNecessary () |
bool | SaveObject_Impl () |
bool | OnShowWindow_Impl (bool bShow) |
void | OnViewChange_Impl (sal_uInt32 dwAspect) |
void | OnClose_Impl () |
virtual void SAL_CALL | close (sal_Bool DeliverOwnership) override |
virtual void SAL_CALL | addCloseListener (const css::uno::Reference< css::util::XCloseListener > &Listener) override |
virtual void SAL_CALL | removeCloseListener (const css::uno::Reference< css::util::XCloseListener > &Listener) override |
virtual css::uno::Any SAL_CALL | getTransferData (const css::datatransfer::DataFlavor &aFlavor) override |
virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL | getTransferDataFlavors () override |
virtual sal_Bool SAL_CALL | isDataFlavorSupported (const css::datatransfer::DataFlavor &aFlavor) override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override |
virtual sal_Bool SAL_CALL | isModified () override |
virtual void SAL_CALL | setModified (sal_Bool bModified) override |
virtual void SAL_CALL | addModifyListener (const css::uno::Reference< css::util::XModifyListener > &xListener) override |
virtual void SAL_CALL | removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &xListener) override |
Static Public Member Functions | |
static css::awt::Size | CalculateWithFactor (const css::awt::Size &aSize, const css::awt::Size &aMultiplier, const css::awt::Size &aDivisor) |
static void | CreateObjectFromData (const css::uno::Reference< css::datatransfer::XTransferable > &xTransfer) |
Private Member Functions | |
bool | InitializeObject_Impl () |
void | CreateNewIStorage_Impl () |
void | RetrieveObjectDataFlavors_Impl () |
void | Dispose () |
Private Attributes | |
::osl::Mutex | m_aMutex |
comphelper::OMultiTypeInterfaceContainerHelper2 * | m_pInterfaceContainer |
bool | m_bDisposed |
bool | m_bModified |
OleComponentNative_Impl * | m_pNativeImpl |
OleEmbeddedObject * | m_pUnoOleObject |
OleWrapperClientSite * | m_pOleWrapClientSite |
OleWrapperAdviseSink * | m_pImplAdviseSink |
sal_Int32 | m_nOLEMiscFlags |
sal_Int32 | m_nAdvConn |
css::uno::Sequence< css::embed::VerbDescriptor > | m_aVerbList |
css::uno::Sequence< css::datatransfer::DataFlavor > | m_aDataFlavors |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
bool | m_bOleInitialized |
bool | m_bWorkaroundActive |
Definition at line 46 of file olecomponent.hxx.
OleComponent::OleComponent | ( | const css::uno::Reference< css::uno::XComponentContext > & | xContext, |
OleEmbeddedObject * | pOleObj | ||
) |
Definition at line 319 of file olecomponent.cxx.
References hr, m_bDisposed, m_bOleInitialized, m_pImplAdviseSink, m_pOleWrapClientSite, m_pUnoOleObject, m_xContext, and SAL_WARN.
|
overridevirtual |
Definition at line 354 of file olecomponent.cxx.
References Dispose(), OleComponentNative_Impl::m_aFormatsList, m_bOleInitialized, m_pImplAdviseSink, m_pInterfaceContainer, m_pNativeImpl, m_pOleWrapClientSite, and m_refCount.
|
overridevirtual |
Definition at line 1390 of file olecomponent.cxx.
References comphelper::OMultiTypeInterfaceContainerHelper2::addInterface(), m_aMutex, m_bDisposed, and m_pInterfaceContainer.
|
overridevirtual |
Definition at line 1560 of file olecomponent.cxx.
References comphelper::OMultiTypeInterfaceContainerHelper2::addInterface(), m_aMutex, m_bDisposed, and m_pInterfaceContainer.
|
overridevirtual |
Definition at line 1649 of file olecomponent.cxx.
References comphelper::OMultiTypeInterfaceContainerHelper2::addInterface(), m_aMutex, m_bDisposed, and m_pInterfaceContainer.
css::awt::Size OleComponent::CalculateTheRealSize | ( | const css::awt::Size & | aContSize, |
bool | bUpdate | ||
) |
|
static |
Definition at line 895 of file olecomponent.cxx.
References SAL_MIN_INT32.
|
overridevirtual |
Definition at line 1333 of file olecomponent.cxx.
References Dispose(), comphelper::OMultiTypeInterfaceContainerHelper2::getContainer(), comphelper::OInterfaceIteratorHelper2::hasMoreElements(), m_aMutex, m_bDisposed, m_pInterfaceContainer, comphelper::OInterfaceIteratorHelper2::next(), and comphelper::OInterfaceIteratorHelper2::remove().
Referenced by dispose().
void OleComponent::CloseObject | ( | ) |
Definition at line 914 of file olecomponent.cxx.
References m_pNativeImpl, and OleComponentNative_Impl::m_pOleObject.
Referenced by Dispose().
OleComponent * OleComponent::createEmbeddedCopyOfLink | ( | ) |
void OleComponent::CreateLinkFromFile | ( | const OUString & | aFileName | ) |
Definition at line 753 of file olecomponent.cxx.
References CreateNewIStorage_Impl(), hr, InitializeObject_Impl(), OleComponentNative_Impl::m_pIStorage, m_pNativeImpl, and OleComponentNative_Impl::m_pObj.
void OleComponent::CreateNewEmbeddedObject | ( | const css::uno::Sequence< sal_Int8 > & | aSeqCLSID | ) |
Definition at line 678 of file olecomponent.cxx.
References CreateNewIStorage_Impl(), GetClassIDFromSequence_Impl(), hr, InitializeObject_Impl(), OleComponentNative_Impl::m_pIStorage, m_pNativeImpl, and OleComponentNative_Impl::m_pObj.
|
private |
Definition at line 431 of file olecomponent.cxx.
References GetNewTempFileURL_Impl(), hr, OleComponentNative_Impl::m_pIStorage, m_pNativeImpl, m_pUnoOleObject, and m_xContext.
Referenced by CreateLinkFromFile(), CreateNewEmbeddedObject(), CreateObjectFromClipboard(), CreateObjectFromFile(), and InitEmbeddedCopyOfLink().
void OleComponent::CreateObjectFromClipboard | ( | ) |
Definition at line 639 of file olecomponent.cxx.
References CreateNewIStorage_Impl(), hr, InitializeObject_Impl(), OleComponentNative_Impl::m_pIStorage, m_pNativeImpl, and OleComponentNative_Impl::m_pObj.
|
static |
Definition at line 712 of file olecomponent.cxx.
void OleComponent::CreateObjectFromFile | ( | const OUString & | aFileName | ) |
Definition at line 723 of file olecomponent.cxx.
References CreateNewIStorage_Impl(), hr, InitializeObject_Impl(), OleComponentNative_Impl::m_pIStorage, m_pNativeImpl, and OleComponentNative_Impl::m_pObj.
void OleComponent::disconnectEmbeddedObject | ( | ) |
Definition at line 423 of file olecomponent.cxx.
References m_aMutex, and m_pUnoOleObject.
|
private |
Definition at line 376 of file olecomponent.cxx.
References aEvent, CloseObject(), OleWrapperAdviseSink::disconnectOleComponent(), OleWrapperClientSite::disconnectOleComponent(), comphelper::OMultiTypeInterfaceContainerHelper2::disposeAndClear(), m_aMutex, m_bDisposed, m_bOleInitialized, m_pImplAdviseSink, m_pInterfaceContainer, and m_pOleWrapClientSite.
Referenced by close(), and ~OleComponent().
|
overridevirtual |
Definition at line 1549 of file olecomponent.cxx.
References close().
void OleComponent::ExecuteVerb | ( | sal_Int32 | nVerbID | ) |
Definition at line 961 of file olecomponent.cxx.
References hr, m_pNativeImpl, OleComponentNative_Impl::m_pOleObject, and m_pOleWrapClientSite.
awt::Size OleComponent::GetCachedExtent | ( | sal_Int64 | nAspect | ) |
Definition at line 1103 of file olecomponent.cxx.
References hr, m_pNativeImpl, OleComponentNative_Impl::m_pOleObject, OleComponentNative_Impl::m_pViewObject2, and SAL_WARN.
uno::Sequence< sal_Int8 > OleComponent::GetCLSID | ( | ) |
Definition at line 1159 of file olecomponent.cxx.
References hr, m_pNativeImpl, and OleComponentNative_Impl::m_pOleObject.
Referenced by getSomething().
awt::Size OleComponent::GetExtent | ( | sal_Int64 | nAspect | ) |
Definition at line 1010 of file olecomponent.cxx.
References abs(), o3tl::convert(), hr, o3tl::in100, o3tl::in1000, m_pNativeImpl, OleComponentNative_Impl::m_pObj, OleComponentNative_Impl::m_pOleObject, o3tl::mm10, o3tl::mm100, MM_ANISOTROPIC, MM_HIENGLISH, MM_HIMETRIC, MM_ISOTROPIC, MM_LOENGLISH, MM_LOMETRIC, MM_TWIPS, pFormatTemplates, RunObject(), SAL_MAX_INT32, SAL_WARN, vcl::solarthread::syncExecute(), and o3tl::twip.
sal_Int64 OleComponent::GetMiscStatus | ( | sal_Int64 | nAspect | ) |
Definition at line 1148 of file olecomponent.cxx.
References m_pNativeImpl, and OleComponentNative_Impl::m_pOleObject.
awt::Size OleComponent::GetRecommendedExtent | ( | sal_Int64 | nAspect | ) |
Definition at line 1130 of file olecomponent.cxx.
References hr, m_pNativeImpl, OleComponentNative_Impl::m_pOleObject, and SAL_WARN.
|
overridevirtual |
Definition at line 1584 of file olecomponent.cxx.
References GetCLSID(), comphelper::getSomething_cast(), m_pNativeImpl, OleComponentNative_Impl::m_pObj, n, and nLength.
|
overridevirtual |
Definition at line 1416 of file olecomponent.cxx.
References OleComponentNative_Impl::ConvertDataForFlavor(), FORMATS_NUM, GetAspectFromFlavor(), OleComponentNative_Impl::GraphicalFlavor(), hr, m_aMutex, m_bDisposed, m_pNativeImpl, OleComponentNative_Impl::m_pObj, OleComponentNative_Impl::m_pOleObject, m_pUnoOleObject, m_xContext, and pFormatTemplates.
|
overridevirtual |
Definition at line 1513 of file olecomponent.cxx.
References m_aDataFlavors, m_aMutex, m_bDisposed, m_pNativeImpl, OleComponentNative_Impl::m_pOleObject, and RetrieveObjectDataFlavors_Impl().
uno::Sequence< embed::VerbDescriptor > OleComponent::GetVerbList | ( | ) |
Definition at line 921 of file olecomponent.cxx.
References hr, m_aVerbList, m_pNativeImpl, OleComponentNative_Impl::m_pOleObject, MAX_ENUM_ELE, and WinAccToVcl_Impl().
void OleComponent::InitEmbeddedCopyOfLink | ( | rtl::Reference< OleComponent > const & | pOleLinkComponent | ) |
Definition at line 782 of file olecomponent.cxx.
References CreateNewIStorage_Impl(), hr, InitializeObject_Impl(), OleComponentNative_Impl::m_pIStorage, m_pNativeImpl, and OleComponentNative_Impl::m_pObj.
|
private |
Definition at line 533 of file olecomponent.cxx.
References m_nAdvConn, m_nOLEMiscFlags, m_pImplAdviseSink, m_pNativeImpl, OleComponentNative_Impl::m_pObj, OleComponentNative_Impl::m_pOleObject, m_pOleWrapClientSite, m_pUnoOleObject, OleComponentNative_Impl::m_pViewObject2, and TRUE.
Referenced by CreateLinkFromFile(), CreateNewEmbeddedObject(), CreateObjectFromClipboard(), CreateObjectFromFile(), InitEmbeddedCopyOfLink(), and LoadEmbeddedObject().
|
overridevirtual |
Definition at line 1528 of file olecomponent.cxx.
References m_aDataFlavors, m_aMutex, m_bDisposed, m_pNativeImpl, OleComponentNative_Impl::m_pOleObject, and RetrieveObjectDataFlavors_Impl().
bool OleComponent::IsDirty | ( | ) |
Definition at line 1177 of file olecomponent.cxx.
References hr, IsWorkaroundActive(), m_pNativeImpl, OleComponentNative_Impl::m_pObj, and OleComponentNative_Impl::m_pOleObject.
|
overridevirtual |
Definition at line 1617 of file olecomponent.cxx.
References m_bModified.
|
inline |
Definition at line 126 of file olecomponent.hxx.
References m_bWorkaroundActive.
Referenced by IsDirty().
void OleComponent::LoadEmbeddedObject | ( | const OUString & | aTempURL | ) |
Definition at line 614 of file olecomponent.cxx.
References hr, InitializeObject_Impl(), OleComponentNative_Impl::m_pIStorage, m_pNativeImpl, OleComponentNative_Impl::m_pObj, and OpenIStorageFromURL_Impl().
void OleComponent::OnClose_Impl | ( | ) |
Definition at line 1312 of file olecomponent.cxx.
References m_aMutex, m_pUnoOleObject, m_xContext, and OLECOMP_ONCLOSE.
bool OleComponent::OnShowWindow_Impl | ( | bool | bShow | ) |
Definition at line 1266 of file olecomponent.cxx.
References m_aMutex, and m_pUnoOleObject.
Referenced by OleWrapperClientSite::OnShowWindow().
void OleComponent::OnViewChange_Impl | ( | sal_uInt32 | dwAspect | ) |
Definition at line 1291 of file olecomponent.cxx.
References m_aMutex, m_pUnoOleObject, m_xContext, and OLECOMP_ONVIEWCHANGE.
|
overridevirtual |
Definition at line 1403 of file olecomponent.cxx.
References m_aMutex, m_bDisposed, m_pInterfaceContainer, and comphelper::OMultiTypeInterfaceContainerHelper2::removeInterface().
|
overridevirtual |
Definition at line 1573 of file olecomponent.cxx.
References m_aMutex, m_bDisposed, m_pInterfaceContainer, and comphelper::OMultiTypeInterfaceContainerHelper2::removeInterface().
|
overridevirtual |
Definition at line 1661 of file olecomponent.cxx.
References m_aMutex, m_bDisposed, m_pInterfaceContainer, and comphelper::OMultiTypeInterfaceContainerHelper2::removeInterface().
|
private |
Definition at line 482 of file olecomponent.cxx.
References FORMATS_NUM, OleComponentNative_Impl::GetFlavorsForAspects(), hr, m_aDataFlavors, m_pNativeImpl, OleComponentNative_Impl::m_pObj, OleComponentNative_Impl::m_pOleObject, MAX_ENUM_ELE, and pFormatTemplates.
Referenced by getTransferDataFlavors(), and isDataFlavorSupported().
void OleComponent::RunObject | ( | ) |
Definition at line 874 of file olecomponent.cxx.
References hr, m_pNativeImpl, OleComponentNative_Impl::m_pObj, and OleComponentNative_Impl::m_pOleObject.
Referenced by GetExtent().
bool OleComponent::SaveObject_Impl | ( | ) |
Definition at line 1242 of file olecomponent.cxx.
References m_aMutex, and m_pUnoOleObject.
Referenced by OleWrapperClientSite::SaveObject().
void OleComponent::SetExtent | ( | const css::awt::Size & | aVisAreaSize, |
sal_Int64 | nAspect | ||
) |
Definition at line 988 of file olecomponent.cxx.
References hr, m_pNativeImpl, OleComponentNative_Impl::m_pOleObject, and Size::Width().
void OleComponent::SetHostName | ( | const OUString & | aEmbDocName | ) |
Definition at line 979 of file olecomponent.cxx.
References m_pNativeImpl, and OleComponentNative_Impl::m_pOleObject.
|
overridevirtual |
Definition at line 1622 of file olecomponent.cxx.
References aEvent, comphelper::OMultiTypeInterfaceContainerHelper2::getContainer(), comphelper::OInterfaceIteratorHelper2::hasMoreElements(), m_bModified, m_pInterfaceContainer, comphelper::OInterfaceIteratorHelper2::next(), and comphelper::OInterfaceIteratorHelper2::remove().
void OleComponent::StoreOwnTmpIfNecessary | ( | ) |
Definition at line 1194 of file olecomponent.cxx.
References hr, m_bWorkaroundActive, OleComponentNative_Impl::m_pIStorage, m_pNativeImpl, OleComponentNative_Impl::m_pObj, OleComponentNative_Impl::m_pOleObject, SAL_WARN, and TRUE.
|
private |
Definition at line 65 of file olecomponent.hxx.
Referenced by getTransferDataFlavors(), isDataFlavorSupported(), and RetrieveObjectDataFlavors_Impl().
|
private |
Definition at line 50 of file olecomponent.hxx.
Referenced by addCloseListener(), addEventListener(), addModifyListener(), close(), disconnectEmbeddedObject(), Dispose(), getTransferData(), getTransferDataFlavors(), isDataFlavorSupported(), OnClose_Impl(), OnShowWindow_Impl(), OnViewChange_Impl(), removeCloseListener(), removeEventListener(), removeModifyListener(), and SaveObject_Impl().
|
private |
Definition at line 64 of file olecomponent.hxx.
Referenced by GetVerbList().
|
private |
Definition at line 53 of file olecomponent.hxx.
Referenced by addCloseListener(), addEventListener(), addModifyListener(), close(), Dispose(), getTransferData(), getTransferDataFlavors(), isDataFlavorSupported(), removeCloseListener(), removeEventListener(), and removeModifyListener().
|
private |
Definition at line 54 of file olecomponent.hxx.
Referenced by isModified(), and setModified().
|
private |
Definition at line 69 of file olecomponent.hxx.
Referenced by Dispose(), OleComponent(), and ~OleComponent().
|
private |
Definition at line 73 of file olecomponent.hxx.
Referenced by IsWorkaroundActive(), and StoreOwnTmpIfNecessary().
|
private |
Definition at line 62 of file olecomponent.hxx.
Referenced by InitializeObject_Impl().
|
private |
Definition at line 61 of file olecomponent.hxx.
Referenced by InitializeObject_Impl().
|
private |
Definition at line 59 of file olecomponent.hxx.
Referenced by Dispose(), InitializeObject_Impl(), OleComponent(), and ~OleComponent().
|
private |
Definition at line 51 of file olecomponent.hxx.
Referenced by addCloseListener(), addEventListener(), addModifyListener(), close(), Dispose(), removeCloseListener(), removeEventListener(), removeModifyListener(), setModified(), and ~OleComponent().
|
private |
Definition at line 55 of file olecomponent.hxx.
Referenced by CloseObject(), CreateLinkFromFile(), CreateNewEmbeddedObject(), CreateNewIStorage_Impl(), CreateObjectFromClipboard(), CreateObjectFromFile(), ExecuteVerb(), GetCachedExtent(), GetCLSID(), GetExtent(), GetMiscStatus(), GetRecommendedExtent(), getSomething(), getTransferData(), getTransferDataFlavors(), GetVerbList(), InitEmbeddedCopyOfLink(), InitializeObject_Impl(), isDataFlavorSupported(), IsDirty(), LoadEmbeddedObject(), RetrieveObjectDataFlavors_Impl(), RunObject(), SetExtent(), SetHostName(), StoreOwnTmpIfNecessary(), and ~OleComponent().
|
private |
Definition at line 58 of file olecomponent.hxx.
Referenced by Dispose(), ExecuteVerb(), InitializeObject_Impl(), OleComponent(), and ~OleComponent().
|
private |
Definition at line 57 of file olecomponent.hxx.
Referenced by CreateNewIStorage_Impl(), disconnectEmbeddedObject(), getTransferData(), InitializeObject_Impl(), OleComponent(), OnClose_Impl(), OnShowWindow_Impl(), OnViewChange_Impl(), and SaveObject_Impl().
|
private |
Definition at line 67 of file olecomponent.hxx.
Referenced by CreateNewIStorage_Impl(), getTransferData(), OnClose_Impl(), and OnViewChange_Impl().