LibreOffice Module sw (master) 1
|
#include <fltshell.hxx>
Public Types | |
enum class | MoveAttrsMode { DEFAULT , POSTIT_INSERTED } |
enum | Flags { HYPO , TAGS_DO_ID , TAGS_VISIBLE , BOOK_TO_VAR_REF , BOOK_AND_REF , TAGS_IN_TEXT , ALLOW_FLD_CR } |
Public Member Functions | |
void | MoveAttrs (const SwPosition &rPos, MoveAttrsMode=MoveAttrsMode::DEFAULT) |
SwFltControlStack (SwDoc &rDo, sal_uLong nFieldFl) | |
virtual | ~SwFltControlStack () |
bool | IsFlagSet (Flags no) const |
void | NewAttr (const SwPosition &rPos, const SfxPoolItem &rAttr) |
virtual SwFltStackEntry * | SetAttr (const SwPosition &rPos, sal_uInt16 nAttrId, bool bTstEnd=true, tools::Long nHand=LONG_MAX, bool consumedByField=false) |
void | StealAttr (const SwNode &rNode) |
void | MarkAllAttrsOld () |
void | KillUnlockedAttrs (const SwPosition &pPos) |
SfxPoolItem * | GetFormatStackAttr (sal_uInt16 nWhich, sal_uInt16 *pPos) |
const SfxPoolItem * | GetOpenStackAttr (const SwPosition &rPos, sal_uInt16 nWhich) |
void | Delete (const SwPaM &rPam) |
bool | empty () const |
Entries::size_type | size () const |
SwFltStackEntry & | operator[] (Entries::size_type nIndex) |
void | DeleteAndDestroy (Entries::size_type nCnt) |
Protected Member Functions | |
virtual void | SetAttrInDoc (const SwPosition &rTmpPos, SwFltStackEntry &rEntry) |
Protected Attributes | |
SwDoc & | m_rDoc |
bool | m_bIsEndStack |
Private Types | |
typedef std::vector< std::unique_ptr< SwFltStackEntry > > | Entries |
Private Member Functions | |
SwFltControlStack (SwFltControlStack const &)=delete | |
SwFltControlStack & | operator= (SwFltControlStack const &)=delete |
Private Attributes | |
Entries | m_Entries |
sal_uLong | m_nFieldFlags |
Definition at line 110 of file fltshell.hxx.
|
private |
Definition at line 116 of file fltshell.hxx.
Enumerator | |
---|---|
HYPO | |
TAGS_DO_ID | |
TAGS_VISIBLE | |
BOOK_TO_VAR_REF | |
BOOK_AND_REF | |
TAGS_IN_TEXT | |
ALLOW_FLD_CR |
Definition at line 130 of file fltshell.hxx.
|
strong |
Enumerator | |
---|---|
DEFAULT | |
POSTIT_INSERTED |
Definition at line 128 of file fltshell.hxx.
|
privatedelete |
Definition at line 166 of file fltshell.cxx.
|
virtual |
Definition at line 171 of file fltshell.cxx.
References m_Entries.
void SwFltControlStack::Delete | ( | const SwPaM & | rPam | ) |
Definition at line 764 of file fltshell.cxx.
References DeleteAndDestroy(), SwPaM::HasMark(), SwFltStackEntry::m_aMkPos, SwFltStackEntry::m_aPtPos, SwFltStackEntry::m_bOpen, m_Entries, SwFltPosition::m_nContent, SwFltPosition::m_nNode, SwFltPosition::SetPos(), and SwPaM::StartEnd().
void SwFltControlStack::DeleteAndDestroy | ( | Entries::size_type | nCnt | ) |
Definition at line 273 of file fltshell.cxx.
References m_Entries.
Referenced by Delete(), SwWW8FltAnchorStack::Flush(), KillUnlockedAttrs(), SwWW8FltControlStack::SetAttr(), and StealAttr().
|
inline |
Definition at line 157 of file fltshell.hxx.
SfxPoolItem * SwFltControlStack::GetFormatStackAttr | ( | sal_uInt16 | nWhich, |
sal_uInt16 * | pPos | ||
) |
Definition at line 728 of file fltshell.cxx.
References SwFltStackEntry::m_bOpen, m_Entries, and SwFltStackEntry::m_pAttr.
const SfxPoolItem * SwFltControlStack::GetOpenStackAttr | ( | const SwPosition & | rPos, |
sal_uInt16 | nWhich | ||
) |
Definition at line 747 of file fltshell.cxx.
References SwFltStackEntry::m_aMkPos, SwFltStackEntry::m_bOpen, m_Entries, and SwFltStackEntry::m_pAttr.
|
inline |
Definition at line 144 of file fltshell.hxx.
References SwFltGetFlag().
Referenced by SetAttrInDoc().
void SwFltControlStack::KillUnlockedAttrs | ( | const SwPosition & | pPos | ) |
Definition at line 307 of file fltshell.cxx.
References DeleteAndDestroy(), SwFltStackEntry::m_aMkPos, SwFltStackEntry::m_aPtPos, SwFltStackEntry::m_bOld, SwFltStackEntry::m_bOpen, and m_Entries.
void SwFltControlStack::MarkAllAttrsOld | ( | ) |
Definition at line 226 of file fltshell.cxx.
void SwFltControlStack::MoveAttrs | ( | const SwPosition & | rPos, |
MoveAttrsMode | eMode = MoveAttrsMode::DEFAULT |
||
) |
Definition at line 183 of file fltshell.cxx.
References DEFAULT, eMode, SwPosition::GetContentIndex(), SwNodeIndex::GetIndex(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), i, SwFltStackEntry::m_aMkPos, SwFltStackEntry::m_aPtPos, m_Entries, SwFltStackEntry::m_isAnnotationOnEnd, SwFltPosition::m_nContent, SwFltPosition::m_nNode, SwFltStackEntry::m_pAttr, m_rDoc, POSTIT_INSERTED, and RES_FLTR_ANNOTATIONMARK().
Referenced by SetAttrInDoc(), and SwWW8FltRefStack::SetAttrInDoc().
void SwFltControlStack::NewAttr | ( | const SwPosition & | rPos, |
const SfxPoolItem & | rAttr | ||
) |
Definition at line 248 of file fltshell.cxx.
References SfxPoolItem::Clone(), SwFltStackEntry::m_bOpen, m_Entries, SetAttr(), SwFltStackEntry::SetEndPos(), and SfxPoolItem::Which().
Referenced by SwWW8FltAnchorStack::AddAnchor(), and SwWW8FltControlStack::NewAttr().
|
privatedelete |
|
inline |
Definition at line 159 of file fltshell.hxx.
References nIndex.
|
virtual |
Reimplemented in SwWW8FltControlStack.
Definition at line 329 of file fltshell.cxx.
References SwFltBookmark::GetHandle(), SwFltRDFMark::GetHandle(), SwNodeIndex::GetIndex(), CntUInt16Item::GetValue(), SwFltStackEntry::m_aPtPos, SwFltStackEntry::m_bConsumedByField, m_bIsEndStack, SwFltStackEntry::m_bOpen, m_Entries, SwFltPosition::m_nContent, SwFltPosition::m_nNode, SwFltStackEntry::m_pAttr, RES_FLTR_ANNOTATIONMARK(), RES_FLTR_BOOKMARK(), RES_FLTR_RDFMARK(), SetAttrInDoc(), and SwFltStackEntry::SetEndPos().
Referenced by NewAttr(), and SwWW8FltControlStack::SetAttr().
|
protectedvirtual |
Reimplemented in SwWW8FltControlStack, SwWW8ReferencedFltEndStack, and SwWW8FltRefStack.
Definition at line 490 of file fltshell.cxx.
References SL::aData, SwRDFHelper::addTextNodeStatement(), SwPosition::AdjustContent(), IDocumentRedlineAccess::AppendRedline(), BOOK_AND_REF, BOOK_TO_VAR_REF, IDocumentMarkAccess::BOOKMARK, SwFltStackEntry::CheckFieldmark, SwFltStackEntry::CheckNodes, SfxItemSet::Count(), IDocumentMarkAccess::CROSSREF_HEADING_BOOKMARK, sw::Default, SwDoc::DelNumRule(), SwPaM::End(), SwDoc::FindNumRulePtr(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFltRDFMark::GetAttributes(), SwDoc::GetAttrPool(), SwPosition::GetContentIndex(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwFormatField::GetField(), SwTextNode::GetFieldTextAttrAt(), IDocumentFieldsAccess::GetFieldType(), SwTextAttr::GetFormatField(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SfxItemSet::GetItemState(), SwPostItField::GetName(), GetName(), SwPosition::GetNode(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwContentNode::GetpSwAttrSet(), SwNode::GetTextNode(), SwFltBookmark::GetValSys(), GetValue, nsSwGetSetExpType::GSE_STRING, SwFltTOX::HadBreakItem(), SwFltTOX::HadPageDescItem(), SwPaM::HasMark(), HYPO, IDocumentFieldsAccess::InsertFieldType(), IDocumentContentOperations::InsertPoolItem(), IsFlagSet(), IDocumentMarkAccess::IsLegalPaMForCrossRefHeadingBookmark(), SwNode::IsTextNode(), SwFltBookmark::IsTOCBookmark(), IterateNumrulePiece(), lcl_getTypePath(), SwFltRedline::m_aStamp, SwFltStackEntry::m_bConsumedByField, SwFltRedline::m_eType, SwFltRedline::m_nAutorNo, SwFltStackEntry::m_pAttr, m_rDoc, IDocumentMarkAccess::makeAnnotationMark(), MakeBookRegionOrPoint(), SwFrameFormat::MakeFrames(), IDocumentMarkAccess::makeMark(), MakePoint(), SwFltStackEntry::MakeRegion(), MoveAttrs(), sw::mark::New, SwFltStackEntry::NoCheck, NONE, On, SfxItemSet::Put(), RES_BREAK(), RES_FLTR_ANCHOR(), RES_FLTR_ANNOTATIONMARK(), RES_FLTR_BOOKMARK(), RES_FLTR_NUMRULE(), RES_FLTR_RDFMARK(), RES_FLTR_REDLINE(), RES_FLTR_TOX(), RES_PAGEDESC(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_TOXMARK(), SwContentNode::ResetAttr(), SAL_WARN, SwFormatAnchor::SetAnchor(), SwContentNode::SetAttr(), SetExp, SwFormat::SetFormatAttr(), SwPaM::SetMark(), SwDoc::SetNumRule(), IDocumentRedlineAccess::SetRedlineFlags(), SwSetExpField::SetSubType(), ShowDelete, ShowInsert, SwPaM::Start(), and nsSwExtendedSubType::SUB_INVISIBLE.
Referenced by SwWW8FltAnchorStack::Flush(), SetAttr(), SwWW8FltControlStack::SetAttrInDoc(), SwWW8ReferencedFltEndStack::SetAttrInDoc(), and SwWW8FltRefStack::SetAttrInDoc().
|
inline |
Definition at line 158 of file fltshell.hxx.
Referenced by SwWW8FltAnchorStack::Flush(), SwWW8FltControlStack::GetStackAttr(), SwWW8FltControlStack::SetAttr(), and WW8DupProperties::WW8DupProperties().
void SwFltControlStack::StealAttr | ( | const SwNode & | rNode | ) |
Definition at line 288 of file fltshell.cxx.
References DeleteAndDestroy(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwFltStackEntry::m_aPtPos, m_Entries, and SwFltPosition::m_nNode.
|
protected |
Definition at line 123 of file fltshell.hxx.
Referenced by SetAttr(), and SwFltEndStack::SwFltEndStack().
|
private |
Definition at line 117 of file fltshell.hxx.
Referenced by Delete(), DeleteAndDestroy(), GetFormatStackAttr(), GetOpenStackAttr(), KillUnlockedAttrs(), MarkAllAttrsOld(), MoveAttrs(), NewAttr(), SetAttr(), StealAttr(), and ~SwFltControlStack().
|
private |
Definition at line 119 of file fltshell.hxx.
|
protected |
Definition at line 122 of file fltshell.hxx.
Referenced by SwWW8FltControlStack::GetFormatAttr(), SwWW8FltControlStack::GetNumFormatFromStack(), SwWW8FltRefStack::IsFootnoteEdnBkmField(), MoveAttrs(), SwWW8FltRefStack::RefToVar(), SetAttrInDoc(), SwWW8FltControlStack::SetAttrInDoc(), and SwWW8FltRefStack::SetAttrInDoc().