LibreOffice Module sw (master) 1
|
Content type, knows it's contents and the WrtShell. More...
#include <content.hxx>
Public Member Functions | |
SwContentType (SwWrtShell *pParent, ContentTypeId nType, sal_uInt8 nLevel) | |
virtual | ~SwContentType () override |
void | FillMemberList (bool *pbContentChanged=nullptr) |
Fill the List of contents. More... | |
size_t | GetMemberCount () const |
ContentTypeId | GetType () const |
const SwContent * | GetMember (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) |
bool | GetSortType () const |
void | SetSortType (bool bAlphabetic) |
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 | |
SwWrtShell * | m_pWrtShell |
std::unique_ptr< SwContentArr > | m_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 |
bool | m_bAlphabeticSort = false |
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 172 of file content.hxx.
SwContentType::SwContentType | ( | SwWrtShell * | pParent, |
ContentTypeId | nType, | ||
sal_uInt8 | nLevel | ||
) |
Definition at line 326 of file content.cxx.
References BOOKMARK, DRAWOBJECT, ENDNOTE, FillMemberList(), FOOTNOTE, FRAME, IDocumentSettingAccess::get(), SwViewShell::getIDocumentSettingAccess(), GRAPHIC, INDEX, m_bDelete, m_bEdit, m_nContentType, m_pWrtShell, m_sTypeToken, nType, OLE, OUTLINE, POSTIT, PROTECT_BOOKMARKS, REFERENCE, REGION, TABLE, TEXTFIELD, and URLFIELD.
|
overridevirtual |
Definition at line 405 of file content.cxx.
void SwContentType::FillMemberList | ( | bool * | pbContentChanged = nullptr | ) |
Fill the List of contents.
Definition at line 426 of file content.cxx.
References a, sw::sidebar::aArr, SwPostItMgr::begin(), BOOKMARK, SwNavigationPI::CleanEntry(), INetURLObject::decode(), DocumentStatistics, DRAWOBJECT, SwPostItMgr::end(), ENDNOTE, eType, SwField::ExpandField(), SwFrameFormat::FindLayoutRect(), SwTable::FindTable(), FLYCNTTYPE_FRM, FLYCNTTYPE_GRF, FLYCNTTYPE_OLE, FOOTNOTE, FRAME, SwFieldType::GatherFields(), sw::proofreadingiterator::get(), SwTextNode::GetAttrOutlineLevel(), IDocumentMarkAccess::getBookmarksBegin(), IDocumentMarkAccess::getBookmarksEnd(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwField::GetDescription(), SwViewShell::GetDoc(), IDocumentDrawModelAccess::GetDrawModel(), SwNodes::GetEndOfExtras(), SwGetRefField::GetExpandedTextOfReferencedTextNode(), SwField::GetFieldName(), IDocumentFieldsAccess::GetFieldTypes(), SwFEShell::GetFlyCount(), SwNode::GetFlyFormat(), SwFEShell::GetFlyFrameFormats(), SwDoc::GetFootnoteIdxs(), SwEditShell::GetGrfNms(), SwViewShell::getIDocumentDrawModelAccess(), SwDoc::getIDocumentFieldsAccess(), SwViewShell::getIDocumentMarkAccess(), SwViewShell::getIDocumentOutlineNodesAccess(), SwNode::GetIndex(), SwEditShell::GetINetAttrs(), SdrObject::GetLayer(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SdrObject::GetLogicRect(), SdrObject::GetName(), SwFormat::GetName(), SwNodeIndex::GetNode(), SwViewShell::GetNodes(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SwNodes::GetOutLineNds(), 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(), SwEditShell::GetTOX(), SwEditShell::GetTOXCount(), SwTOXBase::GetTOXName(), SwSection::GetType(), SwField::GetTypeId(), SwWrtShell::GetView(), SwFormatFootnote::GetViewNumStr(), GRAPHIC, i, INDEX, SwDoc::IsInHeaderFooter(), SwSectionFormat::IsInNodesArr(), SwContent::IsInvisible(), SwEditShell::IsOutlineMovable(), SwGetRefField::IsRefToHeadingCrossRefBookmark(), SwGetRefField::IsRefToNumItemCrossRefBookmark(), SwFrameFormat::IsVisible(), SwTOXBase::IsVisible(), SwSectionFormat::IsVisible(), IDocumentDrawModelAccess::IsVisibleLayerId(), m_bAlphabeticSort, m_bDataValid, m_nContentType, m_nMemberCount, m_nOutlineLevel, m_pMember, m_pWrtShell, o3tl::make_unsigned(), n, nCount, nPos, OLE, OUTLINE, p, Postit, POSTIT, REF_ENDNOTE, REF_FOOTNOTE, REFERENCE, REGION, RemoveNewline(), SAL_WARN_IF, SwContent::SetInvisible(), sFrameName, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), comphelper::string::stripStart(), SwResId(), TABLE, TEXTFIELD, tools::Rectangle::Top(), SwRect::Top(), ToxContent, ToxHeader, u, INetURLObject::Unambiguous, URLFIELD, and SwFieldType::Which().
Referenced by SwContentTree::ExecuteContextMenuAction(), GetMember(), SwContentTree::HasContentChanged(), and SwContentType().
const SwContent * SwContentType::GetMember | ( | size_t | nIndex | ) |
Deliver content, for that if necessary fill the list.
Definition at line 409 of file content.cxx.
References FillMemberList(), m_bDataValid, m_pMember, nIndex, and size.
Referenced by SwContentTree::BringEntryToAttention(), SwContentTree::HasContentChanged(), SwContentTree::InsertContent(), and SwContentTree::RequestingChildren().
|
inline |
Definition at line 196 of file content.hxx.
References m_nMemberCount.
Referenced by SwContentTree::BringEntryToAttention(), SwContentTree::HasContentChanged(), IMPL_LINK(), SwContentTree::InsertContent(), and SwContentTree::RequestingChildren().
|
inline |
Definition at line 202 of file content.hxx.
References m_sContentTypeName.
|
inline |
Definition at line 203 of file content.hxx.
References m_sSingleContentTypeName.
|
inline |
Definition at line 212 of file content.hxx.
References m_bAlphabeticSort.
Referenced by SwContentTree::ExecuteContextMenuAction(), and IMPL_LINK().
|
inline |
Definition at line 198 of file content.hxx.
References m_nContentType.
Referenced by SwContentTree::BringEntryToAttention(), SwContentTree::EditEntry(), SwContentTree::ExecuteContextMenuAction(), SwContentTree::Expand(), SwContentTree::FillTransferData(), SwContentTree::GetDrawingObjectsByContent(), SwContentTree::GotoContent(), SwContentTree::HasContentChanged(), IMPL_LINK(), IMPL_LINK_NOARG(), SwContentTree::InsertContent(), SwContentTree::RequestingChildren(), and SwContentTree::ToggleToRoot().
|
inline |
Definition at line 204 of file content.hxx.
References m_sTypeToken.
Referenced by SwContentTree::FillTransferData().
void SwContentType::Invalidate | ( | ) |
Definition at line 421 of file content.cxx.
References m_bDataValid.
Referenced by SetOutlineLevel().
|
inline |
|
inline |
|
staticprivate |
|
inline |
Definition at line 206 of file content.hxx.
References Invalidate(), and m_nOutlineLevel.
|
inline |
Definition at line 213 of file content.hxx.
References m_bAlphabeticSort.
Referenced by SwContentTree::ExecuteContextMenuAction().
|
private |
Definition at line 187 of file content.hxx.
Referenced by FillMemberList(), GetSortType(), and SetSortType().
|
private |
Definition at line 183 of file content.hxx.
Referenced by FillMemberList(), GetMember(), and Invalidate().
|
private |
Definition at line 185 of file content.hxx.
Referenced by IsDeletable(), and SwContentType().
|
private |
Definition at line 184 of file content.hxx.
Referenced by IsEditable(), and SwContentType().
|
private |
Definition at line 181 of file content.hxx.
Referenced by FillMemberList(), GetType(), and SwContentType().
|
private |
Definition at line 180 of file content.hxx.
Referenced by FillMemberList(), and GetMemberCount().
|
private |
Definition at line 182 of file content.hxx.
Referenced by FillMemberList(), and SetOutlineLevel().
|
private |
Definition at line 176 of file content.hxx.
Referenced by FillMemberList(), and GetMember().
|
private |
Definition at line 174 of file content.hxx.
Referenced by FillMemberList(), and SwContentType().
|
private |
Definition at line 177 of file content.hxx.
Referenced by GetName().
|
private |
Definition at line 178 of file content.hxx.
Referenced by GetSingleName().
|
private |
Definition at line 179 of file content.hxx.
Referenced by GetTypeToken(), and SwContentType().