21#include <osl/diagnose.h>
29 ,m_bDeletedVisible(false)
47 switch (_eCursorPosition)
67 bool bDataFound =
false;
71 SAL_INFO(
"connectivity.commontools",
"OSkipDeletedSet::skipDeleted: last" );
72 sal_Int32 nBookmark = 0;
118 bDataFound =
m_pHelper->
move(eDelPosition, 1, _bRetrieveData);
121 bDone = (--nDelOffset) == 0;
130 while (bDataFound && !bDone)
132 bDataFound =
m_pHelper->
move(eDelPosition, 1, _bRetrieveData);
137 bDone = (--nDelOffset) == 0;
146 if(bDataFound && bDone)
166 bool bDataFound =
false;
167 sal_Int32 nNewPos =
_nPos;
174 sal_Int32 nCurPos = 0;
190 nNewPos = nNewPos - nCurPos;
195 while (bDataFound && nNewPos)
219 for(sal_Int32
i=nNewPos+1;bDataFound &&
i <= 0;++
i)
virtual sal_Int32 getDriverPos() const =0
virtual bool isRowDeleted() const =0
virtual bool move(Movement _eCursorPosition, sal_Int32 _nOffset, bool _bRetrieveData)=0
std::vector< sal_Int32 > m_aBookmarksPositions
IResultSetHelper * m_pHelper
void clear()
clear the map and the vector used in this class
sal_Int32 getMappedPosition(sal_Int32 _nBookmark) const
getMappedPosition returns the mapped position of a logical position
void insertNewPosition(sal_Int32 _nPos)
insertNewPosition adds a new position to the map
bool skipDeleted(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, bool _bRetrieveData)
skipDeleted moves the resultset to the position defined by the parameters it guarantees that the row ...
void deletePosition(sal_Int32 _nPos)
deletePosition deletes this position from the map and decrement all following positions
bool moveAbsolute(sal_Int32 _nOffset, bool _bRetrieveData)
#define SAL_INFO(area, stream)
SwNodeOffset abs(const SwNodeOffset &a)