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,
65 void InsertLink( std::u16string_view rGrfName,
const OUString& rFltName );
69 void onGraphicChanged();
73 const Graphic& GetGrf(
bool bWait =
false)
const;
78 void SetGraphic(
const Graphic& rGraphic);
79 void TriggerGraphicArrived();
87 void SetTwipSize(
const Size& rSz );
89 bool IsTransparent()
const;
110 bool ReRead(
const OUString& rGrfName,
const OUString& rFltName,
111 const Graphic* pGraphic =
nullptr,
112 bool bModify =
true );
115 bool SwapIn(
bool bWaitForData =
false );
126 bool IsLinkedFile()
const;
127 bool IsLinkedDDE()
const;
129 bool GetFileFilterNms( OUString* pFileNm, OUString* pFilterNm )
const;
134 void ScaleImageMap();
139 std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer >
GetThreadConsumer()
const {
return mpThreadConsumer;}
141 void TriggerAsyncRetrieveInputStream();
142 void ApplyInputStream(
143 const css::uno::Reference<css::io::XInputStream>& xInputStream,
144 const bool bIsStreamReadOnly );
145 void UpdateLinkWithInputStream();
146 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.