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

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
 
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 Private Member Functions

static OUString RemoveNewline (const OUString &)
 

Private Attributes

SwWrtShellm_pWrtShell
 
std::unique_ptr< SwContentArrm_pMember
 
OUString m_sContentTypeName
 
OUString m_sSingleContentTypeName
 
OUString m_sTypeToken
 
size_t m_nMemberCount
 
ContentTypeId 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 171 of file content.hxx.

Constructor & Destructor Documentation

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

Definition at line 330 of file content.cxx.

References Init().

SwContentType::~SwContentType ( )
overridevirtual

Definition at line 596 of file content.cxx.

Member Function Documentation

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

Fill the List of contents.

Definition at line 617 of file content.cxx.

References SwPostItMgr::begin(), BOOKMARK, SwNavigationPI::CleanEntry(), INetURLObject::decode(), DocumentStatistics, DRAWOBJECT, SwPostItMgr::end(), eType, SwField::ExpandField(), SwFrameFormat::FindLayoutRect(), FLYCNTTYPE_FRM, FLYCNTTYPE_GRF, FLYCNTTYPE_OLE, FOOTNOTE, FRAME, SwFieldType::GatherFields(), IDocumentMarkAccess::getBookmarksBegin(), IDocumentMarkAccess::getBookmarksEnd(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwField::GetDescription(), SwViewShell::GetDoc(), IDocumentDrawModelAccess::GetDrawModel(), SwFormatField::GetField(), SwField::GetFieldName(), IDocumentFieldsAccess::GetFieldTypes(), SwFEShell::GetFlyCount(), SwFEShell::GetFlyFrameFormats(), SwDoc::GetFootnoteIdxs(), SwFormatFootnote::GetFootnoteText(), SwFrameFormats::GetFormat(), SwContact::GetFormat(), SwTextAttr::GetFormatField(), SwEditShell::GetGrfNms(), SwViewShell::getIDocumentDrawModelAccess(), SwDoc::getIDocumentFieldsAccess(), SwViewShell::getIDocumentMarkAccess(), SwViewShell::getIDocumentOutlineNodesAccess(), SwModify::GetInfo(), SwSectionFormat::GetInfo(), SdrObject::GetLayer(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SdrObject::GetName(), SwFormat::GetName(), SwViewShell::GetNodes(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), IDocumentOutlineNodes::getOutlineLevel(), IDocumentOutlineNodes::getOutlineNodesCount(), IDocumentOutlineNodes::getOutlineText(), SdrModel::GetPage(), SwSectionFormat::GetParent(), SwView::GetPostItMgr(), GetRef, SwEditShell::GetRefMarks(), SwSectionFormat::GetSection(), SwEditShell::GetSectionFormat(), SwEditShell::GetSectionFormatCount(), SwSection::GetSectionName(), SwField::GetSubType(), SwFieldMgr::GetSubTypes(), SwEditShell::GetTableFrameFormatCount(), SwDoc::GetTableFrameFormats(), SwTextField::GetTextNode(), SwNode::GetTextNode(), SwEditShell::GetTOX(), SwEditShell::GetTOXCount(), SwTOXBase::GetTOXName(), SwSection::GetType(), SwField::GetTypeId(), SdrObject::GetUserCall(), SwWrtShell::GetView(), SwFormatFootnote::GetViewNumStr(), GRAPHIC, i, INDEX, o3tl::sorted_vector< Value, Compare, Find, class >::insert(), SwPostItHelper::INVISIBLE, SwFormatFootnote::IsEndNote(), SwSectionFormat::IsInNodesArr(), IDocumentOutlineNodes::isOutlineInLayout(), SwEditShell::IsOutlineMovable(), SwTOXBase::IsVisible(), IDocumentDrawModelAccess::IsVisibleLayerId(), m_bDataValid, m_nContentType, m_nMemberCount, m_nOutlineLevel, m_pMember, m_pWrtShell, n, nPos, OLE, OUTLINE, SwPtrMsgPoolItem::pObject, Point, POSTIT, Postit, REFERENCE, REGION, RemoveNewline(), RES_CONTENT_VISIBLE(), SAL_WARN_IF, SwContent::SetInvisible(), sFrameName, o3tl::sorted_vector< Value, Compare, Find, class >::size(), comphelper::string::stripStart(), TABLE, TEXTFIELD, SwRect::Top(), ToxContent, ToxHeader, u, 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 600 of file content.cxx.

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

Referenced by SwContentTree::HasContentChanged().

size_t SwContentType::GetMemberCount ( ) const
inline
const OUString& SwContentType::GetName ( ) const
inline

Definition at line 201 of file content.hxx.

References m_sContentTypeName.

const OUString& SwContentType::GetSingleName ( ) const
inline

Definition at line 202 of file content.hxx.

References m_sSingleContentTypeName.

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

Definition at line 203 of file content.hxx.

References m_sTypeToken.

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

Definition at line 345 of file content.cxx.

References SwPostItMgr::begin(), BOOKMARK, DRAWOBJECT, SwPostItMgr::end(), eType, FLYCNTTYPE_FRM, FLYCNTTYPE_GRF, FLYCNTTYPE_OLE, FOOTNOTE, FRAME, SwFieldType::GatherFields(), IDocumentSettingAccess::get(), IDocumentMarkAccess::getBookmarksBegin(), IDocumentMarkAccess::getBookmarksEnd(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwViewShell::GetDoc(), IDocumentDrawModelAccess::GetDrawModel(), IDocumentFieldsAccess::GetFieldTypes(), SwFEShell::GetFlyCount(), SwDoc::GetFootnoteIdxs(), SwViewShell::getIDocumentDrawModelAccess(), SwDoc::getIDocumentFieldsAccess(), SwViewShell::getIDocumentMarkAccess(), SwViewShell::getIDocumentOutlineNodesAccess(), SwViewShell::getIDocumentSettingAccess(), 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, SwSectionFormat::IsInNodesArr(), 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, PROTECT_BOOKMARKS, REFERENCE, REGION, RemoveNewline(), RES_CONTENT_VISIBLE(), o3tl::sorted_vector< Value, Compare, Find, class >::size(), TABLE, TEXTFIELD, ToxContent, ToxHeader, and URLFIELD.

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

void SwContentType::Invalidate ( )

Definition at line 612 of file content.cxx.

References m_bDataValid.

Referenced by SetOutlineLevel().

bool SwContentType::IsDeletable ( ) const
inline

Definition at line 214 of file content.hxx.

References m_bDelete.

bool SwContentType::IsEditable ( ) const
inline

Definition at line 213 of file content.hxx.

References m_bEdit.

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

Definition at line 4570 of file content.cxx.

References i.

Referenced by FillMemberList(), and Init().

void SwContentType::SetOutlineLevel ( sal_uInt8  nNew)
inline

Definition at line 205 of file content.hxx.

References Invalidate().

Member Data Documentation

bool SwContentType::m_bDataValid
private

Definition at line 182 of file content.hxx.

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

bool SwContentType::m_bDelete
private

Definition at line 184 of file content.hxx.

Referenced by Init(), and IsDeletable().

bool SwContentType::m_bEdit
private

Definition at line 183 of file content.hxx.

Referenced by Init(), and IsEditable().

ContentTypeId SwContentType::m_nContentType
private

Definition at line 180 of file content.hxx.

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

size_t SwContentType::m_nMemberCount
private

Definition at line 179 of file content.hxx.

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

sal_uInt8 SwContentType::m_nOutlineLevel
private

Definition at line 181 of file content.hxx.

Referenced by FillMemberList(), and Init().

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

Definition at line 175 of file content.hxx.

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

SwWrtShell* SwContentType::m_pWrtShell
private

Definition at line 173 of file content.hxx.

Referenced by FillMemberList(), and Init().

OUString SwContentType::m_sContentTypeName
private

Definition at line 176 of file content.hxx.

Referenced by GetName().

OUString SwContentType::m_sSingleContentTypeName
private

Definition at line 177 of file content.hxx.

Referenced by GetSingleName().

OUString SwContentType::m_sTypeToken
private

Definition at line 178 of file content.hxx.

Referenced by GetTypeToken(), and Init().


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