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())
105 sal_uInt16 nWhich=0);
116 typedef std::vector<std::unique_ptr<SwFltStackEntry>>
Entries;
129 void MoveAttrs(
const SwPosition& rPos, MoveAttrsMode = MoveAttrsMode::DEFAULT);
151 void MarkAllAttrsOld();
152 void KillUnlockedAttrs(
const SwPosition& pPos);
153 SfxPoolItem* GetFormatStackAttr(sal_uInt16 nWhich, sal_uInt16 * pPos);
157 bool empty()
const {
return m_Entries.empty(); }
158 Entries::size_type
size()
const {
return m_Entries.size(); }
160 {
return *m_Entries[nIndex]; }
161 void DeleteAndDestroy(Entries::size_type nCnt);
200 std::size_t nAutorNo_,
204 m_nAutorNo(nAutorNo_)
226 const bool bIsTOCBookmark =
false );
233 const OUString&
GetName()
const {
return maName; }
237 return mbIsTOCBookmark;
255 void SetAttributes(std::vector< std::pair<OUString, OUString> >&& rAttributes);
256 const std::vector< std::pair<OUString, OUString> >& GetAttributes()
const;
265 SwFltTOX(std::shared_ptr<SwTOXBase> xBase);
297 : 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)
void StartProgress(TranslateId pMessResId, tools::Long nStartValue, tools::Long nEndValue, SwDocShell *pDocShell)
SwFltAnchor * m_pFltAnchor
Stores RDF statements on a paragraph (key-value pairs where the subject is the paragraph).
SW_DLLPUBLIC ~SwFltStackEntry()
SwFrameFormat * GetFormat()
SwFltAnchorListener(SwFltAnchor *pFltAnchor)
SwNodeOffset GetIndex() const
bool operator==(const SwFltPosition &rOther) const
void SetHadPageDescItem(bool bVal)
void SetHadBreakItem(bool bVal)
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
tools::Long GetHandle() const
SwFrameFormat * m_pFrameFormat
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 > m_pAttr
std::unique_ptr< SwFltAnchorListener > m_pListener
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.
bool HadPageDescItem() const
constexpr TypedWhichId< SwFltRedline > RES_FLTR_REDLINE(194)
bool HadBreakItem() const
const OUString & GetName() const
const OUString & GetValSys() const
SwFltRedline(RedlineType eType_, std::size_t nAutorNo_, const DateTime &rStamp_)
SwFltStackEntry & operator[](Entries::size_type nIndex)
void SetPos(SwNodeIndex const &rNode, sal_uInt16 nIdx)
Entries::size_type size() const
SW_DLLPUBLIC void UpdatePageDescs(SwDoc &rDoc, size_t nInPageDescOffset)