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

Content type, knows it's contents and the WrtShell. More...

#include <content.hxx>

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

Public Member Functions

 SwContentType (SwWrtShell *pParent, ContentTypeId nType, sal_uInt8 nLevel)
 
virtual ~SwContentType () override
 
void Init (bool *pbInvalidateWindow=nullptr)
 
void FillMemberList (bool *pbLevelChanged=nullptr)
 Fill the List of contents. More...
 
size_t GetMemberCount () const
 
ContentTypeId GetType () const
 
const SwContentGetMember (size_t nIndex)
 Deliver content, for that if necessary fill the list. More...
 
const OUString & GetName ()
 
const OUString & GetSingleName () const
 
const OUString & GetTypeToken () const
 
void SetOutlineLevel (sal_uInt8 nNew)
 
void Invalidate ()
 
bool IsEditable () const
 
bool IsDeletable () const
 
- Public Member Functions inherited from SwTypeNumber
 SwTypeNumber (sal_uInt8 nId)
 
virtual ~SwTypeNumber ()
 
sal_uInt8 GetTypeId () const
 

Static Protected Member Functions

static OUString RemoveNewline (const OUString &)
 

Private Attributes

SwWrtShellm_pWrtShell
 
std::unique_ptr< SwContentArrm_pMember
 
OUString const m_sContentTypeName
 
OUString const m_sSingleContentTypeName
 
OUString m_sTypeToken
 
size_t m_nMemberCount
 
ContentTypeId const m_nContentType
 
sal_uInt8 m_nOutlineLevel
 
bool m_bDataValid: 1
 
bool m_bEdit: 1
 
bool m_bDelete: 1
 

Detailed Description

Content type, knows it's contents and the WrtShell.

The class ContentType contains information to one type of content. MemberArray is only populated if the content is requested by GetMember. It is reloaded after Invalidate() only if the content should be read again.

Definition at line 139 of file content.hxx.

Constructor & Destructor Documentation

SwContentType::SwContentType ( SwWrtShell pParent,
ContentTypeId  nType,
sal_uInt8  nLevel 
)

Definition at line 268 of file content.cxx.

References Init().

SwContentType::~SwContentType ( )
overridevirtual

Definition at line 499 of file content.cxx.

Member Function Documentation

void SwContentType::FillMemberList ( bool *  pbLevelChanged = nullptr)

Fill the List of contents.

Definition at line 520 of file content.cxx.

References SwPostItMgr::begin(), BOOKMARK, SwNavigationPI::CleanEntry(), INetURLObject::decode(), DRAWOBJECT, SwPostItMgr::end(), eType, SwFrameFormat::FindLayoutRect(), FLYCNTTYPE_FRM, FLYCNTTYPE_GRF, FLYCNTTYPE_OLE, FRAME, IDocumentMarkAccess::getBookmarksBegin(), IDocumentMarkAccess::getBookmarksEnd(), IDocumentDrawModelAccess::GetDrawModel(), SwFEShell::GetFlyCount(), SwFEShell::GetFlyFrameFormats(), SwContact::GetFormat(), SwEditShell::GetGrfNms(), SwViewShell::getIDocumentDrawModelAccess(), SwViewShell::getIDocumentMarkAccess(), SwViewShell::getIDocumentOutlineNodesAccess(), SwModify::GetInfo(), SwSectionFormat::GetInfo(), SwTOXBase::GetInfo(), SdrObject::GetLayer(), SwViewShell::GetLayout(), SdrObject::GetName(), SwFormat::GetName(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), IDocumentOutlineNodes::getOutlineLevel(), IDocumentOutlineNodes::getOutlineNodesCount(), IDocumentOutlineNodes::getOutlineText(), SdrModel::GetPage(), SwSectionFormat::GetParent(), SwView::GetPostItMgr(), SwEditShell::GetRefMarks(), SwSectionFormat::GetSection(), SwEditShell::GetSectionFormat(), SwEditShell::GetSectionFormatCount(), SwSection::GetSectionName(), SwEditShell::GetTableFrameFormat(), SwEditShell::GetTableFrameFormatCount(), SwEditShell::GetTOX(), SwEditShell::GetTOXCount(), SwTOXBase::GetTOXName(), SwSection::GetType(), SdrObject::GetUserCall(), SwWrtShell::GetView(), GRAPHIC, i, INDEX, SwPostItHelper::INVISIBLE, SwContent::IsInvisible(), IDocumentOutlineNodes::isOutlineInLayout(), SwEditShell::IsOutlineMovable(), IDocumentDrawModelAccess::IsVisibleLayerId(), m_bDataValid, m_nContentType, m_nMemberCount, m_nOutlineLevel, m_pMember, m_pWrtShell, nPos, OLE, OUTLINE, SwPtrMsgPoolItem::pObject, POSTIT, REFERENCE, REGION, RemoveNewline(), RES_CONTENT_VISIBLE, SAL_WARN_IF, SwContent::SetInvisible(), comphelper::string::stripStart(), TABLE, SwRect::Top(), TOX_CONTENT_SECTION, TOX_HEADER_SECTION, INetURLObject::Unambiguous, and URLFIELD.

Referenced by GetMember(), and SwContentTree::HasContentChanged().

const SwContent * SwContentType::GetMember ( size_t  nIndex)

Deliver content, for that if necessary fill the list.

Definition at line 503 of file content.cxx.

References FillMemberList(), m_bDataValid, m_pMember, and size.

Referenced by SwContentTree::HasContentChanged().

size_t SwContentType::GetMemberCount ( ) const
inline

Definition at line 163 of file content.hxx.

References m_nMemberCount.

Referenced by SwContentTree::HasContentChanged(), and SwContentTree::RequestingChildren().

const OUString& SwContentType::GetName ( )
inline

Definition at line 169 of file content.hxx.

References m_sContentTypeName.

const OUString& SwContentType::GetSingleName ( ) const
inline

Definition at line 170 of file content.hxx.

References m_sSingleContentTypeName.

ContentTypeId SwContentType::GetType ( ) const
inline
const OUString& SwContentType::GetTypeToken ( ) const
inline

Definition at line 171 of file content.hxx.

References m_sTypeToken.

void SwContentType::Init ( bool *  pbInvalidateWindow = nullptr)

Definition at line 283 of file content.cxx.

References SwPostItMgr::begin(), BOOKMARK, DRAWOBJECT, SwPostItMgr::end(), eType, SwFrameFormat::FindLayoutRect(), FLYCNTTYPE_FRM, FLYCNTTYPE_GRF, FLYCNTTYPE_OLE, FRAME, IDocumentMarkAccess::getBookmarksBegin(), IDocumentMarkAccess::getBookmarksEnd(), IDocumentDrawModelAccess::GetDrawModel(), SwFEShell::GetFlyCount(), SwViewShell::getIDocumentDrawModelAccess(), SwViewShell::getIDocumentMarkAccess(), SwViewShell::getIDocumentOutlineNodesAccess(), SwSectionFormat::GetInfo(), SwViewShell::GetLayout(), SdrObject::GetName(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), IDocumentOutlineNodes::getOutlineLevel(), IDocumentOutlineNodes::getOutlineNodesCount(), SdrModel::GetPage(), SwSectionFormat::GetParent(), SwView::GetPostItMgr(), SwEditShell::GetRefMarks(), SwSectionFormat::GetSection(), SwEditShell::GetSectionFormat(), SwEditShell::GetSectionFormatCount(), SwSection::GetSectionName(), SwEditShell::GetTableFrameFormatCount(), SwEditShell::GetTOXCount(), SwSection::GetType(), SwWrtShell::GetView(), GRAPHIC, i, INDEX, SwPostItHelper::INVISIBLE, IDocumentOutlineNodes::isOutlineInLayout(), m_bDataValid, m_bDelete, m_bEdit, m_nContentType, m_nMemberCount, m_nOutlineLevel, m_pMember, m_pWrtShell, m_sTypeToken, MAXLEVEL, OLE, OUTLINE, SwPtrMsgPoolItem::pObject, POSTIT, REFERENCE, REGION, RemoveNewline(), RES_CONTENT_VISIBLE, TABLE, SwRect::Top(), TOX_CONTENT_SECTION, TOX_HEADER_SECTION, and URLFIELD.

Referenced by SwContentTree::HasContentChanged(), and SwContentType().

void SwContentType::Invalidate ( )

Definition at line 515 of file content.cxx.

References m_bDataValid.

Referenced by SetOutlineLevel().

bool SwContentType::IsDeletable ( ) const
inline

Definition at line 182 of file content.hxx.

References m_bDelete.

bool SwContentType::IsEditable ( ) const
inline

Definition at line 181 of file content.hxx.

References m_bEdit.

OUString SwContentType::RemoveNewline ( const OUString &  rEntry)
staticprotected

Definition at line 3234 of file content.cxx.

References i.

Referenced by FillMemberList(), and Init().

void SwContentType::SetOutlineLevel ( sal_uInt8  nNew)
inline

Definition at line 173 of file content.hxx.

References Invalidate().

Member Data Documentation

bool SwContentType::m_bDataValid
private

Definition at line 150 of file content.hxx.

Referenced by FillMemberList(), GetMember(), Init(), and Invalidate().

bool SwContentType::m_bDelete
private

Definition at line 152 of file content.hxx.

Referenced by Init(), and IsDeletable().

bool SwContentType::m_bEdit
private

Definition at line 151 of file content.hxx.

Referenced by Init(), and IsEditable().

ContentTypeId const SwContentType::m_nContentType
private

Definition at line 148 of file content.hxx.

Referenced by FillMemberList(), GetType(), and Init().

size_t SwContentType::m_nMemberCount
private

Definition at line 147 of file content.hxx.

Referenced by FillMemberList(), GetMemberCount(), and Init().

sal_uInt8 SwContentType::m_nOutlineLevel
private

Definition at line 149 of file content.hxx.

Referenced by FillMemberList(), and Init().

std::unique_ptr<SwContentArr> SwContentType::m_pMember
private

Definition at line 143 of file content.hxx.

Referenced by FillMemberList(), GetMember(), and Init().

SwWrtShell* SwContentType::m_pWrtShell
private

Definition at line 141 of file content.hxx.

Referenced by FillMemberList(), and Init().

OUString const SwContentType::m_sContentTypeName
private

Definition at line 144 of file content.hxx.

Referenced by GetName().

OUString const SwContentType::m_sSingleContentTypeName
private

Definition at line 145 of file content.hxx.

Referenced by GetSingleName().

OUString SwContentType::m_sTypeToken
private

Definition at line 146 of file content.hxx.

Referenced by GetTypeToken(), and Init().


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