19 #ifndef INCLUDED_SW_SOURCE_FILTER_INC_FLTSHELL_HXX
20 #define INCLUDED_SW_SOURCE_FILTER_INC_FLTSHELL_HXX
25 #include <tools/datetime.hxx>
29 #include <strings.hrc>
43 {
return (nFieldFlags & (
sal_uLong(1) << no)) != 0; }
67 : m_nNode(rPos.nNode, -1)
68 , m_nContent(rPos.nContent.GetIndex())
90 std::unique_ptr<SfxPoolItem>
pAttr;
109 sal_uInt16 nWhich=0);
127 typedef std::vector<std::unique_ptr<SwFltStackEntry>>
Entries;
141 virtual bool IsParaEndInCPs(sal_Int32 nStart,sal_Int32 nEnd,
bool bSdOD)
const;
145 virtual bool CheckSdOD(sal_Int32 nStart,sal_Int32 nEnd);
150 void MoveAttrs(
const SwPosition& rPos, MoveAttrsMode = MoveAttrsMode::DEFAULT);
172 void MarkAllAttrsOld();
173 void KillUnlockedAttrs(
const SwPosition& pPos);
174 SfxPoolItem* GetFormatStackAttr(sal_uInt16 nWhich, sal_uInt16 * pPos);
178 bool empty()
const {
return m_Entries.empty(); }
179 Entries::size_type
size()
const {
return m_Entries.size(); }
181 {
return *m_Entries[nIndex]; }
182 void DeleteAndDestroy(Entries::size_type nCnt);
221 std::size_t nAutorNo_,
247 const bool bIsTOCBookmark =
false );
254 const OUString&
GetName()
const {
return maName; }
258 return mbIsTOCBookmark;
276 void SetAttributes(
const std::vector< std::pair<OUString, OUString> >& rAttributes);
277 const std::vector< std::pair<OUString, OUString> >& GetAttributes()
const;
286 SwFltTOX(std::shared_ptr<SwTOXBase> xBase);
318 : m_pDocShell(pDocShell)
std::vector< std::pair< OUString, OUString > > m_aAttributes
Instances of SwFields and those derived from it occur 0 to n times.
SwFrameFormat * m_pFormat
Marks a position in the document model.
const SwTOXBase & GetBase() const
bool IsTOCBookmark() const
SW_DLLPUBLIC bool MakeRegion(SwDoc &rDoc, SwPaM &rRegion, RegionMode eCheck) const
virtual bool operator==(const SfxPoolItem &) const =0
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
std::shared_ptr< SwTOXBase > m_xTOXBase
Base class of all fields.
SwFrameFormat * GetFrameFormat()
void EndProgress(SwDocShell const *pDocShell)
void Update(sal_uInt16 nProgress)
SwFltAnchor * m_pFltAnchor
Stores RDF statements on a paragraph (key-value pairs where the subject is the paragraph).
void StartProgress(const char *pMessResId, tools::Long nStartValue, tools::Long nEndValue, SwDocShell *pDocShell)
SW_DLLPUBLIC ~SwFltStackEntry()
SwFrameFormat * GetFormat()
sal_uLong GetIndex() const
void SetIsParaEnd(bool bArg)
SwFltAnchorListener(SwFltAnchor *pFltAnchor)
bool operator==(const SwFltPosition &rOther) const
void SetHadPageDescItem(bool bVal)
void SetHadBreakItem(bool bVal)
std::unique_ptr< SwFltAnchorListener > pListener
PaM is Point and Mark: a selection of the document model.
SW_DLLPUBLIC void SetEndPos(const SwPosition &rEndPos)
const SwFrameFormat * GetFrameFormat() const
ImportProgress(SwDocShell *pDocShell, tools::Long nStartVal, tools::Long nEndVal)
virtual void Notify(const SfxHint &) override
virtual sal_Int32 GetCurrAttrCP() const
tools::Long GetHandle() const
void FromSwPosition(const SwPosition &rPos)
SwFltStackEntry & operator=(SwFltStackEntry const &)=delete
bool SwFltGetFlag(sal_uLong nFieldFlags, int no)
SwFltStackEntry(SwFltStackEntry const &)=delete
Marks a node in the document model.
SwFltPosition(const SwPosition &rPos)
std::vector< std::unique_ptr< SwFltStackEntry > > Entries
bool IsFlagSet(Flags no) const
std::unique_ptr< SfxPoolItem > pAttr
SwFltEndStack(SwDoc &rDo, sal_uLong nFieldFl)
virtual void Notify(const SfxHint &rHint)
bool m_isAnnotationOnEnd
annotation already moved onto its end pos.
sal_Int32 GetIndex() const
void SetProgressState(tools::Long nPosition, SwDocShell const *pDocShell)
SwTableBox is one table cell in the document model.
sal_Int32 GetStartCP() const
bool HadPageDescItem() const
constexpr TypedWhichId< SwFltRedline > RES_FLTR_REDLINE(194)
bool HadBreakItem() const
const OUString & GetName() const
const OUString & GetValSys() const
sal_Int32 GetEndCP() const
void SetStartCP(sal_Int32 nCP)
void SetEndCP(sal_Int32 nCP)
SwFltRedline(RedlineType eType_, std::size_t nAutorNo_, const DateTime &rStamp_)
SwFltStackEntry & operator[](Entries::size_type nIndex)
virtual void ClearParaEndPosition()
void SetPos(SwNodeIndex const &rNode, sal_uInt16 nIdx)
Entries::size_type size() const
SwFrameFormat * pFrameFormat
SW_DLLPUBLIC void UpdatePageDescs(SwDoc &rDoc, size_t nInPageDescOffset)