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 *pDo, 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 bTstEnde=true, 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)
 
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

SwDocpDoc
 
bool 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 const nFieldFlags
 
bool bHasSdOD
 
bool bSdODChecked
 

Detailed Description

Definition at line 121 of file fltshell.hxx.

Member Typedef Documentation

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

Definition at line 127 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 151 of file fltshell.hxx.

Enumerator
DEFAULT 
POSTIT_INSERTED 

Definition at line 149 of file fltshell.hxx.

Constructor & Destructor Documentation

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

Definition at line 196 of file fltshell.cxx.

SwFltControlStack::~SwFltControlStack ( )
virtual

Definition at line 201 of file fltshell.cxx.

References m_Entries.

Member Function Documentation

bool SwFltControlStack::CheckSdOD ( sal_Int32  nStart,
sal_Int32  nEnd 
)
protectedvirtual

Reimplemented in SwWW8FltControlStack.

Definition at line 814 of file fltshell.cxx.

Referenced by HasSdOD().

virtual void SwFltControlStack::ClearParaEndPosition ( )
inlineprotectedvirtual

Reimplemented in SwWW8FltControlStack.

Definition at line 144 of file fltshell.hxx.

Referenced by DeleteAndDestroy().

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

Definition at line 178 of file fltshell.hxx.

Referenced by SwWW8FltControlStack::ClearParaEndPosition(), and DeleteAndDestroy().

virtual sal_Int32 SwFltControlStack::GetCurrAttrCP ( ) const
inlineprotectedvirtual

Reimplemented in SwWW8FltControlStack.

Definition at line 140 of file fltshell.hxx.

Referenced by NewAttr(), and SetAttr().

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

Definition at line 819 of file fltshell.cxx.

References SwFltStackEntry::bOpen, m_Entries, and SwFltStackEntry::pAttr.

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

Definition at line 533 of file fltshell.cxx.

References CheckSdOD(), m_Entries, SwFltStackEntry::mnEndCP, and SwFltStackEntry::mnStartCP.

Referenced by SetAttrInDoc().

bool SwFltControlStack::IsFlagSet ( Flags  no) const
inline

Definition at line 165 of file fltshell.hxx.

References SwFltGetFlag().

Referenced by SetAttrInDoc().

bool SwFltControlStack::IsParaEndInCPs ( sal_Int32  nStart,
sal_Int32  nEnd,
bool  bSdOD 
) const
protectedvirtual

Reimplemented in SwWW8FltControlStack.

Definition at line 809 of file fltshell.cxx.

Referenced by SetAttrInDoc().

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

Definition at line 257 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 180 of file fltshell.hxx.

SwFltStackEntry * SwFltControlStack::SetAttr ( const SwPosition rPos,
sal_uInt16  nAttrId,
bool  bTstEnde = true,
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 553 of file fltshell.cxx.

References aData, SwRDFHelper::addTextNodeStatement(), IDocumentRedlineAccess::AppendRedline(), SwFltRedline::aStamp, SwFltRedline::aStampPrev, SwFltStackEntry::bConsumedByField, bHasSdOD, BOOK_AND_REF, BOOK_TO_VAR_REF, IDocumentMarkAccess::BOOKMARK, bSdODChecked, IDocumentMarkAccess::CROSSREF_HEADING_BOOKMARK, DEFAULT, SwDoc::DelNumRule(), SwPaM::End(), SwFltRedline::eType, SwFltRedline::eTypePrev, SwDoc::FindNumRulePtr(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFltRDFMark::GetAttributes(), SwDoc::GetAttrPool(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwFltStackEntry::GetEndCP(), SwFormatField::GetField(), IDocumentFieldsAccess::GetFieldType(), SwTextAttr::GetFormatField(), 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(), 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, SwFltRedline::nAutorNoPrev, SwPosition::nContent, sw::mark::New, SwPosition::nNode, NONE, SwFltRedline::NoPrevAuthor, On, SwFltStackEntry::pAttr, pDoc, 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(), 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::bHasSdOD
private

Definition at line 132 of file fltshell.hxx.

Referenced by DeleteAndDestroy(), and SetAttrInDoc().

bool SwFltControlStack::bIsEndStack
protected

Definition at line 137 of file fltshell.hxx.

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

bool SwFltControlStack::bSdODChecked
private

Definition at line 133 of file fltshell.hxx.

Referenced by DeleteAndDestroy(), and SetAttrInDoc().

Entries SwFltControlStack::m_Entries
private
sal_uLong const SwFltControlStack::nFieldFlags
private

Definition at line 130 of file fltshell.hxx.

SwDoc* SwFltControlStack::pDoc
protected

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