LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ScDocFunc Class Reference

#include <docfunc.hxx>

Inheritance diagram for ScDocFunc:
[legend]
Collaboration diagram for ScDocFunc:
[legend]

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 ScPostItImportNote (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

ScDocShellrDocShell
 

Detailed Description

Definition at line 62 of file docfunc.hxx.

Constructor & Destructor Documentation

◆ ScDocFunc()

ScDocFunc::ScDocFunc ( ScDocShell rDocSh)
inlineprotected

Definition at line 74 of file docfunc.hxx.

◆ ~ScDocFunc()

virtual ScDocFunc::~ScDocFunc ( )
inlinevirtual

Definition at line 76 of file docfunc.hxx.

Member Function Documentation

◆ AdjustRowHeight()

bool ScDocFunc::AdjustRowHeight ( const ScRange rRange,
bool  bPaint,
bool  bApi 
)
protected

◆ ApplyAttributes()

bool ScDocFunc::ApplyAttributes ( const ScMarkData rMark,
const ScPatternAttr rPattern,
bool  bApi 
)

◆ ApplyStyle()

bool ScDocFunc::ApplyStyle ( const ScMarkData rMark,
const OUString &  rStyleName,
bool  bApi 
)

◆ AutoFormat()

bool ScDocFunc::AutoFormat ( const ScRange rRange,
const ScMarkData pTabMark,
sal_uInt16  nFormatNo,
bool  bApi 
)

◆ ChangeIndent()

bool ScDocFunc::ChangeIndent ( const ScMarkData rMark,
bool  bIncrement,
bool  bApi 
)

◆ ChangeSparkline()

bool ScDocFunc::ChangeSparkline ( std::shared_ptr< sc::Sparkline > const &  rpSparkline,
SCTAB  nTab,
ScRangeList const &  rDataRange 
)

◆ ChangeSparklineGroupAttributes()

bool ScDocFunc::ChangeSparklineGroupAttributes ( std::shared_ptr< sc::SparklineGroup > const &  pExistingSparklineGroup,
sc::SparklineAttributes const &  rNewAttributes 
)

◆ ClearItems()

void ScDocFunc::ClearItems ( const ScMarkData rMark,
const sal_uInt16 *  pWhich,
bool  bApi 
)

◆ ConvertFormulaToValue()

void ScDocFunc::ConvertFormulaToValue ( const ScRange rRange,
bool  bInteraction 
)

◆ CreateNames()

bool ScDocFunc::CreateNames ( const ScRange rRange,
CreateNameFlags  nFlags,
bool  bApi,
SCTAB  nTab = -1 
)

◆ CreateOneName()

void ScDocFunc::CreateOneName ( ScRangeName rList,
SCCOL  nPosX,
SCROW  nPosY,
SCTAB  nTab,
SCCOL  nX1,
SCROW  nY1,
SCCOL  nX2,
SCROW  nY2,
bool &  rCancel,
bool  bApi 
)
protected

◆ DeleteCell()

bool ScDocFunc::DeleteCell ( const ScAddress rPos,
const ScMarkData rMark,
InsertDeleteFlags  nFlags,
bool  bRecord,
bool  bApi 
)

◆ DeleteCells()

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().

◆ DeleteContents()

bool ScDocFunc::DeleteContents ( const ScMarkData rMark,
InsertDeleteFlags  nFlags,
bool  bRecord,
bool  bApi 
)

◆ DeleteSparkline()

bool ScDocFunc::DeleteSparkline ( ScAddress const &  rAddress)

◆ DeleteSparklineGroup()

bool ScDocFunc::DeleteSparklineGroup ( std::shared_ptr< sc::SparklineGroup > const &  pSparklineGroup,
SCTAB  nTab 
)

◆ DeleteTable()

bool ScDocFunc::DeleteTable ( SCTAB  nTab,
bool  bRecord 
)

◆ DetectiveAddError()

bool ScDocFunc::DetectiveAddError ( const ScAddress rPos)

◆ DetectiveAddPred()

bool ScDocFunc::DetectiveAddPred ( const ScAddress rPos)

◆ DetectiveAddSucc()

bool ScDocFunc::DetectiveAddSucc ( const ScAddress rPos)

◆ DetectiveCollectAllPreds()

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().

◆ DetectiveCollectAllSuccs()

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().

◆ DetectiveDelAll()

bool ScDocFunc::DetectiveDelAll ( SCTAB  nTab)

◆ DetectiveDelPred()

bool ScDocFunc::DetectiveDelPred ( const ScAddress rPos)

◆ DetectiveDelSucc()

bool ScDocFunc::DetectiveDelSucc ( const ScAddress rPos)

◆ DetectiveMarkInvalid()

bool ScDocFunc::DetectiveMarkInvalid ( SCTAB  nTab)

◆ DetectiveRefresh()

bool ScDocFunc::DetectiveRefresh ( bool  bAutomatic = false)

◆ EndListAction()

void ScDocFunc::EndListAction ( )

◆ EnterListAction()

void ScDocFunc::EnterListAction ( TranslateId  pNameResId)

◆ EnterMatrix()

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 
)

◆ FillAuto() [1/2]

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 
)

◆ FillAuto() [2/2]

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.

◆ FillSeries()

bool ScDocFunc::FillSeries ( const ScRange rRange,
const ScMarkData pTabMark,
FillDir  eDir,
FillCmd  eCmd,
FillDateCmd  eDateCmd,
double  fStart,
double  fStep,
double  fMax,
bool  bApi 
)

◆ FillSimple()

bool ScDocFunc::FillSimple ( const ScRange rRange,
const ScMarkData pTabMark,
FillDir  eDir,
bool  bApi 
)

◆ GroupSparklines()

bool ScDocFunc::GroupSparklines ( ScRange const &  rRange,
std::shared_ptr< sc::SparklineGroup > const &  rpGroup 
)

◆ ImportNote()

ScPostIt * ScDocFunc::ImportNote ( const ScAddress rPos,
const OUString &  rNoteText 
)

◆ InsertAreaLink()

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 
)

◆ InsertCells()

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().

◆ InsertNameList()

bool ScDocFunc::InsertNameList ( const ScAddress rStartPos,
bool  bApi 
)

◆ InsertPageBreak()

bool ScDocFunc::InsertPageBreak ( bool  bColumn,
const ScAddress rPos,
bool  bRecord,
bool  bSetModified 
)

◆ InsertSparklines()

bool ScDocFunc::InsertSparklines ( ScRange const &  rDataRange,
ScRange const &  rSparklineRange,
std::shared_ptr< sc::SparklineGroup pSparklineGroup 
)

◆ InsertTable()

bool ScDocFunc::InsertTable ( SCTAB  nTab,
const OUString &  rName,
bool  bRecord,
bool  bApi 
)

◆ MergeCells()

bool ScDocFunc::MergeCells ( const ScCellMergeOption rOption,
bool  bContents,
bool  bRecord,
bool  bApi,
bool  bEmptyMergedCells = false 
)

◆ ModifyAllRangeNames()

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().

◆ ModifyRangeNames()

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().

◆ MoveBlock()

bool ScDocFunc::MoveBlock ( const ScRange rSource,
const ScAddress rDestPos,
bool  bCut,
bool  bRecord,
bool  bPaint,
bool  bApi 
)

◆ NotifyDrawUndo()

void ScDocFunc::NotifyDrawUndo ( std::unique_ptr< SdrUndoAction pUndoAction)

◆ NotifyInputHandler()

void ScDocFunc::NotifyInputHandler ( const ScAddress rPos)
protected

◆ Protect()

bool ScDocFunc::Protect ( SCTAB  nTab,
const OUString &  rPassword 
)

◆ ProtectDocument()

void ScDocFunc::ProtectDocument ( const ScDocProtection rProtect)
private

◆ ProtectSheet()

void ScDocFunc::ProtectSheet ( SCTAB  nTab,
const ScTableProtection rProtect 
)

◆ PutData()

void ScDocFunc::PutData ( const ScAddress rPos,
ScEditEngineDefaulter rEngine,
bool  bApi 
)

◆ RemovePageBreak()

bool ScDocFunc::RemovePageBreak ( bool  bColumn,
const ScAddress rPos,
bool  bRecord,
bool  bSetModified 
)

◆ RenameTable()

bool ScDocFunc::RenameTable ( SCTAB  nTab,
const OUString &  rName,
bool  bRecord,
bool  bApi 
)

◆ ReplaceConditionalFormat()

void ScDocFunc::ReplaceConditionalFormat ( sal_uLong  nOldIndex,
std::unique_ptr< ScConditionalFormat pFormat,
SCTAB  nTab,
const ScRangeList rRanges 
)

◆ ReplaceNote()

void ScDocFunc::ReplaceNote ( const ScAddress rPos,
const OUString &  rNoteText,
const OUString *  pAuthor,
const OUString *  pDate,
bool  bApi 
)

◆ ResizeMatrix()

void ScDocFunc::ResizeMatrix ( const ScRange rOldRange,
const ScAddress rNewEnd 
)

◆ SetCellText()

bool ScDocFunc::SetCellText ( const ScAddress rPos,
const OUString &  rText,
bool  bInterpret,
bool  bEnglish,
bool  bApi,
const formula::FormulaGrammar::Grammar  eGrammar 
)

◆ SetConditionalFormatList()

void ScDocFunc::SetConditionalFormatList ( ScConditionalFormatList pList,
SCTAB  nTab 
)

◆ SetEditCell()

bool ScDocFunc::SetEditCell ( const ScAddress rPos,
const EditTextObject rStr,
bool  bInteraction 
)

◆ SetFormulaCell()

bool ScDocFunc::SetFormulaCell ( const ScAddress rPos,
ScFormulaCell pCell,
bool  bInteraction 
)

◆ SetFormulaCells()

bool ScDocFunc::SetFormulaCells ( const ScAddress rPos,
std::vector< ScFormulaCell * > &  rCells,
bool  bInteraction 
)

◆ SetLayoutRTL()

bool ScDocFunc::SetLayoutRTL ( SCTAB  nTab,
bool  bRTL 
)

◆ SetNewRangeNames()

void ScDocFunc::SetNewRangeNames ( std::unique_ptr< ScRangeName pNewRanges,
bool  bModifyDoc,
SCTAB  nTab 
)

◆ SetNormalString()

bool ScDocFunc::SetNormalString ( bool &  o_rbNumFmtSet,
const ScAddress rPos,
const OUString &  rText,
bool  bApi 
)

◆ SetNoteText()

void ScDocFunc::SetNoteText ( const ScAddress rPos,
const OUString &  rNoteText,
bool  bApi 
)

◆ SetStringCell()

bool ScDocFunc::SetStringCell ( const ScAddress rPos,
const OUString &  rStr,
bool  bInteraction 
)

◆ SetStringOrEditCell()

bool ScDocFunc::SetStringOrEditCell ( const ScAddress rPos,
const OUString &  rStr,
bool  bInteraction 
)

◆ SetTabBgColor() [1/2]

bool ScDocFunc::SetTabBgColor ( SCTAB  nTab,
const Color rColor,
bool  bRecord,
bool  bApi 
)

◆ SetTabBgColor() [2/2]

bool ScDocFunc::SetTabBgColor ( ScUndoTabColorInfo::List rUndoTabColorList,
bool  bApi 
)

◆ SetTableVisible()

void ScDocFunc::SetTableVisible ( SCTAB  nTab,
bool  bVisible,
bool  bApi 
)

◆ SetValueCell()

bool ScDocFunc::SetValueCell ( const ScAddress rPos,
double  fVal,
bool  bInteraction 
)

◆ SetValueCells()

void ScDocFunc::SetValueCells ( const ScAddress rPos,
const std::vector< double > &  aVals,
bool  bInteraction 
)

◆ SetWidthOrHeight()

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().

◆ ShowNote()

bool ScDocFunc::ShowNote ( const ScAddress rPos,
bool  bShow 
)

◆ TabOp()

bool ScDocFunc::TabOp ( const ScRange rRange,
const ScMarkData pTabMark,
const ScTabOpParam rParam,
bool  bRecord,
bool  bApi 
)

◆ TransliterateText()

bool ScDocFunc::TransliterateText ( const ScMarkData rMark,
TransliterationFlags  nType,
bool  bApi 
)

◆ UngroupSparklines()

bool ScDocFunc::UngroupSparklines ( ScRange const &  rRange)

◆ UnmergeCells() [1/2]

bool ScDocFunc::UnmergeCells ( const ScCellMergeOption rOption,
bool  bRecord,
ScUndoRemoveMerge pUndoRemoveMerge 
)

◆ UnmergeCells() [2/2]

bool ScDocFunc::UnmergeCells ( const ScRange rRange,
bool  bRecord,
ScUndoRemoveMerge pUndoRemoveMerge 
)

◆ Unprotect()

bool ScDocFunc::Unprotect ( SCTAB  nTab,
const OUString &  rPassword,
bool  bApi 
)

Member Data Documentation

◆ rDocShell

ScDocShell& ScDocFunc::rDocShell
private

The documentation for this class was generated from the following files: