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

#include <ndole.hxx>

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

Public Member Functions

const SwOLEObj & GetOLEObj () const
 
SwOLEObj & GetOLEObj ()
 
virtual ~SwOLENode () override
 
virtual SwContentNode * MakeCopy (SwDoc &, SwNode &rWhere, bool bNewFrames) const override
 Is in ndcopy.cxx. More...
 
virtual Size GetTwipSize () const override
 
const Graphic * GetGraphic ()
 
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 SwContentFrame * MakeFrame (SwFrame *) override
 MakeFrame will be called for a certain layout pSib is another SwFrame of the same layout (e.g. More...
 
SwGrfFormatColl * GetGrfColl () const
 
virtual Size GetTwipSize () const =0
 
virtual bool SavePersistentData ()
 
virtual bool RestorePersistentData ()
 Dummies for loading/saving of persistent data when working with graphics and OLE objects. More...
 
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::PolyPolygon * HasContour () 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 SwContentFrame * MakeFrame (SwFrame *pSib)=0
 MakeFrame will be called for a certain layout pSib is another SwFrame of the same layout (e.g. More...
 
virtual SwContentNode * JoinNext ()
 
bool CanJoinNext (SwNodeIndex *pIdx=nullptr) const
 Is it possible to join two nodes? In pIdx the second position can be returned. More...
 
bool CanJoinNext (SwPosition *pIdx) const
 Can we join two Nodes? We can return the 2nd position in pIdx. More...
 
bool CanJoinPrev (SwNodeIndex *pIdx=nullptr) const
 Can we join two Nodes? We can return the 2nd position in pIdx. More...
 
bool GoNext (SwContentIndex *, SwCursorSkipMode nMode) const
 
bool GoNext (SwPosition *, SwCursorSkipMode nMode) const
 
bool GoPrevious (SwContentIndex *, SwCursorSkipMode nMode) const
 
SwContentFrame * getLayoutFrame (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 SwContentNode * MakeCopy (SwDoc &, SwNode &rWhere, bool bNewFrames) const =0
 
virtual bool GetInfo (SfxPoolItem &) const override
 Get information from Client. More...
 
const SfxPoolItem & GetAttr (sal_uInt16 nWhich, bool bInParent=true) const
 SS for PoolItems: hard attributation. More...
 
template<class T >
const T & GetAttr (TypedWhichId< T > nWhich, bool bInParent=true) const
 
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 SfxPoolItem * GetNoCondAttr (sal_uInt16 nWhich, bool bInParents) const
 Obtains attribute that is not delivered via conditional style! More...
 
template<class T >
const T * GetNoCondAttr (TypedWhichId< T > nWhich, bool bInParents) const
 
const SwAttrSet & GetSwAttrSet () const
 Does node has already its own auto-attributes? Access to SwAttrSet. More...
 
const SwAttrSet * GetpSwAttrSet () const
 
bool HasSwAttrSet () const
 
virtual SwFormatColl * ChgFormatColl (SwFormatColl *)
 
SwFormatColl * GetFormatColl () const
 
SwFormatColl & GetAnyFormatColl () const
 
void SetCondFormatColl (SwFormatColl *)
 
SwFormatColl * GetCondFormatColl () const
 
bool IsAnyCondition (SwCollCondition &rTmp) const
 
void ChkCondColl (const SwTextFormatColl *pColl=nullptr)
 
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
 
void UpdateAttr (const SwUpdateAttr &)
 
- 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...
 
tools::Long GetSerial () const
 
sal_uInt16 GetSectionLevel () const
 Returns the section level at the position given by aIndex. More...
 
SwNodeOffset StartOfSectionIndex () const
 
const SwStartNode * StartOfSectionNode () const
 
SwStartNode * StartOfSectionNode ()
 
SwNodeOffset EndOfSectionIndex () const
 
const SwEndNode * EndOfSectionNode () const
 
SwEndNode * EndOfSectionNode ()
 
sal_uInt8 GetAutoFormatLvl () const
 
void SetAutoFormatLvl (sal_uInt8 nVal)
 
bool IsIgnoreDontExpand () const
 
void SetIgnoreDontExpand (bool bNew)
 
SwNodeType GetNodeType () const
 
SwStartNode * GetStartNode ()
 
const SwStartNode * GetStartNode () const
 
SwContentNode * GetContentNode ()
 
const SwContentNode * GetContentNode () const
 
SwEndNode * GetEndNode ()
 
const SwEndNode * GetEndNode () const
 
SwTextNode * GetTextNode ()
 Inline methods from Node.hxx. More...
 
const SwTextNode * GetTextNode () const
 
SwOLENode * GetOLENode ()
 Inline methods from Node.hxx. More...
 
const SwOLENode * GetOLENode () const
 
SwNoTextNode * GetNoTextNode ()
 
const SwNoTextNode * GetNoTextNode () const
 
SwGrfNode * GetGrfNode ()
 
const SwGrfNode * GetGrfNode () const
 
SwTableNode * GetTableNode ()
 
const SwTableNode * GetTableNode () const
 
SwSectionNode * GetSectionNode ()
 
const SwSectionNode * GetSectionNode () 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...
 
SwTableNode * FindTableNode ()
 Search table node, in which it is. More...
 
const SwTableNode * FindTableNode () const
 
SwSectionNode * FindSectionNode ()
 Search section node, in which it is. More...
 
const SwSectionNode * FindSectionNode () const
 
SwStartNode * FindSttNodeByType (SwStartNodeType eTyp)
 
const SwStartNode * FindSttNodeByType (SwStartNodeType eTyp) const
 
const SwStartNode * FindTableBoxStartNode () const
 
const SwStartNode * FindFlyStartNode () const
 
const SwStartNode * FindFootnoteStartNode () const
 
const SwStartNode * FindHeaderStartNode () const
 
const SwStartNode * FindFooterStartNode () const
 
SwNodes & GetNodes ()
 Node is in which nodes-array/doc? More...
 
const SwNodes & GetNodes () const
 
SwDoc & GetDoc ()
 
const SwDoc & GetDoc () const
 
const IDocumentSettingAccess * getIDocumentSettingAccess () const
 Provides access to the document setting interface. More...
 
const IDocumentDeviceAccess & getIDocumentDeviceAccess () const
 Provides access to the document device interface. More...
 
const IDocumentMarkAccess * getIDocumentMarkAccess () const
 Provides access to the document bookmark interface. More...
 
const IDocumentRedlineAccess & getIDocumentRedlineAccess () const
 Provides access to the document redline interface. More...
 
const IDocumentStylePoolAccess & getIDocumentStylePoolAccess () const
 Provides access to the document style pool interface. More...
 
const IDocumentDrawModelAccess & getIDocumentDrawModelAccess () const
 Provides access to the document draw model interface. More...
 
const IDocumentLayoutAccess & getIDocumentLayoutAccess () const
 Provides access to the document layout interface. More...
 
IDocumentLayoutAccess & getIDocumentLayoutAccess ()
 
const IDocumentLinksAdministration & getIDocumentLinksAdministration () const
 Provides access to the document links administration interface. More...
 
IDocumentLinksAdministration & getIDocumentLinksAdministration ()
 
const IDocumentFieldsAccess & getIDocumentFieldsAccess () const
 Provides access to the document fields administration interface. More...
 
IDocumentFieldsAccess & getIDocumentFieldsAccess ()
 
IDocumentContentOperations & getIDocumentContentOperations ()
 Provides access to the document content operations interface. More...
 
IStyleAccess & getIDocumentStyleAccess ()
 Provides access to the document automatic styles interface. More...
 
IDocumentListItems & getIDocumentListItems ()
 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 ... including anchor in case of frames or footnotes)? More...
 
const SwPageDesc * FindPageDesc (SwNodeOffset *pPgDescNdIdx=nullptr) const
 Search PageDesc with which this node is formatted. More...
 
SwFrameFormat * GetFlyFormat () const
 If node is in a fly return the respective format. More...
 
SwTableBox * GetTableBox () const
 If node is in a table return the respective table box. More...
 
SwNodeOffset GetIndex () const
 
const SwTextNode * FindOutlineNodeOfLevel (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...
 
bool operator== (const SwNode &rOther) const
 
bool operator!= (const SwNode &rOther) const
 
bool operator< (const SwNode &rOther) const
 
bool operator<= (const SwNode &rOther) const
 
bool operator> (const SwNode &rOther) const
 
bool operator>= (const SwNode &rOther) const
 
sw::AccessibilityCheckStatus & getAccessibilityCheckStatus ()
 
void resetAndQueueAccessibilityCheck ()
 
- Public Member Functions inherited from sw::BorderCacheOwner
 BorderCacheOwner ()
 
 BorderCacheOwner (BorderCacheOwner &)
 
BorderCacheOwner & operator= (const BorderCacheOwner &)
 
 ~BorderCacheOwner ()
 
bool IsInCache () const
 
void InvalidateInSwCache (const sal_uInt16)
 

Private Member Functions

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

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...
 
sfx2::SvBaseLink * mpObjectLink
 
OUString maLinkURL
 

Friends

class SwNodes
 

Additional Inherited Members

- Public Types inherited from SwNode
enum class  Merge {
  None ,
  First ,
  NonFirst ,
  Hidden
}
 sw_redlinehide: redline node merge state More...
 
- Static Public Member Functions inherited from SwContentNode
static std::unique_ptr< SwOLENodes > CreateOLENodesArray (const SwFormatColl &rColl, bool bOnlyWithInvalidSize)
 
- Protected Member Functions inherited from SwNoTextNode
 SwNoTextNode (SwNode &rWhere, const SwNodeType nNdType, SwGrfFormatColl *pGrColl, SwAttrSet const *pAutoAttr)
 
- Protected Member Functions inherited from SwContentNode
 SwContentNode ()
 only used by SwContentNodeTmp in SwTextNode::Update More...
 
 SwContentNode (const SwNode &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...
 
virtual void NewAttrSet (SwAttrPool &)=0
 Make respective nodes create the specific AttrSets. 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 SwNode
 SwNode ()
 only used by SwContentNodeTmp in SwTextNode::Update More...
 
 SwNode (const SwNode &rWhere, const SwNodeType nNodeId)
 
 SwNode (SwNodes &rNodes, SwNodeOffset nPos, const SwNodeType nNodeId)
 for the initial StartNode More...
 
- Protected Attributes inherited from SwContentNode
std::shared_ptr< const SfxItemSet > mpAttrSet
 Attribute-set for all auto attributes of a ContentNode. More...
 
- Protected Attributes inherited from SwNode
SwStartNode * m_pStartOfSection
 

Detailed Description

Definition at line 89 of file ndole.hxx.

Constructor & Destructor Documentation

◆ SwOLENode() [1/3]

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

Definition at line 254 of file ndole.cxx.

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

◆ SwOLENode() [2/3]

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

Definition at line 266 of file ndole.cxx.

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

◆ SwOLENode() [3/3]

SwOLENode::SwOLENode ( const SwOLENode &  )
privatedelete

◆ ~SwOLENode()

SwOLENode::~SwOLENode ( )
overridevirtual

Definition at line 279 of file ndole.cxx.

References DisconnectFileLink_Impl(), RES_PAGEDESC(), and SwContentNode::ResetAttr().

Member Function Documentation

◆ BreakFileLink_Impl()

void SwOLENode::BreakFileLink_Impl ( )

◆ CheckFileLink_Impl()

void SwOLENode::CheckFileLink_Impl ( )

◆ DisconnectFileLink_Impl()

void SwOLENode::DisconnectFileLink_Impl ( )

◆ dumpAsXml()

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 334 of file ndole.cxx.

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

◆ GetAspect()

sal_Int64 SwOLENode::GetAspect ( ) const
inline

◆ GetChartTableName()

const OUString & SwOLENode::GetChartTableName ( ) const
inline

◆ GetDescription()

OUString SwOLENode::GetDescription ( ) const
inline

Remove OLE-object from "memory".

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

Definition at line 145 of file ndole.hxx.

References SwOLEObj::GetDescription().

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

◆ GetGraphic() [1/2]

const Graphic * SwOLENode::GetGraphic ( )

◆ GetGraphic() [2/2]

Graphic SwNoTextNode::GetGraphic ( ) const
private

Definition at line 91 of file ndnotxt.cxx.

◆ GetNewReplacement()

void SwOLENode::GetNewReplacement ( )

◆ GetOLEObj() [1/2]

SwOLEObj & SwOLENode::GetOLEObj ( )
inline

Definition at line 117 of file ndole.hxx.

◆ GetOLEObj() [2/2]

const SwOLEObj & SwOLENode::GetOLEObj ( ) const
inline

Definition at line 116 of file ndole.hxx.

Referenced by SwXMLTextParagraphExport::_collectTextEmbeddedAutoStyles(), SwXMLTextParagraphExport::_exportTextEmbedded(), SwFEShell::AlignAllFormulasToBaseline(), SwTaggedPDFHelper::BeginBlockStructureElements(), SwDrawView::CheckPossibilities(), SwXMLTextImportHelper::createAndInsertOLEObject(), sw::DocumentChartDataProviderManager::CreateChartInternalDataProviders(), sw::DocumentLayoutManager::DelLayoutFormat(), SwChartHelper::DoUpdateAllCharts(), dumpAsXml(), SwXMLTextImportHelper::endAppletOrPlugin(), SwFEShell::FindFlyFrame(), RtfAttributeOutput::FlyFrameOLEMath(), SwXTextEmbeddedObject::getExtendedControlOverEmbeddedObject(), SwEditShell::GetOLEObject(), SwFEShell::GetOleRef(), SwHTMLWriter::GuessOLENodeFrameType(), SwChartDataProvider::Impl_createDataSource(), IMPL_LINK(), IMPL_LINK_NOARG(), SwContentNotify::ImplDestroy(), SwNoTextFrame::ImplPaintPictureBitmap(), SwHTMLParser::InsertEmbed(), IsChart(), SwOleClient::IsProtected(), SwFEShell::IsSelObjProtected(), lcl_InsertLabel(), lcl_MoveAllLowerObjs(), SwChartLockController_Helper::LockUnlockAllCharts(), SwNodes::MakeOLENode(), SwXOLEListener::modified(), OutHTML_FrameFormatOLENode(), OutHTML_FrameFormatOLENodeGrf(), SwNoTextFrame::PaintPicture(), SwFlyFrame::PaintSwFrame(), SwDoc::PrtOLENotify(), SwDocShell::RemoveOLEObjects(), SavePersistentData(), WW8Export::TestOleNeedsGraphic(), SwDoc::UpdateCharts_(), SwTOXBaseSection::UpdateContent(), SwViewShell::UpdateOleObjectPreviews(), DocxAttributeOutput::WriteFlyFrame(), SwWW8WrGrf::WriteGraphicNode(), DocxAttributeOutput::WriteOLE(), and SwBasicEscherEx::WriteOLEFlyFrame().

◆ GetTwipSize()

Size SwOLENode::GetTwipSize ( ) const
overridevirtual

◆ IsChart()

bool SwOLENode::IsChart ( ) const

◆ IsInGlobalDocSection()

bool SwOLENode::IsInGlobalDocSection ( ) const

◆ IsOLEObjectDeleted()

bool SwOLENode::IsOLEObjectDeleted ( ) const

◆ IsOLESizeInvalid()

bool SwOLENode::IsOLESizeInvalid ( ) const
inline

◆ MakeCopy()

SwContentNode * SwOLENode::MakeCopy ( SwDoc &  rDoc,
SwNode &  rWhere,
bool  bNewFrames 
) const
overridevirtual

◆ RestorePersistentData()

bool SwOLENode::RestorePersistentData ( )
overridevirtual

◆ SavePersistentData()

bool SwOLENode::SavePersistentData ( )
overridevirtual

◆ SetAspect()

void SwOLENode::SetAspect ( sal_Int64  nAspect)
inline

Definition at line 141 of file ndole.hxx.

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

Referenced by MakeCopy().

◆ SetChanged()

void SwOLENode::SetChanged ( )

◆ SetChartTableName()

void SwOLENode::SetChartTableName ( const OUString &  rNm)
inline

◆ SetOLESizeInvalid()

void SwOLENode::SetOLESizeInvalid ( bool  b)
inline

◆ UpdateLinkURL_Impl()

bool SwOLENode::UpdateLinkURL_Impl ( )

Friends And Related Function Documentation

◆ SwNodes

friend class SwNodes
friend

Definition at line 91 of file ndole.hxx.

Member Data Documentation

◆ maLinkURL

OUString SwOLENode::maLinkURL
private

Definition at line 98 of file ndole.hxx.

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

◆ maOLEObj

SwOLEObj SwOLENode::maOLEObj
mutableprivate

◆ mbOLESizeInvalid

bool SwOLENode::mbOLESizeInvalid
private

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

copied). Is not persistent.

Definition at line 94 of file ndole.hxx.

◆ mpObjectLink

sfx2::SvBaseLink* SwOLENode::mpObjectLink
private

Definition at line 97 of file ndole.hxx.

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

◆ msChartTableName

OUString SwOLENode::msChartTableName
private

with chart objects: name of referenced table.

Definition at line 93 of file ndole.hxx.

Referenced by SavePersistentData().


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