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:
Collaboration diagram for SwSection:

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
- Public Member Functions inherited from SvtListener
 SvtListener ()
 SvtListener (const SvtListener &r)
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
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE

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


class SwSectionNode
class SwSectionFrame

Detailed Description

Definition at line 139 of file section.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

void SwSection::BreakLink ( )
bool SwSection::CalcHiddenFlag ( ) const
void SwSection::CreateLink ( LinkCreateType  eType)
bool SwSection::DataEquals ( SwSectionData const &  rCmp) const
void SwSection::Disconnect ( )

Definition at line 229 of file section.hxx.

References sfx2::SvBaseLink::Disconnect().

Referenced by SwDoc::UpdateSection().

void SwSection::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 1516 of file section.cxx.

References SwClient::GetRegisteredIn(), and void().

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

Definition at line 231 of file section.hxx.

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

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

Definition at line 232 of file section.hxx.

OUString const& SwSection::GetCondition ( ) const
SwSectionFormat * SwSection::GetFormat ( )

Definition at line 340 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(), 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(), 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().

SwSectionFormat const * SwSection::GetFormat ( ) const

Definition at line 345 of file section.hxx.

References SwClient::GetRegisteredIn().

OUString const & SwSection::GetLinkFileName ( ) const
OUString const& SwSection::GetLinkFilePassword ( ) const

Definition at line 207 of file section.hxx.

References SwSectionData::GetLinkFilePassword().

const SwServerObject* SwSection::GetObject ( ) const

Definition at line 218 of file section.hxx.

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

Referenced by SwSectionNode::MakeCopy().

SwServerObject* SwSection::GetObject ( )

Definition at line 219 of file section.hxx.

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

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

Definition at line 213 of file section.hxx.

References SwSectionData::GetPassword().

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

const OUString& SwSection::GetSectionName ( ) const
const SwTOXBase * SwSection::GetTOXBase ( ) const
SectionType SwSection::GetType ( ) const
SfxLinkUpdateMode SwSection::GetUpdateType ( ) const
void SwSection::ImplSetHiddenFlag ( bool const  bHidden,
bool const  bCondition 
bool SwSection::IsCondHidden ( ) const
bool SwSection::IsConnected ( ) const
bool SwSection::IsConnectFlag ( ) const

Definition at line 241 of file section.hxx.

References SwSectionData::IsConnectFlag().

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

bool SwSection::IsEditInReadonly ( ) const
bool SwSection::IsEditInReadonlyFlag ( ) const
bool SwSection::IsHidden ( ) const
bool SwSection::IsHiddenFlag ( ) const
bool SwSection::IsLinkType ( ) const
bool SwSection::IsProtect ( ) const
bool SwSection::IsProtectFlag ( ) const
bool SwSection::IsServer ( ) const

Definition at line 220 of file section.hxx.

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

void SwSection::MakeChildLinksVisible ( const SwSectionNode rSectNd)
void SwSection::Notify ( SfxHint const &  rHint)
void SwSection::SetCondHidden ( bool const  bFlag)
void SwSection::SetCondition ( OUString const &  rNew)
void SwSection::SetConnectFlag ( bool const  bFlag = true)

Definition at line 242 of file section.hxx.

References SwSectionData::SetConnectFlag().

void SwSection::SetEditInReadonly ( bool const  bFlag = true)
void SwSection::SetHidden ( bool const  bFlag = true)
void SwSection::SetLinkFileName ( OUString const &  rNew)
void SwSection::SetLinkFilePassword ( OUString const &  rS)

Definition at line 209 of file section.hxx.

References SwSectionData::SetLinkFilePassword().

Referenced by BreakLink().

void SwSection::SetProtect ( bool const  bFlag = true)
void SwSection::SetRefObject ( SwServerObject pObj)

Definition at line 518 of file section.cxx.

References m_RefObj.

Referenced by SwSectionNode::MakeCopy().

void SwSection::SetSectionData ( SwSectionData const &  rData)
void SwSection::SetSectionName ( OUString const &  rName)
void SwSection::SetType ( SectionType const  eType)

Definition at line 174 of file section.hxx.

References SwSectionData::SetType().

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

void SwSection::SetUpdateType ( SfxLinkUpdateMode  nType)

Definition at line 224 of file section.hxx.

References sfx2::SvBaseLink::SetUpdateMode().

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

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

Reimplemented from SwClient.

Reimplemented in SwTOXBaseSection.

Definition at line 405 of file section.cxx.

References Notify().

void SwSection::UpdateNow ( )

Definition at line 228 of file section.hxx.

References sfx2::SvBaseLink::Update().

Friends And Related Function Documentation

friend class SwSectionFrame

Definition at line 146 of file section.hxx.

friend class SwSectionNode

Definition at line 144 of file section.hxx.

Member Data Documentation

SwSectionData SwSection::m_Data
tools::SvRef<sfx2::SvBaseLink> SwSection::m_RefLink

Definition at line 152 of file section.hxx.

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

tools::SvRef<SwServerObject> SwSection::m_RefObj

Definition at line 151 of file section.hxx.

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

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