LibreOffice Module embeddedobj (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
OleComponent Class Reference

#include <olecomponent.hxx>

Inheritance diagram for OleComponent:
[legend]
Collaboration diagram for OleComponent:
[legend]

Public Member Functions

 OleComponent (const css::uno::Reference< css::uno::XComponentContext > &xContext, OleEmbeddedObject *pOleObj)
 
virtual ~OleComponent () override
 
OleComponentcreateEmbeddedCopyOfLink ()
 
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_Int8GetCLSID ()
 
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::OMultiTypeInterfaceContainerHelper2m_pInterfaceContainer
 
bool m_bDisposed
 
bool m_bModified
 
OleComponentNative_Implm_pNativeImpl
 
OleEmbeddedObjectm_pUnoOleObject
 
OleWrapperClientSitem_pOleWrapClientSite
 
OleWrapperAdviseSinkm_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
 

Detailed Description

Definition at line 46 of file olecomponent.hxx.

Constructor & Destructor Documentation

◆ OleComponent()

OleComponent::OleComponent ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
OleEmbeddedObject pOleObj 
)

◆ ~OleComponent()

OleComponent::~OleComponent ( )
overridevirtual

Member Function Documentation

◆ addCloseListener()

void SAL_CALL OleComponent::addCloseListener ( const css::uno::Reference< css::util::XCloseListener > &  Listener)
overridevirtual

◆ addEventListener()

void SAL_CALL OleComponent::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ addModifyListener()

void SAL_CALL OleComponent::addModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  xListener)
overridevirtual

◆ CalculateTheRealSize()

css::awt::Size OleComponent::CalculateTheRealSize ( const css::awt::Size &  aContSize,
bool  bUpdate 
)

◆ CalculateWithFactor()

awt::Size OleComponent::CalculateWithFactor ( const css::awt::Size &  aSize,
const css::awt::Size &  aMultiplier,
const css::awt::Size &  aDivisor 
)
static

Definition at line 895 of file olecomponent.cxx.

References SAL_MIN_INT32.

◆ close()

void SAL_CALL OleComponent::close ( sal_Bool  DeliverOwnership)
overridevirtual

◆ CloseObject()

void OleComponent::CloseObject ( )

Definition at line 914 of file olecomponent.cxx.

References m_pNativeImpl, and OleComponentNative_Impl::m_pOleObject.

Referenced by Dispose().

◆ createEmbeddedCopyOfLink()

OleComponent * OleComponent::createEmbeddedCopyOfLink ( )

◆ CreateLinkFromFile()

void OleComponent::CreateLinkFromFile ( const OUString &  aFileName)

◆ CreateNewEmbeddedObject()

void OleComponent::CreateNewEmbeddedObject ( const css::uno::Sequence< sal_Int8 > &  aSeqCLSID)

◆ CreateNewIStorage_Impl()

void OleComponent::CreateNewIStorage_Impl ( )
private

◆ CreateObjectFromClipboard()

void OleComponent::CreateObjectFromClipboard ( )

◆ CreateObjectFromData()

void OleComponent::CreateObjectFromData ( const css::uno::Reference< css::datatransfer::XTransferable > &  xTransfer)
static

Definition at line 712 of file olecomponent.cxx.

◆ CreateObjectFromFile()

void OleComponent::CreateObjectFromFile ( const OUString &  aFileName)

◆ disconnectEmbeddedObject()

void OleComponent::disconnectEmbeddedObject ( )

Definition at line 423 of file olecomponent.cxx.

References m_aMutex, and m_pUnoOleObject.

◆ Dispose()

void OleComponent::Dispose ( )
private

◆ dispose()

void SAL_CALL OleComponent::dispose ( void  )
overridevirtual

Definition at line 1549 of file olecomponent.cxx.

References close().

◆ ExecuteVerb()

void OleComponent::ExecuteVerb ( sal_Int32  nVerbID)

◆ GetCachedExtent()

awt::Size OleComponent::GetCachedExtent ( sal_Int64  nAspect)

◆ GetCLSID()

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().

◆ GetExtent()

awt::Size OleComponent::GetExtent ( sal_Int64  nAspect)

◆ GetMiscStatus()

sal_Int64 OleComponent::GetMiscStatus ( sal_Int64  nAspect)

Definition at line 1148 of file olecomponent.cxx.

References m_pNativeImpl, and OleComponentNative_Impl::m_pOleObject.

◆ GetRecommendedExtent()

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.

◆ getSomething()

sal_Int64 SAL_CALL OleComponent::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

◆ getTransferData()

uno::Any SAL_CALL OleComponent::getTransferData ( const css::datatransfer::DataFlavor &  aFlavor)
overridevirtual

◆ getTransferDataFlavors()

uno::Sequence< datatransfer::DataFlavor > SAL_CALL OleComponent::getTransferDataFlavors ( )
overridevirtual

◆ GetVerbList()

uno::Sequence< embed::VerbDescriptor > OleComponent::GetVerbList ( )

◆ InitEmbeddedCopyOfLink()

void OleComponent::InitEmbeddedCopyOfLink ( rtl::Reference< OleComponent > const &  pOleLinkComponent)

◆ InitializeObject_Impl()

bool OleComponent::InitializeObject_Impl ( )
private

◆ isDataFlavorSupported()

sal_Bool SAL_CALL OleComponent::isDataFlavorSupported ( const css::datatransfer::DataFlavor &  aFlavor)
overridevirtual

◆ IsDirty()

bool OleComponent::IsDirty ( )

◆ isModified()

sal_Bool SAL_CALL OleComponent::isModified ( )
overridevirtual

Definition at line 1617 of file olecomponent.cxx.

References m_bModified.

◆ IsWorkaroundActive()

bool OleComponent::IsWorkaroundActive ( ) const
inline

Definition at line 126 of file olecomponent.hxx.

References m_bWorkaroundActive.

Referenced by IsDirty().

◆ LoadEmbeddedObject()

void OleComponent::LoadEmbeddedObject ( const OUString &  aTempURL)

◆ OnClose_Impl()

void OleComponent::OnClose_Impl ( )

Definition at line 1312 of file olecomponent.cxx.

References m_aMutex, m_pUnoOleObject, m_xContext, and OLECOMP_ONCLOSE.

◆ OnShowWindow_Impl()

bool OleComponent::OnShowWindow_Impl ( bool  bShow)

Definition at line 1266 of file olecomponent.cxx.

References m_aMutex, and m_pUnoOleObject.

Referenced by OleWrapperClientSite::OnShowWindow().

◆ OnViewChange_Impl()

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.

◆ removeCloseListener()

void SAL_CALL OleComponent::removeCloseListener ( const css::uno::Reference< css::util::XCloseListener > &  Listener)
overridevirtual

◆ removeEventListener()

void SAL_CALL OleComponent::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ removeModifyListener()

void SAL_CALL OleComponent::removeModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  xListener)
overridevirtual

◆ RetrieveObjectDataFlavors_Impl()

void OleComponent::RetrieveObjectDataFlavors_Impl ( )
private

◆ RunObject()

void OleComponent::RunObject ( )

◆ SaveObject_Impl()

bool OleComponent::SaveObject_Impl ( )

Definition at line 1242 of file olecomponent.cxx.

References m_aMutex, and m_pUnoOleObject.

Referenced by OleWrapperClientSite::SaveObject().

◆ SetExtent()

void OleComponent::SetExtent ( const css::awt::Size &  aVisAreaSize,
sal_Int64  nAspect 
)

◆ SetHostName()

void OleComponent::SetHostName ( const OUString &  aEmbDocName)

Definition at line 979 of file olecomponent.cxx.

References m_pNativeImpl, and OleComponentNative_Impl::m_pOleObject.

◆ setModified()

void SAL_CALL OleComponent::setModified ( sal_Bool  bModified)
overridevirtual

◆ StoreOwnTmpIfNecessary()

void OleComponent::StoreOwnTmpIfNecessary ( )

Member Data Documentation

◆ m_aDataFlavors

css::uno::Sequence< css::datatransfer::DataFlavor > OleComponent::m_aDataFlavors
private

◆ m_aMutex

::osl::Mutex OleComponent::m_aMutex
private

◆ m_aVerbList

css::uno::Sequence< css::embed::VerbDescriptor > OleComponent::m_aVerbList
private

Definition at line 64 of file olecomponent.hxx.

Referenced by GetVerbList().

◆ m_bDisposed

bool OleComponent::m_bDisposed
private

◆ m_bModified

bool OleComponent::m_bModified
private

Definition at line 54 of file olecomponent.hxx.

Referenced by isModified(), and setModified().

◆ m_bOleInitialized

bool OleComponent::m_bOleInitialized
private

Definition at line 69 of file olecomponent.hxx.

Referenced by Dispose(), OleComponent(), and ~OleComponent().

◆ m_bWorkaroundActive

bool OleComponent::m_bWorkaroundActive
private

Definition at line 73 of file olecomponent.hxx.

Referenced by IsWorkaroundActive(), and StoreOwnTmpIfNecessary().

◆ m_nAdvConn

sal_Int32 OleComponent::m_nAdvConn
private

Definition at line 62 of file olecomponent.hxx.

Referenced by InitializeObject_Impl().

◆ m_nOLEMiscFlags

sal_Int32 OleComponent::m_nOLEMiscFlags
private

Definition at line 61 of file olecomponent.hxx.

Referenced by InitializeObject_Impl().

◆ m_pImplAdviseSink

OleWrapperAdviseSink* OleComponent::m_pImplAdviseSink
private

Definition at line 59 of file olecomponent.hxx.

Referenced by Dispose(), InitializeObject_Impl(), OleComponent(), and ~OleComponent().

◆ m_pInterfaceContainer

comphelper::OMultiTypeInterfaceContainerHelper2* OleComponent::m_pInterfaceContainer
private

◆ m_pNativeImpl

OleComponentNative_Impl* OleComponent::m_pNativeImpl
private

◆ m_pOleWrapClientSite

OleWrapperClientSite* OleComponent::m_pOleWrapClientSite
private

◆ m_pUnoOleObject

OleEmbeddedObject* OleComponent::m_pUnoOleObject
private

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > OleComponent::m_xContext
private

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