LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwOLEObj Class Reference

#include <ndole.hxx>

Collaboration diagram for SwOLEObj:
[legend]

Public Member Functions

 SwOLEObj (const svt::EmbeddedObjectRef &pObj)
 
 SwOLEObj (OUString aName, sal_Int64 nAspect)
 
 ~SwOLEObj () COVERITY_NOEXCEPT_FALSE
 
bool UnloadObject ()
 
OUString GetDescription ()
 
css::uno::Reference< css::embed::XEmbeddedObject > const & GetOleRef ()
 
svt::EmbeddedObjectRefGetObject ()
 
const OUString & GetCurrentPersistName () const
 
OUString GetStyleString ()
 
bool IsOleRef () const
 To avoid unnecessary loading of object. More...
 
bool IsProtected () const
 
drawinglayer::primitive2d::Primitive2DContainer const & tryToGetChartContentAsPrimitive2DSequence (basegfx::B2DRange &rRange, bool bSynchron)
 
void resetBufferedData ()
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Static Public Member Functions

static bool UnloadObject (css::uno::Reference< css::embed::XEmbeddedObject > const &xObj, const SwDoc *pDoc, sal_Int64 nAspect)
 

Private Member Functions

 SwOLEObj (const SwOLEObj &rObj)=delete
 
void SetNode (SwOLENode *pNode)
 
 DECL_LINK (IsProtectedHdl, LinkParamNone *, bool)
 

Private Attributes

const SwOLENodem_pOLENode
 
rtl::Reference< SwOLEListener_Implm_xListener
 
svt::EmbeddedObjectRef m_xOLERef
 Either ref or name are known. More...
 
OUString m_aName
 
drawinglayer::primitive2d::Primitive2DContainer m_aPrimitive2DSequence
 
basegfx::B2DRange m_aRange
 
sal_uInt32 m_nGraphicVersion
 
std::unique_ptr< DeflateDatam_pDeflateData
 

Friends

class SwOLENode
 

Detailed Description

Definition at line 34 of file ndole.hxx.

Constructor & Destructor Documentation

◆ SwOLEObj() [1/3]

SwOLEObj::SwOLEObj ( const SwOLEObj rObj)
privatedelete

◆ SwOLEObj() [2/3]

SwOLEObj::SwOLEObj ( const svt::EmbeddedObjectRef pObj)

◆ SwOLEObj() [3/3]

SwOLEObj::SwOLEObj ( OUString  aName,
sal_Int64  nAspect 
)

◆ ~SwOLEObj()

SwOLEObj::~SwOLEObj ( )

Member Function Documentation

◆ DECL_LINK()

SwOLEObj::DECL_LINK ( IsProtectedHdl  ,
LinkParamNone ,
bool   
)
private

◆ dumpAsXml()

void SwOLEObj::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 1251 of file ndole.cxx.

References svt::EmbeddedObjectRef::dumpAsXml(), and m_xOLERef.

Referenced by SwOLENode::dumpAsXml().

◆ GetCurrentPersistName()

const OUString & SwOLEObj::GetCurrentPersistName ( ) const
inline

◆ GetDescription()

OUString SwOLEObj::GetDescription ( )

◆ GetObject()

svt::EmbeddedObjectRef & SwOLEObj::GetObject ( )

◆ GetOleRef()

uno::Reference< embed::XEmbeddedObject > const & SwOLEObj::GetOleRef ( )

Definition at line 1012 of file ndole.cxx.

References svt::EmbeddedObjectRef::Assign(), svt::EmbeddedObjectRef::AssignToContainer(), o3tl::convert(), g_pOLELRU_Cache, SwNode::GetDoc(), SwFrameAreaDefinition::getFrameArea(), SwContentNode::getLayoutFrame(), svt::EmbeddedObjectRef::GetObject(), SwDoc::GetPersist(), svt::EmbeddedObjectRef::GetViewAspect(), svt::EmbeddedObjectRef::is(), LINK, m_aName, m_pOLENode, m_xListener, m_xOLERef, o3tl::mm100, p, sDocumentBaseURL, svt::EmbeddedObjectRef::SetIsProtectedHdl(), tools::Rectangle::SetSize(), SO3_DUMMY_CLASSID, SwRect::SSize(), and o3tl::twip.

Referenced by SwFEShell::AlignAllFormulasToBaseline(), SwTaggedPDFHelper::BeginBlockStructureElements(), SwOLENode::BreakFileLink_Impl(), sw::DocumentChartDataProviderManager::CreateChartInternalDataProviders(), sw::DocumentLayoutManager::DelLayoutFormat(), SwChartHelper::DoUpdateAllCharts(), SwXMLTextImportHelper::endAppletOrPlugin(), SwFEShell::FindFlyFrame(), RtfAttributeOutput::FlyFrameOLEMath(), GetDescription(), SwXTextEmbeddedObject::getExtendedControlOverEmbeddedObject(), SwOLENode::GetGraphic(), GetObject(), SwFEShell::GetOleRef(), SwHTMLWriter::GuessOLENodeFrameType(), IMPL_LINK_NOARG(), SwNoTextFrame::ImplPaintPictureBitmap(), SwFEShell::IsSelObjProtected(), SwChartLockController_Helper::LockUnlockAllCharts(), SwXOLEListener::modified(), OutHTML_FrameFormatOLENode(), OutHTML_FrameFormatOLENodeGrf(), SwUndoInsert::RepeatImpl(), SwOLENode::RestorePersistentData(), SwOLENode::SavePersistentData(), SwOLEListener_Impl::SwOLEListener_Impl(), WW8Export::TestOleNeedsGraphic(), SwTOXBaseSection::UpdateContent(), SwOLENode::UpdateLinkURL_Impl(), DocxAttributeOutput::WriteFlyFrame(), DocxAttributeOutput::WriteOLE(), SwBasicEscherEx::WriteOLEFlyFrame(), and DocxExport::WriteOLEObject().

◆ GetStyleString()

OUString SwOLEObj::GetStyleString ( )

◆ IsOleRef()

bool SwOLEObj::IsOleRef ( ) const

◆ IsProtected()

bool SwOLEObj::IsProtected ( ) const

◆ resetBufferedData()

void SwOLEObj::resetBufferedData ( )

◆ SetNode()

void SwOLEObj::SetNode ( SwOLENode pNode)
private

◆ tryToGetChartContentAsPrimitive2DSequence()

drawinglayer::primitive2d::Primitive2DContainer const & SwOLEObj::tryToGetChartContentAsPrimitive2DSequence ( basegfx::B2DRange rRange,
bool  bSynchron 
)

◆ UnloadObject() [1/2]

bool SwOLEObj::UnloadObject ( )

◆ UnloadObject() [2/2]

static bool SwOLEObj::UnloadObject ( css::uno::Reference< css::embed::XEmbeddedObject > const &  xObj,
const SwDoc pDoc,
sal_Int64  nAspect 
)
static

Friends And Related Function Documentation

◆ SwOLENode

friend class SwOLENode
friend

Definition at line 36 of file ndole.hxx.

Member Data Documentation

◆ m_aName

OUString SwOLEObj::m_aName
private

◆ m_aPrimitive2DSequence

drawinglayer::primitive2d::Primitive2DContainer SwOLEObj::m_aPrimitive2DSequence
private

Definition at line 47 of file ndole.hxx.

Referenced by resetBufferedData(), and tryToGetChartContentAsPrimitive2DSequence().

◆ m_aRange

basegfx::B2DRange SwOLEObj::m_aRange
private

Definition at line 48 of file ndole.hxx.

Referenced by resetBufferedData(), and tryToGetChartContentAsPrimitive2DSequence().

◆ m_nGraphicVersion

sal_uInt32 SwOLEObj::m_nGraphicVersion
private

Definition at line 49 of file ndole.hxx.

Referenced by tryToGetChartContentAsPrimitive2DSequence().

◆ m_pDeflateData

std::unique_ptr<DeflateData> SwOLEObj::m_pDeflateData
private

◆ m_pOLENode

const SwOLENode* SwOLEObj::m_pOLENode
private

Definition at line 38 of file ndole.hxx.

Referenced by GetOleRef(), IsProtected(), SetNode(), UnloadObject(), and ~SwOLEObj().

◆ m_xListener

rtl::Reference<SwOLEListener_Impl> SwOLEObj::m_xListener
private

Definition at line 39 of file ndole.hxx.

Referenced by GetOleRef(), SwOLEObj(), and ~SwOLEObj().

◆ m_xOLERef

svt::EmbeddedObjectRef SwOLEObj::m_xOLERef
private

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