20 #ifndef INCLUDED_SW_INC_NDGRF_HXX
21 #define INCLUDED_SW_INC_NDGRF_HXX
43 bool mbInBaseLinkSwapIn :1;
45 bool mbChangeTwipSize :1;
46 bool mbFrameInPaint :1;
47 bool mbScaleImageMap :1;
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();
87 { maGrfObj.
StartAnimation(*pOut, rPt, rSz, nExtraData, pFirstFrameOutDev); }
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;
Base class of the Writer layout elements.
std::shared_ptr< SwAsyncRetrieveInputStreamThreadConsumer > mpThreadConsumer
bool HasEmbeddedStreamName() const
const tools::SvRef< sfx2::SvBaseLink > & GetLink() const
tools::SvRef< sfx2::SvBaseLink > mxLink
If graphics only as link then pointer is set.
void StopGraphicAnimation(const OutputDevice *pOut, tools::Long nExtraData)
virtual Size GetTwipSize() const =0
bool IsFrameInPaint() const
bool IsLinkedFile() const
bool IsLinkedInputStreamReady() const
void SetChgTwipSize(bool b)
void StopAnimation(const OutputDevice *pOut=nullptr, tools::Long nExtraData=0)
bool mbLinkedInputStreamReady
css::uno::Reference< css::io::XInputStream > mxInputStream
bool StartAnimation(OutputDevice &rOut, const Point &rPt, const Size &rSz, tools::Long nExtraData=0, OutputDevice *pFirstFrameOutDev=nullptr)
std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > GetThreadConsumer() const
bool IsChgTwipSize() const
Layout frame for SwNoTextNode, i.e. graphics and OLE nodes (including charts).
Marks a node in the document model.
bool IsScaleImageMap() const
virtual bool RestorePersistentData()
Dummies for loading/saving of persistent data when working with graphics and OLE objects.
void SetFrameInPaint(bool b)
virtual bool SavePersistentData()
virtual SwContentNode * MakeCopy(SwDoc &, const SwNodeIndex &, bool bNewFrames) const =0
void SetScaleImageMap(bool b)
void StartGraphicAnimation(OutputDevice *pOut, const Point &rPt, const Size &rSz, tools::Long nExtraData, OutputDevice *pFirstFrameOutDev)
wrappers for non-const calls at GraphicObject
bool IsGrfLink() const
Query link-data.
std::unique_ptr< GraphicObject > mpReplacementGraphic
SvBaseLinkObjectType GetObjType() const