20#ifndef INCLUDED_SW_INC_NDGRF_HXX
21#define INCLUDED_SW_INC_NDGRF_HXX
55 const OUString& rGrfName,
const OUString& rFltName,
61 std::u16string_view rGrfName,
const OUString& rFltName,
69 void InsertLink( std::u16string_view rGrfName,
const OUString& rFltName );
73 void onGraphicChanged();
77 const Graphic& GetGrf(
bool bWait =
false)
const;
82 void SetGraphic(
const Graphic& rGraphic);
83 void TriggerGraphicArrived();
91 void SetTwipSize(
const Size& rSz );
93 bool IsTransparent()
const;
100 mbChangeTwipSize = b;
114 bool ReRead(
const OUString& rGrfName,
const OUString& rFltName,
115 const Graphic* pGraphic =
nullptr,
116 bool bModify =
true );
119 bool SwapIn(
bool bWaitForData =
false );
130 bool IsLinkedFile()
const;
131 bool IsLinkedDDE()
const;
133 bool GetFileFilterNms( OUString* pFileNm, OUString* pFilterNm )
const;
138 void ScaleImageMap();
143 std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer >
GetThreadConsumer()
const {
return mpThreadConsumer;}
145 void TriggerAsyncRetrieveInputStream();
146 void ApplyInputStream(
147 const css::uno::Reference<css::io::XInputStream>& xInputStream,
148 const bool bIsStreamReadOnly );
149 void UpdateLinkWithInputStream();
150 bool IsAsyncRetrieveInputStreamPossible()
const;
void StopAnimation(const OutputDevice *pOut=nullptr, tools::Long nExtraData=0)
bool StartAnimation(OutputDevice &rOut, const Point &rPt, const Size &rSz, tools::Long nExtraData=0, OutputDevice *pFirstFrameOutDev=nullptr)
virtual SwContentNode * MakeCopy(SwDoc &, SwNode &rWhere, bool bNewFrames) const =0
Base class of the Writer layout elements.
std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > GetThreadConsumer() const
void SetChgTwipSize(bool b)
std::shared_ptr< SwAsyncRetrieveInputStreamThreadConsumer > mpThreadConsumer
bool IsLinkedFile() const
bool HasEmbeddedStreamName() const
const tools::SvRef< sfx2::SvBaseLink > & GetLink() const
void SetScaleImageMap(bool b)
bool mbLinkedInputStreamReady
bool IsScaleImageMap() const
void StopGraphicAnimation(const OutputDevice *pOut, tools::Long nRendererId)
bool IsGrfLink() const
Query link-data.
void SetFrameInPaint(bool b)
css::uno::Reference< css::io::XInputStream > mxInputStream
bool IsChgTwipSize() const
bool mbScaleImageMap
Scale image map in SetTwipSize.
bool IsFrameInPaint() const
bool IsLinkedInputStreamReady() const
std::unique_ptr< GraphicObject > mpReplacementGraphic
void StartGraphicAnimation(OutputDevice *pOut, const Point &rPt, const Size &rSz, tools::Long nRendererId, OutputDevice *pFirstFrameOutDev)
wrappers for non-const calls at GraphicObject
bool mbFrameInPaint
To avoid Start-/EndActions in Paint via SwapIn.
tools::SvRef< sfx2::SvBaseLink > mxLink
If graphics only as link then pointer is set.
Layout frame for SwNoTextNode, i.e. graphics and OLE nodes (including charts).
virtual bool SavePersistentData()
virtual bool RestorePersistentData()
Dummies for loading/saving of persistent data when working with graphics and OLE objects.
virtual Size GetTwipSize() const =0
Base class of the Writer document model elements.