LibreOffice Module sc (master) 1
|
#include <docfunc.hxx>
Public Member Functions | |
virtual | ~ScDocFunc () |
void | NotifyDrawUndo (std::unique_ptr< SdrUndoAction >) |
void | EnterListAction (TranslateId pNameResId) |
void | EndListAction () |
bool | DetectiveAddPred (const ScAddress &rPos) |
bool | DetectiveDelPred (const ScAddress &rPos) |
bool | DetectiveAddSucc (const ScAddress &rPos) |
bool | DetectiveDelSucc (const ScAddress &rPos) |
bool | DetectiveAddError (const ScAddress &rPos) |
bool | DetectiveMarkInvalid (SCTAB nTab) |
bool | DetectiveDelAll (SCTAB nTab) |
bool | DetectiveRefresh (bool bAutomatic=false) |
void | DetectiveCollectAllPreds (const ScRangeList &rSrcRanges, ::std::vector< ScTokenRef > &rRefTokens) |
void | DetectiveCollectAllSuccs (const ScRangeList &rSrcRanges, ::std::vector< ScTokenRef > &rRefTokens) |
SC_DLLPUBLIC bool | DeleteContents (const ScMarkData &rMark, InsertDeleteFlags nFlags, bool bRecord, bool bApi) |
bool | DeleteCell (const ScAddress &rPos, const ScMarkData &rMark, InsertDeleteFlags nFlags, bool bRecord, bool bApi) |
bool | TransliterateText (const ScMarkData &rMark, TransliterationFlags nType, bool bApi) |
bool | SetNormalString (bool &o_rbNumFmtSet, const ScAddress &rPos, const OUString &rText, bool bApi) |
bool | SetValueCell (const ScAddress &rPos, double fVal, bool bInteraction) |
void | SetValueCells (const ScAddress &rPos, const std::vector< double > &aVals, bool bInteraction) |
bool | SetStringCell (const ScAddress &rPos, const OUString &rStr, bool bInteraction) |
bool | SetEditCell (const ScAddress &rPos, const EditTextObject &rStr, bool bInteraction) |
bool | SetStringOrEditCell (const ScAddress &rPos, const OUString &rStr, bool bInteraction) |
bool | SetFormulaCell (const ScAddress &rPos, ScFormulaCell *pCell, bool bInteraction) |
Below two methods take ownership of the formula cell instance(s). More... | |
bool | SetFormulaCells (const ScAddress &rPos, std::vector< ScFormulaCell * > &rCells, bool bInteraction) |
void | PutData (const ScAddress &rPos, ScEditEngineDefaulter &rEngine, bool bApi) |
bool | SetCellText (const ScAddress &rPos, const OUString &rText, bool bInterpret, bool bEnglish, bool bApi, const formula::FormulaGrammar::Grammar eGrammar) |
SC_DLLPUBLIC bool | ShowNote (const ScAddress &rPos, bool bShow) |
void | SetNoteText (const ScAddress &rPos, const OUString &rNoteText, bool bApi) |
void | ReplaceNote (const ScAddress &rPos, const OUString &rNoteText, const OUString *pAuthor, const OUString *pDate, bool bApi) |
SC_DLLPUBLIC ScPostIt * | ImportNote (const ScAddress &rPos, const OUString &rNoteText) |
bool | ApplyAttributes (const ScMarkData &rMark, const ScPatternAttr &rPattern, bool bApi) |
bool | ApplyStyle (const ScMarkData &rMark, const OUString &rStyleName, bool bApi) |
bool | InsertCells (const ScRange &rRange, const ScMarkData *pTabMark, InsCellCmd eCmd, bool bRecord, bool bApi, bool bPartOfPaste=false) |
bool | DeleteCells (const ScRange &rRange, const ScMarkData *pTabMark, DelCellCmd eCmd, bool bApi) |
bool | MoveBlock (const ScRange &rSource, const ScAddress &rDestPos, bool bCut, bool bRecord, bool bPaint, bool bApi) |
SC_DLLPUBLIC bool | InsertTable (SCTAB nTab, const OUString &rName, bool bRecord, bool bApi) |
bool | RenameTable (SCTAB nTab, const OUString &rName, bool bRecord, bool bApi) |
bool | DeleteTable (SCTAB nTab, bool bRecord) |
bool | SetTabBgColor (SCTAB nTab, const Color &rColor, bool bRecord, bool bApi) |
bool | SetTabBgColor (ScUndoTabColorInfo::List &rUndoTabColorList, bool bApi) |
void | SetTableVisible (SCTAB nTab, bool bVisible, bool bApi) |
bool | SetLayoutRTL (SCTAB nTab, bool bRTL) |
SC_DLLPUBLIC bool | SetWidthOrHeight (bool bWidth, const std::vector< sc::ColRowSpan > &rRanges, SCTAB nTab, ScSizeMode eMode, sal_uInt16 nSizeTwips, bool bRecord, bool bApi) |
bool | InsertPageBreak (bool bColumn, const ScAddress &rPos, bool bRecord, bool bSetModified) |
bool | RemovePageBreak (bool bColumn, const ScAddress &rPos, bool bRecord, bool bSetModified) |
void | ProtectSheet (SCTAB nTab, const ScTableProtection &rProtect) |
bool | Protect (SCTAB nTab, const OUString &rPassword) |
bool | Unprotect (SCTAB nTab, const OUString &rPassword, bool bApi) |
void | ClearItems (const ScMarkData &rMark, const sal_uInt16 *pWhich, bool bApi) |
bool | ChangeIndent (const ScMarkData &rMark, bool bIncrement, bool bApi) |
bool | AutoFormat (const ScRange &rRange, const ScMarkData *pTabMark, sal_uInt16 nFormatNo, bool bApi) |
SC_DLLPUBLIC bool | EnterMatrix (const ScRange &rRange, const ScMarkData *pTabMark, const ScTokenArray *pTokenArray, const OUString &rString, bool bApi, bool bEnglish, const OUString &rFormulaNmsp, const formula::FormulaGrammar::Grammar) |
bool | TabOp (const ScRange &rRange, const ScMarkData *pTabMark, const ScTabOpParam &rParam, bool bRecord, bool bApi) |
bool | FillSimple (const ScRange &rRange, const ScMarkData *pTabMark, FillDir eDir, bool bApi) |
bool | FillSeries (const ScRange &rRange, const ScMarkData *pTabMark, FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, double fStart, double fStep, double fMax, bool bApi) |
SC_DLLPUBLIC bool | FillAuto (ScRange &rRange, const ScMarkData *pTabMark, FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, sal_uLong nCount, double fStep, double fMax, bool bRecord, bool bApi) |
bool | FillAuto (ScRange &rRange, const ScMarkData *pTabMark, FillDir eDir, sal_uLong nCount, bool bApi) |
void | ResizeMatrix (const ScRange &rOldRange, const ScAddress &rNewEnd) |
SC_DLLPUBLIC bool | MergeCells (const ScCellMergeOption &rOption, bool bContents, bool bRecord, bool bApi, bool bEmptyMergedCells=false) |
bool | UnmergeCells (const ScRange &rRange, bool bRecord, ScUndoRemoveMerge *pUndoRemoveMerge) |
SC_DLLPUBLIC bool | UnmergeCells (const ScCellMergeOption &rOption, bool bRecord, ScUndoRemoveMerge *pUndoRemoveMerge) |
void | SetNewRangeNames (std::unique_ptr< ScRangeName > pNewRanges, bool bModifyDoc, SCTAB nTab) |
void | ModifyRangeNames (const ScRangeName &rNewRanges, SCTAB nTab=-1) |
void | ModifyAllRangeNames (const std::map< OUString, ScRangeName > &rRangeMap) |
Modify all range names, global scope names as well as sheet local ones, in one go. More... | |
bool | CreateNames (const ScRange &rRange, CreateNameFlags nFlags, bool bApi, SCTAB nTab=-1) |
bool | InsertNameList (const ScAddress &rStartPos, bool bApi) |
void | InsertAreaLink (const OUString &rFile, const OUString &rFilter, const OUString &rOptions, const OUString &rSource, const ScRange &rDestRange, sal_Int32 nRefreshDelaySeconds, bool bFitBlock, bool bApi) |
void | ReplaceConditionalFormat (sal_uLong nOldIndex, std::unique_ptr< ScConditionalFormat > pFormat, SCTAB nTab, const ScRangeList &rRanges) |
void | SetConditionalFormatList (ScConditionalFormatList *pList, SCTAB nTab) |
Sets or replaces the conditional format list of a table. More... | |
void | ConvertFormulaToValue (const ScRange &rRange, bool bInteraction) |
SC_DLLPUBLIC bool | InsertSparklines (ScRange const &rDataRange, ScRange const &rSparklineRange, std::shared_ptr< sc::SparklineGroup > pSparklineGroup) |
SC_DLLPUBLIC bool | DeleteSparkline (ScAddress const &rAddress) |
SC_DLLPUBLIC bool | DeleteSparklineGroup (std::shared_ptr< sc::SparklineGroup > const &pSparklineGroup, SCTAB nTab) |
SC_DLLPUBLIC bool | ChangeSparklineGroupAttributes (std::shared_ptr< sc::SparklineGroup > const &pExistingSparklineGroup, sc::SparklineAttributes const &rNewAttributes) |
SC_DLLPUBLIC bool | GroupSparklines (ScRange const &rRange, std::shared_ptr< sc::SparklineGroup > const &rpGroup) |
SC_DLLPUBLIC bool | UngroupSparklines (ScRange const &rRange) |
SC_DLLPUBLIC bool | ChangeSparkline (std::shared_ptr< sc::Sparkline > const &rpSparkline, SCTAB nTab, ScRangeList const &rDataRange) |
Protected Member Functions | |
bool | AdjustRowHeight (const ScRange &rRange, bool bPaint, bool bApi) |
void | CreateOneName (ScRangeName &rList, SCCOL nPosX, SCROW nPosY, SCTAB nTab, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, bool &rCancel, bool bApi) |
void | NotifyInputHandler (const ScAddress &rPos) |
ScDocFunc (ScDocShell &rDocSh) | |
Private Member Functions | |
void | ProtectDocument (const ScDocProtection &rProtect) |
Private Attributes | |
ScDocShell & | rDocShell |
Definition at line 62 of file docfunc.hxx.
|
inlineprotected |
Definition at line 74 of file docfunc.hxx.
|
inlinevirtual |
Definition at line 76 of file docfunc.hxx.
|
protected |
Definition at line 151 of file docfunc.cxx.
References ScRange::aEnd, ScRange::aStart, ScDocShell::GetBestViewShell(), ScSizeDeviceProvider::GetDevice(), SfxViewShell::GetDocId(), ScDocShell::GetDocument(), SfxViewShell::GetFirst(), ScViewData::GetLOKHeightHelper(), SfxViewShell::GetNext(), ScSizeDeviceProvider::GetPPTX(), ScSizeDeviceProvider::GetPPTY(), ScTabView::GetViewData(), Grid, comphelper::LibreOfficeKit::isActive(), ScDocument::IsAdjustHeightLocked(), ScDocument::IsImportingXML(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), ScTabViewShell::notifyAllViewsHeaderInvalidation(), ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), ROW_HEADER, ScDocument::SetDrawPageSize(), ScDocument::SetOptimalHeight(), and ScAddress::Tab().
Referenced by ApplyAttributes(), ApplyStyle(), AutoFormat(), DeleteCell(), DeleteCells(), DeleteContents(), FillAuto(), FillSeries(), FillSimple(), InsertCells(), InsertNameList(), MergeCells(), MoveBlock(), SetEditCell(), SetFormulaCell(), SetNormalString(), SetStringCell(), SetValueCell(), TransliterateText(), and UnmergeCells().
bool ScDocFunc::ApplyAttributes | ( | const ScMarkData & | rMark, |
const ScPatternAttr & | rPattern, | ||
bool | bApi | ||
) |
Border
Definition at line 1426 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ScDocument::ApplySelectionPattern(), ScRange::aStart, ATTRIB, ScAddress::Col(), ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScMarkData::GetMarkArea(), ScMarkData::GetMultiMarkArea(), ScDocShell::GetUndoManager(), Grid, ScDocument::IsImportingXML(), ScMarkData::IsMultiMarked(), ScDocument::IsSelectionEditable(), ScDocument::IsUndoEnabled(), lcl_PaintAbove(), ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), SC_PF_LINES, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), ScAddress::Tab(), and ScDocShell::UpdatePaintExt().
Referenced by ScTableSheetObj::addRanges(), ScViewFunc::DoAutoAttributes(), ScViewFunc::EnterData(), ScCellObj::InputEnglishString(), and PutData().
bool ScDocFunc::ApplyStyle | ( | const ScMarkData & | rMark, |
const OUString & | rStyleName, | ||
bool | bApi | ||
) |
Definition at line 1495 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ScDocument::ApplySelectionStyle(), ScRange::aStart, ATTRIB, ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), SfxStyleSheetBasePool::Find(), ScDocShell::GetDocument(), ScMarkData::GetMarkArea(), ScMarkData::GetMultiMarkArea(), ScDocument::GetStyleSheetPool(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), Grid, ScDocument::IsImportingXML(), ScMarkData::IsMultiMarked(), ScDocument::IsSelectionEditable(), ScDocument::IsUndoEnabled(), ScDocShell::PostPaint(), rDocShell, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), ScAddress::SetTab(), and ScAddress::Tab().
Referenced by ScViewFunc::DoAutoAttributes().
bool ScDocFunc::AutoFormat | ( | const ScRange & | rRange, |
const ScMarkData * | pTabMark, | ||
sal_uInt16 | nFormatNo, | ||
bool | bApi | ||
) |
Definition at line 4205 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ScRange::aStart, ATTRIB, ScDocument::AutoFormat(), ScDocument::BeginDrawUndo(), ScAddress::Col(), ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), ScAutoFormat::findByIndex(), ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), ScAutoFormatData::GetIncludeWidthHeight(), ScEditableTester::GetMessageId(), ScGlobal::GetOrCreateAutoFormat(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), Grid, ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), SC_SIZE_VISOPT, SCDOCMODE_UNDO, ScMarkData::SelectTable(), ScDocShellModificator::SetDocumentModified(), ScAddress::SetTab(), SetWidthOrHeight(), size, STD_EXTRA_WIDTH, ScAddress::Tab(), and Top.
Referenced by ScCellRangeObj::autoFormat(), and ScViewFunc::AutoFormat().
bool ScDocFunc::ChangeIndent | ( | const ScMarkData & | rMark, |
bool | bIncrement, | ||
bool | bApi | ||
) |
Definition at line 4136 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScRange::aStart, ATTRIB, ScDocument::ChangeSelectionIndent(), ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), ScMarkData::GetMultiMarkArea(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), Grid, SfxBindings::Invalidate(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), ScDocShell::PostPaint(), rDocShell, SC_PF_LINES, SC_PF_TESTMERGE, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), ScAddress::SetTab(), and ScAddress::Tab().
Referenced by ScViewFunc::ChangeIndent().
bool ScDocFunc::ChangeSparkline | ( | std::shared_ptr< sc::Sparkline > const & | rpSparkline, |
SCTAB | nTab, | ||
ScRangeList const & | rDataRange | ||
) |
Definition at line 5913 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::GetUndoManager(), and rDocShell.
Referenced by sc::SparklineDataRangeDialog::perform().
bool ScDocFunc::ChangeSparklineGroupAttributes | ( | std::shared_ptr< sc::SparklineGroup > const & | pExistingSparklineGroup, |
sc::SparklineAttributes const & | rNewAttributes | ||
) |
Definition at line 5885 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::GetUndoManager(), and rDocShell.
Referenced by sc::SparklineDialog::perform().
void ScDocFunc::ClearItems | ( | const ScMarkData & | rMark, |
const sal_uInt16 * | pWhich, | ||
bool | bApi | ||
) |
Bindings-Invalidate etc.?
Definition at line 4092 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScRange::aStart, ATTRIB, ScDocument::ClearSelectionItems(), ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), ScMarkData::GetMultiMarkArea(), ScDocShell::GetUndoManager(), Grid, ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), ScMarkData::MarkToMulti(), ScDocShell::PostPaint(), rDocShell, SC_PF_LINES, SC_PF_TESTMERGE, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), ScMarkData::SetMarking(), and ScAddress::Tab().
Referenced by ScUndoClearItems::Repeat().
void ScDocFunc::ConvertFormulaToValue | ( | const ScRange & | rRange, |
bool | bInteraction | ||
) |
Definition at line 5727 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::BroadcastCells(), ScDocument::ConvertFormulaToValue(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), ScDocShell::GetUndoManager(), Grid, ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), ScDocShell::PostDataChanged(), ScDocShell::PostPaint(), rDocShell, and ScDocShellModificator::SetDocumentModified().
Referenced by ScViewFunc::ConvertFormulaToValue().
bool ScDocFunc::CreateNames | ( | const ScRange & | rRange, |
CreateNameFlags | nFlags, | ||
bool | bApi, | ||
SCTAB | nTab = -1 |
||
) |
Definition at line 5274 of file docfunc.cxx.
References ScRange::aEnd, ScRange::aStart, Bottom, ScAddress::Col(), CreateOneName(), ScDocShell::GetDocument(), ScDocument::GetRangeName(), i, Left, ModifyRangeNames(), NONE, rDocShell, Right, ScAddress::Row(), ScAddress::Tab(), and Top.
Referenced by ScNamedRangesObj::addNewFromTitles(), and ScViewFunc::CreateNames().
|
protected |
Definition at line 5209 of file docfunc.cxx.
References aName, Application::CreateMessageDialog(), ScRangeName::erase(), ScRangeName::findByUpperName(), Format, ScDocShell::GetActiveDialogParent(), ScDocument::GetAddressConvention(), ScGlobal::getCharClass(), ScDocShell::GetDocument(), GetStandardText(), ScDocument::GetString(), ScRangeData::GetSymbol(), o3tl::getToken(), ScDocument::HasValueData(), ScRangeName::insert(), ScRangeData::MakeValidName(), pData, RANGE_ABS_3D, rDocShell, RET_CANCEL, RET_YES, and ScResId().
Referenced by CreateNames().
bool ScDocFunc::DeleteCell | ( | const ScAddress & | rPos, |
const ScMarkData & | rMark, | ||
InsertDeleteFlags | nFlags, | ||
bool | bRecord, | ||
bool | bApi | ||
) |
Definition at line 674 of file docfunc.cxx.
References sc::DocFuncUtil::addDeleteContentsUndo(), AdjustRowHeight(), ATTRIB, ScDocument::BeginDrawUndo(), ScAddress::Col(), sc::DocFuncUtil::createDeleteContentsUndoDoc(), ScDocument::DeleteArea(), ScDocument::DeleteObjectsInArea(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), sc::DocFuncUtil::getNonEmptyCellSpans(), ScDocShell::GetUndoManager(), Grid, sc::DocFuncUtil::hasProtectedTab(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), NOTE, OBJECTS, ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), ScDocShellModificator::SetDocumentModified(), ScAddress::Tab(), and ScDocShell::UpdatePaintExt().
Referenced by ScViewFunc::DeleteContents().
bool ScDocFunc::DeleteCells | ( | const ScRange & | rRange, |
const ScMarkData * | pTabMark, | ||
DelCellCmd | eCmd, | ||
bool | bApi | ||
) |
Test if the size of outline has changed
Definition at line 2271 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ALL, ScDocument::ApplyPatternArea(), ScRange::aStart, ATTR_MERGE(), ATTR_MERGE_FLAG(), ScMarkData::begin(), ScDocument::BeginDrawUndo(), CellsLeft, CellsUp, ScAddress::Col(), Cols, ScRange::Contains(), ScDocument::CopyToDocument(), ScDocument::DeleteCol(), sc::DeleteColumns, ScDocument::DeleteObjectsInArea(), ScDocument::DeleteRow(), sc::DeleteRows, SfxUndoManager::EnterListAction(), ScDocShell::ErrorMessage(), ScDocument::ExtendMerge(), ScDocument::ExtendOverlapped(), FORMULA, ScDocShell::GetActiveDialogParent(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetBestViewShell(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), ScPatternAttr::GetItem(), ScPatternAttr::GetItemSet(), ScEditableTester::GetMessageId(), ScDocAttrIterator::GetNext(), ScDocument::GetPool(), ScMarkData::GetSelectCount(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScMergeFlagAttr::GetValue(), Grid, ScDocument::HasAttrib(), Hor, i, ScEditableTester::IsEditable(), ScMergeAttr::IsMerged(), ScDocument::IsScenario(), ScDocument::IsUndoEnabled(), lcl_PaintAbove(), SfxUndoManager::LeaveListAction(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, MergeCells(), Merged, nCount, NOCAPTIONS, ScViewFunc::OnLOKInsertDeleteColumn(), ScViewFunc::OnLOKInsertDeleteRow(), Overlapped, ScDocShell::PostPaint(), SfxItemSet::Put(), ScMarkData::rbegin(), rDocShell, ScDocument::RefreshAutoFilter(), ScAddress::Row(), Rows, SAL_WARN, SC_PF_LINES, SCDOCMODE_UNDO, ScResId(), ScMarkData::SelectTable(), ScAddress::SetCol(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetDrawPageSize(), ScAddress::SetRow(), SfxGetpApp(), ScAddress::Tab(), Top, UnmergeCells(), ScDocument::UpdatePageBreaks(), ScDocShell::UpdatePaintExt(), ScDocument::ValidRow(), and Ver.
Referenced by ScViewFunc::DeleteCells(), ScGridWindow::DropTransferObj(), ScDocShell::MergeDocument(), ScTableColumnsObj::removeByIndex(), ScTableRowsObj::removeByIndex(), and ScTableSheetObj::removeRange().
bool ScDocFunc::DeleteContents | ( | const ScMarkData & | rMark, |
InsertDeleteFlags | nFlags, | ||
bool | bRecord, | ||
bool | bApi | ||
) |
Definition at line 583 of file docfunc.cxx.
References sc::DocFuncUtil::addDeleteContentsUndo(), AdjustRowHeight(), ScRange::aEnd, ScRange::aStart, ATTRIB, ScDocument::BeginDrawUndo(), ScAddress::Col(), sc::DocFuncUtil::createDeleteContentsUndoDoc(), ScDocument::DeleteObjectsInArea(), ScDocument::DeleteObjectsInSelection(), ScDocument::DeleteSelection(), ScDocShell::ErrorMessage(), ScDocument::ExtendMerge(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), ScMarkData::GetMultiMarkArea(), sc::DocFuncUtil::getNonEmptyCellSpans(), ScDocShell::GetUndoManager(), Grid, sc::DocFuncUtil::hasProtectedTab(), ScEditableTester::IsEditable(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScDocument::IsUndoEnabled(), lcl_PaintAbove(), ScMarkData::MarkToMulti(), NOTE, OBJECTS, ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), SC_PF_LINES, ScDocShellModificator::SetDocumentModified(), ScMarkData::SetMarking(), and ScDocShell::UpdatePaintExt().
Referenced by ScViewFunc::DeleteContents(), ScTransferObj::DragFinished(), ScCellShell::ExecuteEdit(), ScAnnotationsObj::removeByIndex(), ResizeMatrix(), ScCellRangeObj::SetArrayFormula_Impl(), and ScCellRangeObj::setArrayTokens().
bool ScDocFunc::DeleteSparkline | ( | ScAddress const & | rAddress | ) |
Definition at line 5853 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), and rDocShell.
bool ScDocFunc::DeleteSparklineGroup | ( | std::shared_ptr< sc::SparklineGroup > const & | pSparklineGroup, |
SCTAB | nTab | ||
) |
Definition at line 5868 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), and rDocShell.
Referenced by ScCellShell::ExecuteEdit().
bool ScDocFunc::DeleteTable | ( | SCTAB | nTab, |
bool | bRecord | ||
) |
Definition at line 3321 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ALL, ScDocument::BeginDrawUndo(), ScDocument::CopyToDocument(), ScDocument::DeleteTab(), ScDocShell::GetActiveDialogParent(), ScDocument::GetCodeName(), ScDocShell::GetDocument(), ScDocument::GetLinkDoc(), ScDocument::GetLinkFlt(), ScDocument::GetLinkMode(), ScDocument::GetLinkOpt(), ScDocument::GetLinkRefreshDelay(), ScDocument::GetLinkTab(), ScDocument::GetName(), ScDocument::GetScenarioData(), ScDocument::GetSheetEvents(), ScDocument::GetTabBgColor(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), SfxBindings::Invalidate(), ScDocument::IsActiveScenario(), ScDocument::IsInVBAMode(), ScDocument::IsLinked(), ScDocument::IsScenario(), ScDocument::IsUndoEnabled(), ScDocument::IsVisible(), ScDocument::MaxCol(), ScDocument::MaxRow(), nCount, ScDocShell::PostPaintExtras(), rDocShell, SC_TAB_DELETED, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), SfxGetpApp(), ScDocShell::UpdateLinks(), and VBA_DeleteModule().
Referenced by ScViewFunc::DeleteTable(), ScDocShell::MergeDocument(), ScDrawPagesObj::remove(), ScScenariosObj::removeByName(), ScTableSheetsObj::removeByName(), and ScTableSheetsObj::replaceByName().
bool ScDocFunc::DetectiveAddError | ( | const ScAddress & | rPos | ) |
Definition at line 360 of file docfunc.cxx.
References ScDocument::AddDetectiveOperation(), SfxUndoManager::AddUndoAction(), ScDrawLayer::BeginCalcUndo(), ScAddress::Col(), ScDrawLayer::GetCalcUndo(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), SfxBindings::Invalidate(), ScDocument::IsUndoEnabled(), ScDocShell::MakeDrawLayer(), rDocShell, ScAddress::Row(), SCDETOP_ADDERROR, ScDocShellModificator::SetDocumentModified(), ScDetectiveFunc::ShowError(), and ScAddress::Tab().
Referenced by ScViewFunc::DetectiveAddError(), and ScTableSheetObj::showErrors().
bool ScDocFunc::DetectiveAddPred | ( | const ScAddress & | rPos | ) |
Definition at line 209 of file docfunc.cxx.
References ScDocument::AddDetectiveOperation(), SfxUndoManager::AddUndoAction(), ScDrawLayer::BeginCalcUndo(), ScAddress::Col(), ScDrawLayer::GetCalcUndo(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), SfxBindings::Invalidate(), ScDocument::IsUndoEnabled(), ScDocShell::MakeDrawLayer(), rDocShell, ScAddress::Row(), SCDETOP_ADDPRED, ScDocShellModificator::SetDocumentModified(), ScDetectiveFunc::ShowPred(), and ScAddress::Tab().
Referenced by ScViewFunc::DetectiveAddPred(), and ScTableSheetObj::showPrecedents().
bool ScDocFunc::DetectiveAddSucc | ( | const ScAddress & | rPos | ) |
Definition at line 284 of file docfunc.cxx.
References ScDocument::AddDetectiveOperation(), SfxUndoManager::AddUndoAction(), ScDrawLayer::BeginCalcUndo(), ScAddress::Col(), ScDrawLayer::GetCalcUndo(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), SfxBindings::Invalidate(), ScDocument::IsUndoEnabled(), ScDocShell::MakeDrawLayer(), rDocShell, ScAddress::Row(), SCDETOP_ADDSUCC, ScDocShellModificator::SetDocumentModified(), ScDetectiveFunc::ShowSucc(), and ScAddress::Tab().
Referenced by ScViewFunc::DetectiveAddSucc(), and ScTableSheetObj::showDependents().
void ScDocFunc::DetectiveCollectAllPreds | ( | const ScRangeList & | rSrcRanges, |
::std::vector< ScTokenRef > & | rRefTokens | ||
) |
Definition at line 573 of file docfunc.cxx.
References lcl_collectAllPredOrSuccRanges(), and rDocShell.
Referenced by ScViewFunc::DetectiveMarkPred().
void ScDocFunc::DetectiveCollectAllSuccs | ( | const ScRangeList & | rSrcRanges, |
::std::vector< ScTokenRef > & | rRefTokens | ||
) |
Definition at line 578 of file docfunc.cxx.
References lcl_collectAllPredOrSuccRanges(), and rDocShell.
Referenced by ScViewFunc::DetectiveMarkSucc().
bool ScDocFunc::DetectiveDelAll | ( | SCTAB | nTab | ) |
Definition at line 436 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDrawLayer::BeginCalcUndo(), ScDocument::ClearDetectiveOperations(), ScDetectiveFunc::DeleteAll(), Detective, ScDrawLayer::GetCalcUndo(), ScDocument::GetDetOpList(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), SfxBindings::Invalidate(), ScDocument::IsUndoEnabled(), rDocShell, and ScDocShellModificator::SetDocumentModified().
Referenced by ScTableSheetObj::clearArrows(), and ScViewFunc::DetectiveDelAll().
bool ScDocFunc::DetectiveDelPred | ( | const ScAddress & | rPos | ) |
Definition at line 245 of file docfunc.cxx.
References ScDocument::AddDetectiveOperation(), SfxUndoManager::AddUndoAction(), ScDrawLayer::BeginCalcUndo(), ScAddress::Col(), ScDetectiveFunc::DeletePred(), ScDrawLayer::GetCalcUndo(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), SfxBindings::Invalidate(), ScDocument::IsUndoEnabled(), rDocShell, ScAddress::Row(), SCDETOP_DELPRED, ScDocShellModificator::SetDocumentModified(), and ScAddress::Tab().
Referenced by ScViewFunc::DetectiveDelPred(), and ScTableSheetObj::hidePrecedents().
bool ScDocFunc::DetectiveDelSucc | ( | const ScAddress & | rPos | ) |
Definition at line 321 of file docfunc.cxx.
References ScDocument::AddDetectiveOperation(), SfxUndoManager::AddUndoAction(), ScDrawLayer::BeginCalcUndo(), ScAddress::Col(), ScDetectiveFunc::DeleteSucc(), ScDrawLayer::GetCalcUndo(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), SfxBindings::Invalidate(), ScDocument::IsUndoEnabled(), rDocShell, ScAddress::Row(), SCDETOP_DELSUCC, ScDocShellModificator::SetDocumentModified(), and ScAddress::Tab().
Referenced by ScViewFunc::DetectiveDelSucc(), and ScTableSheetObj::hideDependents().
bool ScDocFunc::DetectiveMarkInvalid | ( | SCTAB | nTab | ) |
Definition at line 397 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDrawLayer::BeginCalcUndo(), Application::CreateMessageDialog(), ScDocShell::GetActiveDialogParent(), ScDrawLayer::GetCalcUndo(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScDocShell::GetUndoManager(), ScDocument::IsUndoEnabled(), ScDocShell::MakeDrawLayer(), ScDetectiveFunc::MarkInvalid(), rDocShell, ScResId(), and ScDocShellModificator::SetDocumentModified().
Referenced by ScViewFunc::DetectiveMarkInvalid(), MergeCells(), ScTableSheetObj::showInvalid(), and UnmergeCells().
bool ScDocFunc::DetectiveRefresh | ( | bool | bAutomatic = false | ) |
Definition at line 476 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), Arrows, ScDrawLayer::BeginCalcUndo(), ScAddress::Col(), ScDetOpList::Count(), ScDetectiveFunc::DeleteAll(), ScDetectiveFunc::DeletePred(), ScDetectiveFunc::DeleteSucc(), ScDrawLayer::GetCalcUndo(), ScDocument::GetDetOpList(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScDetOpList::GetObject(), ScDetOpData::GetOperation(), ScDetOpData::GetPos(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), i, ScDocument::IsUndoEnabled(), ScDocShell::MakeDrawLayer(), nCount, rDocShell, ScAddress::Row(), SCDETOP_ADDERROR, SCDETOP_ADDPRED, SCDETOP_ADDSUCC, SCDETOP_DELPRED, SCDETOP_DELSUCC, ScResId(), ScDocShell::SetDrawModified(), ScDetectiveFunc::ShowError(), ScDetectiveFunc::ShowPred(), ScDetectiveFunc::ShowSucc(), and ScAddress::Tab().
Referenced by ScViewFunc::DetectiveRefresh(), ScDocShell::DoHardRecalc(), ScModelObj::refreshArrows(), and ScDocShell::SetDocumentModified().
void ScDocFunc::EndListAction | ( | ) |
Definition at line 5769 of file docfunc.cxx.
References ScDocShell::GetUndoManager(), SfxUndoManager::LeaveListAction(), and rDocShell.
Referenced by ScViewFunc::EnterData().
void ScDocFunc::EnterListAction | ( | TranslateId | pNameResId | ) |
Definition at line 5760 of file docfunc.cxx.
References SfxUndoManager::EnterListAction(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetUndoManager(), rDocShell, and ScResId().
Referenced by ScViewFunc::EnterData().
bool ScDocFunc::EnterMatrix | ( | const ScRange & | rRange, |
const ScMarkData * | pTabMark, | ||
const ScTokenArray * | pTokenArray, | ||
const OUString & | rString, | ||
bool | bApi, | ||
bool | bEnglish, | ||
const OUString & | rFormulaNmsp, | ||
const formula::FormulaGrammar::Grammar | eGrammar | ||
) |
take selected sheets into account also when undoing
take selected sheets into account also when undoing
Definition at line 4317 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ALL, ScTokenArray::AssignXMLString(), ScRange::aStart, ScAddress::Col(), ScCompiler::CompileString(), ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), ScDocument::GetSheetLimits(), ScDocShell::GetUndoManager(), formula::FormulaGrammar::GRAM_EXTERNAL, Grid, ScDocument::IncXMLImportedFormulaCount(), ScDocument::InsertMatrixFormula(), ScEditableTester::IsEditable(), ScDocument::IsImportingXML(), ScDocument::IsUndoEnabled(), NOTE, ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), SCDOCMODE_UNDO, ScViewData::SelectionFillDOOM(), ScMarkData::SelectTable(), ScDocShellModificator::SetDocumentModified(), and ScAddress::Tab().
Referenced by ScViewFunc::EnterMatrix(), ScDocShell::MergeDocument(), ResizeMatrix(), ScCellRangeObj::SetArrayFormula_Impl(), ScCellRangeObj::setArrayTokens(), ScVbaRange::setFormulaArray(), and AddressWalkerWriter::writeMatrixFormula().
bool ScDocFunc::FillAuto | ( | ScRange & | rRange, |
const ScMarkData * | pTabMark, | ||
FillDir | eDir, | ||
FillCmd | eCmd, | ||
FillDateCmd | eDateCmd, | ||
sal_uLong | nCount, | ||
double | fStep, | ||
double | fMax, | ||
bool | bRecord, | ||
bool | bApi | ||
) |
Source range can be protected !!! but can't contain matrix fragments !!!
Definition at line 4797 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ScRange::aStart, AUTOFILL, ScAddress::Col(), ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), ScDocument::Fill(), FILL_TO_BOTTOM, FILL_TO_LEFT, FILL_TO_RIGHT, FILL_TO_TOP, ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), ScDocument::GetDocumentShell(), ScEditableTester::GetMessageId(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScDocument::HasSelectedBlockMatrixFragment(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), MAXDOUBLE, nCount, ScDocShell::PostPaintGridAll(), rDocShell, ScAddress::Row(), SCDOCMODE_UNDO, ScResId(), ScViewData::SelectionFillDOOM(), ScMarkData::SelectTable(), ScAddress::SetCol(), ScDocShellModificator::SetDocumentModified(), ScAddress::SetRow(), and ScAddress::Tab().
Referenced by ScVbaRange::AutoFill(), ScCellRangeObj::fillAuto(), and FillAuto().
bool ScDocFunc::FillAuto | ( | ScRange & | rRange, |
const ScMarkData * | pTabMark, | ||
FillDir | eDir, | ||
sal_uLong | nCount, | ||
bool | bApi | ||
) |
Definition at line 4791 of file docfunc.cxx.
References FILL_AUTO, FILL_DAY, FillAuto(), MAXDOUBLE, and nCount.
bool ScDocFunc::FillSeries | ( | const ScRange & | rRange, |
const ScMarkData * | pTabMark, | ||
FillDir | eDir, | ||
FillCmd | eCmd, | ||
FillDateCmd | eDateCmd, | ||
double | fStart, | ||
double | fStep, | ||
double | fMax, | ||
bool | bApi | ||
) |
Definition at line 4659 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ScRange::aStart, AUTOFILL, ScAddress::Col(), ScDocument::CopyToDocument(), DirFromFillDir(), ScDocShell::ErrorMessage(), ScDocument::Fill(), FILL_TO_BOTTOM, FILL_TO_LEFT, FILL_TO_RIGHT, FILL_TO_TOP, ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), ScDocument::GetDocumentShell(), ScDocument::GetEmptyLinesInBlock(), ScEditableTester::GetMessageId(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), MAXDOUBLE, nCount, ScDocShell::PostPaintGridAll(), rDocShell, ScAddress::Row(), SCDOCMODE_UNDO, ScResId(), ScMarkData::SelectTable(), ScAddress::SetCol(), ScDocShellModificator::SetDocumentModified(), ScAddress::SetRow(), ScDocument::SetValue(), and ScAddress::Tab().
Referenced by ScCellRangeObj::fillSeries().
bool ScDocFunc::FillSimple | ( | const ScRange & | rRange, |
const ScMarkData * | pTabMark, | ||
FillDir | eDir, | ||
bool | bApi | ||
) |
Definition at line 4545 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ScRange::aStart, AUTOFILL, ScAddress::Col(), ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), ScDocument::Fill(), FILL_DAY, FILL_SIMPLE, FILL_TO_BOTTOM, FILL_TO_LEFT, FILL_TO_RIGHT, FILL_TO_TOP, ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), ScDocument::GetDocumentShell(), ScEditableTester::GetMessageId(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), MAXDOUBLE, nCount, ScDocShell::PostPaintGridAll(), rDocShell, ScAddress::Row(), SCDOCMODE_UNDO, ScResId(), ScMarkData::SelectTable(), ScAddress::SetCol(), ScDocShellModificator::SetDocumentModified(), ScAddress::SetRow(), ScAddress::SetTab(), and ScAddress::Tab().
Referenced by ScViewFunc::FillSimple().
bool ScDocFunc::GroupSparklines | ( | ScRange const & | rRange, |
std::shared_ptr< sc::SparklineGroup > const & | rpGroup | ||
) |
Definition at line 5895 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::GetUndoManager(), and rDocShell.
Referenced by ScCellShell::ExecuteEdit().
Definition at line 1408 of file docfunc.cxx.
References ScNoteUtil::CreateNoteFromString(), ScDocShell::GetDocument(), rDocShell, ScDocument::ReleaseNote(), SAL_WARN_IF, ScDocShellModificator::SetDocumentModified(), ScDocument::SetStreamValid(), and ScAddress::Tab().
Referenced by oox::xls::Comment::finalizeImport().
void ScDocFunc::InsertAreaLink | ( | const OUString & | rFile, |
const OUString & | rFilter, | ||
const OUString & | rOptions, | ||
const OUString & | rSource, | ||
const ScRange & | rDestRange, | ||
sal_Int32 | nRefreshDelaySeconds, | ||
bool | bFitBlock, | ||
bool | bApi | ||
) |
Definition at line 5514 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aStart, sfx2::ClientFile, SfxUndoManager::EnterListAction(), ScTabViewShell::GetActiveViewShell(), ScAreaLink::GetDestArea(), ScDocShell::GetDocument(), ScAreaLink::GetFile(), ScAreaLink::GetFilter(), ScDocumentLoader::GetFilterName(), ScDocument::GetLinkManager(), sfx2::LinkManager::GetLinks(), ScAreaLink::GetOptions(), ScRefreshTimer::GetRefreshDelaySeconds(), ScAreaLink::GetSource(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), sfx2::LinkManager::InsertFileLink(), SfxBindings::Invalidate(), ScDocument::IsExecuteLinkEnabled(), ScDocument::IsUndoEnabled(), SfxUndoManager::LeaveListAction(), pLink, rDocShell, sfx2::LinkManager::Remove(), ScDocumentLoader::RemoveAppPrefix(), ScResId(), and SfxGetpApp().
Referenced by ScCellShell::ExecuteExternalSource(), ScViewFunc::InsertAreaLink(), ScAreaLinksObj::insertAtPosition(), and ScAreaLinkObj::Modify_Impl().
bool ScDocFunc::InsertCells | ( | const ScRange & | rRange, |
const ScMarkData * | pTabMark, | ||
InsCellCmd | eCmd, | ||
bool | bRecord, | ||
bool | bApi, | ||
bool | bPartOfPaste = false |
||
) |
Definition at line 1736 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ScRange::aStart, ATTR_MERGE(), ATTR_MERGE_FLAG(), ScMarkData::begin(), ScDocument::BeginDrawUndo(), ScAddress::Col(), ScRange::Contains(), SfxUndoManager::EnterListAction(), ScDocShell::ErrorMessage(), ScDocument::ExtendMerge(), ScDocument::ExtendOverlapped(), ScDocShell::GetActiveDialogParent(), ScDocShell::GetBestViewShell(), ScDocument::GetChangeTrack(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScDocShell::GetDocument(), ScPatternAttr::GetItem(), ScEditableTester::GetMessageId(), ScDocAttrIterator::GetNext(), ScMarkData::GetSelectCount(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScMergeFlagAttr::GetValue(), ScTabView::GetViewData(), SfxViewShell::GetViewShellId(), Grid, ScDocument::HasAttrib(), Hor, i, ScAddress::IncCol(), ScAddress::IncRow(), INS_CELLSDOWN, INS_CELLSRIGHT, INS_INSCOLS_AFTER, INS_INSCOLS_BEFORE, INS_INSROWS_AFTER, INS_INSROWS_BEFORE, ScDocument::InsertCol(), sc::InsertColumnsAfter, sc::InsertColumnsBefore, ScDocument::InsertRow(), sc::InsertRowsAfter, sc::InsertRowsBefore, ScEditableTester::IsEditable(), ScMergeAttr::IsMerged(), ScDocument::IsScenario(), ScDocument::IsUndoEnabled(), SfxUndoManager::LeaveListAction(), Left, ScTabView::MarkRange(), ScCellMergeOption::maTabs, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, MergeCells(), Merged, ScRange::Move(), nCount, ScViewFunc::OnLOKInsertDeleteColumn(), ScViewFunc::OnLOKInsertDeleteRow(), Overlapped, ScDocShell::PostPaint(), ScMarkData::rbegin(), rDocShell, ScDocument::RefreshAutoFilter(), SfxUndoManager::RemoveLastUndoAction(), ScAddress::Row(), SAL_WARN, SCDOCMODE_UNDO, ScResId(), ScMarkData::SelectTable(), ScTabView::SetCursor(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetDrawPageSize(), SfxGetpApp(), ScAddress::Tab(), Top, ScAddress::UNINITIALIZED, UnmergeCells(), ScDocument::UpdatePageBreaks(), ScDocShell::UpdatePaintExt(), ScDocument::ValidRow(), and Ver.
Referenced by ScGridWindow::DropTransferObj(), ScTableColumnsObj::insertByIndex(), ScTableRowsObj::insertByIndex(), ScTableSheetObj::insertCells(), ScViewFunc::InsertCells(), and ScDocShell::MergeDocument().
bool ScDocFunc::InsertNameList | ( | const ScAddress & | rStartPos, |
bool | bApi | ||
) |
Definition at line 5363 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ALL, aName, ScDocument::BeginDrawUndo(), ScAddress::Col(), ScDocument::CopyToDocument(), ScRangeData::Database, ScDocShell::ErrorMessage(), ScRangeName::findByUpperName(), ScDocShell::GetDocument(), ScDocument::GetRangeName(), ScDocShell::GetUndoManager(), ScRangeData::GetUpperName(), Grid, ScRangeData::HasType(), ScDocument::IsUndoEnabled(), ScDocument::MaxCol(), pData, ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), SCDOCMODE_UNDO, ScRangeData_QsortNameCompare(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetString(), ScSetStringParam::setTextInput(), and ScAddress::Tab().
Referenced by ScViewFunc::InsertNameList(), and ScNamedRangesObj::outputList().
bool ScDocFunc::InsertPageBreak | ( | bool | bColumn, |
const ScAddress & | rPos, | ||
bool | bRecord, | ||
bool | bSetModified | ||
) |
Definition at line 3823 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScAddress::Col(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), Grid, ScDocument::HasColBreak(), ScDocument::HasRowBreak(), SfxBindings::Invalidate(), ScDocument::InvalidatePageBreaks(), ScDocument::IsUndoEnabled(), Manual, ScDocument::MaxCol(), ScDocument::MaxRow(), nPos, ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), ScDocument::SetColBreak(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetRowBreak(), ScDocument::SetStreamValid(), ScAddress::Tab(), and ScDocument::UpdatePageBreaks().
Referenced by ScTableColumnObj::SetOnePropertyValue(), ScTableRowObj::SetOnePropertyValue(), ScTableColumnsObj::setPropertyValue(), and ScTableRowsObj::setPropertyValue().
bool ScDocFunc::InsertSparklines | ( | ScRange const & | rDataRange, |
ScRange const & | rSparklineRange, | ||
std::shared_ptr< sc::SparklineGroup > | pSparklineGroup | ||
) |
Definition at line 5774 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScRange::aStart, sc::calculateOrientation(), ScAddress::Col(), ScDocShell::GetUndoManager(), nIndex, rDocShell, ScAddress::Row(), sc::Row, ScAddress::SetCol(), ScAddress::SetRow(), and sc::Unknown.
bool ScDocFunc::InsertTable | ( | SCTAB | nTab, |
const OUString & | rName, | ||
bool | bRecord, | ||
bool | bApi | ||
) |
Definition at line 3269 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::BeginDrawUndo(), ScDocShell::ErrorMessage(), ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScDocument::InsertTab(), ScDocument::IsImportingXML(), ScDocument::IsInVBAMode(), ScDocument::IsUndoEnabled(), ScDocShell::PostPaintExtras(), rDocShell, SC_TAB_INSERTED, ScDocShellModificator::SetDocumentModified(), SfxGetpApp(), and VBA_InsertModule().
Referenced by ScTableSheetsObj::insertByName(), ScDrawPagesObj::insertNewByIndex(), ScTableSheetsObj::insertNewByName(), ScDocShell::MergeDocument(), and ScTableSheetsObj::replaceByName().
bool ScDocFunc::MergeCells | ( | const ScCellMergeOption & | rOption, |
bool | bContents, | ||
bool | bRecord, | ||
bool | bApi, | ||
bool | bEmptyMergedCells = false |
||
) |
Definition at line 4933 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ALL, ScDocument::ApplyAttr(), ATTR_HOR_JUSTIFY(), ATTR_VER_JUSTIFY(), ScDocument::BeginDrawUndo(), Circles, ScDocument::CopyToDocument(), ScDetectiveFunc::DeleteAll(), DetectiveMarkInvalid(), ScDocument::DoEmptyBlock(), ScDocument::DoMerge(), ScDocument::DoMergeContents(), ScDocShell::ErrorMessage(), ScDrawLayer::GetCalcUndo(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScEditableTester::GetMessageId(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), Grid, ScDocument::HasAttrib(), ScDocument::HasNote(), SfxBindings::Invalidate(), ScEditableTester::IsEditable(), ScDocument::IsEmptyData(), ScDocument::IsUndoEnabled(), ScCellMergeOption::maTabs, ScDocument::MaxCol(), ScCellMergeOption::mbCenter, Merged, ScCellMergeOption::mnEndCol, ScCellMergeOption::mnEndRow, ScCellMergeOption::mnStartCol, ScCellMergeOption::mnStartRow, NOCAPTIONS, Overlapped, ScDocShell::PostPaint(), rDocShell, SCDOCMODE_UNDO, ScDocument::SetDirty(), and ScDocShellModificator::SetDocumentModified().
Referenced by DeleteCells(), InsertCells(), ScCellRangeObj::merge(), and ScViewFunc::MergeCells().
void ScDocFunc::ModifyAllRangeNames | ( | const std::map< OUString, ScRangeName > & | rRangeMap | ) |
Modify all range names, global scope names as well as sheet local ones, in one go.
Note that this method will not destroy the instances passed as arguments (it creates copies); the caller is responsible for destroying them.
Definition at line 5188 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::CompileHybridFormula(), ScDocShell::GetDocument(), ScDocument::GetRangeNameMap(), ScDocShell::GetUndoManager(), ScDocument::IsUndoEnabled(), ScDocument::PreprocessAllRangeNamesUpdate(), rDocShell, ScDocument::SetAllRangeNames(), ScDocShellModificator::SetDocumentModified(), and SfxGetpApp().
Referenced by ScNameDlg::Close().
void ScDocFunc::ModifyRangeNames | ( | const ScRangeName & | rNewRanges, |
SCTAB | nTab = -1 |
||
) |
Definition at line 5137 of file docfunc.cxx.
References SetNewRangeNames().
Referenced by CreateNames(), and ScPosWnd::DoEnter().
bool ScDocFunc::MoveBlock | ( | const ScRange & | rSource, |
const ScAddress & | rDestPos, | ||
bool | bCut, | ||
bool | bRecord, | ||
bool | bPaint, | ||
bool | bApi | ||
) |
Definition at line 2852 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ALL, ScRange::aStart, ScDocument::BeginDrawUndo(), ScAddress::Col(), ScDocument::CopyFromClip(), ScDocument::CopyToClip(), ScDocument::CopyToDocument(), ScDocument::DeleteAreaTab(), ScDocument::DeleteObjectsInArea(), ScDocShell::ErrorMessage(), ScDocument::ExtendMerge(), tools::SvRef< typename T >::get(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), Grid, ScDocument::HasAttrib(), ScDocument::HasOLEObjectsInArea(), ScEditableTester::IsEditable(), ScDocument::IsScenario(), ScDocument::IsUndoEnabled(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), Merged, NOCAPTIONS, OBJECTS, Overlapped, ScDocShell::PostPaint(), rDocShell, ScDocument::RefreshAutoFilter(), ScAddress::Row(), SCDOCMODE_CLIP, SCDOCMODE_UNDO, ScMarkData::SelectTable(), ScDocShellModificator::SetDocumentModified(), ScDrawLayer::SetGlobalDrawPersist(), ScMarkData::SetMarkArea(), SfxGetpApp(), ScAddress::Tab(), ScEditableTester::TestBlock(), Top, UnmergeCells(), ScDocShell::UpdatePaintExt(), ScDocument::ValidCol(), and ScDocument::ValidRow().
Referenced by ScTableSheetObj::copyRange(), ScDocShell::MergeDocument(), ScViewFunc::MoveBlockTo(), ScTableSheetObj::moveRange(), and ScDBDocFunc::Sort().
void ScDocFunc::NotifyDrawUndo | ( | std::unique_ptr< SdrUndoAction > | pUndoAction | ) |
Definition at line 120 of file docfunc.cxx.
References ScDrawLayer::AddCalcUndo(), SfxUndoManager::AddUndoAction(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScDrawLayer::IsRecording(), rDocShell, ScDocShell::SetDrawModified(), and ScDocument::SetStreamValid().
Referenced by ScDocShell::InitItems().
|
protected |
Definition at line 1128 of file docfunc.cxx.
References ScTabViewShell::GetActiveViewShell(), ScInputHandler::GetCursorPos(), ScViewData::GetDocShell(), ScTabView::GetViewData(), ScInputHandler::IsEditMode(), rDocShell, SC_MOD, ScInputHandler::SetModified(), and ScTabViewShell::UpdateInputHandler().
Referenced by SetEditCell(), SetFormulaCell(), SetFormulaCells(), SetNormalString(), SetStringCell(), SetValueCell(), and SetValueCells().
bool ScDocFunc::Protect | ( | SCTAB | nTab, |
const OUString & | rPassword | ||
) |
Definition at line 4010 of file docfunc.cxx.
References ScDocShell::GetDocument(), ScDocument::GetTabProtection(), ProtectDocument(), ProtectSheet(), rDocShell, ScDocProtection::setPassword(), ScDocProtection::setProtected(), and TABLEID_DOC.
Referenced by ScTableSheetObj::protect(), ScModelObj::protect(), and ScViewFunc::ProtectDoc().
|
private |
Definition at line 3981 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::GetDocProtection(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScDocProtection::isProtected(), ScDocument::IsUndoEnabled(), p, ScDocShell::PostPaintGridAll(), rDocShell, ScDocument::SetDocProtection(), and ScDocShellModificator::SetDocumentModified().
Referenced by Protect(), and Unprotect().
void ScDocFunc::ProtectSheet | ( | SCTAB | nTab, |
const ScTableProtection & | rProtect | ||
) |
Definition at line 3949 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::GetDocument(), SfxViewFrame::GetFirst(), SfxViewFrame::GetNext(), ScDocument::GetTabProtection(), ScDocShell::GetUndoManager(), ScTableProtection::isProtected(), ScDocument::IsUndoEnabled(), p, ScDocShell::PostPaintGridAll(), rDocShell, ScDocShellModificator::SetDocumentModified(), and ScDocument::SetTabProtection().
Referenced by Protect(), ScViewFunc::ProtectSheet(), and Unprotect().
void ScDocFunc::PutData | ( | const ScAddress & | rPos, |
ScEditEngineDefaulter & | rEngine, | ||
bool | bApi | ||
) |
Definition at line 1160 of file docfunc.cxx.
References ApplyAttributes(), ATTR_HOR_JUSTIFY(), SfxItemSet::ClearItem(), ScAddress::Col(), SfxItemSet::Count(), EditEngine::CreateTextObject(), ScPatternAttr::DeleteUnchanged(), ScEditAttrTester::GetAttribs(), ScDocShell::GetDocument(), ScPatternAttr::GetFromEditItemSet(), ScPatternAttr::GetItemSet(), EditEngine::GetParaAttribs(), EditEngine::GetParagraphCount(), ScDocument::GetPattern(), ScDocument::GetPool(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), ScDocument::GetSheetLimits(), EditEngine::GetText(), i, ScDocument::IsImportingXML(), nCount, ScEditAttrTester::NeedsCellAttr(), ScEditAttrTester::NeedsObject(), rDocShell, ScAddress::Row(), ScMarkData::SelectTable(), SetEditCell(), ScMarkData::SetMarkArea(), SetNormalString(), EditEngine::SetParaAttribs(), SetStringCell(), EditEngine::SetUpdateLayout(), and ScAddress::Tab().
Referenced by ScCellTextData::UpdateData().
bool ScDocFunc::RemovePageBreak | ( | bool | bColumn, |
const ScAddress & | rPos, | ||
bool | bRecord, | ||
bool | bSetModified | ||
) |
Definition at line 3886 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScAddress::Col(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), Grid, ScDocument::HasColBreak(), ScDocument::HasRowBreak(), SfxBindings::Invalidate(), ScDocument::IsUndoEnabled(), Manual, ScDocument::MaxCol(), ScDocument::MaxRow(), nPos, ScDocShell::PostPaint(), rDocShell, ScDocument::RemoveColBreak(), ScDocument::RemoveRowBreak(), ScAddress::Row(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetStreamValid(), ScAddress::Tab(), and ScDocument::UpdatePageBreaks().
Referenced by ScTableColumnObj::SetOnePropertyValue(), ScTableRowObj::SetOnePropertyValue(), ScTableColumnsObj::setPropertyValue(), and ScTableRowsObj::setPropertyValue().
bool ScDocFunc::RenameTable | ( | SCTAB | nTab, |
const OUString & | rName, | ||
bool | bRecord, | ||
bool | bApi | ||
) |
Definition at line 3500 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScDocument::GetName(), ScDocShell::GetUndoManager(), ScDocument::IsDocEditable(), ScDocument::IsUndoEnabled(), ScDocShell::PostPaintExtras(), rDocShell, ScDocument::RenameTab(), ScDocShellModificator::SetDocumentModified(), and SfxGetpApp().
Referenced by ScTableSheetsObj::copyByName(), and ScTableSheetObj::setName().
void ScDocFunc::ReplaceConditionalFormat | ( | sal_uLong | nOldIndex, |
std::unique_ptr< ScConditionalFormat > | pFormat, | ||
SCTAB | nTab, | ||
const ScRangeList & | rRanges | ||
) |
nOldIndex | If 0 don't delete an old format |
pFormat | if NULL only delete an old format |
Definition at line 5603 of file docfunc.cxx.
References ScDocument::AddCondFormat(), ScDocument::AddCondFormatData(), SfxUndoManager::AddUndoAction(), ScRange::aEnd, ALL, ScRange::aStart, ScAddress::Col(), ScRangeList::Combine(), ScDocument::CopyToDocument(), ScDocument::DeleteConditionalFormat(), ScRange::ExtendTo(), ScDocument::GetCondFormList(), ScDocShell::GetDocument(), ScConditionalFormatList::GetFormat(), ScConditionalFormat::GetKey(), ScConditionalFormat::GetRange(), ScDocShell::GetUndoManager(), Grid, ScDocument::IsTabProtected(), ScDocument::IsUndoEnabled(), nIndex, ScDocShell::PostPaint(), rDocShell, ScDocument::RemoveCondFormatData(), ScAddress::Row(), SC_PF_TESTMERGE, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), ScDocument::SetStreamValid(), and SfxGetpApp().
Referenced by ScCellShell::ExecuteEdit(), and ScCondFormatDlg::OkPressed().
void ScDocFunc::ReplaceNote | ( | const ScAddress & | rPos, |
const OUString & | rNoteText, | ||
const OUString * | pAuthor, | ||
const OUString * | pDate, | ||
bool | bApi | ||
) |
Definition at line 1342 of file docfunc.cxx.
References Add, SfxUndoManager::AddUndoAction(), ScDrawLayer::BeginCalcUndo(), ScAddress::Col(), ScNoteUtil::CreateNoteFromString(), ScDocShell::ErrorMessage(), ScDrawLayer::GetCalcUndo(), ScDocShell::GetDocument(), ScDocument::GetDrawLayer(), ScEditableTester::GetMessageId(), ScPostIt::GetNoteData(), ScDocShell::GetUndoManager(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), ScDocShell::LOKCommentNotify(), Modify, ScNoteData::mxCaption, ScDocShell::PostPaintCell(), rDocShell, ScDocument::ReleaseNote(), ScAddress::Row(), ScPostIt::SetAuthor(), ScPostIt::SetDate(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetStreamValid(), and ScAddress::Tab().
Referenced by ScAnnotationsObj::insertNew(), and ScViewFunc::ReplaceNote().
Definition at line 5472 of file docfunc.cxx.
References ScRange::aStart, ScAddress::Col(), CONTENTS, DeleteContents(), SfxUndoManager::EnterListAction(), EnterMatrix(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), ScDocument::GetFormula(), ScDocument::GetSheetLimits(), ScDocShell::GetUndoManager(), formula::FormulaGrammar::GRAM_API, ScDocument::IsUndoEnabled(), SfxUndoManager::LeaveListAction(), rDocShell, ScAddress::Row(), ScResId(), ScMarkData::SelectTable(), ScMarkData::SetMarkArea(), and ScAddress::Tab().
Referenced by ScGridWindow::MouseButtonUp().
bool ScDocFunc::SetCellText | ( | const ScAddress & | rPos, |
const OUString & | rText, | ||
bool | bInterpret, | ||
bool | bEnglish, | ||
bool | bApi, | ||
const formula::FormulaGrammar::Grammar | eGrammar | ||
) |
Definition at line 1240 of file docfunc.cxx.
References ScInputStringType::Formula, ScDocShell::GetDocument(), ScDocument::GetFormatTable(), LANGUAGE_ENGLISH_US, ScInputStringType::maText, ScInputStringType::meType, ScInputStringType::mfValue, ScInputStringType::Number, ScStringUtil::parseInputString(), rDocShell, SetFormulaCell(), SetNormalString(), SetStringOrEditCell(), SetValueCell(), and ScInputStringType::Text.
Referenced by ScCellObj::SetString_Impl().
void ScDocFunc::SetConditionalFormatList | ( | ScConditionalFormatList * | pList, |
SCTAB | nTab | ||
) |
Sets or replaces the conditional format list of a table.
pList | the new ScConditionalFormatList, method takes ownership |
nTab | the tab to which the conditional format list belongs |
Definition at line 5679 of file docfunc.cxx.
References ScConditionalFormatList::AddToDocument(), SfxUndoManager::AddUndoAction(), ScDocument::GetCondFormList(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScDocument::IsTabProtected(), ScDocument::IsUndoEnabled(), ScDocShell::PostPaintGridAll(), rDocShell, ScConditionalFormatList::RemoveFromDocument(), SCDOCMODE_UNDO, ScDocument::SetCondFormList(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetStreamValid(), and SfxGetpApp().
bool ScDocFunc::SetEditCell | ( | const ScAddress & | rPos, |
const EditTextObject & | rStr, | ||
bool | bInteraction | ||
) |
Definition at line 973 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScCellValue::assign(), EditTextObject::Clone(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScDocument::HasAttrib(), ScDocument::IsUndoEnabled(), NeedHeight, NotifyInputHandler(), ScDocShell::PostPaintCell(), rDocShell, ScDocShellModificator::SetDocumentModified(), and ScDocument::SetEditText().
Referenced by ScViewFunc::EnterData(), PutData(), SetStringOrEditCell(), and AddressWalkerWriter::writeBoldString().
bool ScDocFunc::SetFormulaCell | ( | const ScAddress & | rPos, |
ScFormulaCell * | pCell, | ||
bool | bInteraction | ||
) |
Below two methods take ownership of the formula cell instance(s).
The caller must not delete it after passing it to this call.
Definition at line 1023 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScCellValue::assign(), ScDocument::GetAutoCalc(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScDocument::HasAttrib(), ScFormulaCell::Interpret(), ScDocument::IsUndoEnabled(), NeedHeight, NotifyInputHandler(), ScDocShell::PostPaintCell(), ScDocument::PutInFormulaTree(), rDocShell, ScFormulaCell::SetDirtyVar(), ScDocShellModificator::SetDocumentModified(), and ScDocument::SetFormulaCell().
Referenced by ScViewFunc::EnterData(), ScCellObj::InputEnglishString(), SetCellText(), ScCellObj::setFormulaString(), ScCellObj::setTokens(), and AddressWalkerWriter::writeFormula().
bool ScDocFunc::SetFormulaCells | ( | const ScAddress & | rPos, |
std::vector< ScFormulaCell * > & | rCells, | ||
bool | bInteraction | ||
) |
Definition at line 1072 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScDocument::GetAutoCalc(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), Grid, ScAddress::IncRow(), ScDocument::IsUndoEnabled(), o3tl::make_unsigned(), ScDocument::MaxRow(), nLength, NotifyInputHandler(), ScDocShell::PostPaint(), ScDocument::PutInFormulaTree(), rDocShell, ScAddress::Row(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetFormulaCells(), and ScDocument::TransferCellValuesTo().
Referenced by AddressWalkerWriter::writeFormulas().
bool ScDocFunc::SetLayoutRTL | ( | SCTAB | nTab, |
bool | bRTL | ||
) |
protection (sheet or document?)
Definition at line 3469 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), All, ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScDocShell::GetViewBindings(), SfxBindings::Invalidate(), ScDocument::IsLayoutRTL(), ScDocument::IsUndoEnabled(), ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, MirrorRTLMode, ScDocShell::PostPaint(), rDocShell, ScDocShellModificator::SetDocumentModified(), and ScDocument::SetLayoutRTL().
Referenced by ScTabViewShell::ExecuteTable(), and ScTableSheetObj::SetOnePropertyValue().
void ScDocFunc::SetNewRangeNames | ( | std::unique_ptr< ScRangeName > | pNewRanges, |
bool | bModifyDoc, | ||
SCTAB | nTab | ||
) |
Definition at line 5142 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocument::CompileHybridFormula(), ScDocShell::GetDocument(), ScDocument::GetNamedRangesLockCount(), ScDocument::GetRangeName(), ScDocShell::GetUndoManager(), ScDocument::IsImportingXML(), ScDocument::IsUndoEnabled(), ScDocument::PreprocessRangeNameUpdate(), rDocShell, ScDocShellModificator::SetDocumentModified(), ScDocument::SetRangeName(), and SfxGetpApp().
Referenced by ScNamedRangesObj::addNewByName(), ScNamedRangeObj::Modify_Impl(), ModifyRangeNames(), and ScNamedRangesObj::removeByName().
bool ScDocFunc::SetNormalString | ( | bool & | o_rbNumFmtSet, |
const ScAddress & | rPos, | ||
const OUString & | rText, | ||
bool | bApi | ||
) |
Definition at line 799 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScCellValue::assign(), ATTR_VALIDDATA(), ATTR_VALUE_FORMAT(), CELLTYPE_EDIT, ScAddress::Col(), ScDetectiveFunc::DeleteCirclesAt(), ScDocShell::ErrorMessage(), ScDocument::GetAttr(), ScDocument::GetCellType(), ScDocShell::GetDocument(), SfxItemSet::GetItemIfSet(), ScPatternAttr::GetItemSet(), ScEditableTester::GetMessageId(), ScDocument::GetPattern(), ScDocShell::GetUndoManager(), ScDocument::GetValidationEntry(), CntUInt32Item::GetValue(), ScDocument::HasAttrib(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), ScUndoEnterData::Value::maCell, ScUndoEnterData::Value::mbHasFormat, ScUndoEnterData::Value::mnFormat, ScUndoEnterData::Value::mnTab, NeedHeight, NotifyInputHandler(), pData, ScDocShell::PostPaintCell(), rDocShell, ScAddress::Row(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetString(), and ScAddress::Tab().
Referenced by ScViewFunc::EnterData(), PutData(), and SetCellText().
void ScDocFunc::SetNoteText | ( | const ScAddress & | rPos, |
const OUString & | rNoteText, | ||
bool | bApi | ||
) |
is this necessary ???
Undo !!!
Definition at line 1316 of file docfunc.cxx.
References ScAddress::Col(), convertLineEnd(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), ScDocument::GetNote(), ScDocument::GetOrCreateNote(), GetSystemLineEnd(), ScEditableTester::IsEditable(), ScDocShell::PostPaintCell(), rDocShell, ScAddress::Row(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetStreamValid(), and ScAddress::Tab().
Referenced by ScViewFunc::SetNoteText().
bool ScDocFunc::SetStringCell | ( | const ScAddress & | rPos, |
const OUString & | rStr, | ||
bool | bInteraction | ||
) |
Definition at line 936 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScCellValue::assign(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScDocument::HasAttrib(), ScDocument::IsUndoEnabled(), NeedHeight, NotifyInputHandler(), ScDocShell::PostPaintCell(), rDocShell, ScDocShellModificator::SetDocumentModified(), ScDocument::SetString(), and ScSetStringParam::setTextInput().
Referenced by ScViewFunc::EnterData(), PutData(), SetStringOrEditCell(), and AddressWalkerWriter::writeString().
bool ScDocFunc::SetStringOrEditCell | ( | const ScAddress & | rPos, |
const OUString & | rStr, | ||
bool | bInteraction | ||
) |
Definition at line 1008 of file docfunc.cxx.
References EditEngine::CreateTextObject(), ScDocShell::GetDocument(), ScDocument::GetEditEngine(), ScStringUtil::isMultiline(), rDocShell, SetEditCell(), SetStringCell(), and ScEditEngineDefaulter::SetTextCurrentDefaults().
Referenced by ScCellObj::InputEnglishString(), and SetCellText().
Definition at line 3534 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScDocument::GetTabBgColor(), ScDocShell::GetUndoManager(), ScDocument::IsDocEditable(), ScDocument::IsTabProtected(), ScDocument::IsUndoEnabled(), ScDocShell::PostPaintExtras(), rDocShell, ScDocShellModificator::SetDocumentModified(), ScDocument::SetTabBgColor(), and SfxGetpApp().
Referenced by ScTableSheetObj::SetOnePropertyValue(), and ScViewFunc::SetTabBgColor().
bool ScDocFunc::SetTabBgColor | ( | ScUndoTabColorInfo::List & | rUndoTabColorList, |
bool | bApi | ||
) |
Definition at line 3570 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScDocument::GetTabBgColor(), ScDocShell::GetUndoManager(), i, ScDocument::IsDocEditable(), ScDocument::IsTabProtected(), ScDocument::IsUndoEnabled(), ScUndoTabColorInfo::maNewTabBgColor, ScUndoTabColorInfo::maOldTabBgColor, ScUndoTabColorInfo::mnTabId, ScDocShell::PostPaintExtras(), rDocShell, ScDocShellModificator::SetDocumentModified(), and ScDocument::SetTabBgColor().
void ScDocFunc::SetTableVisible | ( | SCTAB | nTab, |
bool | bVisible, | ||
bool | bApi | ||
) |
separate error message?
Definition at line 3419 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), bVisible, ScDocShell::ErrorMessage(), Extras, ScDocShell::GetDocument(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), i, ScDocument::IsDocEditable(), ScDocument::IsImportingXML(), ScDocument::IsUndoEnabled(), ScDocument::IsVisible(), ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, nCount, ScDocShell::PostPaint(), rDocShell, SC_TAB_HIDDEN, ScDocShellModificator::SetDocumentModified(), ScDocument::SetVisible(), and SfxGetpApp().
Referenced by ScTableSheetObj::SetOnePropertyValue().
bool ScDocFunc::SetValueCell | ( | const ScAddress & | rPos, |
double | fVal, | ||
bool | bInteraction | ||
) |
Definition at line 867 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScCellValue::assign(), ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), ScDocument::HasAttrib(), ScDocument::IsUndoEnabled(), NeedHeight, NotifyInputHandler(), ScDocShell::PostPaintCell(), rDocShell, ScDocShellModificator::SetDocumentModified(), and ScDocument::SetValue().
Referenced by ScOptSolverDlg::CallSolver(), ScCellObj::InputEnglishString(), ScViewFunc::InsertCurrentTime(), ScSamplingDialog::PerformPeriodicSampling(), ScSamplingDialog::PerformRandomSampling(), ScSamplingDialog::PerformRandomSamplingKeepOrder(), SetCellText(), ScAccessibleCellBase::setCurrentValue(), ScCellObj::SetValue_Impl(), and AddressWalkerWriter::writeValue().
void ScDocFunc::SetValueCells | ( | const ScAddress & | rPos, |
const std::vector< double > & | aVals, | ||
bool | bInteraction | ||
) |
Definition at line 902 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ScDocShell::GetDocument(), ScDocShell::GetUndoManager(), Grid, ScDocument::IsUndoEnabled(), ScDocument::MaxRow(), NotifyInputHandler(), ScDocShell::PostPaint(), rDocShell, ScAddress::Row(), ScDocShellModificator::SetDocumentModified(), ScAddress::SetRow(), ScDocument::SetValues(), and ScDocument::TransferCellValuesTo().
Referenced by ScRandomNumberGeneratorDialog::GenerateNumbers().
bool ScDocFunc::SetWidthOrHeight | ( | bool | bWidth, |
const std::vector< sc::ColRowSpan > & | rRanges, | ||
SCTAB | nTab, | ||
ScSizeMode | eMode, | ||
sal_uInt16 | nSizeTwips, | ||
bool | bRecord, | ||
bool | bApi | ||
) |
separate error message?
Option "Show formulas" - but where to get them from?
Definition at line 3652 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), All, ScDocument::BeginDrawUndo(), ScDocument::ColHidden(), ScDocument::CopyToDocument(), eMode, ScDocShell::ErrorMessage(), ScDocShell::GetBestViewShell(), ScSizeDeviceProvider::GetDevice(), ScDocShell::GetDocument(), ScDocument::GetOutlineTable(), ScSizeDeviceProvider::GetPPTX(), ScSizeDeviceProvider::GetPPTY(), ScDocument::GetRowFlags(), ScDocument::GetSheetLimits(), ScDocShell::GetUndoManager(), ScDocument::IsChangeReadOnlyEnabled(), ScDocShell::IsEditable(), ScDocument::IsUndoEnabled(), lcl_GetOptimalColWidth(), ManualSize, ScDocument::MaxCol(), ScDocument::MaxRow(), NONE, ScViewFunc::OnLOKSetWidthOrHeight(), ScDocShell::PostPaint(), rDocShell, ScDocument::RowHidden(), SC_SIZE_DIRECT, SC_SIZE_OPTIMAL, SC_SIZE_ORIGINAL, SC_SIZE_SHOW, SC_SIZE_VISOPT, SCDOCMODE_UNDO, ScMarkData::SelectOneTable(), ScDocument::SetColWidth(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetDrawPageSize(), sc::RowHeightContext::setForceAutoSize(), ScDocument::SetManualHeight(), ScDocument::SetOptimalHeight(), ScDocument::SetRowFlags(), ScDocument::SetRowHeightRange(), ScDocument::ShowCol(), ScDocument::ShowRows(), ScDocument::UpdateOutlineCol(), ScDocument::UpdateOutlineRow(), and ScDocument::UpdatePageBreaks().
Referenced by AutoFormat(), ScPreview::MouseButtonUp(), ScVbaRange::setColumnWidth(), ScTableColumnObj::SetOnePropertyValue(), ScTableRowObj::SetOnePropertyValue(), ScTableColumnsObj::setPropertyValue(), ScTableRowsObj::setPropertyValue(), and ScVbaRange::setRowHeight().
bool ScDocFunc::ShowNote | ( | const ScAddress & | rPos, |
bool | bShow | ||
) |
Definition at line 1288 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScPostIt::GetCaption(), ScDocShell::GetDocument(), ScDocument::GetNote(), ScDocShell::GetUndoManager(), ScDocShell::GetViewData(), comphelper::LibreOfficeKit::isActive(), ScPostIt::IsCaptionShown(), comphelper::LibreOfficeKit::isTiledAnnotations(), ScDocument::IsUndoEnabled(), ScTabView::OnLOKNoteStateChanged(), rDocShell, ScDocShell::SetDocumentModified(), ScDocument::SetStreamValid(), ScPostIt::ShowCaption(), and ScAddress::Tab().
Referenced by ScCellShell::ExecuteEdit(), oox::xls::Comment::finalizeImport(), ScAnnotationObj::setIsVisible(), and ScViewFunc::ShowNote().
bool ScDocFunc::TabOp | ( | const ScRange & | rRange, |
const ScMarkData * | pTabMark, | ||
const ScTabOpParam & | rParam, | ||
bool | bRecord, | ||
bool | bApi | ||
) |
take selected sheets into account also when undoing
Definition at line 4405 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScRange::aEnd, ALL, ScTabOpParam::aRefColCell, ScTabOpParam::aRefFormulaCell, ScTabOpParam::aRefFormulaEnd, ScTabOpParam::aRefRowCell, ScRange::aStart, ScAddress::Col(), ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), ScDocument::GetSheetLimits(), ScDocShell::GetUndoManager(), ScDocument::InsertTableOp(), ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), ScTabOpParam::meMode, NOTE, ScDocShell::PostPaintGridAll(), rDocShell, ScAddress::Row(), SCDOCMODE_UNDO, ScMarkData::SelectTable(), ScDocument::SetDirty(), ScDocShellModificator::SetDocumentModified(), and ScAddress::Tab().
Referenced by ScCellRangeObj::setTableOperation(), and ScViewFunc::TabOp().
bool ScDocFunc::TransliterateText | ( | const ScMarkData & | rMark, |
TransliterationFlags | nType, | ||
bool | bApi | ||
) |
Definition at line 741 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ScRange::aStart, CONTENTS, ScDocument::CopyToDocument(), ScDocShell::ErrorMessage(), ScDocShell::GetDocument(), ScEditableTester::GetMessageId(), ScMarkData::GetMultiMarkArea(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), Grid, ScEditableTester::IsEditable(), ScDocument::IsUndoEnabled(), ScMarkData::MarkToMulti(), nType, ScDocShell::PostPaint(), rDocShell, SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), ScMarkData::SetMarking(), ScAddress::SetTab(), ScAddress::Tab(), and ScDocument::TransliterateText().
bool ScDocFunc::UngroupSparklines | ( | ScRange const & | rRange | ) |
Definition at line 5904 of file docfunc.cxx.
References SfxUndoManager::AddUndoAction(), ScDocShell::GetUndoManager(), and rDocShell.
Referenced by ScCellShell::ExecuteEdit().
bool ScDocFunc::UnmergeCells | ( | const ScCellMergeOption & | rOption, |
bool | bRecord, | ||
ScUndoRemoveMerge * | pUndoRemoveMerge | ||
) |
Definition at line 5060 of file docfunc.cxx.
References ScUndoRemoveMerge::AddCellMergeOption(), SfxUndoManager::AddUndoAction(), AdjustRowHeight(), ScRange::aEnd, ScDocument::ApplyPatternAreaTab(), ScRange::aStart, ATTR_MERGE(), ATTRIB, Circles, ScAddress::Col(), ScDocument::CopyToDocument(), ScDetectiveFunc::DeleteAll(), DetectiveMarkInvalid(), ScDocument::ExtendMerge(), ScDocument::ExtendOverlapped(), SfxItemPool::GetDefaultItem(), ScDocShell::GetDocument(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), ScCellMergeOption::getSingleRange(), ScUndoRemoveMerge::GetUndoDoc(), ScDocShell::GetUndoManager(), Grid, ScDocument::HasAttrib(), Hor, ScDocument::InitUndo(), ScDocument::IsUndoEnabled(), ScCellMergeOption::maTabs, Merged, ScDocShell::PostPaint(), SfxItemSet::Put(), rDocShell, ScDocument::RemoveFlagsTab(), ScAddress::Row(), SCDOCMODE_UNDO, ScDocShellModificator::SetDocumentModified(), and Ver.
bool ScDocFunc::UnmergeCells | ( | const ScRange & | rRange, |
bool | bRecord, | ||
ScUndoRemoveMerge * | pUndoRemoveMerge | ||
) |
Definition at line 5050 of file docfunc.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), i, ScCellMergeOption::maTabs, ScAddress::Row(), ScAddress::Tab(), and UnmergeCells().
Referenced by DeleteCells(), InsertCells(), ScCellRangeObj::merge(), MoveBlock(), ScViewFunc::PasteFromClip(), ScUndoDragDrop::Redo(), ScViewFunc::RemoveMerge(), and UnmergeCells().
bool ScDocFunc::Unprotect | ( | SCTAB | nTab, |
const OUString & | rPassword, | ||
bool | bApi | ||
) |
Definition at line 4034 of file docfunc.cxx.
References Application::CreateMessageDialog(), ScDocShell::GetActiveDialogParent(), ScDocument::GetDocProtection(), ScDocShell::GetDocument(), ScDocument::GetTabProtection(), ScDocProtection::isProtected(), ScTableProtection::isProtected(), ProtectDocument(), ProtectSheet(), rDocShell, ScResId(), ScDocProtection::setProtected(), ScTableProtection::setProtected(), TABLEID_DOC, ScDocProtection::verifyPassword(), and ScTableProtection::verifyPassword().
Referenced by ScTableSheetObj::unprotect(), ScModelObj::unprotect(), and ScViewFunc::Unprotect().
|
private |
Definition at line 64 of file docfunc.hxx.
Referenced by AdjustRowHeight(), ApplyAttributes(), ApplyStyle(), AutoFormat(), ChangeIndent(), ChangeSparkline(), ChangeSparklineGroupAttributes(), ClearItems(), ConvertFormulaToValue(), CreateNames(), CreateOneName(), DeleteCell(), DeleteCells(), DeleteContents(), DeleteSparkline(), DeleteSparklineGroup(), DeleteTable(), DetectiveAddError(), DetectiveAddPred(), DetectiveAddSucc(), DetectiveCollectAllPreds(), DetectiveCollectAllSuccs(), DetectiveDelAll(), DetectiveDelPred(), DetectiveDelSucc(), DetectiveMarkInvalid(), DetectiveRefresh(), EndListAction(), EnterListAction(), EnterMatrix(), FillAuto(), FillSeries(), FillSimple(), GroupSparklines(), ImportNote(), InsertAreaLink(), InsertCells(), InsertNameList(), InsertPageBreak(), InsertSparklines(), InsertTable(), MergeCells(), ModifyAllRangeNames(), MoveBlock(), NotifyDrawUndo(), NotifyInputHandler(), Protect(), ProtectDocument(), ProtectSheet(), PutData(), RemovePageBreak(), RenameTable(), ReplaceConditionalFormat(), ReplaceNote(), ResizeMatrix(), SetCellText(), SetConditionalFormatList(), SetEditCell(), SetFormulaCell(), SetFormulaCells(), SetLayoutRTL(), SetNewRangeNames(), SetNormalString(), SetNoteText(), SetStringCell(), SetStringOrEditCell(), SetTabBgColor(), SetTableVisible(), SetValueCell(), SetValueCells(), SetWidthOrHeight(), ShowNote(), TabOp(), TransliterateText(), UngroupSparklines(), UnmergeCells(), and Unprotect().