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

#include <embedhlp.hxx>

Public Member Functions

const css::uno::Reference< css::embed::XEmbeddedObject > & operator-> () const
 
const css::uno::Reference< css::embed::XEmbeddedObject > & GetObject () const
 
 EmbeddedObjectRef ()
 
void Assign (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, sal_Int64 nAspect)
 
 EmbeddedObjectRef (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, sal_Int64 nAspect)
 
 ~EmbeddedObjectRef ()
 
 EmbeddedObjectRef (const EmbeddedObjectRef &)
 
void AssignToContainer (comphelper::EmbeddedObjectContainer *pContainer, const OUString &rPersistName)
 
comphelper::EmbeddedObjectContainerGetContainer () const
 
sal_Int64 GetViewAspect () const
 
void SetViewAspect (sal_Int64 nAspect)
 
const GraphicGetGraphic () const
 
Size GetSize (MapMode const *pTargetMapMode) const
 
void SetGraphic (const Graphic &rGraphic, const OUString &rMediaType)
 
void SetGraphicStream (const css::uno::Reference< css::io::XInputStream > &xInGrStream, const OUString &rMediaType)
 
void UpdateReplacement (bool bUpdateOle=false)
 
void UpdateReplacementOnDemand ()
 
void Lock (bool bLock=true)
 
void Clear ()
 
bool is () const
 
bool IsLocked () const
 
void SetIsProtectedHdl (const Link< LinkParamNone *, bool > &rProtectedHdl)
 
const Link< LinkParamNone *, bool > & GetIsProtectedHdl () const
 
bool IsChart () const
 
OUString GetChartType ()
 
sal_uInt32 getGraphicVersion () const
 
void SetDefaultSizeForChart (const Size &rSizeIn_100TH_MM)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Static Public Member Functions

static void DrawPaintReplacement (const tools::Rectangle &rRect, const OUString &rText, OutputDevice *pOut)
 
static void DrawShading (const tools::Rectangle &rRect, OutputDevice *pOut)
 
static bool TryRunningState (const css::uno::Reference< css::embed::XEmbeddedObject > &)
 
static void SetGraphicToContainer (const Graphic &rGraphic, comphelper::EmbeddedObjectContainer &aContainer, const OUString &aName, const OUString &aMediaType)
 
static css::uno::Reference< css::io::XInputStream > GetGraphicReplacementStream (sal_Int64 nViewAspect, const css::uno::Reference< css::embed::XEmbeddedObject > &, OUString *pMediaType) noexcept
 
static bool IsChart (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj)
 

Private Member Functions

SVT_DLLPRIVATE std::unique_ptr< SvStreamGetGraphicStream (bool bUpdate) const
 
SVT_DLLPRIVATE void GetReplacement (bool bUpdate)
 
SVT_DLLPRIVATE void UpdateOleObject (bool bUpdateOle)
 
EmbeddedObjectRefoperator= (const EmbeddedObjectRef &)=delete
 

Private Attributes

std::unique_ptr< EmbeddedObjectRef_ImplmpImpl
 

Detailed Description

Definition at line 46 of file embedhlp.hxx.

Constructor & Destructor Documentation

◆ EmbeddedObjectRef() [1/3]

svt::EmbeddedObjectRef::EmbeddedObjectRef ( )

Definition at line 325 of file embedhlp.cxx.

◆ EmbeddedObjectRef() [2/3]

svt::EmbeddedObjectRef::EmbeddedObjectRef ( const css::uno::Reference< css::embed::XEmbeddedObject > &  xObj,
sal_Int64  nAspect 
)

References Clear().

◆ ~EmbeddedObjectRef()

svt::EmbeddedObjectRef::~EmbeddedObjectRef ( )

Definition at line 341 of file embedhlp.cxx.

References Clear().

◆ EmbeddedObjectRef() [3/3]

svt::EmbeddedObjectRef::EmbeddedObjectRef ( const EmbeddedObjectRef rObj)

Definition at line 335 of file embedhlp.cxx.

References mpImpl.

Member Function Documentation

◆ Assign()

void svt::EmbeddedObjectRef::Assign ( const css::uno::Reference< css::embed::XEmbeddedObject > &  xObj,
sal_Int64  nAspect 
)

Definition at line 346 of file embedhlp.cxx.

References Clear(), DBG_ASSERT, IsChart(), and mpImpl.

◆ AssignToContainer()

void svt::EmbeddedObjectRef::AssignToContainer ( comphelper::EmbeddedObjectContainer pContainer,
const OUString &  rPersistName 
)

Definition at line 409 of file embedhlp.cxx.

References mpImpl, and SetGraphicToContainer().

◆ Clear()

void svt::EmbeddedObjectRef::Clear ( )

Definition at line 365 of file embedhlp.cxx.

References mpImpl, and TOOLS_WARN_EXCEPTION.

Referenced by Assign(), and ~EmbeddedObjectRef().

◆ DrawPaintReplacement()

void svt::EmbeddedObjectRef::DrawPaintReplacement ( const tools::Rectangle rRect,
const OUString &  rText,
OutputDevice pOut 
)
static

◆ DrawShading()

void svt::EmbeddedObjectRef::DrawShading ( const tools::Rectangle rRect,
OutputDevice pOut 
)
static

◆ dumpAsXml()

void svt::EmbeddedObjectRef::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 1084 of file embedhlp.cxx.

References mpImpl.

◆ GetChartType()

OUString svt::EmbeddedObjectRef::GetChartType ( )

Definition at line 971 of file embedhlp.cxx.

References IsChart(), mpImpl, Style, and TryRunningState().

◆ GetContainer()

comphelper::EmbeddedObjectContainer * svt::EmbeddedObjectRef::GetContainer ( ) const

Definition at line 418 of file embedhlp.cxx.

References mpImpl.

Referenced by GetGraphicStream().

◆ GetGraphic()

const Graphic * svt::EmbeddedObjectRef::GetGraphic ( ) const

Definition at line 508 of file embedhlp.cxx.

References DBG_UNHANDLED_EXCEPTION, GetReplacement(), and mpImpl.

Referenced by GetSize().

◆ GetGraphicReplacementStream()

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

Definition at line 902 of file embedhlp.cxx.

Referenced by GetGraphicStream().

◆ GetGraphicStream()

std::unique_ptr< SvStream > svt::EmbeddedObjectRef::GetGraphicStream ( bool  bUpdate) const
private

◆ getGraphicVersion()

sal_uInt32 svt::EmbeddedObjectRef::getGraphicVersion ( ) const

Definition at line 1065 of file embedhlp.cxx.

References mpImpl.

◆ GetIsProtectedHdl()

const Link< LinkParamNone *, bool > & svt::EmbeddedObjectRef::GetIsProtectedHdl ( ) const

Definition at line 448 of file embedhlp.cxx.

References mpImpl.

◆ GetObject()

const uno::Reference< embed::XEmbeddedObject > & svt::EmbeddedObjectRef::GetObject ( ) const

Definition at line 320 of file embedhlp.cxx.

References mpImpl.

Referenced by UpdateOleObject().

◆ GetReplacement()

void svt::EmbeddedObjectRef::GetReplacement ( bool  bUpdate)
private

◆ GetSize()

Size svt::EmbeddedObjectRef::GetSize ( MapMode const *  pTargetMapMode) const

◆ GetViewAspect()

sal_Int64 svt::EmbeddedObjectRef::GetViewAspect ( ) const

Definition at line 423 of file embedhlp.cxx.

References mpImpl.

◆ is()

bool svt::EmbeddedObjectRef::is ( ) const

Definition at line 404 of file embedhlp.cxx.

References mpImpl.

◆ IsChart() [1/2]

bool svt::EmbeddedObjectRef::IsChart ( ) const

Definition at line 955 of file embedhlp.cxx.

References IsChart(), and mpImpl.

Referenced by Assign(), GetChartType(), and IsChart().

◆ IsChart() [2/2]

bool svt::EmbeddedObjectRef::IsChart ( const css::uno::Reference< css::embed::XEmbeddedObject > &  xObj)
static

◆ IsLocked()

bool svt::EmbeddedObjectRef::IsLocked ( ) const

Definition at line 438 of file embedhlp.cxx.

References mpImpl.

◆ Lock()

void svt::EmbeddedObjectRef::Lock ( bool  bLock = true)

Definition at line 433 of file embedhlp.cxx.

References mpImpl.

◆ operator->()

const uno::Reference< embed::XEmbeddedObject > & svt::EmbeddedObjectRef::operator-> ( ) const

Definition at line 315 of file embedhlp.cxx.

References mpImpl.

◆ operator=()

EmbeddedObjectRef & svt::EmbeddedObjectRef::operator= ( const EmbeddedObjectRef )
privatedelete

References GetObject().

◆ SetDefaultSizeForChart()

void svt::EmbeddedObjectRef::SetDefaultSizeForChart ( const Size rSizeIn_100TH_MM)

Definition at line 1070 of file embedhlp.cxx.

References DBG_ASSERT, Size::getHeight(), Size::getWidth(), and mpImpl.

◆ SetGraphic()

void svt::EmbeddedObjectRef::SetGraphic ( const Graphic rGraphic,
const OUString &  rMediaType 
)

Definition at line 615 of file embedhlp.cxx.

References mpImpl, and SetGraphicToContainer().

◆ SetGraphicStream()

void svt::EmbeddedObjectRef::SetGraphicStream ( const css::uno::Reference< css::io::XInputStream > &  xInGrStream,
const OUString &  rMediaType 
)

◆ SetGraphicToContainer()

void svt::EmbeddedObjectRef::SetGraphicToContainer ( const Graphic rGraphic,
comphelper::EmbeddedObjectContainer aContainer,
const OUString &  aName,
const OUString &  aMediaType 
)
static

◆ SetIsProtectedHdl()

void svt::EmbeddedObjectRef::SetIsProtectedHdl ( const Link< LinkParamNone *, bool > &  rProtectedHdl)

Definition at line 443 of file embedhlp.cxx.

References mpImpl.

◆ SetViewAspect()

void svt::EmbeddedObjectRef::SetViewAspect ( sal_Int64  nAspect)

Definition at line 428 of file embedhlp.cxx.

References mpImpl.

◆ TryRunningState()

bool svt::EmbeddedObjectRef::TryRunningState ( const css::uno::Reference< css::embed::XEmbeddedObject > &  )
static

Definition at line 849 of file embedhlp.cxx.

Referenced by GetChartType(), and SvEmbedTransferHelper::GetData().

◆ UpdateOleObject()

void svt::EmbeddedObjectRef::UpdateOleObject ( bool  bUpdateOle)
private

Definition at line 934 of file embedhlp.cxx.

References GetObject().

Referenced by UpdateReplacement().

◆ UpdateReplacement()

void svt::EmbeddedObjectRef::UpdateReplacement ( bool  bUpdateOle = false)

Definition at line 920 of file embedhlp.cxx.

References GetReplacement(), mpImpl, SAL_WARN, and UpdateOleObject().

◆ UpdateReplacementOnDemand()

void svt::EmbeddedObjectRef::UpdateReplacementOnDemand ( )

Definition at line 942 of file embedhlp.cxx.

References mpImpl.

Member Data Documentation

◆ mpImpl

std::unique_ptr<EmbeddedObjectRef_Impl> svt::EmbeddedObjectRef::mpImpl
private

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