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

#include <section.hxx>

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

Public Member Functions

 SwSection (SectionType const eType, OUString const &rName, SwSectionFormat &rFormat)
 
virtual ~SwSection () override
 
bool DataEquals (SwSectionData const &rCmp) const
 
void SetSectionData (SwSectionData const &rData)
 
const OUString & GetSectionName () const
 
void SetSectionName (OUString const &rName)
 
SectionType GetType () const
 
void SetType (SectionType const eType)
 
SwSectionFormatGetFormat ()
 
SwSectionFormat const * GetFormat () const
 
bool IsHidden () const
 
void SetHidden (bool const bFlag=true)
 
bool IsProtect () const
 
void SetProtect (bool const bFlag=true)
 
bool IsEditInReadonly () const
 
void SetEditInReadonly (bool const bFlag=true)
 
bool IsHiddenFlag () const
 
bool IsProtectFlag () const
 
bool IsEditInReadonlyFlag () const
 
void SetCondHidden (bool const bFlag)
 
bool IsCondHidden () const
 
bool CalcHiddenFlag () const
 
SwSectionGetParent () const
 
OUString const & GetCondition () const
 
void SetCondition (OUString const &rNew)
 
OUString const & GetLinkFileName () const
 
void SetLinkFileName (OUString const &rNew)
 
OUString const & GetLinkFilePassword () const
 
void SetLinkFilePassword (OUString const &rS)
 
css::uno::Sequence< sal_Int8 > const & GetPassword () const
 
void SetRefObject (SwServerObject *pObj)
 
const SwServerObjectGetObject () const
 
SwServerObjectGetObject ()
 
bool IsServer () const
 
SfxLinkUpdateMode GetUpdateType () const
 
void SetUpdateType (SfxLinkUpdateMode nType)
 
bool IsConnected () const
 
void UpdateNow ()
 
void Disconnect ()
 
const ::sfx2::SvBaseLinkGetBaseLink () const
 
::sfx2::SvBaseLinkGetBaseLink ()
 
void CreateLink (LinkCreateType eType)
 
bool IsLinkType () const
 
bool IsConnectFlag () const
 
void SetConnectFlag (bool const bFlag=true)
 
const SwTOXBaseGetTOXBase () const
 
void BreakLink ()
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
virtual const SwCellFrameDynCastCellFrame () const
 
virtual const SwTabFrameDynCastTabFrame () const
 
virtual const SwRowFrameDynCastRowFrame () const
 
virtual const SwTableDynCastTable () const
 
- Public Member Functions inherited from SvtListener
 SvtListener ()=default
 
 SvtListener (const SvtListener &r)=default
 
virtual ~SvtListener () COVERITY_NOEXCEPT_FALSE
 
bool StartListening (SvtBroadcaster &rBroadcaster)
 
void EndListening (SvtBroadcaster &rBroadcaster)
 
void EndListeningAll ()
 
void CopyAllBroadcasters (const SvtListener &r)
 
bool HasBroadcaster () const
 
virtual void Notify (const SfxHint &rHint)
 
virtual void Query (QueryBase &rQuery) const
 

Static Public Member Functions

static void MakeChildLinksVisible (const SwSectionNode &rSectNd)
 

Protected Member Functions

virtual void Notify (SfxHint const &rHint) override
 
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint)=0
 

Private Member Functions

SAL_DLLPRIVATE void ImplSetHiddenFlag (bool const bHidden, bool const bCondition)
 

Private Attributes

SwSectionData m_Data
 
tools::SvRef< SwServerObjectm_RefObj
 
tools::SvRef< sfx2::SvBaseLinkm_RefLink
 

Friends

class SwSectionNode
 
class SwSectionFrame
 

Detailed Description

Definition at line 139 of file section.hxx.

Constructor & Destructor Documentation

◆ SwSection()

SwSection::SwSection ( SectionType const  eType,
OUString const &  rName,
SwSectionFormat rFormat 
)

◆ ~SwSection()

SwSection::~SwSection ( )
overridevirtual

Member Function Documentation

◆ BreakLink()

void SwSection::BreakLink ( )

◆ CalcHiddenFlag()

bool SwSection::CalcHiddenFlag ( ) const

◆ CreateLink()

void SwSection::CreateLink ( LinkCreateType  eType)

◆ DataEquals()

bool SwSection::DataEquals ( SwSectionData const &  rCmp) const

◆ Disconnect()

void SwSection::Disconnect ( )
inline

Definition at line 229 of file section.hxx.

Referenced by SwDoc::UpdateSection().

◆ dumpAsXml()

void SwSection::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 1491 of file section.cxx.

References SwSectionData::dumpAsXml(), SwClient::GetRegisteredIn(), and m_Data.

◆ GetBaseLink() [1/2]

::sfx2::SvBaseLink & SwSection::GetBaseLink ( )
inline

Definition at line 232 of file section.hxx.

◆ GetBaseLink() [2/2]

const ::sfx2::SvBaseLink & SwSection::GetBaseLink ( ) const
inline

Definition at line 231 of file section.hxx.

Referenced by lcl_BreakSectionLinksInSect(), and SwDoc::UpdateSection().

◆ GetCondition()

OUString const & SwSection::GetCondition ( ) const
inline

◆ GetFormat() [1/2]

SwSectionFormat * SwSection::GetFormat ( )
inline

Definition at line 341 of file section.hxx.

References SwClient::GetRegisteredIn().

Referenced by SwXDocumentIndex::attach(), SwXTextSection::attach(), BreakLink(), SwSectionFrame::CalcEndAtEndFlag(), SwSectionFrame::CalcFootnoteAtEndFlag(), CreateLink(), SwXDocumentIndex::CreateXDocumentIndex(), SwEditShell::DeleteGlobalDocContent(), SwDoc::DeleteTOX(), SwFrame::dumpAsXmlAttributes(), AttributeOutputBase::EndTOX(), SwView::ExecTabWin(), RtfExport::ExportDocument_Impl(), SwFrame::FindFootnoteBossFrame(), SwSectionFrame::FindLastContent(), SwSectionFrame::FindMaster(), SwUpdFootnoteEndNtAtEnd::FindSectNdWithEndAttr(), SwTOXBase::GetAttrSet(), SwXDocumentIndexes::getByIndex(), SwXDocumentIndexes::getByName(), SwXDocumentIndexes::getCount(), SwUnoCursorHelper::getCursorPropertyValue(), SwXDocumentIndexes::getElementNames(), SwSectionFrame::GetEndSectFormat_(), GetLinkFileName(), SwUpdFootnoteEndNtAtEnd::GetNumber(), GetParent(), SwXRedline::getPropertyValue(), SwXCell::getPropertyValue(), SwXTextTable::getPropertyValue(), SwXTextSection::Impl::GetPropertyValues_Impl(), MSWordExportBase::GetSectionFormat(), SwTOXBaseSection::GetTextFormatColl(), SwEditShell::GetTOX(), SwDoc::GetTOXBaseAttrSet(), SwEditShell::GetTOXCount(), SwFormatFootnote::GetViewNumStr(), GotoCurrRegionAndSkip(), SwCursorShell::GotoNextTOXBase(), SwCursorShell::GotoPrevTOXBase(), SwSectionFrame::Grow_(), SwXDocumentIndexes::hasByName(), IMPL_LINK_NOARG(), ImplSetHiddenFlag(), SwTOXBaseSection::InsertAlphaDelimiter(), InsertCnt_(), wwSectionManager::InsertSection(), SwDoc::InsertTableOf(), SwNodes::InsertTextSection(), SwSectionFrame::IsBalancedSection(), SwSectionFrame::IsDescendantFrom(), IsEditInReadonly(), SwSectionFrame::IsEndnoteAtMyEnd(), SwWrtShell::IsOutlineContentVisible(), IsProtect(), SwTOXBase::IsTOXBaseInReadonly(), SwTOXBaseSection::IsVisible(), lcl_GetAttrSet(), lcl_html_IsMultiColStart(), lcl_initParent(), lcl_IsAtTextEnd(), lcl_SectionCmpPos(), SwDocUpdateField::MakeFieldList_(), MSWordSections::MSWordSections(), SwWrtShell::NavigatorPaste(), SwNode2LayImpl::NextFrame(), SwSectionNode::NodesArrChgd(), Notify(), OutHTML_Section(), DocxExport::OutputEndNode(), MSWordExportBase::OutputSectionNode(), SwWW8ImplReader::Read_F_IncludeText(), SwUndoDelSection::RedoImpl(), SwDoc::RemoveInvisibleContent(), SectRepr::SectRepr(), SwTOXBase::SetAttrSet(), SetEditInReadonly(), SwTOXBaseSection::SetPosAtStartEnd(), SetProtect(), SwEditShell::SetSectionAttr(), SwEditShell::SetTOXBaseReadonly(), SwDoc::SplitDoc(), AttributeOutputBase::StartTOX(), SwView::StateTabWin(), SwTOXBaseSection::SwClientNotify(), SwColumnDlg::SwColumnDlg(), SwGlblDocContent::SwGlblDocContent(), SwSectionFrame::SwSectionFrame(), SwUndoUpdateIndex::SwUndoUpdateIndex(), SwUndoUpdateIndex::TitleSectionInserted(), SwUndoInsSection::UndoImpl(), SwTOXBaseSection::Update(), SwTOXBaseSection::UpdateAuthorities(), SwTOXBaseSection::UpdateContent(), SwTOXBaseSection::UpdateMarks(), SwTOXBaseSection::UpdateOutline(), SwTOXBaseSection::UpdatePageNum(), SwSectionFormat::UpdateParent(), SwDoc::UpdateSection(), SwTOXBaseSection::UpdateSequence(), SwTOXBaseSection::UpdateTable(), SwEditShell::UpdateTableOf(), SwTOXBaseSection::UpdateTemplate(), MSWordExportBase::WriteText(), and ~SwSection().

◆ GetFormat() [2/2]

SwSectionFormat const * SwSection::GetFormat ( ) const
inline

Definition at line 346 of file section.hxx.

References SwClient::GetRegisteredIn().

◆ GetLinkFileName()

OUString const & SwSection::GetLinkFileName ( ) const

◆ GetLinkFilePassword()

OUString const & SwSection::GetLinkFilePassword ( ) const
inline

Definition at line 207 of file section.hxx.

References SwSectionData::GetLinkFilePassword().

◆ GetObject() [1/2]

SwServerObject * SwSection::GetObject ( )
inline

Definition at line 219 of file section.hxx.

References tools::SvRef< typename T >::get().

◆ GetObject() [2/2]

const SwServerObject * SwSection::GetObject ( ) const
inline

Definition at line 218 of file section.hxx.

References tools::SvRef< typename T >::get().

Referenced by SwSectionNode::MakeCopy().

◆ GetParent()

SwSection * SwSection::GetParent ( ) const
inline

◆ GetPassword()

css::uno::Sequence< sal_Int8 > const & SwSection::GetPassword ( ) const
inline

Definition at line 213 of file section.hxx.

References SwSectionData::GetPassword().

Referenced by SwXTextSection::Impl::GetPropertyValues_Impl().

◆ GetSectionName()

const OUString & SwSection::GetSectionName ( ) const
inline

◆ GetTOXBase()

const SwTOXBase * SwSection::GetTOXBase ( ) const

◆ GetType()

SectionType SwSection::GetType ( ) const
inline

Definition at line 173 of file section.hxx.

References SwSectionData::GetType().

Referenced by SwTaggedPDFHelper::BeginBlockStructureElements(), BreakLink(), SwContentTree::BringEntryToAttention(), SwTextShell::ExecIdx(), SwEnhancedPDFExportHelper::ExportAuthorityEntryLinks(), SwContentType::FillMemberList(), SwFrame::GetBackgroundBrush(), SwXDocumentIndexes::getByIndex(), SwXDocumentIndexes::getByName(), SwXDocumentIndexes::getCount(), SwDoc::GetCurTOX(), SwXDocumentIndexes::getElementNames(), SwEditShell::GetGlobalDocContent(), SwSectionFormat::GetGlobalDocSection(), SwTextShell::GetIdxState(), SwXTextSection::Impl::GetPropertyValues_Impl(), MSWordExportBase::GetSectionFormat(), SwBaseShell::GetState(), SwEditShell::GetTOX(), GetTOXBase(), SwEditShell::GetTOXCount(), SwDoc::GetUniqueTOXBaseName(), SwCursorShell::GotoNextTOXBase(), SwCursorShell::GotoPrevTOXBase(), SwXDocumentIndexes::hasByName(), SwDoc::InsertTableOf(), SwOLENode::IsInGlobalDocSection(), SwAccessibleFrame::IsOpaque(), lcl_FillList(), lcl_html_GetFormatCol(), lcl_html_OutSectionStartTag(), lcl_UpdateLinkType(), MakeChildLinksVisible(), SwSectionFormat::MakeUnoObject(), MSWordSections::MSWordSections(), DocxExport::OutputEndNode(), MSWordExportBase::OutputSectionNode(), MSWordExportBase::OutputTextNode(), SwEditRegionDlg::RecurseList(), SwView::StateStatusLine(), SwTOXBaseSection::Update(), SwTOXBaseSection::UpdatePageNum(), MSWordExportBase::UpdateTocSectionNodeProperties(), SwHTMLWriter::WriteStream(), and MSWordExportBase::WriteText().

◆ GetUpdateType()

SfxLinkUpdateMode SwSection::GetUpdateType ( ) const
inline

Definition at line 223 of file section.hxx.

Referenced by SwXTextSection::Impl::GetPropertyValues_Impl().

◆ ImplSetHiddenFlag()

void SwSection::ImplSetHiddenFlag ( bool const  bHidden,
bool const  bCondition 
)
private

◆ IsCondHidden()

bool SwSection::IsCondHidden ( ) const
inline

◆ IsConnected()

bool SwSection::IsConnected ( ) const
inline

◆ IsConnectFlag()

bool SwSection::IsConnectFlag ( ) const
inline

Definition at line 241 of file section.hxx.

References SwSectionData::IsConnectFlag().

Referenced by SwGlobalTree::Display(), and IMPL_LINK().

◆ IsEditInReadonly()

bool SwSection::IsEditInReadonly ( ) const

◆ IsEditInReadonlyFlag()

bool SwSection::IsEditInReadonlyFlag ( ) const
inline

◆ IsHidden()

bool SwSection::IsHidden ( ) const
inline

◆ IsHiddenFlag()

bool SwSection::IsHiddenFlag ( ) const
inline

◆ IsLinkType()

bool SwSection::IsLinkType ( ) const
inline

◆ IsProtect()

bool SwSection::IsProtect ( ) const

◆ IsProtectFlag()

bool SwSection::IsProtectFlag ( ) const
inline

◆ IsServer()

bool SwSection::IsServer ( ) const
inline

Definition at line 220 of file section.hxx.

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

◆ MakeChildLinksVisible()

void SwSection::MakeChildLinksVisible ( const SwSectionNode rSectNd)
static

◆ Notify()

void SwSection::Notify ( SfxHint const &  rHint)
overrideprotectedvirtual

◆ SetCondHidden()

void SwSection::SetCondHidden ( bool const  bFlag)

◆ SetCondition()

void SwSection::SetCondition ( OUString const &  rNew)
inline

◆ SetConnectFlag()

void SwSection::SetConnectFlag ( bool const  bFlag = true)
inline

Definition at line 242 of file section.hxx.

References SwSectionData::SetConnectFlag().

◆ SetEditInReadonly()

void SwSection::SetEditInReadonly ( bool const  bFlag = true)

◆ SetHidden()

void SwSection::SetHidden ( bool const  bFlag = true)

◆ SetLinkFileName()

void SwSection::SetLinkFileName ( OUString const &  rNew)

◆ SetLinkFilePassword()

void SwSection::SetLinkFilePassword ( OUString const &  rS)
inline

Definition at line 209 of file section.hxx.

References SwSectionData::SetLinkFilePassword().

Referenced by BreakLink().

◆ SetProtect()

void SwSection::SetProtect ( bool const  bFlag = true)

◆ SetRefObject()

void SwSection::SetRefObject ( SwServerObject pObj)

Definition at line 504 of file section.cxx.

References m_RefObj.

Referenced by SwSectionNode::MakeCopy().

◆ SetSectionData()

void SwSection::SetSectionData ( SwSectionData const &  rData)

◆ SetSectionName()

void SwSection::SetSectionName ( OUString const &  rName)
inline

◆ SetType()

void SwSection::SetType ( SectionType const  eType)
inline

Definition at line 174 of file section.hxx.

References eType, and SwSectionData::SetType().

Referenced by BreakLink(), and SwSectionNode::MakeCopy().

◆ SetUpdateType()

void SwSection::SetUpdateType ( SfxLinkUpdateMode  nType)
inline

Definition at line 224 of file section.hxx.

References nType.

Referenced by SwXTextSection::attach(), and lcl_UpdateLinkType().

◆ SwClientNotify()

void SwSection::SwClientNotify ( const SwModify ,
const SfxHint rHint 
)
overrideprotectedvirtual

Reimplemented from SwClient.

Reimplemented in SwTOXBaseSection.

Definition at line 397 of file section.cxx.

References Notify().

◆ UpdateNow()

void SwSection::UpdateNow ( )
inline

Definition at line 228 of file section.hxx.

Friends And Related Function Documentation

◆ SwSectionFrame

friend class SwSectionFrame
friend

Definition at line 146 of file section.hxx.

◆ SwSectionNode

friend class SwSectionNode
friend

Definition at line 144 of file section.hxx.

Member Data Documentation

◆ m_Data

SwSectionData SwSection::m_Data
mutableprivate

◆ m_RefLink

tools::SvRef<sfx2::SvBaseLink> SwSection::m_RefLink
private

Definition at line 152 of file section.hxx.

Referenced by BreakLink(), CreateLink(), GetLinkFileName(), SetLinkFileName(), and ~SwSection().

◆ m_RefObj

tools::SvRef<SwServerObject> SwSection::m_RefObj
private

Definition at line 151 of file section.hxx.

Referenced by SetRefObject(), and ~SwSection().


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