LibreOffice Module tools (master) 1
|
#include <multisel.hxx>
Public Member Functions | |
MultiSelection () | |
MultiSelection (const MultiSelection &rOrig) | |
MultiSelection (const Range &rRange) | |
~MultiSelection () | |
MultiSelection & | operator= (const MultiSelection &rOrig) |
void | SelectAll (bool bSelect=true) |
bool | Select (sal_Int32 nIndex, bool bSelect=true) |
void | Select (const Range &rIndexRange, bool bSelect=true) |
bool | IsSelected (sal_Int32 nIndex) const |
bool | IsAllSelected () const |
sal_Int32 | GetSelectCount () const |
void | SetTotalRange (const Range &rTotRange) |
void | Insert (sal_Int32 nIndex, sal_Int32 nCount=1) |
void | Remove (sal_Int32 nIndex) |
void | Reset () |
const Range & | GetTotalRange () const |
sal_Int32 | FirstSelected () |
sal_Int32 | LastSelected () |
sal_Int32 | NextSelected () |
sal_Int32 | GetRangeCount () const |
const Range & | GetRange (sal_Int32 nRange) const |
Private Member Functions | |
TOOLS_DLLPRIVATE void | ImplClear () |
TOOLS_DLLPRIVATE std::size_t | ImplFindSubSelection (sal_Int32 nIndex) const |
TOOLS_DLLPRIVATE void | ImplMergeSubSelections (sal_Int32 nPos1, std::size_t nPos2) |
Private Attributes | |
std::vector< Range > | aSels |
Range | aTotRange |
std::size_t | nCurSubSel |
sal_Int32 | nCurIndex |
sal_Int32 | nSelCount |
bool | bCurValid |
Definition at line 32 of file multisel.hxx.
MultiSelection::MultiSelection | ( | ) |
Definition at line 62 of file multisel.cxx.
MultiSelection::MultiSelection | ( | const MultiSelection & | rOrig | ) |
Definition at line 79 of file multisel.cxx.
References aSels, bCurValid, nCurIndex, and nCurSubSel.
MultiSelection::MultiSelection | ( | const Range & | rRange | ) |
Definition at line 99 of file multisel.cxx.
MultiSelection::~MultiSelection | ( | ) |
Definition at line 108 of file multisel.cxx.
sal_Int32 MultiSelection::FirstSelected | ( | ) |
Definition at line 380 of file multisel.cxx.
References aSels, bCurValid, nCurIndex, nCurSubSel, and SFX_ENDOFSELECTION.
Referenced by Select().
|
inline |
Definition at line 74 of file multisel.hxx.
|
inline |
Definition at line 73 of file multisel.hxx.
|
inline |
Definition at line 61 of file multisel.hxx.
|
inline |
Definition at line 68 of file multisel.hxx.
|
private |
Definition at line 30 of file multisel.cxx.
References aSels, and nSelCount.
Referenced by operator=(), Reset(), Select(), and SelectAll().
|
private |
Definition at line 37 of file multisel.cxx.
References aSels, Max, n, and nIndex.
Referenced by Insert(), IsSelected(), Remove(), and Select().
|
private |
void MultiSelection::Insert | ( | sal_Int32 | nIndex, |
sal_Int32 | nCount = 1 |
||
) |
Definition at line 315 of file multisel.cxx.
References aSels, aTotRange, bCurValid, ImplFindSubSelection(), Range::Max(), Min, nCount, nIndex, and nPos.
|
inline |
Definition at line 59 of file multisel.hxx.
References Range::Len().
bool MultiSelection::IsSelected | ( | sal_Int32 | nIndex | ) | const |
Definition at line 307 of file multisel.cxx.
References aSels, ImplFindSubSelection(), and nIndex.
sal_Int32 MultiSelection::LastSelected | ( | ) |
Definition at line 392 of file multisel.cxx.
References aSels, bCurValid, nCurIndex, nCurSubSel, and SFX_ENDOFSELECTION.
Referenced by Select().
sal_Int32 MultiSelection::NextSelected | ( | ) |
Definition at line 404 of file multisel.cxx.
References aSels, bCurValid, Max, nCurIndex, nCurSubSel, and SFX_ENDOFSELECTION.
MultiSelection & MultiSelection::operator= | ( | const MultiSelection & | rOrig | ) |
Definition at line 112 of file multisel.cxx.
References aSels, aTotRange, bCurValid, ImplClear(), nCurIndex, nCurSubSel, and nSelCount.
void MultiSelection::Remove | ( | sal_Int32 | nIndex | ) |
Definition at line 347 of file multisel.cxx.
References aSels, aTotRange, bCurValid, ImplFindSubSelection(), Range::Max(), nIndex, nPos, and nSelCount.
void MultiSelection::Reset | ( | void | ) |
Definition at line 71 of file multisel.cxx.
References aTotRange, bCurValid, and ImplClear().
void MultiSelection::Select | ( | const Range & | rIndexRange, |
bool | bSelect = true |
||
) |
Definition at line 232 of file multisel.cxx.
References aSels, aTotRange, bCurValid, Range::Contains(), DBG_ASSERT, FirstSelected(), ImplClear(), LastSelected(), Range::Len(), Range::Max(), Range::Min(), nSelCount, and Select().
bool MultiSelection::Select | ( | sal_Int32 | nIndex, |
bool | bSelect = true |
||
) |
Definition at line 140 of file multisel.cxx.
References aSels, aTotRange, bCurValid, Range::Contains(), DBG_ASSERT, ImplFindSubSelection(), ImplMergeSubSelections(), Max, Min, nCurSubSel, nIndex, and nSelCount.
Referenced by Select().
void MultiSelection::SelectAll | ( | bool | bSelect = true | ) |
Definition at line 130 of file multisel.cxx.
References aSels, aTotRange, ImplClear(), Range::Len(), and nSelCount.
void MultiSelection::SetTotalRange | ( | const Range & | rTotRange | ) |
Definition at line 422 of file multisel.cxx.
References aSels, aTotRange, bCurValid, Range::Max(), Range::Min(), nCount, nCurIndex, and nSelCount.
|
private |
Definition at line 36 of file multisel.hxx.
Referenced by FirstSelected(), ImplClear(), ImplFindSubSelection(), ImplMergeSubSelections(), Insert(), IsSelected(), LastSelected(), MultiSelection(), NextSelected(), operator=(), Remove(), Select(), SelectAll(), and SetTotalRange().
|
private |
Definition at line 37 of file multisel.hxx.
Referenced by Insert(), operator=(), Remove(), Reset(), Select(), SelectAll(), and SetTotalRange().
|
private |
Definition at line 41 of file multisel.hxx.
Referenced by FirstSelected(), Insert(), LastSelected(), MultiSelection(), NextSelected(), operator=(), Remove(), Reset(), Select(), and SetTotalRange().
|
private |
Definition at line 39 of file multisel.hxx.
Referenced by FirstSelected(), LastSelected(), MultiSelection(), NextSelected(), operator=(), and SetTotalRange().
|
private |
Definition at line 38 of file multisel.hxx.
Referenced by FirstSelected(), LastSelected(), MultiSelection(), NextSelected(), operator=(), and Select().
|
private |
Definition at line 40 of file multisel.hxx.
Referenced by ImplClear(), operator=(), Remove(), Select(), SelectAll(), and SetTotalRange().