LibreOffice Module sw (master)
1
|
#include <fltshell.hxx>
Public Types | |
enum | MoveAttrsMode { MoveAttrsMode::DEFAULT, MoveAttrsMode::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 SwNodeIndex &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) |
virtual sal_Int32 | GetCurrAttrCP () const |
virtual bool | IsParaEndInCPs (sal_Int32 nStart, sal_Int32 nEnd, bool bSdOD) const |
virtual void | ClearParaEndPosition () |
virtual bool | CheckSdOD (sal_Int32 nStart, sal_Int32 nEnd) |
bool | HasSdOD () |
Protected Attributes | |
SwDoc & | rDoc |
bool | 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 | nFieldFlags |
bool | bHasSdOD |
bool | bSdODChecked |
Definition at line 119 of file fltshell.hxx.
|
private |
Definition at line 125 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 149 of file fltshell.hxx.
|
strong |
Enumerator | |
---|---|
DEFAULT | |
POSTIT_INSERTED |
Definition at line 147 of file fltshell.hxx.
|
privatedelete |
Definition at line 175 of file fltshell.cxx.
|
virtual |
Definition at line 180 of file fltshell.cxx.
References m_Entries.
|
protectedvirtual |
Reimplemented in SwWW8FltControlStack.
Definition at line 794 of file fltshell.cxx.
Referenced by HasSdOD().
|
inlineprotectedvirtual |
Reimplemented in SwWW8FltControlStack.
Definition at line 142 of file fltshell.hxx.
Referenced by DeleteAndDestroy().
Definition at line 835 of file fltshell.cxx.
References SwFltStackEntry::bOpen, DeleteAndDestroy(), SwPaM::End(), SwIndex::GetIndex(), SwPaM::HasMark(), SwFltStackEntry::m_aMkPos, SwFltStackEntry::m_aPtPos, m_Entries, SwFltPosition::m_nContent, SwFltPosition::m_nNode, SwPosition::nContent, SwPosition::nNode, SwFltPosition::SetPos(), and SwPaM::Start().
void SwFltControlStack::DeleteAndDestroy | ( | Entries::size_type | nCnt | ) |
Definition at line 284 of file fltshell.cxx.
References bHasSdOD, bSdODChecked, ClearParaEndPosition(), empty(), and m_Entries.
Referenced by Delete(), KillUnlockedAttrs(), SwWW8FltControlStack::SetAttr(), and StealAttr().
|
inline |
Definition at line 176 of file fltshell.hxx.
Referenced by SwWW8FltControlStack::ClearParaEndPosition(), and DeleteAndDestroy().
|
inlineprotectedvirtual |
Reimplemented in SwWW8FltControlStack.
Definition at line 138 of file fltshell.hxx.
SfxPoolItem * SwFltControlStack::GetFormatStackAttr | ( | sal_uInt16 | nWhich, |
sal_uInt16 * | pPos | ||
) |
Definition at line 799 of file fltshell.cxx.
References SwFltStackEntry::bOpen, m_Entries, and SwFltStackEntry::pAttr.
const SfxPoolItem * SwFltControlStack::GetOpenStackAttr | ( | const SwPosition & | rPos, |
sal_uInt16 | nWhich | ||
) |
Definition at line 818 of file fltshell.cxx.
References SwFltStackEntry::bOpen, SwFltStackEntry::m_aMkPos, m_Entries, and SwFltStackEntry::pAttr.
|
protected |
Definition at line 512 of file fltshell.cxx.
References CheckSdOD(), m_Entries, SwFltStackEntry::mnEndCP, and SwFltStackEntry::mnStartCP.
Referenced by SetAttrInDoc().
|
inline |
Definition at line 163 of file fltshell.hxx.
References SwFltGetFlag().
Referenced by SetAttrInDoc().
|
protectedvirtual |
Reimplemented in SwWW8FltControlStack.
Definition at line 789 of file fltshell.cxx.
Referenced by SetAttrInDoc().
void SwFltControlStack::KillUnlockedAttrs | ( | const SwPosition & | pPos | ) |
Definition at line 326 of file fltshell.cxx.
References SwFltStackEntry::bOld, SwFltStackEntry::bOpen, DeleteAndDestroy(), SwFltStackEntry::m_aMkPos, SwFltStackEntry::m_aPtPos, and m_Entries.
void SwFltControlStack::MarkAllAttrsOld | ( | ) |
Definition at line 236 of file fltshell.cxx.
void SwFltControlStack::MoveAttrs | ( | const SwPosition & | rPos, |
MoveAttrsMode | eMode = MoveAttrsMode::DEFAULT |
||
) |
Definition at line 192 of file fltshell.cxx.
References assert(), DEFAULT, SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwDoc::GetNodes(), i, SwFltStackEntry::m_aMkPos, SwFltStackEntry::m_aPtPos, m_Entries, SwFltStackEntry::m_isAnnotationOnEnd, SwFltPosition::m_nContent, SwFltPosition::m_nNode, SwPosition::nContent, SwPosition::nNode, SwFltStackEntry::pAttr, POSTIT_INSERTED, rDoc, and RES_FLTR_ANNOTATIONMARK().
Referenced by SetAttrInDoc(), and SwWW8FltRefStack::SetAttrInDoc().
void SwFltControlStack::NewAttr | ( | const SwPosition & | rPos, |
const SfxPoolItem & | rAttr | ||
) |
Definition at line 258 of file fltshell.cxx.
References SwFltStackEntry::bOpen, SfxPoolItem::Clone(), GetCurrAttrCP(), m_Entries, SetAttr(), SwFltStackEntry::SetEndPos(), SwFltStackEntry::SetStartCP(), and SfxPoolItem::Which().
Referenced by SwWW8FltControlStack::NewAttr().
|
privatedelete |
|
inline |
Definition at line 178 of file fltshell.hxx.
|
virtual |
Reimplemented in SwWW8FltControlStack.
Definition at line 348 of file fltshell.cxx.
References SwFltStackEntry::bConsumedByField, bIsEndStack, SwFltStackEntry::bOpen, GetCurrAttrCP(), SwNodeIndex::GetIndex(), GetValue, SwFltStackEntry::m_aPtPos, m_Entries, SwFltPosition::m_nContent, SwFltPosition::m_nNode, SwFltStackEntry::pAttr, RES_FLTR_ANNOTATIONMARK(), RES_FLTR_BOOKMARK(), RES_FLTR_RDFMARK(), SetAttrInDoc(), SwFltStackEntry::SetEndCP(), and SwFltStackEntry::SetEndPos().
Referenced by NewAttr(), and SwWW8FltControlStack::SetAttr().
|
protectedvirtual |
Reimplemented in SwWW8FltRefStack, SwWW8ReferencedFltEndStack, and SwWW8FltControlStack.
Definition at line 532 of file fltshell.cxx.
References SL::aData, SwRDFHelper::addTextNodeStatement(), IDocumentRedlineAccess::AppendRedline(), assert(), SwFltRedline::aStamp, SwFltStackEntry::bConsumedByField, bHasSdOD, BOOK_AND_REF, BOOK_TO_VAR_REF, IDocumentMarkAccess::BOOKMARK, bSdODChecked, SwFltStackEntry::CheckFieldmark, SwFltStackEntry::CheckNodes, IDocumentMarkAccess::CROSSREF_HEADING_BOOKMARK, DEFAULT, SwDoc::DelNumRule(), SwPaM::End(), SwFltRedline::eType, SwDoc::FindNumRulePtr(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFltRDFMark::GetAttributes(), SwDoc::GetAttrPool(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwFltStackEntry::GetEndCP(), IDocumentFieldsAccess::GetFieldType(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwIndex::GetIndex(), SfxItemSet::GetItemState(), SwPostItField::GetName(), SwNodeIndex::GetNode(), SwPaM::GetNode(), SwPaM::GetPoint(), SwFltStackEntry::GetStartCP(), SwNode::GetTextNode(), SwFltBookmark::GetValSys(), GetValue, nsSwGetSetExpType::GSE_STRING, SwFltTOX::HadBreakItem(), SwFltTOX::HadPageDescItem(), SwPaM::HasMark(), HasSdOD(), HYPO, IDocumentFieldsAccess::InsertFieldType(), IDocumentContentOperations::InsertPoolItem(), IsFlagSet(), IDocumentMarkAccess::IsLegalPaMForCrossRefHeadingBookmark(), SwFltStackEntry::IsParaEnd(), IsParaEndInCPs(), SwNode::IsTextNode(), SwFltBookmark::IsTOCBookmark(), IterateNumrulePiece(), lcl_getTypePath(), IDocumentMarkAccess::makeAnnotationMark(), MakeBookRegionOrPoint(), SwFrameFormat::MakeFrames(), IDocumentMarkAccess::makeMark(), MakePoint(), SwFltStackEntry::MakeRegion(), MoveAttrs(), SwFltRedline::nAutorNo, SwPosition::nContent, sw::mark::New, SwPosition::nNode, SwFltStackEntry::NoCheck, NONE, On, SwFltStackEntry::pAttr, rDoc, 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(), SAL_WARN, SwFormatAnchor::SetAnchor(), SetExp, SwFormat::SetFormatAttr(), SwFltStackEntry::SetIsParaEnd(), SwPaM::SetMark(), SwDoc::SetNumRule(), IDocumentRedlineAccess::SetRedlineFlags(), SwSetExpField::SetSubType(), ShowDelete, ShowInsert, SwPaM::Start(), and nsSwExtendedSubType::SUB_INVISIBLE.
Referenced by SetAttr(), SwWW8FltControlStack::SetAttrInDoc(), SwWW8ReferencedFltEndStack::SetAttrInDoc(), and SwWW8FltRefStack::SetAttrInDoc().
|
inline |
Definition at line 177 of file fltshell.hxx.
Referenced by SwWW8FltControlStack::GetStackAttr(), and SwWW8FltControlStack::SetAttr().
void SwFltControlStack::StealAttr | ( | const SwNodeIndex & | rNode | ) |
Definition at line 307 of file fltshell.cxx.
References DeleteAndDestroy(), SwNodeIndex::GetIndex(), SwFltStackEntry::m_aPtPos, m_Entries, and SwFltPosition::m_nNode.
|
private |
Definition at line 130 of file fltshell.hxx.
Referenced by DeleteAndDestroy(), and SetAttrInDoc().
|
protected |
Definition at line 135 of file fltshell.hxx.
Referenced by SetAttr(), and SwFltEndStack::SwFltEndStack().
|
private |
Definition at line 131 of file fltshell.hxx.
Referenced by DeleteAndDestroy(), and SetAttrInDoc().
|
private |
Definition at line 126 of file fltshell.hxx.
Referenced by Delete(), DeleteAndDestroy(), GetFormatStackAttr(), GetOpenStackAttr(), HasSdOD(), KillUnlockedAttrs(), MarkAllAttrsOld(), MoveAttrs(), NewAttr(), SetAttr(), StealAttr(), and ~SwFltControlStack().
|
private |
Definition at line 128 of file fltshell.hxx.
|
protected |
Definition at line 134 of file fltshell.hxx.
Referenced by SwWW8FltControlStack::GetFormatAttr(), SwWW8FltControlStack::GetNumFormatFromStack(), SwWW8FltRefStack::IsFootnoteEdnBkmField(), MoveAttrs(), SetAttrInDoc(), SwWW8FltControlStack::SetAttrInDoc(), and SwWW8FltRefStack::SetAttrInDoc().