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 ()
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
 
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
 

Static Public Member Functions

static void MakeChildLinksVisible (const SwSectionNode &rSectNd)
 

Protected Member Functions

virtual void Modify (const SfxPoolItem *pOld, const SfxPoolItem *pNew) 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
 

Friends

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 ( )
overridevirtual

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 ( )
inline

Definition at line 227 of file section.hxx.

References sfx2::SvBaseLink::Disconnect().

Referenced by SwUndoUpdateSection::UndoImpl(), and SwDoc::UpdateSection().

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

Definition at line 230 of file section.hxx.

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

Definition at line 336 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(), AttributeOutputBase::EndTOX(), SwView::ExecTabWin(), RtfExport::ExportDocument_Impl(), SwSectionFrame::FindLastContent(), SwSectionFrame::FindMaster(), SwUpdFootnoteEndNtAtEnd::FindSectNdWithEndAttr(), SwTOXBase::GetAttrSet(), SwXDocumentIndexes::getByIndex(), SwXDocumentIndexes::getByName(), SwXDocumentIndexes::getCount(), SwUnoCursorHelper::getCursorPropertyValue(), SwXDocumentIndexes::getElementNames(), SwSectionFrame::GetEndSectFormat_(), SwTOXBase::GetInfo(), 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(), wwSectionManager::InsertSection(), SwNodes::InsertTextSection(), SwSectionFrame::IsBalancedSection(), SwSectionFrame::IsDescendantFrom(), IsEditInReadonly(), SwSectionFrame::IsEndnoteAtMyEnd(), IsProtect(), SwTOXBase::IsTOXBaseInReadonly(), lcl_GetAttrSet(), lcl_html_IsMultiColStart(), lcl_initParent(), lcl_IsAtTextEnd(), lcl_SectionCmpPos(), SwDocUpdateField::MakeFieldList_(), Modify(), MSWordSections::MSWordSections(), SwWrtShell::NavigatorPaste(), SwNode2LayImpl::NextFrame(), SwSectionNode::NodesArrChgd(), 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(), SwColumnDlg::SwColumnDlg(), SwGlblDocContent::SwGlblDocContent(), SwUndoUpdateIndex::SwUndoUpdateIndex(), SwUndoInsSection::UndoImpl(), SwUndoUpdateSection::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
inline

Definition at line 341 of file section.hxx.

References SwClient::GetRegisteredIn().

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

Definition at line 205 of file section.hxx.

References SwSectionData::GetLinkFilePassword().

Referenced by SwIntrnlSectRefLink::DataChanged().

const SwServerObject* SwSection::GetObject ( ) const
inline

Definition at line 216 of file section.hxx.

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

Referenced by SwSectionNode::MakeCopy().

SwServerObject* SwSection::GetObject ( )
inline

Definition at line 217 of file section.hxx.

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

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

Definition at line 211 of file section.hxx.

References SwSectionData::GetPassword().

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

const OUString& SwSection::GetSectionName ( ) const
inline
const SwTOXBase * SwSection::GetTOXBase ( ) const
SectionType SwSection::GetType ( ) const
inline

Definition at line 171 of file section.hxx.

References SwSectionData::GetType().

Referenced by SwTaggedPDFHelper::BeginBlockStructureElements(), BreakLink(), SwCompareLine::CompareNode(), SwContentType::FillMemberList(), SwFrame::GetBackgroundBrush(), SwXDocumentIndexes::getByIndex(), SwXDocumentIndexes::getByName(), SwXDocumentIndexes::getCount(), SwDoc::GetCurTOX(), SwXDocumentIndexes::getElementNames(), SwCompareLine::GetEndNode(), SwEditShell::GetGlobalDocContent(), SwSectionFormat::GetGlobalDocSection(), SwXTextSection::Impl::GetPropertyValues_Impl(), MSWordExportBase::GetSectionFormat(), SwBaseShell::GetState(), SwCompareLine::GetText(), SwEditShell::GetTOX(), GetTOXBase(), SwEditShell::GetTOXCount(), SwDoc::GetUniqueTOXBaseName(), SwCursorShell::GotoNextTOXBase(), SwCursorShell::GotoPrevTOXBase(), SwXDocumentIndexes::hasByName(), SwContentType::Init(), SwDoc::InsertTableOf(), SwOLENode::IsInGlobalDocSection(), SwAccessibleFrame::IsOpaque(), SwCursor::IsSelOvr(), lcl_FillList(), lcl_html_GetFormatCol(), lcl_html_OutSectionStartTag(), lcl_UpdateLinkType(), MakeChildLinksVisible(), SwSectionFormat::MakeUnoObject(), MSWordSections::MSWordSections(), CompareData::NextIdx(), DocxExport::OutputEndNode(), MSWordExportBase::OutputSectionNode(), MSWordExportBase::OutputTextNode(), CompareData::PrevIdx(), SwEditRegionDlg::RecurseList(), SwView::StateStatusLine(), SwUndoUpdateSection::UndoImpl(), SwTOXBaseSection::Update(), SwTOXBaseSection::UpdatePageNum(), MSWordExportBase::UpdateTocSectionNodeProperties(), and MSWordExportBase::WriteText().

SfxLinkUpdateMode SwSection::GetUpdateType ( ) const
inline
void SwSection::ImplSetHiddenFlag ( bool const  bHidden,
bool const  bCondition 
)
private
bool SwSection::IsCondHidden ( ) const
inline
bool SwSection::IsConnected ( ) const
inline
bool SwSection::IsConnectFlag ( ) const
inline

Definition at line 239 of file section.hxx.

References SwSectionData::IsConnectFlag().

Referenced by SwLBoxString::Paint(), and SwGlobalTree::RequestHelp().

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

Definition at line 218 of file section.hxx.

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

void SwSection::MakeChildLinksVisible ( const SwSectionNode rSectNd)
static
void SwSection::Modify ( const SfxPoolItem pOld,
const SfxPoolItem pNew 
)
overrideprotectedvirtual
void SwSection::SetCondHidden ( bool const  bFlag)
void SwSection::SetCondition ( OUString const &  rNew)
inline
void SwSection::SetConnectFlag ( bool const  bFlag = true)
inline

Definition at line 240 of file section.hxx.

References SwSectionData::SetConnectFlag().

Referenced by SwIntrnlSectRefLink::DataChanged().

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)
inline

Definition at line 207 of file section.hxx.

References SwSectionData::SetLinkFilePassword().

Referenced by BreakLink(), and SwIntrnlSectRefLink::DataChanged().

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

Definition at line 526 of file section.cxx.

References m_RefObj.

Referenced by SwSectionNode::MakeCopy().

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

Definition at line 172 of file section.hxx.

References SwSectionData::SetType().

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

void SwSection::SetUpdateType ( SfxLinkUpdateMode  nType)
inline

Definition at line 222 of file section.hxx.

References sfx2::SvBaseLink::SetUpdateMode().

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

void SwSection::UpdateNow ( )
inline

Definition at line 226 of file section.hxx.

References sfx2::SvBaseLink::Update().

Friends And Related Function Documentation

friend class SwSectionFrame
friend

Definition at line 145 of file section.hxx.

friend class SwSectionNode
friend

Definition at line 143 of file section.hxx.

Member Data Documentation

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

Definition at line 151 of file section.hxx.

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

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

Definition at line 150 of file section.hxx.

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


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