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

#include <section.hxx>

Public Member Functions

 SwSectionData (SectionType const eType, OUString aName)
 
 SwSectionData (SwSection const &)
 
 SwSectionData (SwSectionData const &)
 
SwSectionDataoperator= (SwSectionData const &)
 
bool operator== (SwSectionData const &) const
 
const OUString & GetSectionName () const
 
void SetSectionName (OUString const &rName)
 
SectionType GetType () const
 
void SetType (SectionType const eNew)
 
bool IsHidden () const
 
void SetHidden (bool const bFlag)
 
bool IsHiddenFlag () const
 
SAL_DLLPRIVATE void SetHiddenFlag (bool const bFlag)
 
bool IsProtectFlag () const
 
SAL_DLLPRIVATE void SetProtectFlag (bool const bFlag)
 
bool IsEditInReadonlyFlag () const
 
void SetEditInReadonlyFlag (bool const bFlag)
 
void SetCondHidden (bool const bFlag)
 
bool IsCondHidden () const
 
const OUString & GetCondition () const
 
void SetCondition (OUString const &rNew)
 
const OUString & GetLinkFileName () const
 
void SetLinkFileName (OUString const &rNew)
 
const OUString & GetLinkFilePassword () const
 
void SetLinkFilePassword (OUString const &rS)
 
css::uno::Sequence< sal_Int8 > const & GetPassword () const
 
void SetPassword (css::uno::Sequence< sal_Int8 > const &rNew)
 
bool IsLinkType () const
 
bool IsConnectFlag () const
 
void SetConnectFlag (bool const bFlag)
 

Private Attributes

SectionType m_eType
 
OUString m_sSectionName
 
OUString m_sCondition
 Hide condition. More...
 
OUString m_sLinkFileName
 
OUString m_sLinkFilePassword
 
css::uno::Sequence< sal_Int8m_Password
 
bool m_bHiddenFlag: 1
 It seems this flag caches the current final "hidden" state. More...
 
bool m_bProtectFlag: 1
 Flags that correspond to attributes in the format: may have different value than format attribute: format attr has value for this section, while flag is effectively ORed with parent sections! More...
 
bool m_bEditInReadonlyFlag: 1
 
bool m_bHidden: 1
 Section is hidden, unless condition evaluates ‘false’. More...
 
bool m_bCondHiddenFlag: 1
 Hide condition evaluated ‘true’. More...
 
bool m_bConnectFlag: 1
 

Detailed Description

Definition at line 60 of file section.hxx.

Constructor & Destructor Documentation

◆ SwSectionData() [1/3]

SwSectionData::SwSectionData ( SectionType const  eType,
OUString  aName 
)

Definition at line 95 of file section.cxx.

References aName, eType, and m_eType.

◆ SwSectionData() [2/3]

SwSectionData::SwSectionData ( SwSection const &  rSection)
explicit

Definition at line 108 of file section.cxx.

References IsHidden(), and m_eType.

◆ SwSectionData() [3/3]

SwSectionData::SwSectionData ( SwSectionData const &  rOther)

Definition at line 126 of file section.cxx.

References m_eType.

Member Function Documentation

◆ GetCondition()

const OUString & SwSectionData::GetCondition ( ) const
inline

Definition at line 114 of file section.hxx.

Referenced by SwSection::GetCondition(), IMPL_LINK(), and SwDoc::InsertSwSection().

◆ GetLinkFileName()

const OUString & SwSectionData::GetLinkFileName ( ) const
inline

◆ GetLinkFilePassword()

const OUString & SwSectionData::GetLinkFilePassword ( ) const
inline

◆ GetPassword()

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

Definition at line 126 of file section.hxx.

Referenced by SwEditRegionDlg::CheckPasswd(), SwSection::GetPassword(), and IMPL_LINK().

◆ GetSectionName()

const OUString & SwSectionData::GetSectionName ( ) const
inline

◆ GetType()

SectionType SwSectionData::GetType ( ) const
inline

◆ IsCondHidden()

bool SwSectionData::IsCondHidden ( ) const
inline

◆ IsConnectFlag()

bool SwSectionData::IsConnectFlag ( ) const
inline

Definition at line 133 of file section.hxx.

Referenced by SwSection::IsConnectFlag().

◆ IsEditInReadonlyFlag()

bool SwSectionData::IsEditInReadonlyFlag ( ) const
inline

◆ IsHidden()

bool SwSectionData::IsHidden ( ) const
inline

◆ IsHiddenFlag()

bool SwSectionData::IsHiddenFlag ( ) const
inline

Definition at line 101 of file section.hxx.

Referenced by SwSection::ImplSetHiddenFlag(), and SwSection::IsHiddenFlag().

◆ IsLinkType()

bool SwSectionData::IsLinkType ( ) const
inline

Definition at line 130 of file section.hxx.

References DdeLink, FileLink, and m_eType.

Referenced by SwDoc::InsertSwSection(), SwSection::IsLinkType(), and SwDoc::UpdateSection().

◆ IsProtectFlag()

bool SwSectionData::IsProtectFlag ( ) const
inline

◆ operator=()

SwSectionData & SwSectionData::operator= ( SwSectionData const &  rOther)

◆ operator==()

bool SwSectionData::operator== ( SwSectionData const &  rOther) const

◆ SetCondHidden()

void SwSectionData::SetCondHidden ( bool const  bFlag)
inline

Definition at line 111 of file section.hxx.

Referenced by SwSection::SetCondHidden().

◆ SetCondition()

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

◆ SetConnectFlag()

void SwSectionData::SetConnectFlag ( bool const  bFlag)
inline

Definition at line 134 of file section.hxx.

Referenced by SwSection::SetConnectFlag().

◆ SetEditInReadonlyFlag()

void SwSectionData::SetEditInReadonlyFlag ( bool const  bFlag)
inline

◆ SetHidden()

void SwSectionData::SetHidden ( bool const  bFlag)
inline

◆ SetHiddenFlag()

SAL_DLLPRIVATE void SwSectionData::SetHiddenFlag ( bool const  bFlag)
inline

Definition at line 103 of file section.hxx.

Referenced by SwSection::Notify().

◆ SetLinkFileName()

void SwSectionData::SetLinkFileName ( OUString const &  rNew)
inline

◆ SetLinkFilePassword()

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

◆ SetPassword()

void SwSectionData::SetPassword ( css::uno::Sequence< sal_Int8 > const &  rNew)
inline

◆ SetProtectFlag()

SAL_DLLPRIVATE void SwSectionData::SetProtectFlag ( bool const  bFlag)
inline

◆ SetSectionName()

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

Definition at line 94 of file section.hxx.

Referenced by IMPL_LINK_NOARG(), SwXTextSection::setName(), and SwSection::SetSectionName().

◆ SetType()

void SwSectionData::SetType ( SectionType const  eNew)
inline

Member Data Documentation

◆ m_bCondHiddenFlag

bool SwSectionData::m_bCondHiddenFlag
private

Hide condition evaluated ‘true’.

Definition at line 82 of file section.hxx.

Referenced by operator=().

◆ m_bConnectFlag

bool SwSectionData::m_bConnectFlag
private

Definition at line 83 of file section.hxx.

Referenced by operator=().

◆ m_bEditInReadonlyFlag

bool SwSectionData::m_bEditInReadonlyFlag
private

Definition at line 79 of file section.hxx.

Referenced by operator=(), and operator==().

◆ m_bHidden

bool SwSectionData::m_bHidden
private

Section is hidden, unless condition evaluates ‘false’.

Definition at line 81 of file section.hxx.

Referenced by operator=(), and operator==().

◆ m_bHiddenFlag

bool SwSectionData::m_bHiddenFlag
private

It seems this flag caches the current final "hidden" state.

Definition at line 72 of file section.hxx.

◆ m_bProtectFlag

bool SwSectionData::m_bProtectFlag
private

Flags that correspond to attributes in the format: may have different value than format attribute: format attr has value for this section, while flag is effectively ORed with parent sections!

protect flag is no longer inherited

Definition at line 77 of file section.hxx.

Referenced by operator=(), and operator==().

◆ m_eType

SectionType SwSectionData::m_eType
private

Definition at line 63 of file section.hxx.

Referenced by operator=(), and operator==().

◆ m_Password

css::uno::Sequence<sal_Int8> SwSectionData::m_Password
private

Definition at line 69 of file section.hxx.

Referenced by operator=(), and operator==().

◆ m_sCondition

OUString SwSectionData::m_sCondition
private

Hide condition.

Definition at line 66 of file section.hxx.

Referenced by operator=(), and operator==().

◆ m_sLinkFileName

OUString SwSectionData::m_sLinkFileName
private

Definition at line 67 of file section.hxx.

Referenced by operator=(), and operator==().

◆ m_sLinkFilePassword

OUString SwSectionData::m_sLinkFilePassword
private

Definition at line 68 of file section.hxx.

Referenced by operator=(), and operator==().

◆ m_sSectionName

OUString SwSectionData::m_sSectionName
private

Definition at line 65 of file section.hxx.

Referenced by operator=(), and operator==().


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