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

#include <ndgrf.hxx>

Inheritance diagram for SwGrfNode:
[legend]
Collaboration diagram for SwGrfNode:
[legend]

Public Member Functions

virtual ~SwGrfNode () override
 
const GraphicGetGrf (bool bWait=false) const
 
const GraphicObjectGetGrfObj (bool bWait=false) const
 
const GraphicObjectGetReplacementGrfObj () const
 
void SetGraphic (const Graphic &rGraphic)
 isolated only way to set GraphicObject to allow more actions when doing so More...
 
void StartGraphicAnimation (OutputDevice *pOut, const Point &rPt, const Size &rSz, long nExtraData, OutputDevice *pFirstFrameOutDev)
 wrappers for non-const calls at GraphicObject More...
 
void StopGraphicAnimation (OutputDevice *pOut, long nExtraData)
 
virtual Size GetTwipSize () const override
 
void SetTwipSize (const Size &rSz)
 
bool IsTransparent () const
 
bool IsAnimated () const
 
bool IsChgTwipSize () const
 
void SetChgTwipSize (bool b)
 
bool IsFrameInPaint () const
 
void SetFrameInPaint (bool b)
 
bool IsScaleImageMap () const
 
void SetScaleImageMap (bool b)
 
virtual SwContentNodeMakeCopy (SwDoc *, const SwNodeIndex &, bool bNewFrames) const override
 in ndcopy.cxx More...
 
bool ReRead (const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic=nullptr, bool bModify=true)
 Re-read in case graphic was not OK. More...
 
bool HasEmbeddedStreamName () const
 
virtual bool SavePersistentData () override
 Communicate to graphic that node is in Undo-range. More...
 
virtual bool RestorePersistentData () override
 Dummies for loading/saving of persistent data when working with graphics and OLE objects. More...
 
bool IsGrfLink () const
 Query link-data. More...
 
bool IsLinkedFile () const
 
bool IsLinkedDDE () const
 
const tools::SvRef< sfx2::SvBaseLink > & GetLink () const
 
bool GetFileFilterNms (OUString *pFileNm, OUString *pFilterNm) const
 
void ReleaseLink ()
 
void ScaleImageMap ()
 Scale an image-map: the image-map becomes zoomed in / out by factor between graphic-size and border-size. More...
 
GraphicAttrGetGraphicAttr (GraphicAttr &, const SwFrame *pFrame) const
 Returns the with our graphic attributes filled Graphic-Attr-Structure. More...
 
std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumerGetThreadConsumer ()
 
bool IsLinkedInputStreamReady () const
 
void TriggerAsyncRetrieveInputStream ()
 
void ApplyInputStream (const css::uno::Reference< css::io::XInputStream > &xInputStream, const bool bIsStreamReadOnly)
 
void UpdateLinkWithInputStream ()
 
bool IsAsyncRetrieveInputStreamPossible () const
 
- Public Member Functions inherited from SwNoTextNode
virtual ~SwNoTextNode () override
 
virtual SwContentFrameMakeFrame (SwFrame *) override
 MakeFrame will be called for a certain layout pSib is another SwFrame of the same layout (e.g. More...
 
SwGrfFormatCollGetGrfColl () const
 
OUString GetTitle () const
 
void SetTitle (const OUString &rTitle)
 
OUString GetDescription () const
 
void SetDescription (const OUString &rDescription)
 
void SetContour (const tools::PolyPolygon *pPoly, bool bAutomatic=false)
 
const tools::PolyPolygonHasContour () const
 
bool HasContour_ () const
 
void GetContour (tools::PolyPolygon &rPoly) const
 
void CreateContour ()
 
void SetAutomaticContour (bool bSet)
 
bool HasAutomaticContour () const
 
void SetContourAPI (const tools::PolyPolygon *pPoly)
 
bool GetContourAPI (tools::PolyPolygon &rPoly) const
 
void SetPixelContour (bool bSet)
 
bool IsPixelContour () const
 
bool IsContourMapModeValid () const
 
Graphic GetGraphic () const
 
- Public Member Functions inherited from SwContentNode
virtual SwContentNodeJoinNext ()
 
bool CanJoinNext (SwNodeIndex *pIdx=nullptr) const
 Is it possible to join two nodes? In pIdx the second position can be returned. More...
 
bool CanJoinPrev (SwNodeIndex *pIdx=nullptr) const
 Can we join two Nodes? We can return the 2nd position in pIdx. More...
 
void MakeStartIndex (SwIndex *pIdx)
 
void MakeEndIndex (SwIndex *pIdx)
 
bool GoNext (SwIndex *, sal_uInt16 nMode) const
 
bool GoPrevious (SwIndex *, sal_uInt16 nMode) const
 
SwContentFramegetLayoutFrame (const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
 
SwRect FindLayoutRect (const bool bPrtArea=false, const Point *pPoint=nullptr) const
 
SwRect FindPageFrameRect () const
 
void MakeFramesForAdjacentContentNode (SwContentNode &rNode)
 Method creates all views of document for given node. More...
 
void DelFrames (SwRootFrame const *pLayout)
 Method deletes all views of document for the node. More...
 
virtual sal_Int32 Len () const
 
virtual bool GetInfo (SfxPoolItem &) const override
 Get information from Client. More...
 
const SfxPoolItemGetAttr (sal_uInt16 nWhich, bool bInParent=true) const
 SS for PoolItems: hard attributation. More...
 
bool GetAttr (SfxItemSet &rSet) const
 
virtual bool SetAttr (const SfxPoolItem &)
 made virtual More...
 
virtual bool SetAttr (const SfxItemSet &rSet)
 
virtual bool ResetAttr (sal_uInt16 nWhich1, sal_uInt16 nWhich2=0)
 
virtual bool ResetAttr (const std::vector< sal_uInt16 > &rWhichArr)
 
virtual sal_uInt16 ResetAllAttr ()
 
const SfxPoolItemGetNoCondAttr (sal_uInt16 nWhich, bool bInParents) const
 Obtains attribute that is not delivered via conditional style! More...
 
const SwAttrSetGetSwAttrSet () const
 Does node has already its own auto-attributes? Access to SwAttrSet. More...
 
const SwAttrSetGetpSwAttrSet () const
 
bool HasSwAttrSet () const
 
virtual SwFormatCollChgFormatColl (SwFormatColl *)
 
SwFormatCollGetFormatColl () const
 
SwFormatCollGetAnyFormatColl () const
 
void SetCondFormatColl (SwFormatColl *)
 
SwFormatCollGetCondFormatColl () const
 
bool IsAnyCondition (SwCollCondition &rTmp) const
 
void ChkCondColl ()
 
bool InvalidateNumRule ()
 Invalidates NumRule at the node. More...
 
SvxFrameDirection GetTextDirection (const SwPosition &rPos, const Point *pPt) const
 determines the text direction for a certain position. More...
 
void SetModifyAtAttr (bool bSetModifyAtAttr) const
 
bool GetModifyAtAttr () const
 
virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper () const
 
virtual void ModifyNotification (const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
 
- Public Member Functions inherited from SwModify
 SwModify ()
 
 SwModify (SwModify *pToRegisterIn)
 
void NotifyClients (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void ModifyBroadcast (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
virtual void CallSwClientNotify (const SfxHint &rHint) const
 
virtual ~SwModify () override
 
void Add (SwClient *pDepend)
 
SwClientRemove (SwClient *pDepend)
 
bool HasWriterListeners () const
 
void LockModify ()
 
void UnlockModify ()
 
void SetInCache (bool bNew)
 
void SetInSwFntCache (bool bNew)
 
void SetInDocDTOR ()
 
bool IsModifyLocked () const
 
bool IsInCache () const
 
bool IsInSwFntCache () const
 
void CheckCaching (const sal_uInt16 nWhich)
 
bool HasOnlyOneListener ()
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
- Public Member Functions inherited from SwNode
bool IsCreateFrameWhenHidingRedlines ()
 
void SetRedlineMergeFlag (Merge const eMerge)
 
Merge GetRedlineMergeFlag () const
 
virtual ~SwNode () override=0
 the = 0 forces the class to be an abstract base class, but the dtor can be still called from subclasses More...
 
long GetSerial () const
 
sal_uInt16 GetSectionLevel () const
 Returns the section level at the position given by aIndex. More...
 
sal_uLong StartOfSectionIndex () const
 
const SwStartNodeStartOfSectionNode () const
 
SwStartNodeStartOfSectionNode ()
 
sal_uLong EndOfSectionIndex () const
 
const SwEndNodeEndOfSectionNode () const
 
SwEndNodeEndOfSectionNode ()
 
sal_uInt8 GetAutoFormatLvl () const
 
void SetAutoFormatLvl (sal_uInt8 nVal)
 
bool IsIgnoreDontExpand () const
 
void SetIgnoreDontExpand (bool bNew)
 
SwNodeType GetNodeType () const
 
SwStartNodeGetStartNode ()
 
const SwStartNodeGetStartNode () const
 
SwContentNodeGetContentNode ()
 
const SwContentNodeGetContentNode () const
 
SwEndNodeGetEndNode ()
 
const SwEndNodeGetEndNode () const
 
SwTextNodeGetTextNode ()
 Inline methods from Node.hxx. More...
 
const SwTextNodeGetTextNode () const
 
SwOLENodeGetOLENode ()
 Inline methods from Node.hxx. More...
 
const SwOLENodeGetOLENode () const
 
SwNoTextNodeGetNoTextNode ()
 
const SwNoTextNodeGetNoTextNode () const
 
SwGrfNodeGetGrfNode ()
 
const SwGrfNodeGetGrfNode () const
 
SwTableNodeGetTableNode ()
 
const SwTableNodeGetTableNode () const
 
SwSectionNodeGetSectionNode ()
 
const SwSectionNodeGetSectionNode () const
 
bool IsStartNode () const
 
bool IsContentNode () const
 
bool IsEndNode () const
 
bool IsTextNode () const
 
bool IsTableNode () const
 
bool IsSectionNode () const
 
bool IsOLENode () const
 
bool IsNoTextNode () const
 
bool IsGrfNode () const
 
bool IsInRedlines () const
 Checks if this node is in redlines. More...
 
SwTableNodeFindTableNode ()
 Search table node, in which it is. More...
 
const SwTableNodeFindTableNode () const
 
SwSectionNodeFindSectionNode ()
 Search section node, in which it is. More...
 
const SwSectionNodeFindSectionNode () const
 
SwStartNodeFindSttNodeByType (SwStartNodeType eTyp)
 
const SwStartNodeFindSttNodeByType (SwStartNodeType eTyp) const
 
const SwStartNodeFindTableBoxStartNode () const
 
const SwStartNodeFindFlyStartNode () const
 
const SwStartNodeFindFootnoteStartNode () const
 
const SwStartNodeFindHeaderStartNode () const
 
const SwStartNodeFindFooterStartNode () const
 
SwNodesGetNodes ()
 Node is in which nodes-array/doc? More...
 
const SwNodesGetNodes () const
 
SwDocGetDoc ()
 
const SwDocGetDoc () const
 
const IDocumentSettingAccessgetIDocumentSettingAccess () const
 Provides access to the document setting interface. More...
 
const IDocumentDeviceAccessgetIDocumentDeviceAccess () const
 Provides access to the document device interface. More...
 
const IDocumentMarkAccessgetIDocumentMarkAccess () const
 Provides access to the document bookmark interface. More...
 
const IDocumentRedlineAccessgetIDocumentRedlineAccess () const
 Provides access to the document redline interface. More...
 
const IDocumentStylePoolAccessgetIDocumentStylePoolAccess () const
 Provides access to the document style pool interface. More...
 
const IDocumentDrawModelAccessgetIDocumentDrawModelAccess () const
 Provides access to the document draw model interface. More...
 
const IDocumentLayoutAccessgetIDocumentLayoutAccess () const
 Provides access to the document layout interface. More...
 
IDocumentLayoutAccessgetIDocumentLayoutAccess ()
 
const IDocumentLinksAdministrationgetIDocumentLinksAdministration () const
 Provides access to the document links administration interface. More...
 
IDocumentLinksAdministrationgetIDocumentLinksAdministration ()
 
const IDocumentFieldsAccessgetIDocumentFieldsAccess () const
 Provides access to the document fields administration interface. More...
 
IDocumentFieldsAccessgetIDocumentFieldsAccess ()
 
IDocumentContentOperationsgetIDocumentContentOperations ()
 Provides access to the document content operations interface. More...
 
IStyleAccessgetIDocumentStyleAccess ()
 Provides access to the document automatic styles interface. More...
 
IDocumentListItemsgetIDocumentListItems ()
 Provides access to the document's numbered items interface. More...
 
bool IsInVisibleArea (SwViewShell const *pSh) const
 Is node in the visible area of the Shell? More...
 
bool IsInProtectSect () const
 Is node in an protected area? More...
 
bool IsProtect () const
 Is node in something that is protected (range, frame, table cells ... More...
 
const SwPageDescFindPageDesc (size_t *pPgDescNdIdx=nullptr) const
 Search PageDesc with which this node is formatted. More...
 
SwFrameFormatGetFlyFormat () const
 If node is in a fly return the respective format. More...
 
SwTableBoxGetTableBox () const
 If node is in a table return the respective table box. More...
 
sal_uLong GetIndex () const
 
const SwTextNodeFindOutlineNodeOfLevel (sal_uInt8 nLvl, SwRootFrame const *pLayout=nullptr) const
 
sal_uInt8 HasPrevNextLayNode () const
 
std::vector< SwFrameFormat * > const * GetAnchoredFlys () const
 
void AddAnchoredFly (SwFrameFormat *)
 
void RemoveAnchoredFly (SwFrameFormat *)
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 Dumps the node structure to the given destination (file nodes.xml in the current directory by default) More...
 
- Public Member Functions inherited from SwIndexReg
 SwIndexReg ()
 
virtual ~SwIndexReg ()
 
void MoveTo (SwIndexReg &rArr)
 
const SwIndexGetFirstIndex () const
 

Private Member Functions

 SwGrfNode (const SwNodeIndex &rWhere, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr)
 Ctor for reading (SW/G) without graphics. More...
 
 SwGrfNode (const SwNodeIndex &rWhere, const OUString &rGrfName, const OUString &rFltName, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr)
 Create new SW/G reader. More...
 
 SwGrfNode (const SwNodeIndex &rWhere, const GraphicObject &rGrfObj, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr)
 
void InsertLink (const OUString &rGrfName, const OUString &rFltName)
 
 DECL_LINK (SwapGraphic, const GraphicObject *, SvStream *)
 
 DECL_STATIC_LINK (SwGrfNode, SwapReplacement, const GraphicObject *, SvStream *)
 
void onGraphicChanged ()
 allow reaction on change of content of GraphicObject, so always call when GraphicObject content changes More...
 
bool SwapIn (bool bWaitForData=false)
 Loading of graphic immediately before displaying. More...
 

Private Attributes

GraphicObject maGrfObj
 
std::unique_ptr< GraphicObjectmpReplacementGraphic
 
tools::SvRef< sfx2::SvBaseLinkrefLink
 If graphics only as link then pointer is set. More...
 
Size nGrfSize
 
bool bInSwapIn:1
 
bool bChgTwipSize:1
 
bool bFrameInPaint:1
 To avoid Start-/EndActions in Paint via SwapIn. More...
 
bool bScaleImageMap:1
 Scale image map in SetTwipSize. More...
 
std::shared_ptr< SwAsyncRetrieveInputStreamThreadConsumermpThreadConsumer
 
bool mbLinkedInputStreamReady
 
css::uno::Reference< css::io::XInputStream > mxInputStream
 
bool mbIsStreamReadOnly
 

Friends

class SwNodes
 

Additional Inherited Members

- Public Types inherited from SwNode
enum  Merge {
  Merge::None,
  Merge::First,
  Merge::NonFirst,
  Merge::Hidden
}
 sw_redlinehide: redline node merge state More...
 
- Static Public Member Functions inherited from SwContentNode
static std::unique_ptr< SwOLENodesCreateOLENodesArray (const SwFormatColl &rColl, bool bOnlyWithInvalidSize)
 
- Protected Member Functions inherited from SwNoTextNode
 SwNoTextNode (const SwNodeIndex &rWhere, const SwNodeType nNdType, SwGrfFormatColl *pGrColl, SwAttrSet const *pAutoAttr)
 
- Protected Member Functions inherited from SwContentNode
 SwContentNode (const SwNodeIndex &rWhere, const SwNodeType nNodeType, SwFormatColl *pFormatColl)
 
virtual ~SwContentNode () override=0
 the = 0 forces the class to be an abstract base class, but the dtor can be still called from subclasses More...
 
sal_uInt16 ClearItemsFromAttrSet (const std::vector< sal_uInt16 > &rWhichIds)
 There some functions that like to remove items from the internal SwAttrSet (handle): More...
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
- Protected Member Functions inherited from SwNode
 SwNode (const SwNodeIndex &rWhere, const SwNodeType nNodeId)
 
 SwNode (SwNodes &rNodes, sal_uLong nPos, const SwNodeType nNodeId)
 for the initial StartNode More...
 
- Protected Member Functions inherited from SwIndexReg
virtual void Update (SwIndex const &rPos, const sal_Int32 nChangeLen, const bool bNegative=false, const bool bDelete=false)
 
bool HasAnyIndex () const
 
- Protected Attributes inherited from SwContentNode
std::shared_ptr< const SfxItemSetmpAttrSet
 Attribute-set for all auto attributes of a ContentNode. More...
 
- Protected Attributes inherited from SwNode
SwStartNodem_pStartOfSection
 

Detailed Description

Definition at line 34 of file ndgrf.hxx.

Constructor & Destructor Documentation

SwGrfNode::SwGrfNode ( const SwNodeIndex rWhere,
const OUString &  rGrfName,
const OUString &  rFltName,
const Graphic pGraphic,
SwGrfFormatColl pGrfColl,
SwAttrSet const *  pAutoAttr 
)
private

Ctor for reading (SW/G) without graphics.

Definition at line 62 of file ndgrf.cxx.

References bChgTwipSize, bFrameInPaint, bInSwapIn, bScaleImageMap, Grf, and ReRead().

SwGrfNode::SwGrfNode ( const SwNodeIndex rWhere,
const OUString &  rGrfName,
const OUString &  rFltName,
SwGrfFormatColl pGrfColl,
SwAttrSet const *  pAutoAttr 
)
private

Create new SW/G reader.

Use this ctor if you want to read a linked graphic.

Note
Does not read/open the image itself!

Definition at line 101 of file ndgrf.cxx.

References bChgTwipSize, bFrameInPaint, bInSwapIn, bScaleImageMap, Connect, tools::SvRef< T >::get(), INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), Grf, InsertLink(), FStatHelper::IsDocument(), IsLinkedFile(), maGrfObj, INetURLObject::NONE, refLink, Graphic::SetDefaultType(), and GraphicObject::SetGraphic().

SwGrfNode::SwGrfNode ( const SwNodeIndex rWhere,
const GraphicObject rGrfObj,
SwGrfFormatColl pGrfColl,
SwAttrSet const *  pAutoAttr 
)
private

Definition at line 81 of file ndgrf.cxx.

References bChgTwipSize, bFrameInPaint, bInSwapIn, bScaleImageMap, and Grf.

SwGrfNode::~SwGrfNode ( )
overridevirtual

Member Function Documentation

void SwGrfNode::ApplyInputStream ( const css::uno::Reference< css::io::XInputStream > &  xInputStream,
const bool  bIsStreamReadOnly 
)
SwGrfNode::DECL_LINK ( SwapGraphic  ,
const GraphicObject ,
SvStream  
)
private
SwGrfNode::DECL_STATIC_LINK ( SwGrfNode  ,
SwapReplacement  ,
const GraphicObject ,
SvStream  
)
private
bool SwGrfNode::GetFileFilterNms ( OUString *  pFileNm,
OUString *  pFilterNm 
) const
GraphicAttr & SwGrfNode::GetGraphicAttr ( GraphicAttr rGA,
const SwFrame pFrame 
) const
const Graphic & SwGrfNode::GetGrf ( bool  bWait = false) const
const GraphicObject & SwGrfNode::GetGrfObj ( bool  bWait = false) const
const tools::SvRef<sfx2::SvBaseLink>& SwGrfNode::GetLink ( ) const
inline
const GraphicObject * SwGrfNode::GetReplacementGrfObj ( ) const
std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > SwGrfNode::GetThreadConsumer ( )
inline

Definition at line 144 of file ndgrf.hxx.

Referenced by SwAsyncRetrieveInputStreamThreadConsumer::CreateThread().

Size SwGrfNode::GetTwipSize ( ) const
overridevirtual
bool SwGrfNode::HasEmbeddedStreamName ( ) const
inline

Definition at line 123 of file ndgrf.hxx.

References GraphicObject::HasUserData().

Referenced by SavePersistentData().

void SwGrfNode::InsertLink ( const OUString &  rGrfName,
const OUString &  rFltName 
)
private
bool SwGrfNode::IsAnimated ( ) const
inline
bool SwGrfNode::IsAsyncRetrieveInputStreamPossible ( ) const
bool SwGrfNode::IsChgTwipSize ( ) const
inline

Definition at line 98 of file ndgrf.hxx.

Referenced by SetGrfFlySize().

bool SwGrfNode::IsFrameInPaint ( ) const
inline

Definition at line 104 of file ndgrf.hxx.

Referenced by SwBaseLink::DataChanged().

bool SwGrfNode::IsGrfLink ( ) const
inline

Query link-data.

Definition at line 130 of file ndgrf.hxx.

References tools::SvRef< T >::is().

Referenced by SwFEShell::GetGrfAtPos(), SwUndoInsert::RepeatImpl(), and SwUndoReRead::SaveGraphicData().

bool SwGrfNode::IsLinkedDDE ( ) const
inline

Definition at line 170 of file ndgrf.hxx.

References sfx2::SvBaseLink::GetObjType(), tools::SvRef< T >::is(), OBJECT_CLIENT_DDE, and refLink.

Referenced by MakeCopy().

bool SwGrfNode::IsLinkedFile ( ) const
inline
bool SwGrfNode::IsLinkedInputStreamReady ( ) const
inline

Definition at line 145 of file ndgrf.hxx.

Referenced by SwNoTextFrame::PaintPicture().

bool SwGrfNode::IsScaleImageMap ( ) const
inline

Definition at line 107 of file ndgrf.hxx.

Referenced by SwHTMLParser::ConnectImageMaps(), and SetTwipSize().

bool SwGrfNode::IsTransparent ( ) const
SwContentNode * SwGrfNode::MakeCopy ( SwDoc pDoc,
const SwNodeIndex rIdx,
bool  bNewFrames 
) const
overridevirtual
void SwGrfNode::onGraphicChanged ( )
private
void SwGrfNode::ReleaseLink ( )
bool SwGrfNode::ReRead ( const OUString &  rGrfName,
const OUString &  rFltName,
const Graphic pGraphic = nullptr,
bool  bModify = true 
)
bool SwGrfNode::RestorePersistentData ( )
overridevirtual
bool SwGrfNode::SavePersistentData ( )
overridevirtual

Communicate to graphic that node is in Undo-range.

Make a graphic object ready for UNDO.

If it is already in storage, it needs to be loaded.

Reimplemented from SwNoTextNode.

Definition at line 520 of file ndgrf.cxx.

References bInSwapIn, tools::SvRef< T >::get(), SwNode::GetDoc(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), HasEmbeddedStreamName(), tools::SvRef< T >::is(), refLink, sfx2::LinkManager::Remove(), and SwapIn().

void SwGrfNode::ScaleImageMap ( )
void SwGrfNode::SetChgTwipSize ( bool  b)
inline

Definition at line 99 of file ndgrf.hxx.

Referenced by SwXFrame::attachToRange(), and SwHTMLParser::InsertImage().

void SwGrfNode::SetFrameInPaint ( bool  b)
inline

Definition at line 105 of file ndgrf.hxx.

Referenced by SwNoTextFrame::PaintSwFrame().

void SwGrfNode::SetGraphic ( const Graphic rGraphic)

isolated only way to set GraphicObject to allow more actions when doing so

Definition at line 362 of file ndgrf.cxx.

References maGrfObj, onGraphicChanged(), and GraphicObject::SetGraphic().

Referenced by SwBaseLink::DataChanged().

void SwGrfNode::SetScaleImageMap ( bool  b)
inline

Definition at line 108 of file ndgrf.hxx.

Referenced by SwHTMLParser::InsertImage(), and SetTwipSize().

void SwGrfNode::SetTwipSize ( const Size rSz)
void SwGrfNode::StartGraphicAnimation ( OutputDevice pOut,
const Point rPt,
const Size rSz,
long  nExtraData,
OutputDevice pFirstFrameOutDev 
)
inline

wrappers for non-const calls at GraphicObject

Definition at line 87 of file ndgrf.hxx.

References GraphicObject::StartAnimation().

Referenced by SwNoTextFrame::PaintPicture().

void SwGrfNode::StopGraphicAnimation ( OutputDevice pOut,
long  nExtraData 
)
inline

Definition at line 89 of file ndgrf.hxx.

References GraphicObject::StopAnimation().

bool SwGrfNode::SwapIn ( bool  bWaitForData = false)
private
void SwGrfNode::TriggerAsyncRetrieveInputStream ( )
void SwGrfNode::UpdateLinkWithInputStream ( )

Friends And Related Function Documentation

friend class SwNodes
friend

Definition at line 36 of file ndgrf.hxx.

Member Data Documentation

bool SwGrfNode::bChgTwipSize
private

Definition at line 44 of file ndgrf.hxx.

Referenced by SwGrfNode().

bool SwGrfNode::bFrameInPaint
private

To avoid Start-/EndActions in Paint via SwapIn.

Definition at line 45 of file ndgrf.hxx.

Referenced by SwGrfNode().

bool SwGrfNode::bInSwapIn
private
bool SwGrfNode::bScaleImageMap
private

Scale image map in SetTwipSize.

Definition at line 46 of file ndgrf.hxx.

Referenced by SwGrfNode().

GraphicObject SwGrfNode::maGrfObj
private

Definition at line 38 of file ndgrf.hxx.

Referenced by GetGrf(), GetGrfObj(), IsTransparent(), ReleaseLink(), ReRead(), SetGraphic(), SwapIn(), and SwGrfNode().

bool SwGrfNode::mbIsStreamReadOnly
private

Definition at line 51 of file ndgrf.hxx.

Referenced by ApplyInputStream(), and UpdateLinkWithInputStream().

bool SwGrfNode::mbLinkedInputStreamReady
private

Definition at line 49 of file ndgrf.hxx.

Referenced by ApplyInputStream(), and UpdateLinkWithInputStream().

std::unique_ptr<GraphicObject> SwGrfNode::mpReplacementGraphic
private

Definition at line 39 of file ndgrf.hxx.

Referenced by GetReplacementGrfObj(), ReRead(), SwapIn(), and ~SwGrfNode().

std::shared_ptr< SwAsyncRetrieveInputStreamThreadConsumer > SwGrfNode::mpThreadConsumer
private
css::uno::Reference<css::io::XInputStream> SwGrfNode::mxInputStream
private

Definition at line 50 of file ndgrf.hxx.

Referenced by ApplyInputStream(), and UpdateLinkWithInputStream().

Size SwGrfNode::nGrfSize
private

Definition at line 41 of file ndgrf.hxx.

Referenced by GetTwipSize(), ScaleImageMap(), SetTwipSize(), and SwapIn().

tools::SvRef<sfx2::SvBaseLink> SwGrfNode::refLink
private

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