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

#include <fltshell.hxx>

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

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 SwFltStackEntrySetAttr (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)
 
SfxPoolItemGetFormatStackAttr (sal_uInt16 nWhich, sal_uInt16 *pPos)
 
const SfxPoolItemGetOpenStackAttr (const SwPosition &rPos, sal_uInt16 nWhich)
 
void Delete (const SwPaM &rPam)
 
bool empty () const
 
Entries::size_type size () const
 
SwFltStackEntryoperator[] (Entries::size_type nIndex)
 
void DeleteAndDestroy (Entries::size_type nCnt)
 

Protected Member Functions

virtual void SetAttrInDoc (const SwPosition &rTmpPos, SwFltStackEntry &rEntry)
 

Protected Attributes

SwDocm_rDoc
 
bool m_bIsEndStack
 

Private Types

typedef std::vector< std::unique_ptr< SwFltStackEntry > > Entries
 

Private Member Functions

 SwFltControlStack (SwFltControlStack const &)=delete
 
SwFltControlStackoperator= (SwFltControlStack const &)=delete
 

Private Attributes

Entries m_Entries
 
sal_uLong m_nFieldFlags
 

Detailed Description

Definition at line 110 of file fltshell.hxx.

Member Typedef Documentation

◆ Entries

typedef std::vector<std::unique_ptr<SwFltStackEntry> > SwFltControlStack::Entries
private

Definition at line 116 of file fltshell.hxx.

Member Enumeration Documentation

◆ Flags

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.

◆ MoveAttrsMode

Enumerator
DEFAULT 
POSTIT_INSERTED 

Definition at line 128 of file fltshell.hxx.

Constructor & Destructor Documentation

◆ SwFltControlStack() [1/2]

SwFltControlStack::SwFltControlStack ( SwFltControlStack const &  )
privatedelete

◆ SwFltControlStack() [2/2]

SwFltControlStack::SwFltControlStack ( SwDoc rDo,
sal_uLong  nFieldFl 
)

Definition at line 166 of file fltshell.cxx.

◆ ~SwFltControlStack()

SwFltControlStack::~SwFltControlStack ( )
virtual

Definition at line 171 of file fltshell.cxx.

References m_Entries.

Member Function Documentation

◆ Delete()

void SwFltControlStack::Delete ( const SwPaM rPam)

◆ DeleteAndDestroy()

void SwFltControlStack::DeleteAndDestroy ( Entries::size_type  nCnt)

◆ empty()

bool SwFltControlStack::empty ( ) const
inline

Definition at line 157 of file fltshell.hxx.

◆ GetFormatStackAttr()

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.

◆ GetOpenStackAttr()

const SfxPoolItem * SwFltControlStack::GetOpenStackAttr ( const SwPosition rPos,
sal_uInt16  nWhich 
)

◆ IsFlagSet()

bool SwFltControlStack::IsFlagSet ( Flags  no) const
inline

Definition at line 144 of file fltshell.hxx.

References SwFltGetFlag().

Referenced by SetAttrInDoc().

◆ KillUnlockedAttrs()

void SwFltControlStack::KillUnlockedAttrs ( const SwPosition pPos)

◆ MarkAllAttrsOld()

void SwFltControlStack::MarkAllAttrsOld ( )

Definition at line 226 of file fltshell.cxx.

References i, and m_Entries.

◆ MoveAttrs()

void SwFltControlStack::MoveAttrs ( const SwPosition rPos,
MoveAttrsMode  eMode = MoveAttrsMode::DEFAULT 
)

◆ NewAttr()

void SwFltControlStack::NewAttr ( const SwPosition rPos,
const SfxPoolItem rAttr 
)

◆ operator=()

SwFltControlStack & SwFltControlStack::operator= ( SwFltControlStack const &  )
privatedelete

◆ operator[]()

SwFltStackEntry & SwFltControlStack::operator[] ( Entries::size_type  nIndex)
inline

Definition at line 159 of file fltshell.hxx.

References nIndex.

◆ SetAttr()

SwFltStackEntry * SwFltControlStack::SetAttr ( const SwPosition rPos,
sal_uInt16  nAttrId,
bool  bTstEnd = true,
tools::Long  nHand = LONG_MAX,
bool  consumedByField = false 
)
virtual

◆ SetAttrInDoc()

void SwFltControlStack::SetAttrInDoc ( const SwPosition rTmpPos,
SwFltStackEntry rEntry 
)
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().

◆ size()

Entries::size_type SwFltControlStack::size ( ) const
inline

◆ StealAttr()

void SwFltControlStack::StealAttr ( const SwNode rNode)

Member Data Documentation

◆ m_bIsEndStack

bool SwFltControlStack::m_bIsEndStack
protected

Definition at line 123 of file fltshell.hxx.

Referenced by SetAttr(), and SwFltEndStack::SwFltEndStack().

◆ m_Entries

Entries SwFltControlStack::m_Entries
private

◆ m_nFieldFlags

sal_uLong SwFltControlStack::m_nFieldFlags
private

Definition at line 119 of file fltshell.hxx.

◆ m_rDoc

SwDoc& SwFltControlStack::m_rDoc
protected

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