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

#include <ndole.hxx>

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

Public Member Functions

const SwOLEObjGetOLEObj () const
 
SwOLEObjGetOLEObj ()
 
virtual ~SwOLENode () override
 
virtual SwContentNodeMakeCopy (SwDoc *, const SwNodeIndex &, bool bNewFrames) const override
 Is in ndcopy.cxx. More...
 
virtual Size GetTwipSize () const override
 
const GraphicGetGraphic ()
 
void GetNewReplacement ()
 
virtual bool SavePersistentData () override
 OLE object is transported into UNDO area. More...
 
virtual bool RestorePersistentData () override
 Loading an OLE object that has been moved to the Undo Area. More...
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const override
 Dumps the node structure to the given destination (file nodes.xml in the current directory by default) More...
 
bool IsInGlobalDocSection () const
 
bool IsOLEObjectDeleted () const
 
bool IsOLESizeInvalid () const
 
void SetOLESizeInvalid (bool b)
 
sal_Int64 GetAspect () const
 
void SetAspect (sal_Int64 nAspect)
 
OUString GetDescription () const
 Remove OLE-object from "memory". More...
 
bool UpdateLinkURL_Impl ()
 
void BreakFileLink_Impl ()
 
void DisconnectFileLink_Impl ()
 
void CheckFileLink_Impl ()
 
bool IsChart () const
 
const OUString & GetChartTableName () const
 
void SetChartTableName (const OUString &rNm)
 
void SetChanged ()
 
- 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 sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const 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 ~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 () const
 
- 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 sw::BroadcasterMixin
 BroadcasterMixin ()=default
 
 BroadcasterMixin (BroadcasterMixin const &)=default
 
BroadcasterMixinoperator= (const BroadcasterMixin &)
 
SvtBroadcasterGetNotifier ()
 
- Public Member Functions inherited from SwNode
bool IsCreateFrameWhenHidingRedlines () const
 
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 a 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 *)
 
- Public Member Functions inherited from SwIndexReg
 SwIndexReg ()
 
virtual ~SwIndexReg ()
 
void MoveTo (SwIndexReg &rArr)
 
const SwIndexGetFirstIndex () const
 

Private Member Functions

 SwOLENode (const SwNodeIndex &rWhere, const svt::EmbeddedObjectRef &, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr)
 
 SwOLENode (const SwNodeIndex &rWhere, const OUString &rName, sal_Int64 nAspect, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr)
 
 SwOLENode (const SwOLENode &)=delete
 

Private Attributes

SwOLEObj maOLEObj
 
OUString msChartTableName
 with chart objects: name of referenced table. More...
 
bool mbOLESizeInvalid
 Should be considered at SwDoc::PrtOLENotify (e.g. More...
 
SwEmbedObjectLinkmpObjectLink
 
OUString maLinkURL
 

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 85 of file ndole.hxx.

Constructor & Destructor Documentation

SwOLENode::SwOLENode ( const SwNodeIndex rWhere,
const svt::EmbeddedObjectRef xObj,
SwGrfFormatColl pGrfColl,
SwAttrSet const *  pAutoAttr 
)
private

Definition at line 212 of file ndole.cxx.

References maOLEObj, Ole, and SwOLEObj::SetNode().

SwOLENode::SwOLENode ( const SwNodeIndex rWhere,
const OUString &  rName,
sal_Int64  nAspect,
SwGrfFormatColl pGrfColl,
SwAttrSet const *  pAutoAttr 
)
private

Definition at line 224 of file ndole.cxx.

References maOLEObj, Ole, and SwOLEObj::SetNode().

SwOLENode::SwOLENode ( const SwOLENode )
privatedelete
SwOLENode::~SwOLENode ( )
overridevirtual

Definition at line 237 of file ndole.cxx.

References DisconnectFileLink_Impl().

Member Function Documentation

void SwOLENode::BreakFileLink_Impl ( )
void SwOLENode::CheckFileLink_Impl ( )
void SwOLENode::DisconnectFileLink_Impl ( )
void SwOLENode::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Dumps the node structure to the given destination (file nodes.xml in the current directory by default)

Reimplemented from SwNode.

Definition at line 291 of file ndole.cxx.

References SwOLEObj::dumpAsXml(), SwNode::GetIndex(), and GetOLEObj().

sal_Int64 SwOLENode::GetAspect ( ) const
inline
const OUString& SwOLENode::GetChartTableName ( ) const
inline
OUString SwOLENode::GetDescription ( ) const
inline

Remove OLE-object from "memory".

inline void Unload() { aOLEObj.Unload(); }

Definition at line 141 of file ndole.hxx.

References SwOLEObj::GetDescription().

Referenced by SwUndoDelLayFormat::GetRewriter(), and MakeCopy().

const Graphic * SwOLENode::GetGraphic ( )
void SwOLENode::GetNewReplacement ( )
const SwOLEObj& SwOLENode::GetOLEObj ( ) const
inline
SwOLEObj& SwOLENode::GetOLEObj ( )
inline

Definition at line 113 of file ndole.hxx.

Size SwOLENode::GetTwipSize ( ) const
overridevirtual
bool SwOLENode::IsChart ( ) const

Definition at line 630 of file ndole.cxx.

References aClassID, GetOLEObj(), and SotExchange::IsChart().

Referenced by SwNoTextFrame::PaintPicture(), and SavePersistentData().

bool SwOLENode::IsInGlobalDocSection ( ) const
bool SwOLENode::IsOLEObjectDeleted ( ) const
bool SwOLENode::IsOLESizeInvalid ( ) const
inline
SwContentNode * SwOLENode::MakeCopy ( SwDoc pDoc,
const SwNodeIndex rIdx,
bool  bNewFrames 
) const
overridevirtual
bool SwOLENode::RestorePersistentData ( )
overridevirtual
bool SwOLENode::SavePersistentData ( )
overridevirtual
void SwOLENode::SetAspect ( sal_Int64  nAspect)
inline

Definition at line 137 of file ndole.hxx.

References SwOLEObj::GetObject(), and svt::EmbeddedObjectRef::SetViewAspect().

Referenced by MakeCopy().

void SwOLENode::SetChanged ( )
void SwOLENode::SetChartTableName ( const OUString &  rNm)
inline
void SwOLENode::SetOLESizeInvalid ( bool  b)
inline
bool SwOLENode::UpdateLinkURL_Impl ( )

Friends And Related Function Documentation

friend class SwNodes
friend

Definition at line 87 of file ndole.hxx.

Member Data Documentation

OUString SwOLENode::maLinkURL
private

Definition at line 94 of file ndole.hxx.

Referenced by BreakFileLink_Impl(), CheckFileLink_Impl(), and UpdateLinkURL_Impl().

SwOLEObj SwOLENode::maOLEObj
mutableprivate
bool SwOLENode::mbOLESizeInvalid
private

Should be considered at SwDoc::PrtOLENotify (e.g.

copied). Is not persistent.

Definition at line 90 of file ndole.hxx.

SwEmbedObjectLink* SwOLENode::mpObjectLink
private

Definition at line 93 of file ndole.hxx.

Referenced by CheckFileLink_Impl(), DisconnectFileLink_Impl(), and UpdateLinkURL_Impl().

OUString SwOLENode::msChartTableName
private

with chart objects: name of referenced table.

Definition at line 89 of file ndole.hxx.

Referenced by SavePersistentData().


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