LibreOffice Module sc (master)
1
|
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across more than one table again! More...
#include <markdata.hxx>
Public Types | |
typedef std::set< SCTAB > | MarkedTabsType |
typedef std::set< SCTAB >::const_iterator | const_iterator |
typedef std::set< SCTAB >::const_reverse_iterator | const_reverse_iterator |
Private Attributes | |
MarkedTabsType | maTabMarked |
ScRange | aMarkRange |
ScRange | aMultiRange |
ScMultiSel | aMultiSel |
ScRangeList | aTopEnvelope |
ScRangeList | aBottomEnvelope |
ScRangeList | aLeftEnvelope |
ScRangeList | aRightEnvelope |
const ScSheetLimits & | mrSheetLimits |
bool | bMarked:1 |
bool | bMultiMarked:1 |
bool | bMarking:1 |
bool | bMarkIsNeg:1 |
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across more than one table again!
Definition at line 42 of file markdata.hxx.
Definition at line 161 of file markdata.hxx.
Definition at line 162 of file markdata.hxx.
typedef std::set<SCTAB> ScMarkData::MarkedTabsType |
Definition at line 45 of file markdata.hxx.
ScMarkData::ScMarkData | ( | const ScSheetLimits & | rSheetLimits | ) |
Definition at line 38 of file markdata.cxx.
References ResetMark().
ScMarkData::ScMarkData | ( | const ScSheetLimits & | rSheetLimits, |
const ScRangeList & | rList | ||
) |
Optimise the case of constructing from a range list, speeds up import.
Definition at line 348 of file markdata.cxx.
References aMultiRange, aMultiSel, bMultiMarked, maTabMarked, ResetMark(), ScMultiSel::Set(), and SetMarkArea().
|
default |
|
default |
|
inline |
Definition at line 163 of file markdata.hxx.
Referenced by ScDocument::GetSelectionFunction(), ScDocument::InsertMatrixFormula(), ScDocument::IsEditActionAllowed(), lcl_SelHasAttrib(), ScViewFunc::SearchAndReplace(), ScViewData::SetZoom(), and ScViewData::SetZoomType().
Definition at line 646 of file markdata.cxx.
References maTabMarked.
Referenced by ScViewData::DeleteTab(), ScViewData::DeleteTabs(), and ScViewData::MoveTab().
|
inline |
Definition at line 164 of file markdata.hxx.
Referenced by ScDocument::GetSelectionFunction(), ScDocument::IsEditActionAllowed(), lcl_SelHasAttrib(), ScViewFunc::SearchAndReplace(), ScViewData::SetZoom(), and ScViewData::SetZoomType().
void ScMarkData::ExtendRangeListTables | ( | ScRangeList * | pList | ) | const |
Definition at line 432 of file markdata.cxx.
References ScRange::aEnd, ScRange::aStart, i, maTabMarked, nCount, ScRangeList::push_back(), ScRangeList::RemoveAll(), ScAddress::SetTab(), and ScRangeList::size().
Referenced by ScTabViewObj::getSelection().
void ScMarkData::FillRangeListWithMarks | ( | ScRangeList * | pList, |
bool | bClear, | ||
SCTAB | nForTab = -1 |
||
) | const |
Create a range list of marks.
nForTab | If -1, use start-sheet-tab of the multi-area in ranges. If >= 0, use given sheet-tab in ranges. |
Definition at line 372 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiRange, aMultiSel, ScRange::aStart, bMarked, bMultiMarked, ScAddress::Col(), ScMultiSel::HasEqualRowsMarked(), ScMultiSel::HasMarks(), ScRangeList::Join(), ScMultiSelIter::Next(), ScRangeList::push_back(), ScRangeList::RemoveAll(), ScAddress::SetRow(), ScAddress::SetTab(), and ScAddress::Tab().
Referenced by ScDocument::ApplySelectionFrame(), ScHeaderControl::Command(), ScViewFunc::CopyToClip(), ScViewFunc::DeleteContents(), ScTable::DeleteSelection(), ScDocument::DeleteSelection(), ScDocument::DeleteSelectionTab(), ScViewFunc::DetectiveMarkPred(), ScViewFunc::DetectiveMarkSucc(), ScTabViewShell::DoAutoSum(), ScCellShell::ExecuteEdit(), FuInsertChart::FuInsertChart(), GetMarkedRanges(), GetMarkedRangesForTab(), ScViewData::GetMultiArea(), ScAccessibleSpreadsheet::getSelectedAccessibleChild(), ScAccessibleSpreadsheet::getSelectedAccessibleChildCount(), ScTabViewObj::getSelection(), ScDocument::GetSelectionFrame(), ScViewFunc::GetSelectionScriptType(), ScCellShell::GetState(), ScPrintAreasDlg::Impl_FillLists(), ScSpellDialogChildWindow::Init(), ScSpellDialogChildWindow::IsSelectionChanged(), ScTable::IsSelectionEditable(), ScTabView::MoveCursorAbs(), ScAccessibleSpreadsheet::Notify(), ScViewFunc::PasteFromClip(), ScCellRangesBase::queryEmptyCells(), ScCellRangesBase::queryVisibleCells(), ScCondFormatDlg::ScCondFormatDlg(), ScTable::SearchAndReplaceEmptyCells(), ScTransferObj::SetDragSource(), and ScViewData::WriteExtOptions().
|
inline |
Definition at line 85 of file markdata.hxx.
Referenced by ScTable::ApplySelectionCache(), ScTable::ChangeSelectionIndent(), and ScTable::ClearSelectionItems().
|
inline |
Definition at line 156 of file markdata.hxx.
SCTAB ScMarkData::GetFirstSelected | ( | ) | const |
Definition at line 185 of file markdata.cxx.
References maTabMarked.
Referenced by ScUndoPaste::DoChange(), ScViewFunc::EnterData(), ScDocument::GetPreviewCellStyle(), ScDocument::GetPreviewFont(), ScDocShell::GetSaveTab(), lcl_GetFirstTabRange(), lcl_MarkedTabs(), ScViewFunc::SearchAndReplace(), and ScViewFunc::SetWidthOrHeight().
SCTAB ScMarkData::GetLastSelected | ( | ) | const |
Definition at line 194 of file markdata.cxx.
References maTabMarked.
Referenced by ScTabViewShell::ExecuteTable(), ScDocument::InitUndoSelected(), lcl_MarkedTabs(), and ScViewFunc::SearchAndReplace().
|
inline |
Definition at line 157 of file markdata.hxx.
|
inline |
Definition at line 83 of file markdata.hxx.
Referenced by ScDocFunc::ApplyAttributes(), ScViewFunc::ApplyPatternLines(), ScDocument::ApplySelectionPattern(), ScDocument::ApplySelectionStyle(), ScDocFunc::ApplyStyle(), ScTabView::CheckSelectionTransfer(), ScColumnData::ClearSelectionItems(), ScDocument::CopyMultiRangeFromClip(), ScDocument::CreateSelectionPattern(), ScViewFunc::DoRefConversion(), ScGridWindow::dumpCellProperties(), ScNavigatorDlg::EndOfDataArea(), ScViewFunc::EnterBlock(), ScTabViewShell::Execute(), ScCellShell::ExecuteExternalSource(), ScDocument::Fill(), ScViewFunc::FillTab(), ScCellShell::GetCellState(), ScTable::GetNextPos(), ScGridWindow::GetRectsAnyFor(), ScDocument::GetSelectionFrame(), ScDocument::GetSelectionStyle(), ScViewData::GetSimpleArea(), ScPrintFuncCache::InitLocations(), ScDocument::IsSelectionEditable(), lcl_GetTextToColumnsRange(), ScTabView::MarkColumns(), ScTabView::MarkCursor(), ScNavigatorDlg::MarkDataArea(), ScTabView::MarkRows(), ScViewFunc::MergeCells(), ScGridWindow::MouseButtonUp(), ScAccessibleSpreadsheet::Notify(), ScTabView::PaintBlock(), ScViewFunc::PasteFromClip(), ScPrintFuncCache::ScPrintFuncCache(), ScTabView::SelectAll(), ScTabView::SetMarkData(), ScNavigatorDlg::StartOfDataArea(), ScViewFunc::UpdateSelectionArea(), and ScTable::UpdateSelectionFunction().
|
inline |
Definition at line 107 of file markdata.hxx.
References ScMultiSel::GetMarkArray().
Referenced by ScDocument::FillInfo(), ScTable::GetNextMarkedCell(), ScColumn::SearchStyle(), and ScColumn::SearchStyleRange().
std::vector< sc::ColRowSpan > ScMarkData::GetMarkedColSpans | ( | ) | const |
Definition at line 481 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiRange, aMultiSel, ScRange::aStart, bMarked, bMultiMarked, ScAddress::Col(), ScMultiSel::GetMultiSelArray(), ScMultiSel::GetRowSelArray(), ScMarkArray::HasMarks(), sc::ColRowSpan::mnEnd, ScSheetLimits::mnMaxCol, sc::ColRowSpan::mnStart, and mrSheetLimits.
Referenced by ScViewFunc::DeleteMulti(), ScCellShell::Execute(), ScTable::HasAttribSelection(), ScTable::HasSelectionMatrixFragment(), ScTable::MergeSelectionPattern(), and ScViewFunc::SetMarkedWidthOrHeight().
ScRangeList ScMarkData::GetMarkedRanges | ( | ) | const |
Definition at line 450 of file markdata.cxx.
References FillRangeListWithMarks().
Referenced by ScGridWinUIObject::get_state(), ScTabViewShell::GetDrawInsState(), GetMarkedRowSpans(), ScTable::HasSelectionMatrixFragment(), and ScGridWindow::SetCellSelectionPixel().
ScRangeList ScMarkData::GetMarkedRangesForTab | ( | SCTAB | nTab | ) | const |
Get marked ranges with sheet-tab set to nTab.
Marks are stored for the currently active sheet respectively the multi-area start-sheet-tab, update ranges with the sheet for which this is called.
Definition at line 457 of file markdata.cxx.
References FillRangeListWithMarks().
Referenced by ScGridWindow::dumpCellProperties(), sc::SingleColumnSpanSet::scan(), and ScTable::UpdateSelectionFunction().
std::vector< sc::ColRowSpan > ScMarkData::GetMarkedRowSpans | ( | ) | const |
Definition at line 464 of file markdata.cxx.
References ScRange::aEnd, ScRange::aStart, first, GetMarkedRanges(), i, ScRangeList::insert(), ScSheetLimits::mnMaxRow, mrSheetLimits, n, ScAddress::Row(), and ScRangeList::size().
Referenced by ScViewFunc::AdjustBlockHeight(), ScViewFunc::DeleteMulti(), ScCellShell::Execute(), and ScViewFunc::SetMarkedWidthOrHeight().
|
inline |
Definition at line 103 of file markdata.hxx.
Referenced by ScTabView::DoneBlockMode(), and ScTabView::PaintBlock().
|
inline |
Definition at line 84 of file markdata.hxx.
Referenced by ScDocFunc::ApplyAttributes(), ScViewFunc::ApplyPatternLines(), ScDocFunc::ApplyStyle(), ScTabView::CalcZoom(), ScDocFunc::ChangeIndent(), ScDocFunc::ClearItems(), ScDocFunc::DeleteContents(), ScDrawLayer::DeleteObjectsInSelection(), ScViewFunc::DoRefConversion(), ScCellShell::ExecuteEdit(), ScModelObj::FillRenderMarkData(), ScViewFunc::FillTab(), ScDocument::FillTabMarked(), ScFormatShell::GetCurrentNumberFormatType(), ScTable::GetNextPos(), ScGridWindow::GetRectsAnyFor(), lcl_GetMultiMarkRange(), ScTabView::PaintBlock(), ScViewFunc::SetSelectionFrameLines(), ScDocFunc::TransliterateText(), ScViewUtil::UnmarkFiltered(), ScViewFunc::UpdateSelectionArea(), and ScTable::UpdateSelectionFunction().
|
inline |
Definition at line 106 of file markdata.hxx.
Referenced by ScColumnData::ApplySelectionCache(), ScColumn::ApplySelectionLineStyle(), ScColumn::ApplySelectionStyle(), ScColumnData::ChangeSelectionIndent(), ScColumnData::ClearSelectionItems(), ScColumn::CopyToColumn(), ScColumn::DeleteSelection(), ScFormatShell::GetCurrentNumberFormatType(), ScColumn::GetSelectionStyle(), ScColumn::HasAttribSelection(), ScColumn::MergeSelectionPattern(), and ScColumn::MixMarked().
May return -1.
Definition at line 609 of file markdata.cxx.
References aMultiSel, bMultiMarked, and ScMultiSel::GetNextMarked().
Referenced by ScTable::GetNextPos(), ScColumn::GetNextSpellingCell(), and ScTable::SkipRow().
|
inline |
Definition at line 158 of file markdata.hxx.
SCTAB ScMarkData::GetSelectCount | ( | ) | const |
Definition at line 180 of file markdata.cxx.
References maTabMarked.
Referenced by ScViewFunc::DoRefConversion(), ScViewFunc::DoSheetConversion(), ScTabViewShell::ExecuteTable(), ScConversionEngineBase::FindNextConversionCell(), ScTabViewObj::getSelection(), ScCellShell::GetState(), ScTabViewShell::GetState(), ScTabViewShell::GetStateTable(), ScViewFunc::HideTable(), ScSpellDialogChildWindow::Init(), ScDocument::InsertMatrixFormula(), lcl_MarkedTabs(), ScViewFunc::MoveBlockTo(), ScViewFunc::MoveTable(), ScPrintFuncCache::ScPrintFuncCache(), SetMarkArea(), and ScViewFunc::Unprotect().
|
inline |
Definition at line 97 of file markdata.hxx.
Referenced by ScCellShell::ExecuteEdit(), ScTabViewShell::ExecuteTable(), ScCellShell::GetState(), ScViewFunc::HideTable(), and ScPreview::SetSelectedTabs().
Definition at line 703 of file markdata.cxx.
References aBottomEnvelope, ScRange::aEnd, aLeftEnvelope, aMarkRange, aMultiRange, aMultiSel, aRightEnvelope, ScRange::aStart, aTopEnvelope, bMarked, bMultiMarked, ScAddress::Col(), ScFlatBoolRowSegments::ForwardIterator::getLastPos(), ScFlatBoolRowSegments::ForwardIterator::getValue(), ScRange::GetVars(), ScMultiSel::HasMarks(), lcl_AddRanges(), ScFlatBoolColSegments::RangeData::mbValue, ScFlatBoolColSegments::RangeData::mnCol1, ScFlatBoolColSegments::RangeData::mnCol2, ScSheetLimits::mnMaxCol, ScSheetLimits::mnMaxRow, mrSheetLimits, ScMultiSelIter::Next(), ScRangeList::push_back(), PutInOrder(), ScRange::PutInOrder(), ScFlatBoolRowSegments::setFalse(), ScAddress::Tab(), and void().
Referenced by ScViewFunc::ApplyPatternLines().
Definition at line 593 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiSel, ScRange::aStart, bMarked, bMarkIsNeg, bMultiMarked, ScAddress::Col(), and ScMultiSel::GetStartOfEqualColumns().
Referenced by ScTable::ApplySelectionCache(), ScTable::ChangeSelectionIndent(), and ScTable::ClearSelectionItems().
bool ScMarkData::GetTableSelect | ( | SCTAB | nTab | ) | const |
Definition at line 169 of file markdata.cxx.
References maTabMarked.
Referenced by ScTable::ApplySelectionCache(), ScTable::ChangeSelectionIndent(), ScTable::ClearSelectionItems(), ScDocument::CopyBlockFromClip(), ScDocument::CopyFromClip(), ScDocument::CopyRangeNamesToClip(), ScDocument::CopyToClip(), ScDocument::DeleteArea(), ScDocument::DeleteBeforeCopyFromClip(), ScDocument::DeleteCol(), ScDocument::DeleteRow(), ScUndoFillTable::DoChange(), ScGridWindow::DropTransferObj(), ScTabViewShell::Execute(), ScCellShell::ExecuteEdit(), ScTabViewShell::ExecuteTable(), ScConversionEngineBase::FindNextConversionCell(), ScDocument::GetSelectionStyle(), ScDocument::HasOLEObjectsInArea(), ScDocument::InitUndoSelected(), ScDocument::InsertCol(), ScDocument::InsertRow(), lcl_GetFirstTabRange(), lcl_GetNextTabRange(), ScViewFunc::MoveBlockTo(), ScViewFunc::MoveTable(), ScAccessibleSpreadsheet::Notify(), ScDocument::ResetClip(), sc::SingleColumnSpanSet::scan(), ScPrintFuncCache::ScPrintFuncCache(), ScDocument::SearchAndReplace(), ScTabControl::Select(), ScTabView::SetTabNo(), ScDocument::UpdateAllRowHeights(), ScTabControl::UpdateStatus(), ScDocument::UpdateTranspose(), and ScViewData::WriteExtOptions().
|
inline |
Definition at line 155 of file markdata.hxx.
bool ScMarkData::HasAnyMultiMarks | ( | ) | const |
Definition at line 625 of file markdata.cxx.
References aMultiSel, bMultiMarked, and ScMultiSel::HasAnyMarks().
Referenced by MarkToMulti().
bool ScMarkData::HasMultiMarks | ( | SCCOL | nCol | ) | const |
Definition at line 617 of file markdata.cxx.
References aMultiSel, bMultiMarked, and ScMultiSel::HasMarks().
Referenced by ScTable::GetSelectionStyle().
Definition at line 633 of file markdata.cxx.
References maTabMarked.
Referenced by ScViewData::CopyTab(), ScViewData::InsertTab(), ScViewData::InsertTabs(), and ScViewData::MoveTab().
bool ScMarkData::IsAllMarked | ( | const ScRange & | rRange | ) | const |
Definition at line 565 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiSel, ScRange::aStart, bMarked, bMarkIsNeg, bMultiMarked, ScAddress::Col(), ScMultiSel::IsAllMarked(), ScMultiSel::IsRowRangeMarked(), ScSheetLimits::mnMaxCol, mrSheetLimits, and ScAddress::Row().
Referenced by ScColumn::HasSelectionMatrixFragment().
Definition at line 270 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiSel, ScRange::aStart, bMarked, bMarkIsNeg, bMultiMarked, ScAddress::Col(), ScMultiSel::GetMark(), and ScAddress::Row().
Referenced by ScAccessibleSpreadsheet::deselectAccessibleChild(), ScDocument::GetPreviewCellStyle(), ScDocument::GetPreviewFont(), ScGridWindow::GetRectsAnyFor(), ScDocument::GetSelectionFunction(), ScTabView::InitBlockMode(), ScAccessibleSpreadsheet::isAccessibleSelected(), ScAccessibleCell::IsSelected(), ScViewFunctionSet::IsSelectionAtPoint(), ScAccessibleSpreadsheet::RemoveSelection(), ScTable::SearchCell(), ScGridWindow::SelectForContextMenu(), ScNavigatorDlg::SetCurrentCell(), and ScTable::ValidNextPos().
bool ScMarkData::IsColumnMarked | ( | SCCOL | nCol | ) | const |
Definition at line 287 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiSel, ScRange::aStart, bMarked, bMarkIsNeg, bMultiMarked, ScAddress::Col(), ScMultiSel::IsAllMarked(), ScSheetLimits::mnMaxRow, mrSheetLimits, and ScAddress::Row().
Referenced by ScCellShell::Execute(), ScAccessibleSpreadsheet::getSelectedAccessibleColumns(), ScTabView::InitBlockMode(), ScAccessibleSpreadsheet::isAccessibleColumnSelected(), ScHeaderFunctionSet::IsSelectionAtPoint(), and ScColBar::SetEntrySize().
|
inline |
Definition at line 80 of file markdata.hxx.
Referenced by ScViewFunc::ApplyPatternLines(), ScDocument::ApplySelectionPattern(), ScDocument::ApplySelectionStyle(), ScViewFunctionSet::BeginDrag(), ScTabView::CalcZoom(), ScTabView::CheckSelectionTransfer(), ScColumnData::ClearSelectionItems(), ScCellRangesBase::computeFunction(), ScSelectionTransferObj::CreateFromView(), ScTabViewShell::CreateRefDialogController(), ScDocument::CreateSelectionPattern(), ScViewFunc::CutToClip(), ScDocFunc::DeleteContents(), ScViewFunc::DeleteContents(), ScViewFunc::DetectiveMarkPred(), ScViewFunc::DetectiveMarkSucc(), ScTabViewShell::DoAutoSum(), ScViewFunc::DoRefConversion(), ScGridWindow::dumpCellProperties(), ScViewFunc::EnterMatrix(), ScCellShell::Execute(), ScTabViewShell::Execute(), ScCellShell::ExecuteDataPilotDialog(), ScCellShell::ExecuteEdit(), ScCellShell::ExecuteExternalSource(), ScModelObj::FillRenderMarkData(), ScViewFunc::FillTab(), ScTabView::FindNextUnprot(), FuInsertChart::FuInsertChart(), ScDBFunc::GetAnonymousDBData(), ScCellShell::GetCellState(), ScFormatShell::GetCurrentNumberFormatType(), ScDBFunc::GetDBData(), ScTabViewShell::GetFunction(), ScTable::GetNextPos(), ScColumn::GetOptimalColWidth(), ScTabViewObj::getSelection(), ScViewFunc::GetSelectionFrame(), ScDocument::GetSelectionFrame(), ScViewFunc::GetSelectionPattern(), ScViewFunc::GetSelectionScriptType(), ScDocument::GetSelectionStyle(), ScViewData::GetSimpleArea(), ScCellShell::GetState(), ScTabViewShell::GetState(), ScViewFunc::GetStyleSheetFromMarked(), ScPrintFuncCache::InitLocations(), ScTabView::InitOwnBlockMode(), lcl_GetTextToColumnsRange(), ScTabView::MarkColumns(), ScTabView::MarkCursor(), ScTabView::MarkRows(), ScViewFunc::MergeCells(), ScGridWindow::MouseButtonUp(), ScTabView::MoveCursorAbs(), ScTabView::MoveCursorEnter(), ScAccessibleSpreadsheet::Notify(), ScTabView::PaintBlock(), ScViewFunc::PasteFromClip(), ScPrintFuncCache::ScPrintFuncCache(), ScUndoDeleteContents::ScUndoDeleteContents(), ScViewFunc::SearchAndReplace(), ScTable::SearchAndReplaceEmptyCells(), ScTabView::SelectAll(), ScViewFunc::SelectionEditable(), ScViewFunctionSet::SetAnchor(), ScViewFunctionSet::SetCursorAtCell(), ScInputHandler::StartTable(), ScViewFunc::TestMergeCells(), ScViewFunc::TransliterateText(), ScTabView::Unmark(), and ScTable::UpdateSelectionFunction().
|
inline |
Definition at line 101 of file markdata.hxx.
Referenced by ScTabView::MarkCursor().
|
inline |
Definition at line 81 of file markdata.hxx.
Referenced by ScDocFunc::ApplyAttributes(), ScViewFunc::ApplyPatternLines(), ScColumnData::ApplySelectionCache(), ScColumn::ApplySelectionLineStyle(), ScDocument::ApplySelectionPattern(), ScColumn::ApplySelectionStyle(), ScDocument::ApplySelectionStyle(), ScDocFunc::ApplyStyle(), ScViewFunctionSet::BeginDrag(), ScTabView::CalcZoom(), ScViewFunc::ChangeIndent(), ScColumnData::ChangeSelectionIndent(), ScColumnData::ClearSelectionItems(), ScColumn::CopyToColumn(), ScSelectionTransferObj::CreateFromView(), ScTabViewShell::CreateRefDialogController(), ScDocument::CreateSelectionPattern(), ScViewFunc::CutToClip(), ScDocFunc::DeleteContents(), ScViewFunc::DeleteContents(), ScDrawLayer::DeleteObjectsInSelection(), ScColumn::DeleteSelection(), ScViewFunc::DetectiveMarkPred(), ScViewFunc::DetectiveMarkSucc(), ScTabViewShell::DoAutoSum(), ScUndoConversion::DoChange(), ScViewFunc::DoRefConversion(), ScViewFunc::DoSheetConversion(), ScGridWindow::dumpCellProperties(), ScViewFunc::EnterBlock(), ScViewFunc::EnterMatrix(), ScCellShell::Execute(), ScTabViewShell::Execute(), ScCellShell::ExecuteDataPilotDialog(), ScCellShell::ExecuteEdit(), ScDocument::FillInfo(), ScModelObj::FillRenderMarkData(), ScViewFunc::FillTab(), ScTabView::FindNextUnprot(), FuInsertChart::FuInsertChart(), ScDBFunc::GetAnonymousDBData(), ScFormatShell::GetCurrentNumberFormatType(), ScDBFunc::GetDBData(), ScTabViewShell::GetFunction(), ScViewData::GetMultiArea(), ScTable::GetNextPos(), ScColumn::GetOptimalColWidth(), ScGridWindow::GetRectsAnyFor(), ScTabViewObj::getSelection(), ScViewFunc::GetSelectionFrame(), ScDocument::GetSelectionFrame(), ScDocument::GetSelectionFunction(), ScViewFunc::GetSelectionPattern(), ScViewFunc::GetSelectionScriptType(), ScColumn::GetSelectionStyle(), ScDocument::GetSelectionStyle(), ScViewData::GetSimpleArea(), ScCellShell::GetState(), ScViewFunc::GetStyleSheetFromMarked(), ScColumn::HasAttribSelection(), ScColumn::HasSelectionMatrixFragment(), ScTabView::InitOwnBlockMode(), ScViewFunctionSet::IsSelectionAtPoint(), lcl_GetMultiMarkRange(), lcl_GetTextToColumnsRange(), ScDocShell::MakeScenario(), ScTabView::MarkCursor(), ScColumn::MergeSelectionPattern(), ScColumn::MixMarked(), ScGridWindow::MouseButtonUp(), ScTabView::MoveCursorAbs(), ScTabView::MoveCursorEnter(), ScAccessibleSpreadsheet::Notify(), ScTabView::PaintBlock(), ScViewFunc::PasteFromClip(), ScSelectionState::ScSelectionState(), ScUndoDeleteContents::ScUndoDeleteContents(), ScViewFunc::SearchAndReplace(), ScTable::SearchAndReplaceEmptyCells(), ScColumn::SearchStyle(), ScColumn::SearchStyleRange(), ScViewFunc::SelectionEditable(), ScViewFunctionSet::SetAnchor(), ScViewFunctionSet::SetCursorAtCell(), ScViewFunc::SetMarkedWidthOrHeight(), ScInputHandler::StartTable(), ScViewFunc::TestMergeCells(), ScViewFunc::TransliterateText(), ScDocument::TransliterateText(), ScTabView::Unmark(), ScViewFunc::UpdateSelectionArea(), and ScTable::UpdateSelectionFunction().
bool ScMarkData::IsRowMarked | ( | SCROW | nRow | ) | const |
Definition at line 303 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiSel, ScRange::aStart, bMarked, bMarkIsNeg, bMultiMarked, ScAddress::Col(), ScMultiSel::IsRowMarked(), ScSheetLimits::mnMaxCol, mrSheetLimits, and ScAddress::Row().
Referenced by ScCellShell::Execute(), ScAccessibleSpreadsheet::getSelectedAccessibleRows(), ScTabView::InitBlockMode(), ScAccessibleSpreadsheet::isAccessibleRowSelected(), ScHeaderFunctionSet::IsSelectionAtPoint(), and ScRowBar::SetEntrySize().
void ScMarkData::MarkFromRangeList | ( | const ScRangeList & | rList, |
bool | bReset | ||
) |
Definition at line 319 of file markdata.cxx.
References ScRange::aStart, bMarked, bMultiMarked, i, maTabMarked, nCount, ResetMark(), SelectTable(), SetMarkArea(), SetMultiMarkArea(), ScRangeList::size(), and ScAddress::Tab().
Referenced by ScCellShell::ExecuteEdit(), ScModelObj::FillRenderMarkData(), lcl_FindRangeOrEntry(), ScModelObj::NotifyChanges(), ScCellRangesBase::queryDependents(), ScCellRangesBase::queryPrecedents(), ScConditionalFormatList::RemoveFromDocument(), ScTabViewObj::select(), and ScUndoBorder::Undo().
void ScMarkData::MarkToMulti | ( | ) |
Definition at line 209 of file markdata.cxx.
References aMarkRange, bMarked, bMarking, bMarkIsNeg, HasAnyMultiMarks(), ResetMark(), and SetMultiMarkArea().
Referenced by ScViewFunc::ApplyPatternLines(), ScDBFunc::AutoOutline(), ScViewFunc::ChangeIndent(), ScDocFunc::ClearItems(), ScViewFunc::CutToClip(), ScCellRangesBase::decrementIndent(), ScDocFunc::DeleteContents(), ScUndoPaste::DoChange(), ScUndoDeleteContents::DoChange(), ScUndoFillTable::DoChange(), ScUndoSelectionAttr::DoChange(), ScTabView::DoneBlockMode(), ScViewFunc::DoSheetConversion(), ScCellShell::Execute(), ScCellShell::ExecuteEdit(), FuInsertChart::FuInsertChart(), ScFormatShell::GetCurrentNumberFormatType(), ScDocument::GetNextPos(), ScGridWindow::GetRectsAnyFor(), ScDocument::GetSelectionFunction(), ScCellRangesBase::incrementIndent(), ScSpellDialogChildWindow::Init(), ScDocShell::MakeScenario(), MarkToSimple(), ScTabView::PaintBlock(), ScSelectionState::ScSelectionState(), ScUndoSelectionStyle::ScUndoSelectionStyle(), ScHeaderFunctionSet::SetCursorAtPoint(), ScViewFunc::SetMarkedWidthOrHeight(), ScViewFunc::SetSelectionFrameLines(), ScDocFunc::TransliterateText(), and ScViewUtil::UnmarkFiltered().
void ScMarkData::MarkToSimple | ( | ) |
Definition at line 222 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiRange, aMultiSel, ScRange::aStart, bMarked, bMarking, bMarkIsNeg, bMultiMarked, ScAddress::Col(), ScMultiSel::HasMarks(), ScMultiSel::HasOneMark(), MarkToMulti(), ResetMark(), ScAddress::SetCol(), and ScAddress::SetRow().
Referenced by ScViewFunc::ApplyPatternLines(), ScViewFunctionSet::BeginDrag(), ScCellRangesBase::computeFunction(), ScViewFunc::CopyToClip(), ScSelectionTransferObj::CreateCellData(), ScViewFunc::CutToClip(), ScUndoPaste::DoChange(), ScUndoDeleteContents::DoChange(), ScUndoFillTable::DoChange(), ScUndoSelectionAttr::DoChange(), ScViewFunc::DoRefConversion(), ScViewFunc::EnterBlock(), ScCellShell::ExecuteExternalSource(), ScModelObj::FillRenderMarkData(), ScViewFunc::FillTab(), ScCellShell::GetCellState(), ScViewData::GetMultiArea(), ScViewData::GetSimpleArea(), ScViewFunc::MergeCells(), ScTabView::PaintBlock(), ScViewFunc::SetMarkedWidthOrHeight(), and ScGridWindow::TestMouse().
ScMarkData & ScMarkData::operator= | ( | const ScMarkData & | rData | ) |
Definition at line 45 of file markdata.cxx.
References aBottomEnvelope, aLeftEnvelope, aMarkRange, aMultiRange, aMultiSel, aRightEnvelope, aTopEnvelope, bMarked, bMarking, bMarkIsNeg, bMultiMarked, and maTabMarked.
ScMarkData & ScMarkData::operator= | ( | ScMarkData && | rData | ) |
Definition at line 62 of file markdata.cxx.
References aBottomEnvelope, aLeftEnvelope, aMarkRange, aMultiRange, aMultiSel, aRightEnvelope, aTopEnvelope, bMarked, bMarking, bMarkIsNeg, bMultiMarked, and maTabMarked.
|
inline |
Definition at line 165 of file markdata.hxx.
void ScMarkData::ResetMark | ( | ) |
Definition at line 80 of file markdata.cxx.
References aBottomEnvelope, aLeftEnvelope, aMultiSel, aRightEnvelope, aTopEnvelope, bMarked, bMarking, bMarkIsNeg, bMultiMarked, ScMultiSel::Clear(), and ScRangeList::RemoveAll().
Referenced by ScTabControl::DoDrag(), ScTabView::DoneBlockMode(), ScModelObj::FillRenderMarkData(), MarkFromRangeList(), ScDocument::MarkScenario(), MarkToMulti(), MarkToSimple(), ScTabView::MoveCursorAbs(), ScTabView::PaintBlock(), ScMarkData(), and ScViewFunc::SearchAndReplace().
Definition at line 174 of file markdata.cxx.
References maTabMarked.
Referenced by ScViewFunc::DeleteMulti(), ScUndoDeleteCells::DoChange(), ScDBDocFunc::DoImport(), ScTabViewShell::ExecuteTable(), lcl_CopyData(), lcl_PutDataArray(), lcl_PutFormulaArray(), ScDocShell::MakeScenario(), ScDocShell::MergeDocument(), ScViewFunc::PasteDataFormat(), ScChangeActionContent::PutValueToDoc(), ScDBDocFunc::Query(), ScUndoAutoFormat::Redo(), ScUndoEnterMatrix::Redo(), ScAreaLink::Refresh(), ScViewData::ScViewData(), ScVbaWorksheets::Select(), ScTabView::SetTabNo(), and ScDocFunc::SetWidthOrHeight().
Definition at line 157 of file markdata.cxx.
References maTabMarked.
Referenced by ScScenariosObj::addNewByName(), ScTableSheetObj::addRanges(), ScDocFunc::AutoFormat(), ScDocFunc::DeleteCells(), ScTabView::DeselectAllTables(), ScViewFunc::EnterData(), ScDocFunc::EnterMatrix(), ScTabViewShell::Execute(), ScDocFunc::FillAuto(), ScModelObj::FillRenderMarkData(), ScDocFunc::FillSeries(), ScDocFunc::FillSimple(), ScTransferObj::InitDocShell(), ScDocFunc::InsertCells(), lcl_DoDragCells(), MarkFromRangeList(), ScDocFunc::MoveBlock(), ScDocFunc::PutData(), ScViewData::ReadExtOptions(), ScViewDataTable::ReadUserDataSequence(), ScUndoDragDrop::Redo(), ScAnnotationsObj::removeByIndex(), ScViewFunc::SearchAndReplace(), ScTabControl::Select(), ScVbaWorksheets::Select(), ScTabView::SelectAllTables(), ScCellRangeObj::SetArrayFormula_Impl(), ScTabView::SetTabNo(), ScImportExport::Sylk2Doc(), ScDocFunc::TabOp(), ScDocShell::UpdatePendingRowHeights(), and sc::ScDBDataManager::WriteToDoc().
Definition at line 149 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiRange, ScRange::aStart, and ScAddress::SetTab().
Referenced by ScDocument::MarkScenario().
Definition at line 92 of file markdata.cxx.
References aMarkRange, ScRange::aStart, bMarked, GetSelectCount(), maTabMarked, ScRange::PutInOrder(), and ScAddress::Tab().
Referenced by ScHelperFunctions::ApplyBorder(), ScViewFunc::ApplyPatternLines(), ScDocShell::ConvertFrom(), ScViewFunc::CutToClip(), ScViewFunc::DeleteContents(), ScViewFunc::DoAutoAttributes(), ScDBFunc::DoSubTotals(), ScImportExport::EndPaste(), ScCellShell::ExecuteDataPilotDialog(), ScModelObj::FillRenderMarkData(), ScCellRangesBase::GetOnePropertyValue(), ScDocument::GetSelectionFunction(), ScViewFunc::GetSelectionPattern(), ScTabView::InitBlockMode(), ScTabView::MarkCursor(), MarkFromRangeList(), ScUndoUtil::MarkSimpleBlock(), ScViewFunc::PasteFromClip(), ScViewFunc::PasteRTF(), ScUndoBorder::Redo(), ScDocFunc::ResizeMatrix(), ScMarkData(), ScUndoDeleteContents::ScUndoDeleteContents(), ScCellRangeObj::SetArrayFormula_Impl(), ScCellRangeObj::setArrayTokens(), and ScViewFunc::TransliterateText().
|
inline |
Definition at line 102 of file markdata.hxx.
Referenced by ScDocFunc::ClearItems(), ScDocFunc::DeleteContents(), ScTabView::DoneBlockMode(), ScDocument::GetNextPos(), ScGridWindow::GetRectsAnyFor(), ScGridWindow::HandleMouseButtonDown(), ScGridWindow::MouseButtonUp(), ScViewFunc::OnLOKInsertDeleteColumn(), ScViewFunc::OnLOKInsertDeleteRow(), ScTabView::PaintBlock(), ScColBar::SetMarking(), ScRowBar::SetMarking(), ScGridWindow::StopMarking(), and ScDocFunc::TransliterateText().
|
inline |
Definition at line 100 of file markdata.hxx.
Referenced by ScCellRangesBase::computeFunction(), ScTabView::DoneBlockMode(), and ScTabView::InitBlockMode().
void ScMarkData::SetMultiMarkArea | ( | const ScRange & | rRange, |
bool | bMark = true , |
||
bool | bSetupMulti = false |
||
) |
Definition at line 107 of file markdata.cxx.
References ScRange::aEnd, aMarkRange, aMultiRange, aMultiSel, ScRange::aStart, bMarked, bMarkIsNeg, bMultiMarked, ScAddress::Col(), ScMultiSel::IsEmpty(), PutInOrder(), ScAddress::Row(), ScAddress::SetCol(), ScMultiSel::SetMarkArea(), and ScAddress::SetRow().
Referenced by ScViewFunc::ChangeIndent(), MarkFromRangeList(), ScColumn::MarkScenarioIn(), MarkToMulti(), ScCellRangesBase::queryEmptyCells(), ScCellRangesBase::queryVisibleCells(), ScViewFunc::SearchAndReplace(), ScViewFunc::SetMarkedWidthOrHeight(), and ScViewFunc::SetStyleSheetToMarked().
void ScMarkData::SetSelectedTabs | ( | const MarkedTabsType & | rTabs | ) |
Definition at line 203 of file markdata.cxx.
References maTabMarked.
Referenced by ScModelObj::FillRenderMarkData(), ScVbaWorksheets::PrintPreview(), and ScTabViewShell::ScTabViewShell().
void ScMarkData::ShiftCols | ( | const ScDocument & | rDoc, |
SCCOL | nStartCol, | ||
sal_Int32 | nColOffset | ||
) |
Definition at line 659 of file markdata.cxx.
References aMarkRange, aMultiRange, aMultiSel, bMarked, bMultiMarked, ScRange::IncColIfNotLessThan(), and ScMultiSel::ShiftCols().
void ScMarkData::ShiftRows | ( | const ScDocument & | rDoc, |
SCROW | nStartRow, | ||
sal_Int32 | nRowOffset | ||
) |
Definition at line 672 of file markdata.cxx.
References aMarkRange, aMultiRange, aMultiSel, bMarked, bMultiMarked, ScRange::IncRowIfNotLessThan(), and ScMultiSel::ShiftRows().
|
private |
Definition at line 53 of file markdata.hxx.
Referenced by GetSelectionCover(), operator=(), and ResetMark().
|
private |
Definition at line 54 of file markdata.hxx.
Referenced by GetSelectionCover(), operator=(), and ResetMark().
|
private |
Definition at line 49 of file markdata.hxx.
Referenced by FillRangeListWithMarks(), GetMarkedColSpans(), GetSelectionCover(), GetStartOfEqualColumns(), IsAllMarked(), IsCellMarked(), IsColumnMarked(), IsRowMarked(), MarkToMulti(), MarkToSimple(), operator=(), SetAreaTab(), SetMarkArea(), SetMultiMarkArea(), ShiftCols(), and ShiftRows().
|
private |
Definition at line 50 of file markdata.hxx.
Referenced by FillRangeListWithMarks(), GetMarkedColSpans(), GetSelectionCover(), MarkToSimple(), operator=(), ScMarkData(), SetAreaTab(), SetMultiMarkArea(), ShiftCols(), and ShiftRows().
|
private |
Definition at line 51 of file markdata.hxx.
Referenced by FillRangeListWithMarks(), GetMarkedColSpans(), GetNextMarked(), GetSelectionCover(), GetStartOfEqualColumns(), HasAnyMultiMarks(), HasMultiMarks(), IsAllMarked(), IsCellMarked(), IsColumnMarked(), IsRowMarked(), MarkToSimple(), operator=(), ResetMark(), ScMarkData(), SetMultiMarkArea(), ShiftCols(), and ShiftRows().
|
private |
Definition at line 55 of file markdata.hxx.
Referenced by GetSelectionCover(), operator=(), and ResetMark().
|
private |
Definition at line 52 of file markdata.hxx.
Referenced by GetSelectionCover(), operator=(), and ResetMark().
|
private |
Definition at line 57 of file markdata.hxx.
Referenced by FillRangeListWithMarks(), GetMarkedColSpans(), GetSelectionCover(), GetStartOfEqualColumns(), IsAllMarked(), IsCellMarked(), IsColumnMarked(), IsRowMarked(), MarkFromRangeList(), MarkToMulti(), MarkToSimple(), operator=(), ResetMark(), SetMarkArea(), SetMultiMarkArea(), ShiftCols(), and ShiftRows().
|
private |
Definition at line 60 of file markdata.hxx.
Referenced by MarkToMulti(), MarkToSimple(), operator=(), and ResetMark().
|
private |
Definition at line 61 of file markdata.hxx.
Referenced by GetStartOfEqualColumns(), IsAllMarked(), IsCellMarked(), IsColumnMarked(), IsRowMarked(), MarkToMulti(), MarkToSimple(), operator=(), ResetMark(), and SetMultiMarkArea().
|
private |
Definition at line 58 of file markdata.hxx.
Referenced by FillRangeListWithMarks(), GetMarkedColSpans(), GetNextMarked(), GetSelectionCover(), GetStartOfEqualColumns(), HasAnyMultiMarks(), HasMultiMarks(), IsAllMarked(), IsCellMarked(), IsColumnMarked(), IsRowMarked(), MarkFromRangeList(), MarkToSimple(), operator=(), ResetMark(), ScMarkData(), SetMultiMarkArea(), ShiftCols(), and ShiftRows().
|
private |
Definition at line 47 of file markdata.hxx.
Referenced by DeleteTab(), ExtendRangeListTables(), GetFirstSelected(), GetLastSelected(), GetSelectCount(), GetTableSelect(), InsertTab(), MarkFromRangeList(), operator=(), ScMarkData(), SelectOneTable(), SelectTable(), SetMarkArea(), and SetSelectedTabs().
|
private |
Definition at line 56 of file markdata.hxx.
Referenced by GetMarkedColSpans(), GetMarkedRowSpans(), GetSelectionCover(), IsAllMarked(), IsColumnMarked(), and IsRowMarked().