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  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 SwFltStackEntrySetAttr (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)
 
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

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

Definition at line 116 of file fltshell.hxx.

Member Enumeration Documentation

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.

Enumerator
DEFAULT 
POSTIT_INSERTED 

Definition at line 128 of file fltshell.hxx.

Constructor & Destructor Documentation

SwFltControlStack::SwFltControlStack ( SwFltControlStack const &  )
privatedelete
SwFltControlStack::SwFltControlStack ( SwDoc rDo,
sal_uLong  nFieldFl 
)

Definition at line 167 of file fltshell.cxx.

SwFltControlStack::~SwFltControlStack ( )
virtual

Definition at line 172 of file fltshell.cxx.

References m_Entries.

Member Function Documentation

void SwFltControlStack::Delete ( const SwPaM rPam)
void SwFltControlStack::DeleteAndDestroy ( Entries::size_type  nCnt)

Definition at line 274 of file fltshell.cxx.

References m_Entries.

Referenced by Delete(), KillUnlockedAttrs(), SwWW8FltControlStack::SetAttr(), and StealAttr().

bool SwFltControlStack::empty ( ) const
inline

Definition at line 157 of file fltshell.hxx.

SfxPoolItem * SwFltControlStack::GetFormatStackAttr ( sal_uInt16  nWhich,
sal_uInt16 *  pPos 
)

Definition at line 729 of file fltshell.cxx.

References SwFltStackEntry::m_bOpen, m_Entries, and SwFltStackEntry::m_pAttr.

const SfxPoolItem * SwFltControlStack::GetOpenStackAttr ( const SwPosition rPos,
sal_uInt16  nWhich 
)
bool SwFltControlStack::IsFlagSet ( Flags  no) const
inline

Definition at line 144 of file fltshell.hxx.

References SwFltGetFlag().

Referenced by SetAttrInDoc().

void SwFltControlStack::KillUnlockedAttrs ( const SwPosition pPos)
void SwFltControlStack::MarkAllAttrsOld ( )

Definition at line 227 of file fltshell.cxx.

References i, and m_Entries.

void SwFltControlStack::MoveAttrs ( const SwPosition rPos,
MoveAttrsMode  eMode = MoveAttrsMode::DEFAULT 
)
void SwFltControlStack::NewAttr ( const SwPosition rPos,
const SfxPoolItem rAttr 
)
SwFltControlStack& SwFltControlStack::operator= ( SwFltControlStack const &  )
privatedelete
SwFltStackEntry& SwFltControlStack::operator[] ( Entries::size_type  nIndex)
inline

Definition at line 159 of file fltshell.hxx.

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

Reimplemented in SwWW8FltRefStack, SwWW8ReferencedFltEndStack, and SwWW8FltControlStack.

Definition at line 491 of file fltshell.cxx.

References SL::aData, SwRDFHelper::addTextNodeStatement(), IDocumentRedlineAccess::AppendRedline(), BOOK_AND_REF, BOOK_TO_VAR_REF, IDocumentMarkAccess::BOOKMARK, SwFltStackEntry::CheckFieldmark, SwFltStackEntry::CheckNodes, IDocumentMarkAccess::CROSSREF_HEADING_BOOKMARK, SwDoc::DelNumRule(), SwPaM::End(), SwDoc::FindNumRulePtr(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFltRDFMark::GetAttributes(), SwDoc::GetAttrPool(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentViewShell(), IDocumentFieldsAccess::GetFieldType(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwIndex::GetIndex(), SfxItemSet::GetItemState(), SwPostItField::GetName(), SwNodeIndex::GetNode(), SwPaM::GetNode(), SwPaM::GetPoint(), 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(), SwPosition::nContent, sw::mark::New, SwPosition::nNode, SwFltStackEntry::NoCheck, NONE, On, 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(), 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().

Entries::size_type SwFltControlStack::size ( ) const
inline
void SwFltControlStack::StealAttr ( const SwNodeIndex rNode)

Member Data Documentation

bool SwFltControlStack::m_bIsEndStack
protected

Definition at line 123 of file fltshell.hxx.

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

Entries SwFltControlStack::m_Entries
private
sal_uLong SwFltControlStack::m_nFieldFlags
private

Definition at line 119 of file fltshell.hxx.

SwDoc& SwFltControlStack::m_rDoc
protected

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