LibreOffice Module sc (master)
1
|
#include <document.hxx>
Classes | |
class | NumFmtMergeHandler |
Use this class as a locale variable to merge number formatter from another document, and set NULL pointer to pFormatExchangeList when done. More... | |
Public Types | |
enum | HardRecalcState { HardRecalcState::OFF, HardRecalcState::TEMPORARY, HardRecalcState::ETERNAL } |
Public Member Functions | |
bool | IsCellInChangeTrack (const ScAddress &cell, Color *pColCellBorder) |
void | GetCellChangeTrackNote (const ScAddress &cell, OUString &strTrackText, bool &pbLeftEdge) |
bool | IsEmbedFonts () const |
bool | IsEmbedUsedFontsOnly () const |
bool | IsEmbedFontScriptLatin () const |
bool | IsEmbedFontScriptAsian () const |
bool | IsEmbedFontScriptComplex () const |
void | SetEmbedFonts (bool bUse) |
void | SetEmbedUsedFontsOnly (bool bUse) |
void | SetEmbedFontScriptLatin (bool bUse) |
void | SetEmbedFontScriptAsian (bool bUse) |
void | SetEmbedFontScriptComplex (bool bUse) |
SC_DLLPUBLIC sal_uLong | GetCellCount () const |
SC_DLLPUBLIC sal_uLong | GetFormulaGroupCount () const |
sal_uLong | GetCodeCount () const |
DECL_LINK (GetUserDefinedColor, sal_uInt16, Color *) | |
SC_DLLPUBLIC | ScDocument (ScDocumentMode eMode=SCDOCMODE_DOCUMENT, SfxObjectShell *pDocShell=nullptr) |
SC_DLLPUBLIC | ~ScDocument () |
void | SetName (const OUString &r) |
const OUString & | GetCodeName () const |
void | SetCodeName (const OUString &r) |
const OUString & | GetFileURL () const |
void | GetDocStat (ScDocStat &rDocStat) |
SC_DLLPUBLIC void | InitDrawLayer (SfxObjectShell *pDocShell=nullptr) |
ScInterpreterContext & | GetNonThreadedContext () const |
ScInterpreterContext & | GetThreadedContext () const |
void | SetupContextFromNonThreadedContext (ScInterpreterContext &threadedContext, int threadNumber) |
void | MergeContextBackIntoNonThreadedContext (ScInterpreterContext &threadedContext, int threadNumber) |
void | SetThreadedGroupCalcInProgress (bool set) |
bool | IsThreadedGroupCalcInProgress () const |
SC_DLLPUBLIC sfx2::LinkManager * | GetLinkManager () |
SC_DLLPUBLIC const sfx2::LinkManager * | GetLinkManager () const |
sc::DocumentLinkManager & | GetDocLinkManager () |
const sc::DocumentLinkManager & | GetDocLinkManager () const |
SC_DLLPUBLIC const ScDocOptions & | GetDocOptions () const |
SC_DLLPUBLIC void | SetDocOptions (const ScDocOptions &rOpt) |
SC_DLLPUBLIC const ScViewOptions & | GetViewOptions () const |
SC_DLLPUBLIC void | SetViewOptions (const ScViewOptions &rOpt) |
void | SetPrintOptions () |
ScExtDocOptions * | GetExtDocOptions () |
SC_DLLPUBLIC void | SetExtDocOptions (std::unique_ptr< ScExtDocOptions > pNewOptions) |
ScClipOptions * | GetClipOptions () |
void | SetClipOptions (std::unique_ptr< ScClipOptions > pClipOptions) |
SC_DLLPUBLIC void | GetLanguage (LanguageType &rLatin, LanguageType &rCjk, LanguageType &rCtl) const |
void | SetLanguage (LanguageType eLatin, LanguageType eCjk, LanguageType eCtl) |
void | SetConsolidateDlgData (std::unique_ptr< ScConsolidateParam > pData) |
const ScConsolidateParam * | GetConsolidateDlgData () const |
void | Clear (bool bFromDestructor=false) |
std::unique_ptr< ScFieldEditEngine > | CreateFieldEditEngine () |
void | DisposeFieldEditEngine (std::unique_ptr< ScFieldEditEngine > &rpEditEngine) |
SC_DLLPUBLIC void | GetAllTabRangeNames (ScRangeName::TabNameCopyMap &rRangeNames) const |
Get all range names that are local to each table. More... | |
SC_DLLPUBLIC void | SetAllRangeNames (const std::map< OUString, std::unique_ptr< ScRangeName >> &rRangeMap) |
SC_DLLPUBLIC void | GetRangeNameMap (std::map< OUString, ScRangeName * > &rRangeName) |
SC_DLLPUBLIC ScRangeName * | GetRangeName (SCTAB nTab) const |
SC_DLLPUBLIC ScRangeName * | GetRangeName () const |
void | SetRangeName (SCTAB nTab, std::unique_ptr< ScRangeName > pNew) |
void | SetRangeName (std::unique_ptr< ScRangeName > pNewRangeName) |
bool | IsAddressInRangeName (RangeNameScope eScope, const ScAddress &rAddress) |
ScRangeData * | FindRangeNameBySheetAndIndex (SCTAB nTab, sal_uInt16 nIndex) const |
Find a named expression / range name in either global or a local scope. More... | |
bool | FindRangeNamesReferencingSheet (sc::UpdatedRangeNames &rIndexes, SCTAB nTokenTab, const sal_uInt16 nTokenIndex, SCTAB nGlobalRefTab, SCTAB nLocalRefTab, SCTAB nOldTokenTab, SCTAB nOldTokenTabReplacement, bool bSameDoc, int nRecursion) const |
Recursively find all named expressions that directly or indirectly (nested) reference a given sheet, starting from a given named expression nTokenTab/nTokenIndex. More... | |
bool | CopyAdjustRangeName (SCTAB &rSheet, sal_uInt16 &rIndex, ScRangeData *&rpRangeData, ScDocument &rNewDoc, const ScAddress &rNewPos, const ScAddress &rOldPos, const bool bGlobalNamesToLocal, const bool bUsedByFormula) const |
If necessary (name references sheet rOldPos.Tab()) copy and adjust named expression/range from sheet-local to sheet-local, or global to sheet-local if bGlobalNamesToLocal==true. More... | |
SC_DLLPUBLIC void | PreprocessAllRangeNamesUpdate (const std::map< OUString, std::unique_ptr< ScRangeName >> &rRangeMap) |
Call this immediately before updating all named ranges. More... | |
SC_DLLPUBLIC void | PreprocessRangeNameUpdate () |
SC_DLLPUBLIC void | PreprocessDBDataUpdate () |
SC_DLLPUBLIC void | CompileHybridFormula () |
Call this immediately after updating named ranges. More... | |
bool | InsertNewRangeName (const OUString &rName, const ScAddress &rPos, const OUString &rExpr) |
Insert a new named expression to the global scope. More... | |
bool | InsertNewRangeName (SCTAB nTab, const OUString &rName, const ScAddress &rPos, const OUString &rExpr) |
Insert a new named expression to a sheet-local scope. More... | |
SC_DLLPUBLIC sal_Unicode | GetSheetSeparator () const |
Obtain the sheet separator corresponding to the document's grammar. More... | |
SCTAB | GetMaxTableNumber () const |
ScRangePairList * | GetColNameRanges () |
ScRangePairList * | GetRowNameRanges () |
ScRangePairListRef & | GetColNameRangesRef () |
ScRangePairListRef & | GetRowNameRangesRef () |
SC_DLLPUBLIC SCCOL | ClampToAllocatedColumns (SCTAB nTab, SCCOL nCol) const |
SC_DLLPUBLIC SCCOL | GetAllocatedColumnsCount (SCTAB nTab) const |
SC_DLLPUBLIC ScDBCollection * | GetDBCollection () const |
void | SetDBCollection (std::unique_ptr< ScDBCollection > pNewDBCollection, bool bRemoveAutoFilter=false) |
const ScDBData * | GetDBAtCursor (SCCOL nCol, SCROW nRow, SCTAB nTab, ScDBDataPortion ePortion) const |
ScDBData * | GetDBAtCursor (SCCOL nCol, SCROW nRow, SCTAB nTab, ScDBDataPortion ePortion) |
SC_DLLPUBLIC const ScDBData * | GetDBAtArea (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const |
SC_DLLPUBLIC ScDBData * | GetDBAtArea (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) |
void | RefreshDirtyTableColumnNames () |
SC_DLLPUBLIC sc::ExternalDataMapper & | GetExternalDataMapper () |
SC_DLLPUBLIC const ScRangeData * | GetRangeAtBlock (const ScRange &rBlock, OUString *pName) const |
SC_DLLPUBLIC bool | HasPivotTable () const |
SC_DLLPUBLIC ScDPCollection * | GetDPCollection () |
SC_DLLPUBLIC const ScDPCollection * | GetDPCollection () const |
SC_DLLPUBLIC ScDPObject * | GetDPAtCursor (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
ScDPObject * | GetDPAtBlock (const ScRange &rBlock) const |
void | StopTemporaryChartLock () |
void | EnsureGraphicNames () |
SdrObject * | GetObjectAtPoint (SCTAB nTab, const Point &rPos) |
bool | HasChartAtPoint (SCTAB nTab, const Point &rPos, OUString &rName) |
css::uno::Reference< css::chart2::XChartDocument > | GetChartByName (std::u16string_view rChartName) |
SC_DLLPUBLIC void | GetChartRanges (std::u16string_view rChartName, std::vector< ScRangeList > &rRanges, const ScDocument &rSheetNameDoc) |
void | SetChartRanges (std::u16string_view rChartName, const std::vector< ScRangeList > &rRanges) |
void | UpdateChartArea (const OUString &rChartName, const ScRange &rNewArea, bool bColHeaders, bool bRowHeaders, bool bAdd) |
void | UpdateChartArea (const OUString &rChartName, const ScRangeListRef &rNewList, bool bColHeaders, bool bRowHeaders, bool bAdd) |
void | GetOldChartParameters (std::u16string_view rName, ScRangeList &rRanges, bool &rColHeaders, bool &rRowHeaders) |
css::uno::Reference< css::embed::XEmbeddedObject > | FindOleObjectByName (std::u16string_view rName) |
SC_DLLPUBLIC void | MakeTable (SCTAB nTab, bool _bNeedsNameCheck=true) |
SCTAB | GetVisibleTab () const |
SC_DLLPUBLIC void | SetVisibleTab (SCTAB nTab) |
SCCOL | GetPosLeft () const |
SC_DLLPUBLIC void | SetPosLeft (SCCOL nCol) |
SCROW | GetPosTop () const |
SC_DLLPUBLIC void | SetPosTop (SCROW nRow) |
SC_DLLPUBLIC bool | HasTable (SCTAB nTab) const |
SC_DLLPUBLIC bool | GetHashCode (SCTAB nTab, sal_Int64 &rHashCode) const |
SC_DLLPUBLIC bool | GetName (SCTAB nTab, OUString &rName) const |
SC_DLLPUBLIC bool | GetCodeName (SCTAB nTab, OUString &rName) const |
SC_DLLPUBLIC bool | SetCodeName (SCTAB nTab, const OUString &rName) |
SC_DLLPUBLIC bool | GetTable (const OUString &rName, SCTAB &rTab) const |
SC_DLLPUBLIC SCCOL | MaxCol () const |
SC_DLLPUBLIC SCROW | MaxRow () const |
ScSheetLimits & | GetSheetLimits () const |
bool | ValidCol (SCCOL nCol) const |
bool | ValidRow (SCROW nRow) const |
bool | ValidColRow (SCCOL nCol, SCROW nRow) const |
bool | ValidColRowTab (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
bool | ValidRange (const ScRange &rRange) const |
bool | ValidAddress (const ScAddress &rAddress) const |
SCCOL | SanitizeCol (SCCOL nCol) const |
SCROW | SanitizeRow (SCROW nRow) const |
SC_DLLPUBLIC std::vector< OUString > | GetAllTableNames () const |
OUString | GetCopyTabName (SCTAB nTab) const |
SC_DLLPUBLIC void | SetAnonymousDBData (SCTAB nTab, std::unique_ptr< ScDBData > pDBData) |
SC_DLLPUBLIC ScDBData * | GetAnonymousDBData (SCTAB nTab) |
SC_DLLPUBLIC void | SetAnonymousDBData (std::unique_ptr< ScDBData > pDBData) |
One document global anonymous database range for temporary operations, used if the corresponding sheet-local anonymous database range is already used with AutoFilter and range differs. More... | |
SC_DLLPUBLIC ScDBData * | GetAnonymousDBData () |
SC_DLLPUBLIC SCTAB | GetTableCount () const |
SvNumberFormatterIndexTable * | GetFormatExchangeList () const |
SC_DLLPUBLIC ScDocProtection * | GetDocProtection () const |
SC_DLLPUBLIC void | SetDocProtection (const ScDocProtection *pProtect) |
SC_DLLPUBLIC bool | IsDocProtected () const |
bool | IsDocEditable () const |
SC_DLLPUBLIC bool | IsTabProtected (SCTAB nTab) const |
SC_DLLPUBLIC const ScTableProtection * | GetTabProtection (SCTAB nTab) const |
SC_DLLPUBLIC void | SetTabProtection (SCTAB nTab, const ScTableProtection *pProtect) |
void | CopyTabProtection (SCTAB nTabSrc, SCTAB nTabDest) |
void | LockTable (SCTAB nTab) |
void | UnlockTable (SCTAB nTab) |
bool | IsBlockEditable (SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool *pOnlyNotBecauseOfMatrix=nullptr, bool bNoMatrixAtAll=false) const |
bool | IsSelectionEditable (const ScMarkData &rMark, bool *pOnlyNotBecauseOfMatrix=nullptr) const |
bool | HasSelectedBlockMatrixFragment (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScMarkData &rMark) const |
bool | IsEditActionAllowed (sc::ColRowEditAction eAction, SCTAB nTab, SCCOLROW nStart, SCCOLROW nEnd) const |
bool | IsEditActionAllowed (sc::ColRowEditAction eAction, const ScMarkData &rMark, SCCOLROW nStart, SCCOLROW nEnd) const |
SC_DLLPUBLIC bool | GetMatrixFormulaRange (const ScAddress &rCellPos, ScRange &rMatrix) |
bool | IsEmbedded () const |
void | GetEmbedded (ScRange &rRange) const |
void | SetEmbedded (const ScRange &rRange) |
void | ResetEmbedded () |
tools::Rectangle | GetEmbeddedRect () const |
void | SetEmbedded (SCTAB nTab, const tools::Rectangle &rRect) |
SC_DLLPUBLIC bool | ValidNewTabName (const OUString &rName) const |
SC_DLLPUBLIC void | CreateValidTabName (OUString &rName) const |
SC_DLLPUBLIC void | CreateValidTabNames (std::vector< OUString > &aNames, SCTAB nCount) const |
void | AppendTabOnLoad (const OUString &rName) |
void | SetTabNameOnLoad (SCTAB nTab, const OUString &rName) |
void | InvalidateStreamOnSave () |
SC_DLLPUBLIC bool | InsertTab (SCTAB nPos, const OUString &rName, bool bExternalDocument=false, bool bUndoDeleteTab=false) |
SC_DLLPUBLIC bool | InsertTabs (SCTAB nPos, const std::vector< OUString > &rNames, bool bNamesValid=false) |
SC_DLLPUBLIC bool | DeleteTabs (SCTAB nTab, SCTAB nSheets) |
SC_DLLPUBLIC bool | DeleteTab (SCTAB nTab) |
SC_DLLPUBLIC bool | RenameTab (SCTAB nTab, const OUString &rName, bool bExternalDocument=false) |
bool | MoveTab (SCTAB nOldPos, SCTAB nNewPos, ScProgress *pProgress=nullptr) |
bool | CopyTab (SCTAB nOldPos, SCTAB nNewPos, const ScMarkData *pOnlyMarked=nullptr) |
SC_DLLPUBLIC sal_uLong | TransferTab (ScDocument &rSrcDoc, SCTAB nSrcPos, SCTAB nDestPos, bool bInsertNew=true, bool bResultsOnly=false) |
SC_DLLPUBLIC void | TransferDrawPage (const ScDocument &rSrcDoc, SCTAB nSrcPos, SCTAB nDestPos) |
SC_DLLPUBLIC void | SetVisible (SCTAB nTab, bool bVisible) |
SC_DLLPUBLIC bool | IsVisible (SCTAB nTab) const |
bool | IsStreamValid (SCTAB nTab) const |
void | SetStreamValid (SCTAB nTab, bool bSet, bool bIgnoreLock=false) |
void | LockStreamValid (bool bLock) |
bool | IsStreamValidLocked () const |
bool | IsPendingRowHeights (SCTAB nTab) const |
void | SetPendingRowHeights (SCTAB nTab, bool bSet) |
SC_DLLPUBLIC void | SetLayoutRTL (SCTAB nTab, bool bRTL, ScObjectHandling eObjectHandling=ScObjectHandling::RecalcPosMode) |
SC_DLLPUBLIC bool | IsLayoutRTL (SCTAB nTab) const |
SC_DLLPUBLIC bool | IsNegativePage (SCTAB nTab) const |
SC_DLLPUBLIC void | SetScenario (SCTAB nTab, bool bFlag) |
SC_DLLPUBLIC bool | IsScenario (SCTAB nTab) const |
SC_DLLPUBLIC void | GetScenarioData (SCTAB nTab, OUString &rComment, Color &rColor, ScScenarioFlags &rFlags) const |
SC_DLLPUBLIC void | SetScenarioData (SCTAB nTab, const OUString &rComment, const Color &rColor, ScScenarioFlags nFlags) |
SC_DLLPUBLIC Color | GetTabBgColor (SCTAB nTab) const |
SC_DLLPUBLIC void | SetTabBgColor (SCTAB nTab, const Color &rColor) |
SC_DLLPUBLIC bool | IsDefaultTabBgColor (SCTAB nTab) const |
void | GetScenarioFlags (SCTAB nTab, ScScenarioFlags &rFlags) const |
SC_DLLPUBLIC bool | IsActiveScenario (SCTAB nTab) const |
SC_DLLPUBLIC void | SetActiveScenario (SCTAB nTab, bool bActive) |
SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention | GetAddressConvention () const |
SC_DLLPUBLIC formula::FormulaGrammar::Grammar | GetGrammar () const |
SC_DLLPUBLIC void | SetGrammar (formula::FormulaGrammar::Grammar eGram) |
SC_DLLPUBLIC ScLinkMode | GetLinkMode (SCTAB nTab) const |
bool | IsLinked (SCTAB nTab) const |
SC_DLLPUBLIC OUString | GetLinkDoc (SCTAB nTab) const |
OUString | GetLinkFlt (SCTAB nTab) const |
OUString | GetLinkOpt (SCTAB nTab) const |
SC_DLLPUBLIC OUString | GetLinkTab (SCTAB nTab) const |
sal_uLong | GetLinkRefreshDelay (SCTAB nTab) const |
void | SetLink (SCTAB nTab, ScLinkMode nMode, const OUString &rDoc, const OUString &rFilter, const OUString &rOptions, const OUString &rTabName, sal_uLong nRefreshDelay) |
bool | HasLink (std::u16string_view rDoc, std::u16string_view rFilter, std::u16string_view rOptions) const |
SC_DLLPUBLIC bool | LinkExternalTab (SCTAB &nTab, const OUString &aDocTab, const OUString &aFileName, const OUString &aTabName) |
bool | HasExternalRefManager () const |
SC_DLLPUBLIC ScExternalRefManager * | GetExternalRefManager () const |
bool | IsInExternalReferenceMarking () const |
void | MarkUsedExternalReferences () |
bool | MarkUsedExternalReferences (const ScTokenArray &rArr, const ScAddress &rPos) |
ScFormulaParserPool & | GetFormulaParserPool () const |
Returns the pool containing external formula parsers. More... | |
bool | HasAreaLinks () const |
void | UpdateExternalRefLinks (weld::Window *pWin) |
void | UpdateAreaLinks () |
void | IncInDdeLinkUpdate () |
void | DecInDdeLinkUpdate () |
bool | IsInDdeLinkUpdate () const |
SC_DLLPUBLIC void | CopyDdeLinks (ScDocument &rDestDoc) const |
SC_DLLPUBLIC bool | FindDdeLink (std::u16string_view rAppl, std::u16string_view rTopic, std::u16string_view rItem, sal_uInt8 nMode, size_t &rnDdePos) |
Tries to find a DDE link with the specified connection data. More... | |
bool | GetDdeLinkData (size_t nDdePos, OUString &rAppl, OUString &rTopic, OUString &rItem) const |
Returns the connection data of the specified DDE link. More... | |
bool | GetDdeLinkMode (size_t nDdePos, sal_uInt8 &rnMode) const |
Returns the link mode of the specified DDE link. More... | |
SC_DLLPUBLIC const ScMatrix * | GetDdeLinkResultMatrix (size_t nDdePos) const |
Returns the result matrix of the specified DDE link. More... | |
SC_DLLPUBLIC bool | CreateDdeLink (const OUString &rAppl, const OUString &rTopic, const OUString &rItem, sal_uInt8 nMode, const ScMatrixRef &pResults) |
Tries to find a DDE link or creates a new, if not extant. More... | |
bool | SetDdeLinkResultMatrix (size_t nDdePos, const ScMatrixRef &pResults) |
Sets a result matrix for the specified DDE link. More... | |
SfxBindings * | GetViewBindings () |
SfxObjectShell * | GetDocumentShell () const |
SC_DLLPUBLIC ScDrawLayer * | GetDrawLayer () |
SC_DLLPUBLIC const ScDrawLayer * | GetDrawLayer () const |
SfxBroadcaster * | GetDrawBroadcaster () |
void | BeginDrawUndo () |
void | BeginUnoRefUndo () |
bool | HasUnoRefUndo () const |
std::unique_ptr< ScUnoRefList > | EndUnoRefUndo () |
sal_Int64 | GetNewUnoId () |
void | AddUnoRefChange (sal_Int64 nId, const ScRangeList &rOldRanges) |
void | UpdateChartRef (UpdateRefMode eUpdateRefMode, SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2, SCCOL nDx, SCROW nDy, SCTAB nDz) |
void | SetChartRangeList (std::u16string_view rChartName, const ScRangeListRef &rNewRangeListRef) |
only assigns the new RangeList, no ChartListener or the like More... | |
void | StartAnimations (SCTAB nTab) |
bool | HasBackgroundDraw (SCTAB nTab, const tools::Rectangle &rMMRect) const |
bool | HasAnyDraw (SCTAB nTab, const tools::Rectangle &rMMRect) const |
const ScSheetEvents * | GetSheetEvents (SCTAB nTab) const |
void | SetSheetEvents (SCTAB nTab, std::unique_ptr< ScSheetEvents > pNew) |
bool | HasSheetEventScript (SCTAB nTab, ScSheetEventId nEvent, bool bWithVbaEvents=false) const |
bool | HasAnySheetEventScript (ScSheetEventId nEvent, bool bWithVbaEvents=false) const |
bool | HasAnyCalcNotification () const |
bool | HasCalcNotification (SCTAB nTab) const |
void | SetCalcNotification (SCTAB nTab) |
void | ResetCalcNotifications () |
SC_DLLPUBLIC ScOutlineTable * | GetOutlineTable (SCTAB nTab, bool bCreate=false) |
bool | SetOutlineTable (SCTAB nTab, const ScOutlineTable *pNewOutline) |
void | DoAutoOutline (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) |
bool | DoSubTotals (SCTAB nTab, ScSubTotalParam &rParam) |
void | RemoveSubTotals (SCTAB nTab, ScSubTotalParam &rParam) |
bool | TestRemoveSubTotals (SCTAB nTab, const ScSubTotalParam &rParam) |
bool | HasSubTotalCells (const ScRange &rRange) |
SC_DLLPUBLIC void | EnsureTable (SCTAB nTab) |
SC_DLLPUBLIC bool | SetString (SCCOL nCol, SCROW nRow, SCTAB nTab, const OUString &rString, const ScSetStringParam *pParam=nullptr) |
SC_DLLPUBLIC bool | SetString (const ScAddress &rPos, const OUString &rString, const ScSetStringParam *pParam=nullptr) |
SC_DLLPUBLIC bool | SetEditText (const ScAddress &rPos, std::unique_ptr< EditTextObject > pEditText) |
This method manages the lifecycle of the passed edit text object. More... | |
void | SetEditText (const ScAddress &rPos, const EditTextObject &rEditText, const SfxItemPool *pEditPool) |
SC_DLLPUBLIC void | SetEditText (const ScAddress &rPos, const OUString &rStr) |
SC_DLLPUBLIC SCROW | GetFirstEditTextRow (const ScRange &rRange) const |
SC_DLLPUBLIC void | SetTextCell (const ScAddress &rPos, const OUString &rStr) |
Call this if you are not sure whether to put this as an edit text or a simple text. More... | |
void | SetEmptyCell (const ScAddress &rPos) |
SC_DLLPUBLIC void | SetValue (SCCOL nCol, SCROW nRow, SCTAB nTab, const double &rVal) |
SC_DLLPUBLIC void | SetValue (const ScAddress &rPos, double fVal) |
void | SetValues (const ScAddress &rPos, const std::vector< double > &rVals) |
void | SetError (SCCOL nCol, SCROW nRow, SCTAB nTab, const FormulaError nError) |
SC_DLLPUBLIC void | SetFormula (const ScAddress &rPos, const ScTokenArray &rArray) |
SC_DLLPUBLIC void | SetFormula (const ScAddress &rPos, const OUString &rFormula, formula::FormulaGrammar::Grammar eGram) |
SC_DLLPUBLIC ScFormulaCell * | SetFormulaCell (const ScAddress &rPos, ScFormulaCell *pCell) |
Set formula cell, and transfer its ownership to the document. More... | |
bool | SetFormulaCells (const ScAddress &rPos, std::vector< ScFormulaCell * > &rCells) |
bool | HasFormulaCell (const ScRange &rRange) const |
Check if there is at least one formula cell in specified range. More... | |
SC_DLLPUBLIC void | InsertMatrixFormula (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, const OUString &rFormula, const ScTokenArray *p=nullptr, const formula::FormulaGrammar::Grammar=formula::FormulaGrammar::GRAM_DEFAULT) |
SC_DLLPUBLIC void | InsertTableOp (const ScTabOpParam &rParam, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark) |
SC_DLLPUBLIC OUString | GetString (SCCOL nCol, SCROW nRow, SCTAB nTab, const ScInterpreterContext *pContext=nullptr) const |
SC_DLLPUBLIC OUString | GetString (const ScAddress &rPos, const ScInterpreterContext *pContext=nullptr) const |
SC_DLLPUBLIC double * | GetValueCell (const ScAddress &rPos) |
Return a pointer to the double value stored in value cell. More... | |
SC_DLLPUBLIC svl::SharedStringPool & | GetSharedStringPool () |
const svl::SharedStringPool & | GetSharedStringPool () const |
svl::SharedString | GetSharedString (const ScAddress &rPos) const |
std::shared_ptr< sc::FormulaGroupContext > & | GetFormulaGroupContext () |
void | DiscardFormulaGroupContext () |
void | BlockFormulaGroupContextDiscard (bool block) |
SC_DLLPUBLIC void | GetInputString (SCCOL nCol, SCROW nRow, SCTAB nTab, OUString &rString) |
FormulaError | GetStringForFormula (const ScAddress &rPos, OUString &rString) |
SC_DLLPUBLIC double | GetValue (const ScAddress &rPos) const |
SC_DLLPUBLIC double | GetValue (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC void | GetValue (SCCOL nCol, SCROW nRow, SCTAB nTab, double &rValue) const |
SC_DLLPUBLIC const EditTextObject * | GetEditText (const ScAddress &rPos) const |
void | RemoveEditTextCharAttribs (const ScAddress &rPos, const ScPatternAttr &rAttr) |
SC_DLLPUBLIC double | RoundValueAsShown (double fVal, sal_uInt32 nFormat, const ScInterpreterContext *pContext=nullptr) const |
SC_DLLPUBLIC void | GetNumberFormat (SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt32 &rFormat) const |
sal_uInt32 | GetNumberFormat (const ScRange &rRange) const |
SC_DLLPUBLIC sal_uInt32 | GetNumberFormat (const ScInterpreterContext &rContext, const ScAddress &) const |
void | SetNumberFormat (const ScAddress &rPos, sal_uInt32 nNumberFormat) |
void | GetNumberFormatInfo (const ScInterpreterContext &rContext, SvNumFormatType &nType, sal_uInt32 &nIndex, const ScAddress &rPos) const |
SC_DLLPUBLIC const ScFormulaCell * | GetFormulaCell (const ScAddress &rPos) const |
SC_DLLPUBLIC ScFormulaCell * | GetFormulaCell (const ScAddress &rPos) |
SC_DLLPUBLIC void | GetFormula (SCCOL nCol, SCROW nRow, SCTAB nTab, OUString &rFormula) const |
SC_DLLPUBLIC void | GetCellType (SCCOL nCol, SCROW nRow, SCTAB nTab, CellType &rCellType) const |
SC_DLLPUBLIC CellType | GetCellType (const ScAddress &rPos) const |
SC_DLLPUBLIC bool | HasData (SCCOL nCol, SCROW nRow, SCTAB nTab) |
SC_DLLPUBLIC bool | HasStringData (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC bool | HasValueData (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC bool | HasValueData (const ScAddress &rPos) const |
bool | HasStringCells (const ScRange &rRange) const |
bool | HasSelectionData (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
Returns true, if there is any data to create a selection list for rPos. More... | |
bool | HasValidationData (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
sc::MultiDataCellState | HasMultipleDataCells (const ScRange &rRange) const |
Check if the specified range contains either: 1) one non-empty cell, 2) more than one non-empty cells, or 3) totally empty. More... | |
SC_DLLPUBLIC ScPostIt * | GetNote (const ScAddress &rPos) |
Notes. More... | |
SC_DLLPUBLIC ScPostIt * | GetNote (SCCOL nCol, SCROW nRow, SCTAB nTab) |
void | SetNote (const ScAddress &rPos, std::unique_ptr< ScPostIt > pNote) |
void | SetNote (SCCOL nCol, SCROW nRow, SCTAB nTab, std::unique_ptr< ScPostIt > pNote) |
SC_DLLPUBLIC bool | HasNote (const ScAddress &rPos) const |
bool | HasNote (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC bool | HasColNotes (SCCOL nCol, SCTAB nTab) const |
SC_DLLPUBLIC bool | HasTabNotes (SCTAB nTab) const |
bool | HasNotes () const |
SC_DLLPUBLIC std::unique_ptr< ScPostIt > | ReleaseNote (const ScAddress &rPos) |
SC_DLLPUBLIC ScPostIt * | GetOrCreateNote (const ScAddress &rPos) |
SC_DLLPUBLIC ScPostIt * | CreateNote (const ScAddress &rPos) |
size_t | GetNoteCount (SCTAB nTab, SCCOL nCol) const |
void | CreateAllNoteCaptions () |
Ensure that all note objects have an associated sdr object. More... | |
void | ForgetNoteCaptions (const ScRangeList &rRanges, bool bPreserveData) |
CommentCaptionState | GetAllNoteCaptionsState (const ScRangeList &rRanges) |
ScAddress | GetNotePosition (size_t nIndex) const |
ScAddress | GetNotePosition (size_t nIndex, SCTAB nTab) const |
SCROW | GetNotePosition (SCTAB nTab, SCCOL nCol, size_t nIndex) const |
SC_DLLPUBLIC void | GetAllNoteEntries (std::vector< sc::NoteEntry > &rNotes) const |
SC_DLLPUBLIC void | GetAllNoteEntries (SCTAB nTab, std::vector< sc::NoteEntry > &rNotes) const |
void | GetNotesInRange (const ScRangeList &rRange, std::vector< sc::NoteEntry > &rNotes) const |
bool | ContainsNotesInRange (const ScRangeList &rRange) const |
SC_DLLPUBLIC void | SetDrawPageSize (SCTAB nTab) |
bool | IsMerged (const ScAddress &rPos) const |
void | ExtendMergeSel (SCCOL nStartCol, SCROW nStartRow, SCCOL &rEndCol, SCROW &rEndRow, const ScMarkData &rMark, bool bRefresh=false) |
SC_DLLPUBLIC bool | ExtendMerge (SCCOL nStartCol, SCROW nStartRow, SCCOL &rEndCol, SCROW &rEndRow, SCTAB nTab, bool bRefresh=false) |
bool | ExtendMerge (ScRange &rRange, bool bRefresh=false) |
SC_DLLPUBLIC void | ExtendTotalMerge (ScRange &rRange) const |
SC_DLLPUBLIC void | ExtendOverlapped (SCCOL &rStartCol, SCROW &rStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) const |
SC_DLLPUBLIC void | ExtendOverlapped (ScRange &rRange) const |
bool | RefreshAutoFilter (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) |
SC_DLLPUBLIC void | DoMergeContents (SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow) |
SC_DLLPUBLIC void | DoEmptyBlock (SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow) |
SC_DLLPUBLIC void | DoMerge (SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool bDeleteCaptions=true) |
void | RemoveMerge (SCCOL nCol, SCROW nRow, SCTAB nTab) |
bool | IsBlockEmpty (SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool bIgnoreNotes=false) const |
bool | IsPrintEmpty (SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool bLeftIsEmpty=false, ScRange *pLastRange=nullptr, tools::Rectangle *pLastMM=nullptr) const |
void | SkipOverlapped (SCCOL &rCol, SCROW &rRow, SCTAB nTab) const |
bool | IsHorOverlapped (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
bool | IsVerOverlapped (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC bool | HasAttrib (SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2, HasAttrFlags nMask) const |
SC_DLLPUBLIC bool | HasAttrib (const ScRange &rRange, HasAttrFlags nMask) const |
SC_DLLPUBLIC void | GetBorderLines (SCCOL nCol, SCROW nRow, SCTAB nTab, const ::editeng::SvxBorderLine **ppLeft, const ::editeng::SvxBorderLine **ppTop, const ::editeng::SvxBorderLine **ppRight, const ::editeng::SvxBorderLine **ppBottom) const |
void | ResetChanged (const ScRange &rRange) |
void | CheckVectorizationState () |
void | SetAllFormulasDirty (const sc::SetFormulaDirtyContext &rCxt) |
void | SetDirty (const ScRange &, bool bIncludeEmptyCells) |
void | SetTableOpDirty (const ScRange &) |
void | InterpretDirtyCells (const ScRangeList &rRanges) |
SC_DLLPUBLIC void | CalcAll () |
SC_DLLPUBLIC void | CalcAfterLoad (bool bStartListening=true) |
void | CompileAll () |
void | CompileXML () |
bool | CompileErrorCells (FormulaError nErrCode) |
Re-compile formula cells with error. More... | |
ScAutoNameCache * | GetAutoNameCache () |
void | SetPreviewFont (std::unique_ptr< SfxItemSet > pFontSet) |
SfxItemSet * | GetPreviewFont () |
SfxItemSet * | GetPreviewFont (SCCOL nCol, SCROW nRow, SCTAB nTab) |
const ScMarkData & | GetPreviewSelection () const |
void | SetPreviewSelection (const ScMarkData &rSel) |
ScStyleSheet * | GetPreviewCellStyle () |
ScStyleSheet * | GetPreviewCellStyle (SCCOL nCol, SCROW nRow, SCTAB nTab) |
void | SetPreviewCellStyle (ScStyleSheet *pStyle) |
SC_DLLPUBLIC void | SetAutoNameCache (std::unique_ptr< ScAutoNameCache > pCache) |
ScLookupCache & | GetLookupCache (const ScRange &rRange, ScInterpreterContext *pContext) |
Creates a ScLookupCache cache for the range if it doesn't already exist. More... | |
void | RemoveLookupCache (ScLookupCache &rCache) |
Only ScLookupCache dtor uses RemoveLookupCache(), do not use elsewhere! More... | |
void | ClearLookupCaches () |
Zap all caches. More... | |
SC_DLLPUBLIC void | SetAutoCalc (bool bNewAutoCalc) |
SC_DLLPUBLIC bool | GetAutoCalc () const |
void | SetAutoCalcShellDisabled (bool bNew) |
bool | IsAutoCalcShellDisabled () const |
void | SetForcedFormulaPending (bool bNew) |
bool | IsForcedFormulaPending () const |
bool | IsCalculatingFormulaTree () const |
void | DelayFormulaGrouping (bool delay) |
If set, joining cells into shared formula groups will be delayed until reset again (RegroupFormulaCells() will be called as needed). More... | |
bool | IsDelayedFormulaGrouping () const |
void | AddDelayedFormulaGroupingCell (const ScFormulaCell *cell) |
To be used only by SharedFormulaUtil::joinFormulaCells(). More... | |
void | EnableDelayStartListeningFormulaCells (ScColumn *column, bool delay) |
If set, ScColumn::StartListeningFormulaCells() calls may be delayed using CanDelayStartListeningFormulaCells() until reset again, at which point the function will be called as necessary. More... | |
bool | IsEnabledDelayStartListeningFormulaCells (ScColumn *column) const |
bool | CanDelayStartListeningFormulaCells (ScColumn *column, SCROW row1, SCROW row2) |
If true is returned, ScColumn::StartListeningFormulaCells() for the given cells will be performed later. More... | |
FormulaError | GetErrCode (const ScAddress &) const |
bool | ShrinkToDataArea (SCTAB nTab, SCCOL &rStartCol, SCROW &rStartRow, SCCOL &rEndCol, SCROW &rEndRow) const |
Shrink a range to only include data area. More... | |
bool | ShrinkToUsedDataArea (bool &o_bShrunk, SCTAB nTab, SCCOL &rStartCol, SCROW &rStartRow, SCCOL &rEndCol, SCROW &rEndRow, bool bColumnsOnly, bool bStickyTopRow=false, bool bStickyLeftCol=false, bool bConsiderCellNotes=false, bool bConsiderCellDrawObjects=false) const |
Shrink a range to only include used data area. More... | |
SCROW | GetLastDataRow (SCTAB nTab, SCCOL nCol1, SCCOL nCol2, SCROW nLastRow) const |
Return the last non-empty row position in given columns that's no greater than the initial last row position, or 0 if the columns are empty. More... | |
SC_DLLPUBLIC void | GetDataArea (SCTAB nTab, SCCOL &rStartCol, SCROW &rStartRow, SCCOL &rEndCol, SCROW &rEndRow, bool bIncludeOld, bool bOnlyDown) const |
Return the smallest area containing at least all contiguous cells having data. More... | |
bool | GetDataAreaSubrange (ScRange &rRange) const |
Returns true if there is a non-empty subrange in the range given as input. More... | |
SC_DLLPUBLIC bool | GetCellArea (SCTAB nTab, SCCOL &rEndCol, SCROW &rEndRow) const |
SC_DLLPUBLIC bool | GetTableArea (SCTAB nTab, SCCOL &rEndCol, SCROW &rEndRow, bool bCalcHiddens=false) const |
SC_DLLPUBLIC bool | GetPrintArea (SCTAB nTab, SCCOL &rEndCol, SCROW &rEndRow, bool bNotes=true) const |
SC_DLLPUBLIC bool | GetPrintAreaHor (SCTAB nTab, SCROW nStartRow, SCROW nEndRow, SCCOL &rEndCol) const |
SC_DLLPUBLIC bool | GetPrintAreaVer (SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol, SCROW &rEndRow, bool bNotes) const |
void | InvalidateTableArea () |
SC_DLLPUBLIC void | GetTiledRenderingArea (SCTAB nTab, SCCOL &rEndCol, SCROW &rEndRow) const |
Return the number of columns / rows that should be visible for the tiled rendering. More... | |
SC_DLLPUBLIC bool | GetDataStart (SCTAB nTab, SCCOL &rStartCol, SCROW &rStartRow) const |
void | ExtendPrintArea (OutputDevice *pDev, SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL &rEndCol, SCROW nEndRow) const |
Find the maximum column position that contains printable data for the specified row range. More... | |
SC_DLLPUBLIC SCSIZE | GetEmptyLinesInBlock (SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, ScDirection eDir) |
void | FindAreaPos (SCCOL &rCol, SCROW &rRow, SCTAB nTab, ScMoveDirection eDirection) const |
SC_DLLPUBLIC void | GetNextPos (SCCOL &rCol, SCROW &rRow, SCTAB nTab, SCCOL nMovX, SCROW nMovY, bool bMarked, bool bUnprotected, const ScMarkData &rMark, SCCOL nTabStartCol=SC_TABSTART_NONE) const |
bool | GetNextMarkedCell (SCCOL &rCol, SCROW &rRow, SCTAB nTab, const ScMarkData &rMark) |
void | LimitChartArea (SCTAB nTab, SCCOL &rStartCol, SCROW &rStartRow, SCCOL &rEndCol, SCROW &rEndRow) |
void | LimitChartIfAll (ScRangeListRef &rRangeList) |
bool | InsertRow (SCCOL nStartCol, SCTAB nStartTab, SCCOL nEndCol, SCTAB nEndTab, SCROW nStartRow, SCSIZE nSize, ScDocument *pRefUndoDoc=nullptr, const ScMarkData *pTabMark=nullptr) |
SC_DLLPUBLIC bool | InsertRow (const ScRange &rRange) |
void | DeleteRow (SCCOL nStartCol, SCTAB nStartTab, SCCOL nEndCol, SCTAB nEndTab, SCROW nStartRow, SCSIZE nSize, ScDocument *pRefUndoDoc=nullptr, bool *pUndoOutline=nullptr, const ScMarkData *pTabMark=nullptr) |
SC_DLLPUBLIC void | DeleteRow (const ScRange &rRange) |
bool | InsertCol (SCROW nStartRow, SCTAB nStartTab, SCROW nEndRow, SCTAB nEndTab, SCCOL nStartCol, SCSIZE nSize, ScDocument *pRefUndoDoc=nullptr, const ScMarkData *pTabMark=nullptr) |
SC_DLLPUBLIC bool | InsertCol (const ScRange &rRange) |
void | DeleteCol (SCROW nStartRow, SCTAB nStartTab, SCROW nEndRow, SCTAB nEndTab, SCCOL nStartCol, SCSIZE nSize, ScDocument *pRefUndoDoc=nullptr, bool *pUndoOutline=nullptr, const ScMarkData *pTabMark=nullptr) |
void | DeleteCol (const ScRange &rRange) |
bool | CanInsertRow (const ScRange &rRange) const |
bool | CanInsertCol (const ScRange &rRange) const |
void | FitBlock (const ScRange &rOld, const ScRange &rNew, bool bClear=true) |
bool | CanFitBlock (const ScRange &rOld, const ScRange &rNew) |
bool | IsClipOrUndo () const |
bool | IsUndo () const |
bool | IsClipboard () const |
bool | IsUndoEnabled () const |
SC_DLLPUBLIC void | EnableUndo (bool bVal) |
bool | IsFunctionAccess () const |
bool | IsAdjustHeightLocked () const |
void | LockAdjustHeight () |
SC_DLLPUBLIC void | UnlockAdjustHeight () |
bool | IsExecuteLinkEnabled () const |
void | EnableExecuteLink (bool bVal) |
bool | IsChangeReadOnlyEnabled () const |
void | EnableChangeReadOnly (bool bVal) |
SC_DLLPUBLIC bool | IsUserInteractionEnabled () const |
SC_DLLPUBLIC void | EnableUserInteraction (bool bVal) |
SC_DLLPUBLIC sal_Int16 | GetNamedRangesLockCount () const |
void | SetNamedRangesLockCount (sal_Int16 nCount) |
SC_DLLPUBLIC void | ResetClip (ScDocument *pSourceDoc, const ScMarkData *pMarks) |
SC_DLLPUBLIC void | ResetClip (ScDocument *pSourceDoc, SCTAB nTab) |
void | SetCutMode (bool bCut) |
bool | IsCutMode () |
void | SetClipArea (const ScRange &rArea, bool bCut=false) |
SC_DLLPUBLIC bool | IsDocVisible () const |
SC_DLLPUBLIC void | SetDocVisible (bool bSet) |
bool | HasOLEObjectsInArea (const ScRange &rRange, const ScMarkData *pTabMark=nullptr) |
void | DeleteObjectsInArea (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, bool bAnchored=false) |
void | DeleteObjectsInSelection (const ScMarkData &rMark) |
void | DeleteArea (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, InsertDeleteFlags nDelFlag, bool bBroadcast=true, sc::ColumnSpanSet *pBroadcastSpans=nullptr) |
SC_DLLPUBLIC void | DeleteAreaTab (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCTAB nTab, InsertDeleteFlags nDelFlag) |
void | DeleteAreaTab (const ScRange &rRange, InsertDeleteFlags nDelFlag) |
SC_DLLPUBLIC void | CopyToClip (const ScClipParam &rClipParam, ScDocument *pClipDoc, const ScMarkData *pMarks, bool bKeepScenarioFlags, bool bIncludeObjects) |
SC_DLLPUBLIC void | CopyStaticToDocument (const ScRange &rSrcRange, SCTAB nDestTab, ScDocument &rDestDoc) |
Copy only raw cell values to another document. More... | |
void | CopyCellToDocument (const ScAddress &rSrcPos, const ScAddress &rDestPos, ScDocument &rDestDoc) |
Copy only cell, nothing but cell to another document. More... | |
void | CopyTabToClip (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCTAB nTab, ScDocument *pClipDoc) |
SC_DLLPUBLIC bool | InitColumnBlockPosition (sc::ColumnBlockPosition &rBlockPos, SCTAB nTab, SCCOL nCol) |
void | DeleteBeforeCopyFromClip (sc::CopyFromClipContext &rCxt, const ScMarkData &rMark, sc::ColumnSpanSet &rBroadcastSpans) |
bool | CopyOneCellFromClip (sc::CopyFromClipContext &rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) |
void | CopyBlockFromClip (sc::CopyFromClipContext &rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, SCCOL nDx, SCROW nDy) |
void | CopyNonFilteredFromClip (sc::CopyFromClipContext &rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, SCCOL nDx, SCROW &rClipStartRow) |
void | StartListeningFromClip (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, InsertDeleteFlags nInsFlag) |
void | SetDirtyFromClip (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, InsertDeleteFlags nInsFlag, sc::ColumnSpanSet &rBroadcastSpans) |
SC_DLLPUBLIC void | CopyFromClip (const ScRange &rDestRange, const ScMarkData &rMark, InsertDeleteFlags nInsFlag, ScDocument *pRefUndoDoc, ScDocument *pClipDoc, bool bResetCut=true, bool bAsLink=false, bool bIncludeFiltered=true, bool bSkipAttrForEmpty=false, const ScRangeList *pDestRanges=nullptr) |
If pDestRanges is given it overrides rDestRange, rDestRange in this case is the overall encompassing range. More... | |
void | CopyMultiRangeFromClip (const ScAddress &rDestPos, const ScMarkData &rMark, InsertDeleteFlags nInsFlag, ScDocument *pClipDoc, bool bResetCut=true, bool bAsLink=false, bool bIncludeFiltered=true, bool bSkipAttrForEmpty=false) |
void | GetClipArea (SCCOL &nClipX, SCROW &nClipY, bool bIncludeFiltered) |
void | GetClipStart (SCCOL &nClipX, SCROW &nClipY) |
bool | HasClipFilteredRows () |
bool | IsClipboardSource () const |
SC_DLLPUBLIC void | TransposeClip (ScDocument *pTransClip, InsertDeleteFlags nFlags, bool bAsLink) |
ScClipParam & | GetClipParam () |
void | SetClipParam (const ScClipParam &rParam) |
void | ClosingClipboardSource () |
To be called at the clipboard document when closing a document that is the current clipboard source to decouple things from the originating document. More... | |
void | MixDocument (const ScRange &rRange, ScPasteFunc nFunction, bool bSkipEmpty, ScDocument &rSrcDoc) |
void | FillTab (const ScRange &rSrcArea, const ScMarkData &rMark, InsertDeleteFlags nFlags, ScPasteFunc nFunction, bool bSkipEmpty, bool bAsLink) |
void | FillTabMarked (SCTAB nSrcTab, const ScMarkData &rMark, InsertDeleteFlags nFlags, ScPasteFunc nFunction, bool bSkipEmpty, bool bAsLink) |
void | TransliterateText (const ScMarkData &rMultiMark, TransliterationFlags nType) |
SC_DLLPUBLIC void | InitUndo (const ScDocument &rSrcDoc, SCTAB nTab1, SCTAB nTab2, bool bColInfo=false, bool bRowInfo=false) |
void | AddUndoTab (SCTAB nTab1, SCTAB nTab2, bool bColInfo=false, bool bRowInfo=false) |
SC_DLLPUBLIC void | InitUndoSelected (const ScDocument &rSrcDoc, const ScMarkData &rTabSelection, bool bColInfo=false, bool bRowInfo=false) |
void | CopyToDocument (SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2, InsertDeleteFlags nFlags, bool bMarked, ScDocument &rDestDoc, const ScMarkData *pMarks=nullptr, bool bColRowFlags=true) |
void | UndoToDocument (SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2, InsertDeleteFlags nFlags, bool bMarked, ScDocument &rDestDoc) |
void | CopyToDocument (const ScRange &rRange, InsertDeleteFlags nFlags, bool bMarked, ScDocument &rDestDoc, const ScMarkData *pMarks=nullptr, bool bColRowFlags=true) |
void | UndoToDocument (const ScRange &rRange, InsertDeleteFlags nFlags, bool bMarked, ScDocument &rDestDoc) |
void | CopyScenario (SCTAB nSrcTab, SCTAB nDestTab, bool bNewScenario=false) |
bool | TestCopyScenario (SCTAB nSrcTab, SCTAB nDestTab) const |
void | MarkScenario (SCTAB nSrcTab, SCTAB nDestTab, ScMarkData &rDestMark, bool bResetMark=true, ScScenarioFlags nNeededBits=ScScenarioFlags::NONE) const |
bool | HasScenarioRange (SCTAB nTab, const ScRange &rRange) const |
SC_DLLPUBLIC const ScRangeList * | GetScenarioRanges (SCTAB nTab) const |
SC_DLLPUBLIC void | CopyUpdated (ScDocument *pPosDoc, ScDocument *pDestDoc) |
From this document this method copies the cells of positions at which there are also cells in pPosDoc to pDestDoc. More... | |
void | UpdateReference (sc::RefUpdateContext &rCxt, ScDocument *pUndoDoc=nullptr, bool bIncludeDraw=true, bool bUpdateNoteCaptionPos=true) |
SC_DLLPUBLIC void | UpdateTranspose (const ScAddress &rDestPos, ScDocument *pClipDoc, const ScMarkData &rMark, ScDocument *pUndoDoc) |
void | UpdateGrow (const ScRange &rArea, SCCOL nGrowX, SCROW nGrowY) |
SC_DLLPUBLIC void | Fill (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, ScProgress *pProgress, const ScMarkData &rMark, sal_uLong nFillCount, FillDir eFillDir=FILL_TO_BOTTOM, FillCmd eFillCmd=FILL_LINEAR, FillDateCmd eFillDateCmd=FILL_DAY, double nStepValue=1.0, double nMaxValue=1E307) |
OUString | GetAutoFillPreview (const ScRange &rSource, SCCOL nEndX, SCROW nEndY) |
bool | GetSelectionFunction (ScSubTotalFunc eFunc, const ScAddress &rCursor, const ScMarkData &rMark, double &rResult) |
SC_DLLPUBLIC const SfxPoolItem * | GetAttr (SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich) const |
template<class T > | |
const T * | GetAttr (SCCOL nCol, SCROW nRow, SCTAB nTab, TypedWhichId< T > nWhich) const |
SC_DLLPUBLIC const SfxPoolItem * | GetAttr (const ScAddress &rPos, sal_uInt16 nWhich) const |
template<class T > | |
const T * | GetAttr (const ScAddress &rPos, TypedWhichId< T > nWhich) const |
SC_DLLPUBLIC const ScPatternAttr * | GetPattern (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC const ScPatternAttr * | GetPattern (const ScAddress &rPos) const |
SC_DLLPUBLIC const ScPatternAttr * | GetMostUsedPattern (SCCOL nCol, SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const |
const ScPatternAttr * | GetSelectionPattern (const ScMarkData &rMark) |
std::unique_ptr< ScPatternAttr > | CreateSelectionPattern (const ScMarkData &rMark, bool bDeep=true) |
SC_DLLPUBLIC void | AddCondFormatData (const ScRangeList &rRange, SCTAB nTab, sal_uInt32 nIndex) |
void | RemoveCondFormatData (const ScRangeList &rRange, SCTAB nTab, sal_uInt32 nIndex) |
SC_DLLPUBLIC ScConditionalFormat * | GetCondFormat (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC const SfxItemSet * | GetCondResult (SCCOL nCol, SCROW nRow, SCTAB nTab, ScRefCellValue *pCell=nullptr) const |
const SfxItemSet * | GetCondResult (ScRefCellValue &rCell, const ScAddress &rPos, const ScConditionalFormatList &rList, const ScCondFormatIndexes &rIndex) const |
const SfxPoolItem * | GetEffItem (SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich) const |
template<class T > | |
const T * | GetEffItem (SCCOL nCol, SCROW nRow, SCTAB nTab, TypedWhichId< T > nWhich) const |
SC_DLLPUBLIC const css::uno::Reference< css::i18n::XBreakIterator > & | GetBreakIterator () |
bool | HasStringWeakCharacters (const OUString &rString) |
SC_DLLPUBLIC SvtScriptType | GetStringScriptType (const OUString &rString) |
SC_DLLPUBLIC SvtScriptType | GetCellScriptType (const ScAddress &rPos, sal_uInt32 nNumberFormat, const ScRefCellValue *pCell=nullptr) |
SC_DLLPUBLIC SvtScriptType | GetScriptType (SCCOL nCol, SCROW nRow, SCTAB nTab, const ScRefCellValue *pCell=nullptr) |
SvtScriptType | GetRangeScriptType (sc::ColumnBlockPosition &rBlockPos, const ScAddress &rPos, SCROW nLength) |
SvtScriptType | GetRangeScriptType (const ScRangeList &rRanges) |
bool | HasDetectiveOperations () const |
void | AddDetectiveOperation (const ScDetOpData &rData) |
void | ClearDetectiveOperations () |
ScDetOpList * | GetDetOpList () const |
void | SetDetOpList (std::unique_ptr< ScDetOpList > pNew) |
bool | HasDetectiveObjects (SCTAB nTab) const |
void | GetSelectionFrame (const ScMarkData &rMark, SvxBoxItem &rLineOuter, SvxBoxInfoItem &rLineInner) |
void | ApplySelectionFrame (const ScMarkData &rMark, const SvxBoxItem &rLineOuter, const SvxBoxInfoItem *pLineInner) |
void | ApplyFrameAreaTab (const ScRange &rRange, const SvxBoxItem &rLineOuter, const SvxBoxInfoItem &rLineInner) |
void | ClearSelectionItems (const sal_uInt16 *pWhich, const ScMarkData &rMark) |
void | ChangeSelectionIndent (bool bIncrement, const ScMarkData &rMark) |
SC_DLLPUBLIC sal_uLong | AddCondFormat (std::unique_ptr< ScConditionalFormat > pNew, SCTAB nTab) |
void | DeleteConditionalFormat (sal_uLong nIndex, SCTAB nTab) |
void | SetCondFormList (ScConditionalFormatList *pList, SCTAB nTab) |
SC_DLLPUBLIC sal_uLong | AddValidationEntry (const ScValidationData &rNew) |
SC_DLLPUBLIC const ScValidationData * | GetValidationEntry (sal_uLong nIndex) const |
SC_DLLPUBLIC ScConditionalFormatList * | GetCondFormList (SCTAB nTab) const |
const ScValidationDataList * | GetValidationList () const |
ScValidationDataList * | GetValidationList () |
SC_DLLPUBLIC void | ApplyAttr (SCCOL nCol, SCROW nRow, SCTAB nTab, const SfxPoolItem &rAttr) |
SC_DLLPUBLIC void | ApplyPattern (SCCOL nCol, SCROW nRow, SCTAB nTab, const ScPatternAttr &rAttr) |
SC_DLLPUBLIC void | ApplyPatternArea (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScMarkData &rMark, const ScPatternAttr &rAttr, ScEditDataArray *pDataArray=nullptr, bool *const pIsChanged=nullptr) |
SC_DLLPUBLIC void | ApplyPatternAreaTab (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, const ScPatternAttr &rAttr) |
SC_DLLPUBLIC void | ApplyPatternIfNumberformatIncompatible (const ScRange &rRange, const ScMarkData &rMark, const ScPatternAttr &rPattern, SvNumFormatType nNewType) |
void | ApplyStyle (SCCOL nCol, SCROW nRow, SCTAB nTab, const ScStyleSheet &rStyle) |
void | ApplyStyleArea (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScMarkData &rMark, const ScStyleSheet &rStyle) |
SC_DLLPUBLIC void | ApplyStyleAreaTab (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, const ScStyleSheet &rStyle) |
SC_DLLPUBLIC void | ApplySelectionStyle (const ScStyleSheet &rStyle, const ScMarkData &rMark) |
void | ApplySelectionLineStyle (const ScMarkData &rMark, const ::editeng::SvxBorderLine *pLine, bool bColorOnly) |
const ScStyleSheet * | GetStyle (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
const ScStyleSheet * | GetSelectionStyle (const ScMarkData &rMark) const |
void | StyleSheetChanged (const SfxStyleSheetBase *pStyleSheet, bool bRemoved, OutputDevice *pDev, double nPPTX, double nPPTY, const Fraction &rZoomX, const Fraction &rZoomY) |
bool | IsStyleSheetUsed (const ScStyleSheet &rStyle) const |
SC_DLLPUBLIC bool | ApplyFlagsTab (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, ScMF nFlags) |
SC_DLLPUBLIC bool | RemoveFlagsTab (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, ScMF nFlags) |
SC_DLLPUBLIC void | SetPattern (const ScAddress &, const ScPatternAttr &rAttr) |
SC_DLLPUBLIC const ScPatternAttr * | SetPattern (SCCOL nCol, SCROW nRow, SCTAB nTab, std::unique_ptr< ScPatternAttr >) |
SC_DLLPUBLIC void | SetPattern (SCCOL nCol, SCROW nRow, SCTAB nTab, const ScPatternAttr &rAttr) |
void | AutoFormat (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, sal_uInt16 nFormatNo, const ScMarkData &rMark) |
void | GetAutoFormatData (SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, ScAutoFormatData &rData) |
bool | SearchAndReplace (const SvxSearchItem &rSearchItem, SCCOL &rCol, SCROW &rRow, SCTAB &rTab, const ScMarkData &rMark, ScRangeList &rMatchedRanges, OUString &rUndoStr, ScDocument *pUndoDoc=nullptr) |
void | GetSearchAndReplaceStart (const SvxSearchItem &rSearchItem, SCCOL &rCol, SCROW &rRow) |
bool | Solver (SCCOL nFCol, SCROW nFRow, SCTAB nFTab, SCCOL nVCol, SCROW nVRow, SCTAB nVTab, const OUString &sValStr, double &nX) |
(Goal Seek) Find a value of x that is a root of f(x) More... | |
SC_DLLPUBLIC void | ApplySelectionPattern (const ScPatternAttr &rAttr, const ScMarkData &rMark, ScEditDataArray *pDataArray=nullptr, bool *pIsChanged=nullptr) |
void | DeleteSelection (InsertDeleteFlags nDelFlag, const ScMarkData &rMark, bool bBroadcast=true) |
void | DeleteSelectionTab (SCTAB nTab, InsertDeleteFlags nDelFlag, const ScMarkData &rMark) |
SC_DLLPUBLIC void | SetColWidth (SCCOL nCol, SCTAB nTab, sal_uInt16 nNewWidth) |
SC_DLLPUBLIC void | SetColWidthOnly (SCCOL nCol, SCTAB nTab, sal_uInt16 nNewWidth) |
SC_DLLPUBLIC void | SetRowHeight (SCROW nRow, SCTAB nTab, sal_uInt16 nNewHeight) |
SC_DLLPUBLIC void | SetRowHeightRange (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, sal_uInt16 nNewHeight) |
SC_DLLPUBLIC void | SetRowHeightOnly (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, sal_uInt16 nNewHeight) |
SC_DLLPUBLIC void | SetManualHeight (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bManual) |
SC_DLLPUBLIC sal_uInt16 | GetColWidth (SCCOL nCol, SCTAB nTab, bool bHiddenAsZero=true) const |
SC_DLLPUBLIC sal_uLong | GetColWidth (SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab) const |
SC_DLLPUBLIC sal_uInt16 | GetRowHeight (SCROW nRow, SCTAB nTab, bool bHiddenAsZero=true) const |
SC_DLLPUBLIC sal_uInt16 | GetRowHeight (SCROW nRow, SCTAB nTab, SCROW *pStartRow, SCROW *pEndRow) const |
SC_DLLPUBLIC sal_uLong | GetRowHeight (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bHiddenAsZero=true) const |
SCROW | GetRowForHeight (SCTAB nTab, sal_uLong nHeight) const |
Given the height i.e. More... | |
sal_uLong | GetScaledRowHeight (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, double fScale, const sal_uLong *pnMaxHeight=nullptr) const |
SC_DLLPUBLIC sal_uLong | GetColOffset (SCCOL nCol, SCTAB nTab, bool bHiddenAsZero=true) const |
SC_DLLPUBLIC sal_uLong | GetRowOffset (SCROW nRow, SCTAB nTab, bool bHiddenAsZero=true) const |
SC_DLLPUBLIC sal_uInt16 | GetOriginalWidth (SCCOL nCol, SCTAB nTab) const |
SC_DLLPUBLIC sal_uInt16 | GetOriginalHeight (SCROW nRow, SCTAB nTab) const |
sal_uInt16 | GetCommonWidth (SCCOL nEndCol, SCTAB nTab) const |
SCROW | GetHiddenRowCount (SCROW nRow, SCTAB nTab) const |
sal_uInt16 | GetOptimalColWidth (SCCOL nCol, SCTAB nTab, OutputDevice *pDev, double nPPTX, double nPPTY, const Fraction &rZoomX, const Fraction &rZoomY, bool bFormula, const ScMarkData *pMarkData=nullptr, const ScColWidthParam *pParam=nullptr) |
SC_DLLPUBLIC bool | SetOptimalHeight (sc::RowHeightContext &rCxt, SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bApi) |
void | UpdateAllRowHeights (sc::RowHeightContext &rCxt, const ScMarkData *pTabMark) |
tools::Long | GetNeededSize (SCCOL nCol, SCROW nRow, SCTAB nTab, OutputDevice *pDev, double nPPTX, double nPPTY, const Fraction &rZoomX, const Fraction &rZoomY, bool bWidth, bool bTotalSize=false, bool bInPrintTwips=false) |
SC_DLLPUBLIC void | ShowCol (SCCOL nCol, SCTAB nTab, bool bShow) |
SC_DLLPUBLIC void | ShowRow (SCROW nRow, SCTAB nTab, bool bShow) |
SC_DLLPUBLIC void | ShowRows (SCROW nRow1, SCROW nRow2, SCTAB nTab, bool bShow) |
SC_DLLPUBLIC void | SetRowFlags (SCROW nRow, SCTAB nTab, CRFlags nNewFlags) |
SC_DLLPUBLIC void | SetRowFlags (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, CRFlags nNewFlags) |
SC_DLLPUBLIC CRFlags | GetColFlags (SCCOL nCol, SCTAB nTab) const |
SC_DLLPUBLIC CRFlags | GetRowFlags (SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC void | GetAllRowBreaks (std::set< SCROW > &rBreaks, SCTAB nTab, bool bPage, bool bManual) const |
SC_DLLPUBLIC void | GetAllColBreaks (std::set< SCCOL > &rBreaks, SCTAB nTab, bool bPage, bool bManual) const |
SC_DLLPUBLIC ScBreakType | HasRowBreak (SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC ScBreakType | HasColBreak (SCCOL nCol, SCTAB nTab) const |
SC_DLLPUBLIC void | SetRowBreak (SCROW nRow, SCTAB nTab, bool bPage, bool bManual) |
SC_DLLPUBLIC void | SetColBreak (SCCOL nCol, SCTAB nTab, bool bPage, bool bManual) |
void | RemoveRowBreak (SCROW nRow, SCTAB nTab, bool bPage, bool bManual) |
void | RemoveColBreak (SCCOL nCol, SCTAB nTab, bool bPage, bool bManual) |
css::uno::Sequence< css::sheet::TablePageBreakData > | GetRowBreakData (SCTAB nTab) const |
SC_DLLPUBLIC bool | RowHidden (SCROW nRow, SCTAB nTab, SCROW *pFirstRow=nullptr, SCROW *pLastRow=nullptr) const |
SC_DLLPUBLIC bool | HasHiddenRows (SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const |
SC_DLLPUBLIC bool | ColHidden (SCCOL nCol, SCTAB nTab, SCCOL *pFirstCol=nullptr, SCCOL *pLastCol=nullptr) const |
SC_DLLPUBLIC void | SetRowHidden (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bHidden) |
SC_DLLPUBLIC void | SetColHidden (SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab, bool bHidden) |
SC_DLLPUBLIC SCROW | FirstVisibleRow (SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const |
SC_DLLPUBLIC SCROW | LastVisibleRow (SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const |
SCROW | CountVisibleRows (SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const |
bool | RowFiltered (SCROW nRow, SCTAB nTab, SCROW *pFirstRow=nullptr, SCROW *pLastRow=nullptr) const |
bool | HasFilteredRows (SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const |
bool | ColFiltered (SCCOL nCol, SCTAB nTab) const |
SC_DLLPUBLIC void | SetRowFiltered (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bFiltered) |
SCROW | FirstNonFilteredRow (SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const |
SCROW | LastNonFilteredRow (SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const |
SCROW | CountNonFilteredRows (SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const |
SC_DLLPUBLIC bool | IsManualRowHeight (SCROW nRow, SCTAB nTab) const |
bool | HasUniformRowHeight (SCTAB nTab, SCROW nRow1, SCROW nRow2) const |
void | SyncColRowFlags () |
Write all column row flags to table's flag data, because not all column row attributes are stored in the flag data members. More... | |
SC_DLLPUBLIC SCROW | GetLastFlaggedRow (SCTAB nTab) const |
SCCOL | GetLastChangedCol (SCTAB nTab) const |
SCROW | GetLastChangedRow (SCTAB nTab) const |
SCCOL | GetNextDifferentChangedCol (SCTAB nTab, SCCOL nStart) const |
SCROW | GetNextDifferentChangedRow (SCTAB nTab, SCROW nStart) const |
void | GetColDefault (SCTAB nTab, SCCOL nCol, SCROW nLastRow, SCROW &nDefault) |
bool | UpdateOutlineCol (SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab, bool bShow) |
Adapt Outline. More... | |
bool | UpdateOutlineRow (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bShow) |
void | StripHidden (SCCOL &rX1, SCROW &rY1, SCCOL &rX2, SCROW &rY2, SCTAB nTab) |
void | ExtendHidden (SCCOL &rX1, SCROW &rY1, SCCOL &rX2, SCROW &rY2, SCTAB nTab) |
SC_DLLPUBLIC ScPatternAttr * | GetDefPattern () const |
SC_DLLPUBLIC ScDocumentPool * | GetPool () |
SC_DLLPUBLIC ScStyleSheetPool * | GetStyleSheetPool () const |
void | GetUnprotectedCells (ScRangeList &rRange, SCTAB nTab) const |
SC_DLLPUBLIC OUString | GetPageStyle (SCTAB nTab) const |
SC_DLLPUBLIC void | SetPageStyle (SCTAB nTab, const OUString &rName) |
Size | GetPageSize (SCTAB nTab) const |
void | SetPageSize (SCTAB nTab, const Size &rSize) |
void | SetRepeatArea (SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCROW nEndRow) |
void | InvalidatePageBreaks (SCTAB nTab) |
void | UpdatePageBreaks (SCTAB nTab, const ScRange *pUserArea=nullptr) |
void | RemoveManualBreaks (SCTAB nTab) |
bool | HasManualBreaks (SCTAB nTab) const |
bool | IsPageStyleInUse (std::u16string_view rStrPageStyle, SCTAB *pInTab) |
bool | RemovePageStyleInUse (std::u16string_view rStrPageStyle) |
bool | RenamePageStyleInUse (std::u16string_view rOld, const OUString &rNew) |
void | ModifyStyleSheet (SfxStyleSheetBase &rPageStyle, const SfxItemSet &rChanges) |
void | PageStyleModified (SCTAB nTab, const OUString &rNewName) |
SC_DLLPUBLIC bool | NeedPageResetAfterTab (SCTAB nTab) const |
SC_DLLPUBLIC bool | HasPrintRange () |
SC_DLLPUBLIC sal_uInt16 | GetPrintRangeCount (SCTAB nTab) |
SC_DLLPUBLIC const ScRange * | GetPrintRange (SCTAB nTab, sal_uInt16 nPos) |
SC_DLLPUBLIC const ScRange * | GetRepeatColRange (SCTAB nTab) |
SC_DLLPUBLIC const ScRange * | GetRepeatRowRange (SCTAB nTab) |
bool | IsPrintEntireSheet (SCTAB nTab) const |
Returns true, if the specified sheet is always printed. More... | |
SC_DLLPUBLIC void | ClearPrintRanges (SCTAB nTab) |
Removes all print ranges. More... | |
SC_DLLPUBLIC void | AddPrintRange (SCTAB nTab, const ScRange &rNew) |
Adds a new print ranges. More... | |
SC_DLLPUBLIC void | SetPrintEntireSheet (SCTAB nTab) |
Marks the specified sheet to be printed completely. More... | |
SC_DLLPUBLIC void | SetRepeatColRange (SCTAB nTab, std::unique_ptr< ScRange > pNew) |
SC_DLLPUBLIC void | SetRepeatRowRange (SCTAB nTab, std::unique_ptr< ScRange > pNew) |
std::unique_ptr< ScPrintRangeSaver > | CreatePrintRangeSaver () const |
void | RestorePrintRanges (const ScPrintRangeSaver &rSaver) |
SC_DLLPUBLIC tools::Rectangle | GetMMRect (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, bool bHiddenAsZero=true) const |
SC_DLLPUBLIC ScRange | GetRange (SCTAB nTab, const tools::Rectangle &rMMRect, bool bHiddenAsZero=true) const |
void | UpdStlShtPtrsFrmNms () |
void | StylesToNames () |
SC_DLLPUBLIC void | CopyStdStylesFrom (const ScDocument &rSrcDoc) |
void | SetSrcCharSet (rtl_TextEncoding eNew) |
void | UpdateFontCharSet () |
void | FillInfo (ScTableInfo &rTabInfo, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCTAB nTab, double fColScale, double fRowScale, bool bPageMode, bool bFormulaMode, const ScMarkData *pMarkData=nullptr) |
SC_DLLPUBLIC SvNumberFormatter * | GetFormatTable () const |
void | Sort (SCTAB nTab, const ScSortParam &rSortParam, bool bKeepQuery, bool bUpdateRefs, ScProgress *pProgress, sc::ReorderParam *pUndo) |
Sort a range of data. More... | |
void | Reorder (const sc::ReorderParam &rParam) |
SCSIZE | Query (SCTAB nTab, const ScQueryParam &rQueryParam, bool bKeepSub) |
SC_DLLPUBLIC bool | CreateQueryParam (const ScRange &rRange, ScQueryParam &rQueryParam) |
void | GetUpperCellString (SCCOL nCol, SCROW nRow, SCTAB nTab, OUString &rStr) |
void | GetFilterEntries (SCCOL nCol, SCROW nRow, SCTAB nTab, ScFilterEntries &rFilterEntries) |
Get a list of unique strings to use in filtering criteria. More... | |
SC_DLLPUBLIC void | GetFilterEntriesArea (SCCOL nCol, SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bCaseSens, ScFilterEntries &rFilterEntries) |
Entries for Filter dialog. More... | |
void | GetDataEntries (SCCOL nCol, SCROW nRow, SCTAB nTab, std::vector< ScTypedStrData > &rStrings, bool bLimit=false) |
Entries for selection list listbox (no numbers/formulas) More... | |
void | GetFormulaEntries (ScTypedCaseStrSet &rStrings) |
Entries for Formula auto input. More... | |
bool | HasAutoFilter (SCCOL nCol, SCROW nRow, SCTAB nTab) |
void | GetFilterSelCount (SCCOL nCol, SCROW nRow, SCTAB nTab, SCSIZE &nSelected, SCSIZE &nTotal) |
SC_DLLPUBLIC bool | HasColHeader (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) |
SC_DLLPUBLIC bool | HasRowHeader (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) |
SfxPrinter * | GetPrinter (bool bCreateIfNotExist=true) |
void | SetPrinter (VclPtr< SfxPrinter > const &pNewPrinter) |
VirtualDevice * | GetVirtualDevice_100th_mm () |
SC_DLLPUBLIC OutputDevice * | GetRefDevice () |
bool | GetNextSpellingCell (SCCOL &nCol, SCROW &nRow, SCTAB nTab, bool bInSel, const ScMarkData &rMark) const |
void | ReplaceStyle (const SvxSearchItem &rSearchItem, SCCOL nCol, SCROW nRow, SCTAB nTab, const ScMarkData &rMark) |
void | InvalidateTextWidth (std::u16string_view rStyleName) |
void | InvalidateTextWidth (SCTAB nTab) |
void | InvalidateTextWidth (const ScAddress *pAdrFrom, const ScAddress *pAdrTo, bool bNumFormatChanged) |
bool | IdleCalcTextWidth () |
void | RepaintRange (const ScRange &rRange) |
void | RepaintRange (const ScRangeList &rRange) |
bool | IsIdleEnabled () const |
void | EnableIdle (bool bDo) |
bool | IsDetectiveDirty () const |
void | SetDetectiveDirty (bool bSet) |
bool | HasLinkFormulaNeedingCheck () const |
void | SetLinkFormulaNeedingCheck (bool bSet) |
SC_DLLPUBLIC void | CheckLinkFormulaNeedingCheck (const ScTokenArray &rCode) |
Check token array and set link check if ocDde/ocWebservice is contained. More... | |
void | SetRangeOverflowType (ErrCode nType) |
bool | HasRangeOverflow () const |
SC_DLLPUBLIC const ErrCode & | GetRangeOverflowType () const |
void | SetInsertingFromOtherDoc (bool bVal) |
bool | IsInsertingFromOtherDoc () const |
void | SetLoadingMedium (bool bVal) |
SC_DLLPUBLIC void | SetImportingXML (bool bVal) |
bool | IsImportingXML () const |
bool | IsCalcingAfterLoad () const |
void | SetNoListening (bool bVal) |
bool | GetNoListening () const |
ScBroadcastAreaSlotMachine * | GetBASM () const |
SC_DLLPUBLIC ScChartListenerCollection * | GetChartListenerCollection () const |
void | SetChartListenerCollection (std::unique_ptr< ScChartListenerCollection >, bool bSetChartRangeLists) |
void | UpdateChart (const OUString &rName) |
void | RestoreChartListener (const OUString &rName) |
SC_DLLPUBLIC void | UpdateChartListenerCollection () |
bool | IsChartListenerCollectionNeedsUpdate () const |
void | SetChartListenerCollectionNeedsUpdate (bool bFlg) |
void | AddOLEObjectToCollection (const OUString &rName) |
ScChangeViewSettings * | GetChangeViewSettings () const |
SC_DLLPUBLIC void | SetChangeViewSettings (const ScChangeViewSettings &rNew) |
const std::shared_ptr< SvxForbiddenCharactersTable > & | GetForbiddenCharacters () const |
void | SetForbiddenCharacters (const std::shared_ptr< SvxForbiddenCharactersTable > &rNew) |
CharCompressType | GetAsianCompression () const |
bool | IsValidAsianCompression () const |
void | SetAsianCompression (CharCompressType nNew) |
bool | GetAsianKerning () const |
bool | IsValidAsianKerning () const |
void | SetAsianKerning (bool bNew) |
void | ApplyAsianEditSettings (ScEditEngineDefaulter &rEngine) |
EEHorizontalTextDirection | GetEditTextDirection (SCTAB nTab) const |
SC_DLLPUBLIC ScLkUpdMode | GetLinkMode () const |
void | SetLinkMode (ScLkUpdMode nSet) |
SC_DLLPUBLIC ScMacroManager * | GetMacroManager () |
void | FillMatrix (ScMatrix &rMat, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, svl::SharedStringPool *pPool=nullptr) const |
void SC_DLLPUBLIC | SetFormulaResults (const ScAddress &rTopPos, const double *pResults, size_t nLen) |
Set an array of numerical formula results to a group of contiguous formula cells. More... | |
void | CalculateInColumnInThread (ScInterpreterContext &rContext, const ScRange &rCalcRange, unsigned nThisThread, unsigned nThreadsTotal) |
void | HandleStuffAfterParallelCalculation (SCCOL nColStart, SCCOL nColEnd, SCROW nRow, size_t nLen, SCTAB nTab, ScInterpreter *pInterpreter) |
void | TransferCellValuesTo (const ScAddress &rTopPos, size_t nLen, sc::CellValues &rDest) |
Transfer a series of contiguous cell values from specified position to the passed container. More... | |
void | CopyCellValuesFrom (const ScAddress &rTopPos, const sc::CellValues &rSrc) |
std::set< Color > | GetDocColors () |
sc::IconSetBitmapMap & | GetIconSetBitmapMap () |
void | StartListeningArea (const ScRange &rRange, bool bGroupListening, SvtListener *pListener) |
void | EndListeningArea (const ScRange &rRange, bool bGroupListening, SvtListener *pListener) |
void | Broadcast (const ScHint &rHint) |
Broadcast wrapper, calls rHint.GetCell()->Broadcast() and AreaBroadcast() and TrackFormulas() Preferred. More... | |
void | BroadcastCells (const ScRange &rRange, SfxHintId nHint, bool bBroadcastSingleBroadcasters=true) |
void | AreaBroadcast (const ScHint &rHint) |
only area, no cell broadcast More... | |
void | DelBroadcastAreasInRange (const ScRange &rRange) |
void | UpdateBroadcastAreas (UpdateRefMode eUpdateRefMode, const ScRange &rRange, SCCOL nDx, SCROW nDy, SCTAB nDz) |
void | StartListeningCell (const ScAddress &rAddress, SvtListener *pListener) |
void | EndListeningCell (const ScAddress &rAddress, SvtListener *pListener) |
void | StartListeningCell (sc::StartListeningContext &rCxt, const ScAddress &rPos, SvtListener &rListener) |
void | EndListeningCell (sc::EndListeningContext &rCxt, const ScAddress &rPos, SvtListener &rListener) |
void | EndListeningFormulaCells (std::vector< ScFormulaCell * > &rCells) |
void | PutInFormulaTree (ScFormulaCell *pCell) |
void | RemoveFromFormulaTree (ScFormulaCell *pCell) |
SC_DLLPUBLIC void | CalcFormulaTree (bool bOnlyForced=false, bool bProgressBar=true, bool bSetAllDirty=true) |
Calculate formula cells that are on the formula tree either partially, or in full. More... | |
void | ClearFormulaTree () |
void | AppendToFormulaTrack (ScFormulaCell *pCell) |
void | RemoveFromFormulaTrack (ScFormulaCell *pCell) |
void | TrackFormulas (SfxHintId nHintId=SfxHintId::ScDataChanged) |
void | SetTrackFormulasPending () |
bool | IsTrackFormulasPending () const |
void | FinalTrackFormulas (SfxHintId nHintId) |
bool | IsFinalTrackFormulas () const |
bool | IsInFormulaTree (const ScFormulaCell *pCell) const |
bool | IsInFormulaTrack (const ScFormulaCell *pCell) const |
HardRecalcState | GetHardRecalcState () const |
void | SetHardRecalcState (HardRecalcState eVal) |
void | StartAllListeners () |
void | StartNeededListeners () |
void | StartNeededListeners (const std::shared_ptr< const sc::ColumnSet > &rpColSet) |
void | StartAllListeners (const ScRange &rRange) |
void | SetForcedFormulas (bool bVal) |
sal_uLong | GetFormulaCodeInTree () const |
bool | IsInInterpreter () const |
void | IncInterpretLevel () |
void | DecInterpretLevel () |
sal_uInt16 | GetMacroInterpretLevel () const |
void | IncMacroInterpretLevel () |
void | DecMacroInterpretLevel () |
bool | IsInInterpreterTableOp () const |
void | IncInterpreterTableOpLevel () |
void | DecInterpreterTableOpLevel () |
void | AddTableOpFormulaCell (ScFormulaCell *) |
void | InvalidateLastTableOpParams () |
ScRecursionHelper & | GetRecursionHelper () |
bool | IsInDtorClear () const |
void | SetExpandRefs (bool bVal) |
bool | IsExpandRefs () const |
sal_uLong | GetXMLImportedFormulaCount () const |
void | IncXMLImportedFormulaCount (sal_uLong nVal) |
void | DecXMLImportedFormulaCount (sal_uLong nVal) |
void | StartTrackTimer () |
void | CompileDBFormula () |
void | CompileColRowNameFormula () |
sal_Int32 | GetMaxStringLen (SCTAB nTab, SCCOL nCol, SCROW nRowStart, SCROW nRowEnd, rtl_TextEncoding eCharSet) const |
Maximum string length of a column, e.g. More... | |
sal_Int32 | GetMaxNumberStringLen (sal_uInt16 &nPrecision, SCTAB nTab, SCCOL nCol, SCROW nRowStart, SCROW nRowEnd) const |
Maximum string length of numerical cells of a column, e.g. More... | |
void | KeyInput () |
ScChangeTrack * | GetChangeTrack () const |
SC_DLLPUBLIC void | SetChangeTrack (std::unique_ptr< ScChangeTrack > pTrack) |
only for import filter, deletes any existing ChangeTrack via EndChangeTracking() and takes ownership of new ChangeTrack pTrack More... | |
void | StartChangeTracking () |
void | EndChangeTracking () |
SC_DLLPUBLIC void | CompareDocument (ScDocument &rOtherDoc) |
void | AddUnoObject (SfxListener &rObject) |
void | RemoveUnoObject (SfxListener &rObject) |
void | BroadcastUno (const SfxHint &rHint) |
void | AddUnoListenerCall (const css::uno::Reference< css::util::XModifyListener > &rListener, const css::lang::EventObject &rEvent) |
void | SetInLinkUpdate (bool bSet) |
bool | IsInLinkUpdate () const |
SC_DLLPUBLIC SfxItemPool * | GetEditPool () const |
SC_DLLPUBLIC SfxItemPool * | GetEnginePool () const |
SC_DLLPUBLIC ScFieldEditEngine & | GetEditEngine () |
SC_DLLPUBLIC ScNoteEditEngine & | GetNoteEngine () |
std::unique_ptr< ScRefreshTimerControl > const & | GetRefreshTimerControlAddress () const |
void | SetPastingDrawFromOtherDoc (bool bVal) |
bool | PastingDrawFromOtherDoc () const |
sal_uInt32 | GetDocumentID () const |
an ID unique to each document instance More... | |
void | InvalidateStyleSheetUsage () |
void SC_DLLPUBLIC | GetSortParam (ScSortParam &rParam, SCTAB nTab) |
void SC_DLLPUBLIC | SetSortParam (const ScSortParam &rParam, SCTAB nTab) |
void | SetVbaEventProcessor (const css::uno::Reference< css::script::vba::XVBAEventProcessor > &rxVbaEvents) |
const css::uno::Reference< css::script::vba::XVBAEventProcessor > & | GetVbaEventProcessor () const |
void | SetStorageGrammar (formula::FormulaGrammar::Grammar eGrammar) |
Should only be GRAM_PODF or GRAM_ODFF. More... | |
formula::FormulaGrammar::Grammar | GetStorageGrammar () const |
SC_DLLPUBLIC SfxUndoManager * | GetUndoManager () |
bool | IsInVBAMode () const |
ScRowBreakIterator * | GetRowBreakIterator (SCTAB nTab) const |
void | AddSubTotalCell (ScFormulaCell *pCell) |
void | RemoveSubTotalCell (ScFormulaCell *pCell) |
void | SetSubTotalCellsDirty (const ScRange &rDirtyRange) |
sal_uInt16 | GetTextWidth (const ScAddress &rPos) const |
SvtScriptType | GetScriptType (const ScAddress &rPos) const |
void | SetScriptType (const ScAddress &rPos, SvtScriptType nType) |
void | UpdateScriptTypes (const ScAddress &rPos, SCCOL nColSize, SCROW nRowSize) |
size_t | GetFormulaHash (const ScAddress &rPos) const |
void | UnshareFormulaCells (SCTAB nTab, SCCOL nCol, std::vector< SCROW > &rRows) |
Make specified formula cells non-grouped. More... | |
void | RegroupFormulaCells (SCTAB nTab, SCCOL nCol) |
void | RegroupFormulaCells (const ScRange &range) |
ScFormulaVectorState | GetFormulaVectorState (const ScAddress &rPos) const |
formula::FormulaTokenRef | ResolveStaticReference (const ScAddress &rPos) |
formula::FormulaTokenRef | ResolveStaticReference (const ScRange &rRange) |
formula::VectorRefArray | FetchVectorRefArray (const ScAddress &rPos, SCROW nLength) |
bool | HandleRefArrayForParallelism (const ScAddress &rPos, SCROW nLength, const ScFormulaCellGroupRef &mxGroup) |
void | AssertNoInterpretNeeded (const ScAddress &rPos, SCROW nLength) |
void | PrepareFormulaCalc () |
Call this before any operations that might trigger one or more formula cells to get calculated. More... | |
SC_DLLPUBLIC bool | EnsureFormulaCellResults (const ScRange &rRange, bool bSkipRunning=false) |
Make sure all of the formula cells in the specified range have been fully calculated. More... | |
SvtBroadcaster * | GetBroadcaster (const ScAddress &rPos) |
const SvtBroadcaster * | GetBroadcaster (const ScAddress &rPos) const |
void | DeleteBroadcasters (sc::ColumnBlockPosition &rBlockPos, const ScAddress &rTopPos, SCROW nLength) |
std::unique_ptr< sc::ColumnIterator > | GetColumnIterator (SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2) const |
void | CreateColumnIfNotExists (SCTAB nTab, SCCOL nCol) |
SC_DLLPUBLIC void | StoreTabToCache (SCTAB nTab, SvStream &rStrm) const |
SC_DLLPUBLIC void | RestoreTabFromCache (SCTAB nTab, SvStream &rStream) |
SC_DLLPUBLIC void | DumpColumnStorage (SCTAB nTab, SCCOL nCol) const |
SC_DLLPUBLIC void | SetCalcConfig (const ScCalcConfig &rConfig) |
const ScCalcConfig & | GetCalcConfig () const |
void | ConvertFormulaToValue (const ScRange &rRange, sc::TableValues *pUndo) |
void | SwapNonEmpty (sc::TableValues &rValues) |
void | finalizeOutlineImport () |
bool | TableExists (SCTAB nTab) const |
SC_DLLPUBLIC ScColumnsRange | GetColumnsRange (SCTAB nTab, SCCOL nColBegin, SCCOL nColEnd) const |
bool | IsInDocShellRecalc () const |
void | SetDocShellRecalc (bool bSet) |
OString | dumpSheetGeomData (SCTAB nTab, bool bColumns, SheetGeomType eGeomType) |
Serializes the specified sheet's geometry data. More... | |
SCCOL | GetLOKFreezeCol (SCTAB nTab) const |
SCROW | GetLOKFreezeRow (SCTAB nTab) const |
bool | SetLOKFreezeCol (SCCOL nFreezeCol, SCTAB nTab) |
bool | SetLOKFreezeRow (SCROW nFreezeRow, SCTAB nTab) |
Static Public Member Functions | |
static SC_DLLPUBLIC bool | ValidTabName (const OUString &rName) |
static bool | IsChart (const SdrObject *pObject) |
static sal_uInt16 | GetSrcVersion () |
Public Attributes | |
std::vector< ScInterpreterTableOpParams * > | m_TableOpList |
list of ScInterpreterTableOpParams currently in use More... | |
ScInterpreterTableOpParams | aLastTableOpParams |
Private Types | |
typedef std::vector< ScTableUniquePtr > | TableContainer |
Static Private Attributes | |
static thread_local ScDocumentThreadSpecific | maThreadSpecific |
static const sal_uInt16 | nSrcVer = SC_CURRENT_VERSION |
Friends | |
class | ScValueIterator |
class | ScHorizontalValueIterator |
class | ScDBQueryDataIterator |
class | ScFormulaGroupIterator |
class | ScCellIterator |
class | ScQueryCellIterator |
class | ScCountIfCellIterator |
class | ScHorizontalCellIterator |
class | ScHorizontalAttrIterator |
class | ScDocAttrIterator |
class | ScAccessibleTableBase |
class | ScAttrRectIterator |
class | ScDocShell |
class | ScDocRowHeightUpdater |
class | ScColumnTextWidthIterator |
class | ScFormulaCell |
class | ScTable |
class | ScColumn |
struct | ScRefCellValue |
class | ScDocumentImport |
class | sc::DocumentStreamAccess |
class | sc::ColumnSpanSet |
class | sc::RangeColumnSpanSet |
class | sc::EditTextIterator |
class | sc::FormulaGroupAreaListener |
class | sc::TableColumnBlockPositionSet |
struct | ScMutationGuard |
struct | ScMutationDisable |
Definition at line 313 of file document.hxx.
|
private |
Definition at line 344 of file document.hxx.
|
strong |
Enumerator | |
---|---|
OFF | |
TEMPORARY |
normal calculation of dependencies |
ETERNAL |
CalcAll() without broadcast/notify but setting up new listeners. no new listeners are setup, no broadcast/notify |
Definition at line 347 of file document.hxx.
ScDocument::ScDocument | ( | ScDocumentMode | eMode = SCDOCMODE_DOCUMENT , |
SfxObjectShell * | pDocShell = nullptr |
||
) |
Definition at line 102 of file documen2.cxx.
References aCurTextWidthCalcPos, apTemporaryChartLock, aTrackIdle, ScGlobal::eLnge, eSrcSet, formula::FormulaGrammar::GRAM_STORAGE_DEFAULT, ImplCreateOptions(), Invalid, LINK, make_shared(), maPreviewSelection, MaxCol(), mxPoolHelper, mxSheetLimits, OFF, pBASM, pChartListenerCollection, pDBCollection, pRefreshTimerControl, pSelectionAttr, SCDOCMODE_DOCUMENT, SCDOCMODE_FUNCTIONACCESS, Timer::SetInvokeHandler(), SetLanguage(), SetStorageGrammar(), xColNameRanges, and xRowNameRanges.
Referenced by FillTab(), and FillTabMarked().
ScDocument::~ScDocument | ( | ) |
Definition at line 324 of file documen2.cxx.
References apTemporaryChartLock, assert(), bInDtorClear, bInLinkUpdate, bIsClip, bIsUndo, Clear(), ClearLookupCaches(), DeleteDrawLayer(), VclPtr< VirtualDevice >::disposeAndClear(), VclPtr< reference_type >::disposeAndClear(), GetRefreshTimerControlAddress(), comphelper::ThreadPool::getSharedOptimalPool(), ImplDeleteOptions(), comphelper::ThreadPool::joinThreadsIfIdle(), maNonThreaded, maThreadSpecific, mpAnonymousDBData, mpCellStringPool, mpEditEngine, mpFormulaGroupCxt, mpNoteEngine, mpPrinter, mpVirtualDevice_100th_mm, mxFormulaParserPool, mxPoolHelper, pAutoNameCache, pBASM, pCacheFieldEditEngine, pChangeTrack, pChangeViewSettings, pChartListenerCollection, pClipData, pConsolidateDlgData, pDBCollection, pDelayedFormulaGrouping, pDelayedStartListeningFormulaCells, pDetOpList, pDPCollection, pExternalRefMgr, pPreviewFont, pRangeName, pRefreshTimerControl, pScriptTypeData, pSelectionAttr, pUnoBroadcaster, pUnoListenerCalls, pUnoRefUndoList, pValidationList, ScAddInAsync::RemoveDocument(), ScAddInListener::RemoveDocument(), SAL_WARN_IF, and ScDocumentThreadSpecific::xRecursionHelper.
|
privatedelete |
sal_uLong ScDocument::AddCondFormat | ( | std::unique_ptr< ScConditionalFormat > | pNew, |
SCTAB | nTab | ||
) |
Definition at line 705 of file documen4.cxx.
References ValidTab().
Referenced by XclImpCondFormat::Apply(), XMLTableStyleContext::ApplyCondFormat(), ScCondFormatsObj::createByRange(), ScXMLConditionalFormatContext::endFastElement(), oox::xls::CondFormat::finalizeImport(), oox::xls::CondFormatBuffer::finalizeImport(), and ScDocFunc::ReplaceConditionalFormat().
void ScDocument::AddCondFormatData | ( | const ScRangeList & | rRange, |
SCTAB | nTab, | ||
sal_uInt32 | nIndex | ||
) |
Definition at line 4797 of file document.cxx.
References o3tl::make_unsigned(), and maTabs.
Referenced by ScConditionalFormatList::AddToDocument(), XclImpCondFormat::Apply(), XMLTableStyleContext::ApplyCondFormat(), ScTable::CopyConditionalFormat(), ScXMLConditionalFormatsContext::endFastElement(), oox::xls::CondFormat::finalizeImport(), oox::xls::CondFormatBuffer::finalizeImport(), and ScDocFunc::ReplaceConditionalFormat().
void ScDocument::AddDelayedFormulaGroupingCell | ( | const ScFormulaCell * | cell | ) |
To be used only by SharedFormulaUtil::joinFormulaCells().
Definition at line 391 of file document10.cxx.
References ScFormulaCell::aPos, and pDelayedFormulaGrouping.
Referenced by sc::SharedFormulaUtil::joinFormulaCells().
void ScDocument::AddDetectiveOperation | ( | const ScDetOpData & | rData | ) |
Definition at line 890 of file documen4.cxx.
Referenced by ScDocFunc::DetectiveAddError(), ScDocFunc::DetectiveAddPred(), ScDocFunc::DetectiveAddSucc(), ScDocFunc::DetectiveDelPred(), ScDocFunc::DetectiveDelSucc(), and ScXMLBodyContext::endFastElement().
void ScDocument::AddOLEObjectToCollection | ( | const OUString & | rName | ) |
Definition at line 645 of file documen5.cxx.
References assert(), and pChartListenerCollection.
Referenced by ScMyOLEFixer::CreateChartListener().
Adds a new print ranges.
Definition at line 6294 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ImportExcel::PostDocLoad(), ScTableSheetObj::setPrintAreas(), and ScViewFunc::SetPrintRanges().
void ScDocument::AddSubTotalCell | ( | ScFormulaCell * | pCell | ) |
Definition at line 6383 of file document.cxx.
References maSubTotalCells.
Referenced by ScFormulaCell::CalcAfterLoad(), ScFormulaCell::CompileTokenArray(), ScFormulaCell::CompileXML(), and ScFormulaCell::ScFormulaCell().
void ScDocument::AddTableOpFormulaCell | ( | ScFormulaCell * | pCell | ) |
Definition at line 3903 of file document.cxx.
References ScInterpreterTableOpParams::aNotifiedFormulaCells, ScInterpreterTableOpParams::aNotifiedFormulaPos, ScFormulaCell::aPos, ScInterpreterTableOpParams::bCollectNotifications, ScInterpreterTableOpParams::bRefresh, and m_TableOpList.
Referenced by ScFormulaCell::Notify(), and ScFormulaCell::SetTableOpDirty().
void ScDocument::AddUndoTab | ( | SCTAB | nTab1, |
SCTAB | nTab2, | ||
bool | bColInfo = false , |
||
bool | bRowInfo = false |
||
) |
Definition at line 2025 of file document.cxx.
void ScDocument::AddUnoListenerCall | ( | const css::uno::Reference< css::util::XModifyListener > & | rListener, |
const css::lang::EventObject & | rEvent | ||
) |
Definition at line 971 of file documen3.cxx.
Referenced by ScChart2DataSequence::Notify(), ScCellRangesBase::Notify(), and ScDataPilotTableObj::Refreshed_Impl().
void ScDocument::AddUnoObject | ( | SfxListener & | rObject | ) |
Definition at line 892 of file documen3.cxx.
References SfxListener::StartListening().
Referenced by ScTabViewShell::AddAccessibilityObject(), ScStyleObj::InitDoc(), ScCellRangesBase::InitInsertRange(), sc::PivotTableDataSequence::PivotTableDataSequence(), ScAccessibleHeaderTextData::ScAccessibleHeaderTextData(), ScAccessibleNoteTextData::ScAccessibleNoteTextData(), ScAddressConversionObj::ScAddressConversionObj(), ScAnnotationEditSource::ScAnnotationEditSource(), ScAreaLinkObj::ScAreaLinkObj(), ScAreaLinksObj::ScAreaLinksObj(), ScCellFieldsObj::ScCellFieldsObj(), ScCellFormatsEnumeration::ScCellFormatsEnumeration(), ScCellFormatsObj::ScCellFormatsObj(), ScCellRangesBase::ScCellRangesBase(), ScCellsEnumeration::ScCellsEnumeration(), ScCellsObj::ScCellsObj(), ScCellTextData::ScCellTextData(), ScChart2DataProvider::ScChart2DataProvider(), ScChart2DataSource::ScChart2DataSource(), ScChartObj::ScChartObj(), ScCondFormatsObj::ScCondFormatsObj(), ScDatabaseRangeObj::ScDatabaseRangeObj(), ScDatabaseRangesObj::ScDatabaseRangesObj(), ScDataPilotDescriptorBase::ScDataPilotDescriptorBase(), ScDataPilotTablesObj::ScDataPilotTablesObj(), ScDDELinkObj::ScDDELinkObj(), ScDDELinksObj::ScDDELinksObj(), ScDocumentConfiguration::ScDocumentConfiguration(), ScDrawDefaultsObj::ScDrawDefaultsObj(), ScDrawPagesObj::ScDrawPagesObj(), ScFilterDescriptorBase::ScFilterDescriptorBase(), ScForbiddenCharsObj::ScForbiddenCharsObj(), ScLabelRangeObj::ScLabelRangeObj(), ScLabelRangesObj::ScLabelRangesObj(), ScLinkTargetTypeObj::ScLinkTargetTypeObj(), ScModelObj::ScModelObj(), ScNamedRangeObj::ScNamedRangeObj(), ScNamedRangesObj::ScNamedRangesObj(), ScScenariosObj::ScScenariosObj(), ScSheetLinksObj::ScSheetLinksObj(), ScStyleFamiliesObj::ScStyleFamiliesObj(), ScStyleFamilyObj::ScStyleFamilyObj(), ScStyleObj::ScStyleObj(), ScTableColumnsObj::ScTableColumnsObj(), ScTableSheetsObj::ScTableSheetsObj(), ScUniqueCellFormatsEnumeration::ScUniqueCellFormatsEnumeration(), ScUniqueCellFormatsObj::ScUniqueCellFormatsObj(), and ScUnnamedDatabaseRangesObj::ScUnnamedDatabaseRangesObj().
void ScDocument::AddUnoRefChange | ( | sal_Int64 | nId, |
const ScRangeList & | rOldRanges | ||
) |
Definition at line 993 of file documen3.cxx.
Referenced by ScChart2DataSequence::Notify(), and ScCellRangesBase::Notify().
sal_uLong ScDocument::AddValidationEntry | ( | const ScValidationData & | rNew | ) |
Definition at line 716 of file documen4.cxx.
References ScValidationData::Clone(), CORE, ScValidationData::EqualEntries(), ScValidationData::GetKey(), ScValidationData::IsEmpty(), and pData.
Referenced by XclImpValidationManager::Apply(), ScPatternAttr::PutInPool(), ScXMLTableRowCellContext::SetContentValidation(), ScCellRangesBase::SetOnePropertyValue(), and ScViewFunc::SetValidation().
void ScDocument::AppendTabOnLoad | ( | const OUString & | rName | ) |
Definition at line 470 of file document.cxx.
References aName, CreateValidTabName(), maTabs, ScTable, and ValidTab().
Referenced by ScMyTables::NewSheet().
void ScDocument::AppendToFormulaTrack | ( | ScFormulaCell * | pCell | ) |
Definition at line 450 of file documen7.cxx.
References nFormulaTrackCount, pEOFormulaTrack, pFormulaTrack, RemoveFromFormulaTrack(), RemoveFromFormulaTree(), ScFormulaCell::SetNextTrack(), and ScFormulaCell::SetPreviousTrack().
Referenced by ScFormulaCell::CompileXML(), ScFormulaCell::Notify(), ScFormulaCell::SetDirty(), and ScFormulaCell::SetTableOpDirty().
void ScDocument::ApplyAsianEditSettings | ( | ScEditEngineDefaulter & | rEngine | ) |
Definition at line 672 of file documen9.cxx.
References GetAsianCompression(), GetAsianKerning(), EditEngine::SetAsianCompressionMode(), EditEngine::SetForbiddenCharsTable(), EditEngine::SetKernAsianPunctuation(), and xForbiddenCharacters.
Referenced by ScOutputData::CreateOutputEditEngine(), GetEditEngine(), ScColumn::GetNeededSize(), GetNoteEngine(), ScPrintFunc::MakeEditEngine(), and ScInputHandler::UpdateSpellSettings().
void ScDocument::ApplyAttr | ( | SCCOL | nCol, |
SCROW | nRow, | ||
SCTAB | nTab, | ||
const SfxPoolItem & | rAttr | ||
) |
Definition at line 4747 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScHTMLTable::ApplyCellBorders(), ScDPOutput::DataCell(), ScUndoMerge::DoChange(), ScDBFunc::HideAutoFilter(), oox::xls::WorksheetGlobals::insertHyperlink(), ScAttrArray::InsertRow(), oox::xls::lcl_SetBorderLine(), ScDocFunc::MergeCells(), ScDPOutput::Output(), PutFormString(), ScAttrArray::RemoveAreaMerge(), XclImpXFRangeBuffer::SetBorderLine(), XclImpAutoFilterData::SetCellAttribs(), SetFormat(), ScTransferObj::StripRefs(), ScImportExport::Sylk2Doc(), ScDBFunc::ToggleAutoFilter(), ScUndoEnterData::Undo(), and ScHTMLImport::WriteToDocument().
bool ScDocument::ApplyFlagsTab | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
SCTAB | nTab, | ||
ScMF | nFlags | ||
) |
Definition at line 4997 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ExcScenario::Apply(), XclImpPivotTable::ApplyMergeFlags(), ScDocShell::CancelAutoDBRange(), ScDPCollection::CopyToTab(), ScUndoAutoFilter::DoChange(), ScXMLTableScenarioContext::endFastElement(), ScDBFuncUndo::EndUndo(), ScAttrArray::ExtendMerge(), ScDPOutput::FieldCell(), ScDPCollection::InsertNewTable(), lcl_DoFilterButton(), ScDPObject::Output(), RefreshAutoFilter(), ScVbaWorksheet::setAutoFilterMode(), ScXMLDataPilotTableContext::SetButtons(), ScDatabaseRangeObj::setPropertyValue(), and ScEEImport::WriteToDocument().
void ScDocument::ApplyFrameAreaTab | ( | const ScRange & | rRange, |
const SvxBoxItem & | rLineOuter, | ||
const SvxBoxInfoItem & | rLineInner | ||
) |
Definition at line 5846 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), maTabs, ScAddress::Row(), and ScAddress::Tab().
void ScDocument::ApplyPattern | ( | SCCOL | nCol, |
SCROW | nRow, | ||
SCTAB | nTab, | ||
const ScPatternAttr & | rAttr | ||
) |
Definition at line 4753 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScViewFunc::ApplySelectionPattern(), ScViewFunc::EnterData(), lcl_PutString(), ScXMLTableRowCellContext::SetContentValidation(), and ScQProStyle::SetFormat().
void ScDocument::ApplyPatternArea | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
const ScMarkData & | rMark, | ||
const ScPatternAttr & | rAttr, | ||
ScEditDataArray * | pDataArray = nullptr , |
||
bool *const | pIsChanged = nullptr |
||
) |
Definition at line 4759 of file document.cxx.
References maTabs.
Referenced by ApplySelectionPattern(), ScDocFunc::DeleteCells(), and ScUndoDeleteCells::DoChange().
void ScDocument::ApplyPatternAreaTab | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
SCTAB | nTab, | ||
const ScPatternAttr & | rAttr | ||
) |
Definition at line 4776 of file document.cxx.
References maTabs, and ValidTab().
Referenced by LotAttrCol::Apply(), DifColumn::Apply(), XclImpValidationManager::Apply(), XclImpXF::ApplyPattern(), ScDocShell::MakeScenario(), OP_ApplyPatternArea123(), ScDBDocFunc::Query(), ScUndoRemoveMerge::Redo(), ScAreaLink::Refresh(), ScAttrArray::RemoveAreaMerge(), ScXMLTableRowCellContext::SetContentValidation(), ScDocFunc::UnmergeCells(), and oox::xls::Xf::writeToDoc().
void ScDocument::ApplyPatternIfNumberformatIncompatible | ( | const ScRange & | rRange, |
const ScMarkData & | rMark, | ||
const ScPatternAttr & | rPattern, | ||
SvNumFormatType | nNewType | ||
) |
Definition at line 4784 of file document.cxx.
References maTabs.
Referenced by ScViewFunc::EnterBlock().
void ScDocument::ApplySelectionFrame | ( | const ScMarkData & | rMark, |
const SvxBoxItem & | rLineOuter, | ||
const SvxBoxInfoItem * | pLineInner | ||
) |
Definition at line 5738 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScMarkData::FillRangeListWithMarks(), SvxBoxItem::GetBottom(), SvxBoxItem::GetLeft(), SvxBoxItem::GetRight(), SvxBoxItem::GetTop(), SvxBoxItem::IsRemoveAdjacentCellBorder(), SvxBoxInfoItem::IsValid(), maTabs, ScAddress::Row(), SvxBoxItem::SetLine(), SvxBoxInfoItem::SetLine(), SvxBoxInfoItem::SetTable(), SvxBoxInfoItem::SetValid(), and ScRangeList::size().
Referenced by ScHelperFunctions::ApplyBorder(), ScViewFunc::ApplyPatternLines(), ScUndoSelectionAttr::DoChange(), and ScUndoBorder::Redo().
void ScDocument::ApplySelectionLineStyle | ( | const ScMarkData & | rMark, |
const ::editeng::SvxBorderLine * | pLine, | ||
bool | bColorOnly | ||
) |
Definition at line 4872 of file document.cxx.
References maTabs.
Referenced by ScViewFunc::SetSelectionFrameLines().
void ScDocument::ApplySelectionPattern | ( | const ScPatternAttr & | rAttr, |
const ScMarkData & | rMark, | ||
ScEditDataArray * | pDataArray = nullptr , |
||
bool * | pIsChanged = nullptr |
||
) |
Definition at line 5859 of file document.cxx.
References ScRange::aEnd, ApplyPatternArea(), ScRange::aStart, ATTR_PATTERN_END(), ATTR_PATTERN_START(), ScAddress::Col(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), ScMarkData::GetMarkArea(), i, ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), maTabs, mxPoolHelper, and ScAddress::Row().
Referenced by ScDocFunc::ApplyAttributes(), ScViewFunc::ApplyPatternLines(), ScViewFunc::ApplySelectionPattern(), ScUndoSelectionAttr::DoChange(), ScFormatShell::ExecuteStyle(), and ScDocShell::MakeScenario().
void ScDocument::ApplySelectionStyle | ( | const ScStyleSheet & | rStyle, |
const ScMarkData & | rMark | ||
) |
Definition at line 4849 of file document.cxx.
References ScRange::aEnd, ApplyStyleArea(), ScRange::aStart, ScAddress::Col(), ScMarkData::GetMarkArea(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), maTabs, and ScAddress::Row().
Referenced by ScDocFunc::ApplyStyle(), ScUndoSelectionStyle::DoChange(), and ScViewFunc::SetStyleSheetToMarked().
void ScDocument::ApplyStyle | ( | SCCOL | nCol, |
SCROW | nRow, | ||
SCTAB | nTab, | ||
const ScStyleSheet & | rStyle | ||
) |
Definition at line 4819 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScViewFunc::SetStyleSheetToMarked().
void ScDocument::ApplyStyleArea | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
const ScMarkData & | rMark, | ||
const ScStyleSheet & | rStyle | ||
) |
Definition at line 4826 of file document.cxx.
References maTabs.
Referenced by ApplySelectionStyle().
void ScDocument::ApplyStyleAreaTab | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
SCTAB | nTab, | ||
const ScStyleSheet & | rStyle | ||
) |
Definition at line 4841 of file document.cxx.
References maTabs, and ValidTab().
Referenced by XclImpXF::ApplyPattern(), ScDocShell::DoAutoStyle(), ScDBDocFunc::Query(), and oox::xls::Xf::writeToDoc().
only area, no cell broadcast
Definition at line 189 of file documen7.cxx.
References eHardRecalcState, SfxHint::GetId(), OFF, pBASM, and TrackFormulas().
Referenced by ScColumn::MoveTo().
Definition at line 1797 of file document.cxx.
References assert(), ScAddress::Col(), maTabs, ScAddress::Row(), ScAddress::Tab(), and TableExists().
Referenced by ScGroupTokenConverter::convert().
void ScDocument::AutoFormat | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
sal_uInt16 | nFormatNo, | ||
const ScMarkData & | rMark | ||
) |
Definition at line 1179 of file documen3.cxx.
References PutInOrder().
Referenced by ScDocFunc::AutoFormat(), and ScUndoAutoFormat::Redo().
void ScDocument::BeginDrawUndo | ( | ) |
Definition at line 59 of file documen9.cxx.
References mpDrawLayer.
Referenced by ScViewFunc::AppendTable(), ScDocFunc::AutoFormat(), ScViewFunc::CutToClip(), ScViewFunc::DataFormPutData(), ScDocFunc::DeleteCell(), ScDocFunc::DeleteCells(), ScDocFunc::DeleteContents(), ScViewFunc::DeleteMulti(), ScDocFunc::DeleteTable(), ScViewFunc::ImportTables(), ScDocFunc::InsertCells(), ScDocFunc::InsertNameList(), ScDocFunc::InsertTable(), ScViewFunc::InsertTables(), ScDocShell::MakeScenario(), ScDocFunc::MergeCells(), ScDocFunc::MoveBlock(), ScViewFunc::MoveTable(), ScDocShell::MoveTable(), ScViewFunc::PasteFromClip(), ScViewFunc::PasteFromClipToMultiRanges(), ScViewFunc::PasteMultiRangesFromClip(), ScDBDocFunc::Query(), ScDocFunc::SetWidthOrHeight(), and ScViewFunc::SetWidthOrHeight().
void ScDocument::BeginUnoRefUndo | ( | ) |
Definition at line 981 of file documen3.cxx.
|
inline |
Definition at line 1188 of file document.hxx.
Broadcast wrapper, calls rHint.GetCell()->Broadcast() and AreaBroadcast() and TrackFormulas() Preferred.
Definition at line 116 of file documen7.cxx.
References BCA_BRDCST_ALWAYS, SvtBroadcaster::Broadcast(), eHardRecalcState, ScHint::GetAddress(), GetBroadcaster(), SfxHint::GetId(), maTabs, OFF, pBASM, ScAddress::Tab(), and TrackFormulas().
Referenced by ScColumn::BroadcastCells(), and ScDocShell::SetDocumentModified().
void ScDocument::BroadcastCells | ( | const ScRange & | rRange, |
SfxHintId | nHint, | ||
bool | bBroadcastSingleBroadcasters = true |
||
) |
Definition at line 142 of file documen7.cxx.
References ScRange::aEnd, ScRange::aStart, ScTable::BroadcastBroadcasters(), BroadcastUno(), ScAddress::Col(), eHardRecalcState, FetchTable(), OFF, pBASM, PrepareFormulaCalc(), ScAddress::Row(), ScTable::SetStreamValid(), ScAddress::Tab(), and TrackFormulas().
Referenced by ScSimpleUndo::BroadcastChanges(), ScDocFunc::ConvertFormulaToValue(), ScUndoPaste::DoChange(), ScUndoMerge::DoChange(), sc::UndoFormulaToValue::Execute(), sc::UndoSort::Execute(), ScImportExport::ExtText2Doc(), SetDirty(), ScImportExport::Text2Doc(), and ScUndoDragDrop::Undo().
Definition at line 943 of file documen3.cxx.
References SfxHint::GetId().
Referenced by BroadcastCells(), ScDBDocFunc::CreatePivotTable(), ScDdeLink::DataChanged(), ScDBDocFunc::DataPilotUpdate(), ScDocShell::DBAreaDeleted(), ScDocShell::DoHardRecalc(), ScDBDocFunc::DoImport(), ScDocShell::DoRecalc(), ScXMLImport::endDocument(), ScChart2DataSequence::RebuildDataCache(), ScAreaLink::Refresh(), ScTableLink::Refresh(), ScDocShell::SetDocumentModified(), ScDocShellModificator::SetDocumentModified(), ScUnoRefList::Undo(), ScUndoDataPilot::Undo(), and ScDBDocFunc::UpdatePivotTable().
void ScDocument::CalcAfterLoad | ( | bool | bStartListening = true | ) |
Definition at line 4016 of file document.cxx.
References a, bCalcingAfterLoad, bIsClip, ScChartListener::GetRangeList(), InterpretDirtyCells(), maTabs, pChartListenerCollection, and SetDetectiveDirty().
Referenced by generate_Opcodes(), ScQProReader::import(), ImportExcel8::Read(), ImportLotus::Read(), and ImportExcel::Read().
void ScDocument::CalcAll | ( | ) |
Definition at line 3923 of file document.cxx.
References a, ClearFormulaTree(), ClearLookupCaches(), ETERNAL, GetHardRecalcState(), maTabs, and PrepareFormulaCalc().
Referenced by CalcFormulaTree(), ScDocShell::DoHardRecalc(), ScDocShell::Execute(), and ScModule::ModifyOptions().
void ScDocument::CalcFormulaTree | ( | bool | bOnlyForced = false , |
bool | bProgressBar = true , |
||
bool | bSetAllDirty = true |
||
) |
Calculate formula cells that are on the formula tree either partially, or in full.
bOnlyForced | when true, it only calculates those formula cells that are marked "recalc forced". |
bProgressBar | whether or not to use progress bar. |
bSetAllDirty | when true, it marks all formula cells currently on the formula tree dirty, which forces all of them to be recalculated. When false, only those cells that are marked dirty prior to this call get recalculated. |
Definition at line 325 of file documen7.cxx.
References bAutoCalc, bCalculatingFormulaTree, CalcAll(), CORE, ScProgress::CreateInterpretProgress(), ScProgress::DeleteInterpretProgress(), eHardRecalcState, EnableIdle(), ETERNAL, GetAutoCalc(), ScFormulaCell::GetCode(), ScFormulaCell::GetDirty(), ScFormulaCell::GetNext(), ScFormulaCell::GetPrevious(), ScFormulaCell::Interpret(), IsCalculatingFormulaTree(), IsIdleEnabled(), formula::FormulaTokenArray::IsRecalcModeAlways(), formula::FormulaTokenArray::IsRecalcModeForced(), mpFormulaGroupCxt, nFormulaCodeInTree, pFormulaTree, ScFormulaCell::SetDirty(), ScFormulaCell::SetDirtyVar(), and SetForcedFormulaPending().
Referenced by ScDocShell::DoRecalc(), SetAutoCalc(), ScDocShell::SetDocumentModified(), and TrackFormulas().
void ScDocument::CalculateInColumnInThread | ( | ScInterpreterContext & | rContext, |
const ScRange & | rCalcRange, | ||
unsigned | nThisThread, | ||
unsigned | nThreadsTotal | ||
) |
Definition at line 410 of file documen8.cxx.
References ScRange::aEnd, assert(), ScRange::aStart, ScTable::CalculateInColumnInThread(), ScAddress::Col(), ScAddress::Row(), and ScAddress::Tab().
Referenced by ScFormulaCell::InterpretFormulaGroupThreading().
If true is returned, ScColumn::StartListeningFormulaCells() for the given cells will be performed later.
If false is returned, it needs to be done explicitly.
Definition at line 426 of file document10.cxx.
References pDelayedStartListeningFormulaCells.
Definition at line 1821 of file document.cxx.
References ScRange::aEnd, CanInsertCol(), CanInsertRow(), HasPartOfMerged(), lcl_GetInsDelRanges(), MaxCol(), MaxRow(), ScAddress::SetCol(), and ScAddress::SetRow().
Referenced by ScDBDocFunc::DoImport(), ScDBDocFunc::Query(), and ScAreaLink::Refresh().
bool ScDocument::CanInsertCol | ( | const ScRange & | rRange | ) | const |
Definition at line 1468 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), i, maTabs, PutInOrder(), ScAddress::Row(), and ScAddress::Tab().
Referenced by CanFitBlock(), and ScChangeActionDel::Reject().
bool ScDocument::CanInsertRow | ( | const ScRange & | rRange | ) | const |
Definition at line 1182 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), i, maTabs, PutInOrder(), ScAddress::Row(), and ScAddress::Tab().
Referenced by CanFitBlock(), and ScChangeActionDel::Reject().
void ScDocument::ChangeSelectionIndent | ( | bool | bIncrement, |
const ScMarkData & | rMark | ||
) |
Definition at line 5893 of file document.cxx.
References maTabs.
Referenced by ScDocFunc::ChangeIndent(), and ScUndoIndent::Redo().
void ScDocument::CheckLinkFormulaNeedingCheck | ( | const ScTokenArray & | rCode | ) |
Check token array and set link check if ocDde/ocWebservice is contained.
Definition at line 1153 of file documen8.cxx.
References formula::FormulaTokenArray::GetCodeLen(), formula::FormulaTokenArray::GetLen(), formula::FormulaTokenArray::HasOpCode(), formula::FormulaTokenArray::HasOpCodeRPN(), ocDde, ocWebservice, and SAL_WARN.
Referenced by ScRangeData::CompileUnresolvedXML(), ScFormulaCell::CompileXML(), ScConditionEntry::CompileXML(), oox::xls::CondFormatRule::finalizeImport(), ImportExcel::Formula(), oox::xls::DefinedName::getScTokens(), XclImpName::InsertName(), XclImpCondFormat::ReadCF(), ScRangeData::ScRangeData(), ImportExcel::Shrfmla(), and ScImportExport::Sylk2Doc().
void ScDocument::CheckVectorizationState | ( | ) |
Definition at line 3811 of file document.cxx.
References a, bAutoCalc, GetAutoCalc(), maTabs, and SetAutoCalc().
Referenced by ScModelObj::enableOpenCL().
Definition at line 2123 of file documen3.cxx.
Referenced by ScTabPageSortFields::FillFieldLists(), and ScTabView::SkipCursorHorizontal().
void ScDocument::Clear | ( | bool | bFromDestructor = false | ) |
Definition at line 499 of file documen9.cxx.
References maTabs, mpDrawLayer, and pSelectionAttr.
Referenced by InitClipPtrs(), InitUndo(), InitUndoSelected(), and ~ScDocument().
void ScDocument::ClearDetectiveOperations | ( | ) |
Definition at line 898 of file documen4.cxx.
Referenced by ScDocFunc::DetectiveDelAll(), and ScUndoDetective::Redo().
void ScDocument::ClearFormulaTree | ( | ) |
Definition at line 437 of file documen7.cxx.
References ScFormulaCell::GetCode(), ScFormulaCell::GetNext(), formula::FormulaTokenArray::IsRecalcModeAlways(), pFormulaTree, and RemoveFromFormulaTree().
Referenced by CalcAll().
void ScDocument::ClearLookupCaches | ( | ) |
Zap all caches.
Definition at line 1193 of file documen2.cxx.
References assert(), ScInterpreterContextPool::ClearLookupCaches(), GetNonThreadedContext(), IsThreadedGroupCalcInProgress(), and ScInterpreterContext::mxScLookupCache.
Referenced by CalcAll(), and ~ScDocument().
Removes all print ranges.
Definition at line 6288 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ImportExcel::PostDocLoad(), ScTableSheetObj::SetOnePropertyValue(), ScTableSheetObj::setPrintAreas(), and ScViewFunc::SetPrintRanges().
void ScDocument::ClearSelectionItems | ( | const sal_uInt16 * | pWhich, |
const ScMarkData & | rMark | ||
) |
Definition at line 5905 of file document.cxx.
References maTabs.
Referenced by ScDocFunc::ClearItems(), ScUndoClearItems::Redo(), and ScConditionalFormatList::RemoveFromDocument().
void ScDocument::ClosingClipboardSource | ( | ) |
To be called at the clipboard document when closing a document that is the current clipboard source to decouple things from the originating document.
Done in ScDocument dtor after determining IsClipboardSource().
Definition at line 316 of file documen2.cxx.
References bIsClip, ForgetNoteCaptions(), GetTableCount(), MaxCol(), and MaxRow().
Referenced by ScDocShell::Notify().
|
private |
Definition at line 954 of file documen4.cxx.
References ScRefCellValue::equalsWithoutFormat(), ScRefCellValue::isEmpty(), and ValidRow().
Definition at line 4505 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScAccessibleCellBase::isVisible().
bool ScDocument::ColHidden | ( | SCCOL | nCol, |
SCTAB | nTab, | ||
SCCOL * | pFirstCol = nullptr , |
||
SCCOL * | pLastCol = nullptr |
||
) | const |
Definition at line 4435 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScChart2DataSequence::BuildDataCache(), sc::PrintPageRanges::calculate(), ScChartArray::CreateMemChartSingle(), ScOutputData::DrawEdit(), ScOutputData::DrawGrid(), ScCellShell::ExecuteEdit(), FillInfo(), ScTable::FindNextVisibleCol(), ScTable::FindNextVisibleColWithContent(), ScColBar::GetEntrySize(), ScGridWindow::GetListValButtonRect(), ScOutputData::GetMergeOrigin(), ScTableColumnObj::GetOnePropertyValue(), ScTable::GetPrintArea(), ScTableColumnsObj::getPropertyValue(), ScPreviewLocationData::GetTableInfo(), ScOutlineWindow::IsHidden(), ScAccessibleCellBase::isVisible(), lcl_GetMergeRange(), lcl_PaintOneRange(), ScTabView::PaintRangeFinderEntry(), ScCellRangesBase::queryVisibleCells(), ScDrawLayer::RecalcPos(), ScUndoAutoFormat::Redo(), ScTabView::ScrollX(), ScOutputData::SetCellRotations(), ScViewFunctionSet::SetCursorAtCell(), ScViewFunctionSet::SetCursorAtPoint(), ScDocFunc::SetWidthOrHeight(), ScViewFunc::SetWidthOrHeight(), ScTabView::SkipCursorHorizontal(), ScHTMLExport::WriteTables(), XclExpColinfo::XclExpColinfo(), and XclExpNote::XclExpNote().
void ScDocument::CompareDocument | ( | ScDocument & | rOtherDoc | ) |
Definition at line 1093 of file documen4.cxx.
References ScCellValue::assign(), ScCellValue::equalsWithoutFormat(), GetCellArea(), GetName(), GetTableCount(), i, IsScenario(), MAXTAB, n1, n2, nIndex, SC_DOCCOMP_MAXDIFF, ScResId(), SCTAB_MAX, ScChangeActionContent::SetNewValue(), ScChangeActionContent::SetOldValue(), ValidCol(), ValidRow(), and ValidTab().
Referenced by ScDocShell::CompareDocument().
void ScDocument::CompileAll | ( | ) |
Definition at line 3947 of file document.cxx.
References a, maTabs, and SetAllFormulasDirty().
Referenced by ScRefUndoData::DoUndo().
void ScDocument::CompileColRowNameFormula | ( | ) |
Definition at line 566 of file documen4.cxx.
Referenced by ScLabelRangesObj::addNew(), ScLabelRangeObj::Modify_Impl(), and ScLabelRangesObj::removeByIndex().
void ScDocument::CompileDBFormula | ( | ) |
Definition at line 556 of file documen4.cxx.
Referenced by ScDBDocFunc::DoImport(), ScDBFunc::DoSubTotals(), ScDBDocFunc::DoSubTotals(), and ScDBDocFunc::ModifyDBData().
bool ScDocument::CompileErrorCells | ( | FormulaError | nErrCode | ) |
Re-compile formula cells with error.
nErrCode | specified error code to match. Only those cells with this error code will be re-compiled. If this value is 0, cells with any error values will be re-compiled. |
Definition at line 4000 of file document.cxx.
Referenced by ScModule::ModifyOptions().
void ScDocument::CompileHybridFormula | ( | ) |
Call this immediately after updating named ranges.
Definition at line 315 of file document10.cxx.
References ScTable::CompileHybridFormula(), maTabs, and p.
Referenced by ScDBDocFunc::AddDBRange(), ScDBDocFunc::DeleteDBRange(), ScUndoAllRangeNames::DoChange(), ScUndoRangeNames::DoChange(), ScDocShell::GetDBData(), ScDBDocFunc::ModifyAllDBData(), ScDocFunc::ModifyAllRangeNames(), ScUndoDBData::Redo(), ScDBDocFunc::RenameDBRange(), ScDocFunc::SetNewRangeNames(), ScUndoDBData::Undo(), and ScNamedRangesObj::unlock().
void ScDocument::CompileXML | ( | ) |
Definition at line 3960 of file document.cxx.
References ScTable::CompileXML(), CORE, GetAutoCalc(), GetDocumentShell(), GetXMLImportedFormulaCount(), maTabs, pAutoNameCache, pValidationList, ScResId(), SetAutoCalc(), StartAllListeners(), and TrackFormulas().
Referenced by ScXMLImport::endDocument().
bool ScDocument::ContainsNotesInRange | ( | const ScRangeList & | rRange | ) | const |
Definition at line 6768 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, i, maTabs, ScRangeList::size(), and ScAddress::Tab().
Referenced by ScCellShell::GetState().
void ScDocument::ConvertFormulaToValue | ( | const ScRange & | rRange, |
sc::TableValues * | pUndo | ||
) |
Definition at line 205 of file document10.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScTable::ConvertFormulaToValue(), FetchTable(), sc::EndListeningContext::purgeEmptyBroadcasters(), ScAddress::Row(), and ScAddress::Tab().
Referenced by ScDocFunc::ConvertFormulaToValue().
bool ScDocument::CopyAdjustRangeName | ( | SCTAB & | rSheet, |
sal_uInt16 & | rIndex, | ||
ScRangeData *& | rpRangeData, | ||
ScDocument & | rNewDoc, | ||
const ScAddress & | rNewPos, | ||
const ScAddress & | rOldPos, | ||
const bool | bGlobalNamesToLocal, | ||
const bool | bUsedByFormula | ||
) | const |
If necessary (name references sheet rOldPos.Tab()) copy and adjust named expression/range from sheet-local to sheet-local, or global to sheet-local if bGlobalNamesToLocal==true.
Also copies nested names and adjusts the ocName tokens of the calling name.
rSheet | On entry, the original sheet of the named expression/range, <0 global. On return TRUE, the new sheet. Else unchanged. |
rIndex | On entry, the original index of the named expression/range. On return TRUE, the new index, or 0 if a new copied name couldn't be inserted. Else unchanged. |
rpRangeData | On entry, the pointer to the original named expression/range. On return TRUE, the pointer to the new copied name, or nullptr if hits happened. |
rNewPos | New position of formula cell if called for that, else new base position of a to be created new name adjusted for Tab. rNewPos.nTab MUST point to the new sheet copied to. |
rOldPos | Old position of formula cell if called for that, else base position of the existing name adjusted for Tab. rOldPos.nTab MUST point to the old sheet copied from. |
bGlobalNamesToLocal | If TRUE, affected global names are copied to sheet-local names. If FALSE, global names are copied to global names in another document. |
bUsedByFormula | If TRUE, forces a global name to be affected/used. If FALSE, a global name is only affected if it evaluates to be referencing the sheet. |
Definition at line 784 of file document10.cxx.
References ScRangeName::findByIndex(), ScRangeName::findByUpperName(), FindRangeNamesReferencingSheet(), formula::FormulaTokenArrayPlainIterator::First(), formula::FormulaTokenArray::GetCode(), GetDocumentShell(), ScRangeData::GetIndex(), GetPool(), GetRangeName(), ScRangeData::GetUpperName(), IsClipboard(), IsClipOrUndo(), IsCutMode(), sc::UpdatedRangeNames::isEmpty(), formula::FormulaTokenArrayPlainIterator::Next(), condformat::dialog::NONE, ocName, p, SAL_WARN, SAL_WARN_IF, ScDocShell::SetAreasChangedNeedBroadcast(), and ScAddress::Tab().
Referenced by ScRangeName::CopyUsedNames().
void ScDocument::CopyBlockFromClip | ( | sc::CopyFromClipContext & | rCxt, |
SCCOL | nCol1, | ||
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
const ScMarkData & | rMark, | ||
SCCOL | nDx, | ||
SCROW | nDy | ||
) |
Definition at line 2609 of file document.cxx.
References CONTENTS, sc::ColumnSet::empty(), sc::ClipContextBase::getBlockPositionSet(), sc::CopyFromClipContext::getClipDoc(), GetClipParam(), sc::CopyFromClipContext::getInsertFlag(), GetMMRect(), GetPool(), sc::CopyFromClipContext::getTabEnd(), ScMarkData::GetTableSelect(), sc::CopyFromClipContext::getTabStart(), sc::CopyFromClipContext::getUndoDoc(), i, IsInsertingFromOtherDoc(), sc::RefUpdateContext::maRange, sc::RefUpdateContext::maRegroupCols, maTabs, MAXTAB, ScClipParam::mbCutMode, sc::RefUpdateContext::meMode, sc::RefUpdateContext::mnColDelta, sc::RefUpdateContext::mnRowDelta, sc::RefUpdateContext::mnTabDelta, mpDrawLayer, OBJECTS, sc::RefUpdateContext::setBlockPositionReference(), SetInsertingFromOtherDoc(), StartNeededListeners(), UpdateReference(), URM_COPY, and URM_MOVE.
Referenced by CopyFromClip(), CopyMultiRangeFromClip(), and CopyNonFilteredFromClip().
void ScDocument::CopyCellToDocument | ( | const ScAddress & | rSrcPos, |
const ScAddress & | rDestPos, | ||
ScDocument & | rDestDoc | ||
) |
Copy only cell, nothing but cell to another document.
rSrcPos | source cell position |
rDestPos | destination cell position |
rDestDoc | destination document |
Definition at line 2253 of file document.cxx.
References ScAddress::Col(), ScTable::CopyCellToDocument(), maTabs, ScAddress::Row(), ScAddress::Tab(), and TableExists().
Referenced by ScConversionEngineBase::FindNextConversionCell().
void ScDocument::CopyCellValuesFrom | ( | const ScAddress & | rTopPos, |
const sc::CellValues & | rSrc | ||
) |
Definition at line 172 of file document10.cxx.
References ScAddress::Col(), ScTable::CopyCellValuesFrom(), FetchTable(), ScAddress::Row(), and ScAddress::Tab().
Referenced by sc::UndoSetCells::DoChange().
void ScDocument::CopyDdeLinks | ( | ScDocument & | rDestDoc | ) | const |
Definition at line 865 of file documen8.cxx.
References bAutoCalc, ScDdeLink::GetAppl(), GetDocLinkManager(), ScDdeLink::GetItem(), sc::DocumentLinkManager::getLinkManager(), sfx2::LinkManager::GetLinks(), ScDdeLink::GetTopic(), sfx2::LinkManager::InsertDDELink(), LoadDdeLinks(), and p.
void ScDocument::CopyFromClip | ( | const ScRange & | rDestRange, |
const ScMarkData & | rMark, | ||
InsertDeleteFlags | nInsFlag, | ||
ScDocument * | pRefUndoDoc, | ||
ScDocument * | pClipDoc, | ||
bool | bResetCut = true , |
||
bool | bAsLink = false , |
||
bool | bIncludeFiltered = true , |
||
bool | bSkipAttrForEmpty = false , |
||
const ScRangeList * | pDestRanges = nullptr |
||
) |
If pDestRanges is given it overrides rDestRange, rDestRange in this case is the overall encompassing range.
Definition at line 2788 of file document.cxx.
References ADDNOTES, ScRange::aEnd, ScRange::aStart, ATTRIB, bInsertingFromOtherDoc, bIsClip, ScAddress::Col(), CONTENTS, CopyBlockFromClip(), CopyNonFilteredFromClip(), CopyOneCellFromClip(), DeleteArea(), DeleteBeforeCopyFromClip(), sc::ColumnSpanSet::executeColumnAction(), ExtendMerge(), GetBASM(), GetClipArea(), ScModule::GetClipDoc(), GetClipParam(), GetPatternCount(), sc::CopyFromClipContext::getTabEnd(), GetTableCount(), ScMarkData::GetTableSelect(), sc::CopyFromClipContext::getTabStart(), ScClipParam::getWholeRange(), i, maTabs, ScClipParam::mbCutMode, NONE, NOTE, ScRangeList::push_back(), ReservePatternCount(), ScAddress::Row(), sc::CopyFromClipContext::setDeleteFlag(), sc::CopyFromClipContext::setDestRange(), SetDirtyFromClip(), sc::CopyFromClipContext::setTabRange(), ScRangeList::size(), and StartListeningFromClip().
Referenced by ScTransferObj::InitDocShell(), lcl_CopyData(), ScDocFunc::MoveBlock(), ScViewFunc::PasteFromClip(), ScViewFunc::PasteFromClipToMultiRanges(), ScUndoDragDrop::Redo(), ScAreaLink::Refresh(), and sc::ScDBDataManager::WriteToDoc().
void ScDocument::CopyMultiRangeFromClip | ( | const ScAddress & | rDestPos, |
const ScMarkData & | rMark, | ||
InsertDeleteFlags | nInsFlag, | ||
ScDocument * | pClipDoc, | ||
bool | bResetCut = true , |
||
bool | bAsLink = false , |
||
bool | bIncludeFiltered = true , |
||
bool | bSkipAttrForEmpty = false |
||
) |
Definition at line 3005 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, bInsertingFromOtherDoc, bIsClip, ScAddress::Col(), ScClipParam::Column, CONTENTS, CopyBlockFromClip(), DeleteArea(), sc::ColumnSpanSet::executeColumnAction(), GetBASM(), GetClipParam(), ScMarkData::GetMarkArea(), ScClipParam::getPasteColSize(), ScClipParam::getPasteRowSize(), GetTableCount(), i, ScClipParam::maRanges, maTabs, ScClipParam::mbCutMode, ScClipParam::meDirection, n, ScClipParam::Row, ScAddress::Row(), SetDirtyFromClip(), sc::CopyFromClipContext::setTabRange(), ScRangeList::size(), and StartListeningFromClip().
Referenced by ScViewFunc::PasteMultiRangesFromClip().
void ScDocument::CopyNonFilteredFromClip | ( | sc::CopyFromClipContext & | rCxt, |
SCCOL | nCol1, | ||
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
const ScMarkData & | rMark, | ||
SCCOL | nDx, | ||
SCROW & | rClipStartRow | ||
) |
Definition at line 2712 of file document.cxx.
References ScRange::aEnd, CopyBlockFromClip(), ScRangeList::empty(), FirstNonFilteredRow(), ScRangeList::front(), sc::CopyFromClipContext::getClipDoc(), GetClipParam(), ScClipParam::maRanges, maTabs, ScAddress::Row(), RowFiltered(), and void().
Referenced by CopyFromClip().
bool ScDocument::CopyOneCellFromClip | ( | sc::CopyFromClipContext & | rCxt, |
SCCOL | nCol1, | ||
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2 | ||
) |
Definition at line 81 of file document10.cxx.
References ScTable::aCol, ADDNOTES, ScRange::aEnd, ScRange::aStart, ScAddress::Col(), FetchTable(), sc::CopyFromClipContext::getClipDoc(), GetClipParam(), sc::CopyFromClipContext::getInsertFlag(), GetNote(), GetPattern(), sc::CopyFromClipContext::getTabEnd(), sc::CopyFromClipContext::getTabStart(), sc::CopyFromClipContext::getUndoDoc(), ScClipParam::getWholeRange(), i, ScAddress::IncCol(), IsMerged(), sc::RefUpdateContext::maRange, maTabs, ScClipParam::mbCutMode, sc::RefUpdateContext::meMode, sc::RefUpdateContext::mnColDelta, sc::RefUpdateContext::mnRowDelta, sc::RefUpdateContext::mnTabDelta, NONE, NOTE, ScAddress::Row(), ScAddress::SetCol(), sc::CopyFromClipContext::setSingleCell(), sc::CopyFromClipContext::setSingleCellColumnSize(), sc::CopyFromClipContext::setSingleCellNote(), sc::CopyFromClipContext::setSingleCellPattern(), ScAddress::Tab(), UpdateReference(), ScColumn::UpdateScriptTypes(), and URM_COPY.
Referenced by CopyFromClip().
|
private |
Definition at line 2407 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), GetRangeName(), ScMarkData::GetTableSelect(), sc::UpdatedRangeNames::getUpdatedNames(), i, maTabs, and ScAddress::Row().
Referenced by CopyToClip().
Definition at line 802 of file documen3.cxx.
References ScRangeList::size(), TwoWay, and ValidTab().
Referenced by ScDocShell::MakeScenario(), and ScDocShell::UseScenario().
void ScDocument::CopyStaticToDocument | ( | const ScRange & | rSrcRange, |
SCTAB | nDestTab, | ||
ScDocument & | rDestDoc | ||
) |
Copy only raw cell values to another document.
Formula cells are converted to raw cells. No formatting info are copied except for number formats.
rSrcRange | source range in the source document |
nDestTab | table in the clip document to copy to. |
rDestDoc | document to copy to |
Definition at line 2237 of file document.cxx.
References ScRange::aEnd, aMap, ScRange::aStart, ScAddress::Col(), SvNumberFormatter::ConvertMergeTableToMap(), ScTable::CopyStaticToDocument(), GetFormatTable(), maTabs, SvNumberFormatter::MergeFormatter(), ScAddress::Row(), and ScAddress::Tab().
void ScDocument::CopyStdStylesFrom | ( | const ScDocument & | rSrcDoc | ) |
Definition at line 287 of file documen8.cxx.
References mxPoolHelper.
Referenced by ScTransferObj::InitDocShell().
bool ScDocument::CopyTab | ( | SCTAB | nOldPos, |
SCTAB | nNewPos, | ||
const ScMarkData * | pOnlyMarked = nullptr |
||
) |
Definition at line 765 of file documen2.cxx.
References ALL, aName, ScRangeName::CopyUsedNames(), CreateValidTabName(), GetName(), GetPageStyle(), GetRangeName(), GetTabBgColor(), GetTable(), IsLayoutRTL(), IsPendingRowHeights(), sc::RefUpdateContext::maRange, maTabs, MaxCol(), MaxRow(), MAXTAB, sc::RefUpdateContext::meMode, sc::RefUpdateContext::mnTabDelta, mpDrawLayer, pDBCollection, pDetOpList, pDPCollection, pRangeName, pUnoBroadcaster, pValidationList, SC_TAB_APPEND, ScTable, SetAllFormulasDirty(), SetNoListening(), UpdateChartRef(), UpdateRefAreaLinks(), ScRangePairList::UpdateReference(), URM_COPY, URM_INSDEL, ValidNewTabName(), ValidTab(), ValidTabName(), xColNameRanges, and xRowNameRanges.
Referenced by ScDocShell::MakeScenario(), ScDocShell::MoveTable(), and ScUndoCopyTab::Redo().
Definition at line 1914 of file documen3.cxx.
References ValidTab().
Referenced by ScDocShell::MoveTable(), and ScUndoCopyTab::Redo().
void ScDocument::CopyTabToClip | ( | SCCOL | nCol1, |
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
SCTAB | nTab, | ||
ScDocument * | pClipDoc | ||
) |
Definition at line 2264 of file document.cxx.
References aDocName, bIsClip, ScModule::GetClipDoc(), GetClipParam(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), SfxShell::GetName(), SfxMedium::GetURLObject(), maFileURL, ScClipParam::maRanges, maTabNames, maTabs, ScClipParam::mbCutMode, mpShell, ScRangeList::push_back(), PutInOrder(), ScRangeList::RemoveAll(), ResetClip(), SAL_WARN, and INetURLObject::ToIUri.
Referenced by ScViewFunc::LinkBlock().
void ScDocument::CopyToClip | ( | const ScClipParam & | rClipParam, |
ScDocument * | pClipDoc, | ||
const ScMarkData * | pMarks, | ||
bool | bKeepScenarioFlags, | ||
bool | bIncludeObjects | ||
) |
Definition at line 2165 of file document.cxx.
References aDocName, ScRange::aEnd, ScRange::aStart, bIsClip, ScAddress::Col(), CopyRangeNamesToClip(), ExtendMerge(), ScModule::GetClipDoc(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), GetMMRect(), SfxShell::GetName(), ScMarkData::GetTableSelect(), SfxMedium::GetURLObject(), ScClipParam::getWholeRange(), i, maFileURL, ScClipParam::maRanges, maTabNames, maTabs, mpDrawLayer, mpShell, ResetClip(), ScAddress::Row(), SAL_WARN, SetClipParam(), and INetURLObject::ToIUri.
Referenced by ScViewFunc::CopyToClipMultiRange(), ScViewFunc::CopyToClipSingleRange(), ScViewFunc::CopyToTransferable(), ScTabControl::DoDrag(), lcl_CopyData(), lcl_DoDragCells(), ScDocFunc::MoveBlock(), ScViewFunc::PasteDataFormat(), ScUndoDragDrop::Redo(), and ScAreaLink::Refresh().
void ScDocument::CopyToDocument | ( | SCCOL | nCol1, |
SCROW | nRow1, | ||
SCTAB | nTab1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
SCTAB | nTab2, | ||
InsertDeleteFlags | nFlags, | ||
bool | bMarked, | ||
ScDocument & | rDestDoc, | ||
const ScMarkData * | pMarks = nullptr , |
||
bool | bColRowFlags = true |
||
) |
Definition at line 2066 of file document.cxx.
References ValidTab().
Referenced by ScDocFunc::ApplyAttributes(), ScHelperFunctions::ApplyBorder(), ScViewFunc::ApplyPatternLines(), ScViewFunc::ApplySelectionPattern(), ScDocFunc::ApplyStyle(), ScDocFunc::AutoFormat(), ScOutlineDocFunc::AutoOutline(), ScDocFunc::ChangeIndent(), ScDocFunc::ClearItems(), sc::DocFuncUtil::createDeleteContentsUndoDoc(), ScViewFunc::CutToClip(), ScViewFunc::DataFormPutData(), ScDocFunc::DeleteCells(), ScViewFunc::DeleteMulti(), ScDocFunc::DeleteTable(), ScUndoPaste::DoChange(), ScUndoDataForm::DoChange(), ScUndoConversion::DoChange(), ScUndoRefConversion::DoChange(), ScUndoListNames::DoChange(), ScUndoConditionalFormat::DoChange(), ScDocShell::DoConsolidate(), ScDBDocFunc::DoImport(), ScViewFunc::DoRefConversion(), ScDBFunc::DoSubTotals(), ScDBDocFunc::DoSubTotals(), ScImportExport::EndPaste(), ScDocFunc::EnterMatrix(), ScDocFunc::FillAuto(), ScDocFunc::FillSeries(), ScDocFunc::FillSimple(), ScViewFunc::FillTab(), ScOutlineDocFunc::HideMarkedOutlines(), ScOutlineDocFunc::HideOutline(), ScDocFunc::InsertNameList(), lcl_PutDataArray(), lcl_PutFormulaArray(), ScDocFunc::MergeCells(), ScDocFunc::MoveBlock(), ScViewFunc::PasteFromClip(), ScViewFunc::PasteFromClipToMultiRanges(), ScViewFunc::PasteMultiRangesFromClip(), ScViewFunc::PasteRTF(), ScDBDocFunc::Query(), ScAreaLink::Refresh(), ScTableLink::Refresh(), ScTableSheetObj::removeAllManualPageBreaks(), ScOutlineDocFunc::RemoveAllOutlines(), ScViewFunc::RemoveManualBreaks(), ScDBFunc::RepeatDB(), ScDBDocFunc::RepeatDB(), ScTable::ReplaceAllStyle(), ScDocFunc::ReplaceConditionalFormat(), ScOutlineDocFunc::SelectLevel(), ScViewFunc::SetStyleSheetToMarked(), ScDocFunc::SetWidthOrHeight(), ScViewFunc::SetWidthOrHeight(), ScOutlineDocFunc::ShowMarkedOutlines(), ScOutlineDocFunc::ShowOutline(), ScImportExport::StartPaste(), ScDocFunc::TabOp(), ScDocFunc::TransliterateText(), ScUndoImportTab::Undo(), ScUndoImportData::Undo(), ScUndoRefreshLink::Undo(), UndoToDocument(), ScDocFunc::UnmergeCells(), and ScDocShell::UseScenario().
void ScDocument::CopyToDocument | ( | const ScRange & | rRange, |
InsertDeleteFlags | nFlags, | ||
bool | bMarked, | ||
ScDocument & | rDestDoc, | ||
const ScMarkData * | pMarks = nullptr , |
||
bool | bColRowFlags = true |
||
) |
Definition at line 2106 of file document.cxx.
References aDocName, ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScTable::CopyToTable(), FetchTable(), i, maTabs, ScRange::PutInOrder(), ScAddress::Row(), sc::CopyToDocContext::setStartListening(), StartAllListeners(), and ScAddress::Tab().
void ScDocument::CopyUpdated | ( | ScDocument * | pPosDoc, |
ScDocument * | pDestDoc | ||
) |
From this document this method copies the cells of positions at which there are also cells in pPosDoc to pDestDoc.
Definition at line 794 of file documen3.cxx.
References maTabs, and nCount.
Referenced by ScViewFunc::PasteFromClip().
Definition at line 4537 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScViewUtil::FitToUnfilteredRows(), GetClipArea(), ScViewFunc::MoveBlockTo(), and ScUndoDragDrop::ScUndoDragDrop().
Definition at line 4481 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScPreviewLocationData::GetTableInfo().
void ScDocument::CreateAllNoteCaptions | ( | ) |
Ensure that all note objects have an associated sdr object.
The export code uses sdr objects to export note data.
Definition at line 6607 of file document.cxx.
Referenced by ScXMLImportWrapper::Export().
Definition at line 975 of file document10.cxx.
References ScTable::CreateColumnIfNotExists(), and FetchTable().
Referenced by ScMyDefaultStyles::FillDefaultStyles().
bool ScDocument::CreateDdeLink | ( | const OUString & | rAppl, |
const OUString & | rTopic, | ||
const OUString & | rItem, | ||
sal_uInt8 | nMode, | ||
const ScMatrixRef & | pResults | ||
) |
Tries to find a DDE link or creates a new, if not extant.
pResults | If not 0, sets the matrix as DDE link result matrix (also for existing links). |
Definition at line 992 of file documen8.cxx.
References sfx2::LinkManager::InsertDDELink(), SC_DDE_IGNOREMODE, and ScDdeLink::SetResult().
Referenced by ScDDELinksObj::addDDELink(), XclImpExtName::CreateDdeData(), and ScXMLDDELinkContext::CreateDDELink().
std::unique_ptr< ScFieldEditEngine > ScDocument::CreateFieldEditEngine | ( | ) |
Definition at line 1117 of file documen2.cxx.
References bImportingXML, GetEditPool(), GetEnginePool(), and pCacheFieldEditEngine.
Referenced by ScColumn::GetNeededSize(), ScAccessiblePreviewHeaderCellTextData::GetTextForwarder(), ScAccessibleNoteTextData::GetTextForwarder(), and ScCellTextData::GetTextForwarder().
Definition at line 6591 of file document.cxx.
References SetNote().
Referenced by GetOrCreateNote().
std::unique_ptr< ScPrintRangeSaver > ScDocument::CreatePrintRangeSaver | ( | ) | const |
Definition at line 6318 of file document.cxx.
References i, maTabs, and nCount.
Referenced by ScRefUndoData::DeleteUnchanged(), ScTableSheetObj::PrintAreaUndo_Impl(), ScTableSheetObj::setPrintAreas(), ScViewFunc::SetPrintRanges(), ScTableSheetObj::setPrintTitleColumns(), ScTableSheetObj::setPrintTitleRows(), ScTableSheetObj::setTitleColumns(), and ScTableSheetObj::setTitleRows().
bool ScDocument::CreateQueryParam | ( | const ScRange & | rRange, |
ScQueryParam & | rQueryParam | ||
) |
Definition at line 1462 of file documen3.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScTable::CreateQueryParam(), ScAddress::Row(), and ScAddress::Tab().
Referenced by ScCellRangeObj::createFilterDescriptorByObject(), XclImpAutoFilterData::InsertQueryParam(), and ScDBFunc::RepeatDB().
std::unique_ptr< ScPatternAttr > ScDocument::CreateSelectionPattern | ( | const ScMarkData & | rMark, |
bool | bDeep = true |
||
) |
Definition at line 5041 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScMarkData::GetMarkArea(), GetPool(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), maTabs, ScMergePatternState::mbValidPatternId, ScMergePatternState::mnPatternId, ScMergePatternState::pItemSet, and ScAddress::Row().
Referenced by ScCellRangesBase::GetCurrentAttrsDeep(), ScCellRangesBase::GetCurrentAttrsFlat(), and GetSelectionPattern().
void ScDocument::CreateValidTabName | ( | OUString & | rName | ) | const |
Definition at line 390 of file document.cxx.
References aName, ScDefaultsOptions::GetInitTabPrefix(), GetTable(), i, maTabs, MAXTAB, SC_MOD, ValidNewTabName(), and ValidTabName().
Referenced by ScTabControl::AddTabClick(), AppendTabOnLoad(), ImportExcel8::Boundsheet(), ImportExcel::Boundsheet(), CopyTab(), ScTabViewShell::ExecuteTable(), FuInsertChart::FuInsertChart(), IMPL_LINK_NOARG(), ScViewFunc::ImportTables(), ScInsertTableDlg::Init_Impl(), ScDrawPagesObj::insertNewByIndex(), MakeTable(), ScDocShell::MergeDocument(), ScViewFunc::MoveTable(), ImportLotus::parse(), XclImpPivotCache::ReadPivotCacheStream(), ScChangeActionDel::Reject(), ScMoveTableDlg::ResetRenameInput(), ScDBFunc::ShowDataPilotSourceData(), and TransferTab().
Definition at line 437 of file document.cxx.
References ScDefaultsOptions::GetInitTabPrefix(), GetTable(), i, maTabs, SC_MOD, ValidNewTabName(), and ValidTabName().
Referenced by ScViewFunc::InsertTables().
|
inline |
Definition at line 1017 of file document.hxx.
References nInDdeLinkUpdate.
Referenced by ScDdeLink::TryUpdate().
|
inline |
Definition at line 2342 of file document.hxx.
|
inline |
Definition at line 2317 of file document.hxx.
References assert(), and IsThreadedGroupCalcInProgress().
Referenced by ScFormulaCell::Interpret().
ScDocument::DECL_LINK | ( | GetUserDefinedColor | , |
sal_uInt16 | , | ||
Color * | |||
) |
|
inline |
Definition at line 2330 of file document.hxx.
References assert(), and IsThreadedGroupCalcInProgress().
Definition at line 2362 of file document.hxx.
Referenced by ScFormulaCell::CompileXML().
void ScDocument::DelayFormulaGrouping | ( | bool | delay | ) |
If set, joining cells into shared formula groups will be delayed until reset again (RegroupFormulaCells() will be called as needed).
Definition at line 376 of file document10.cxx.
References ScAddress::INITIALIZE_INVALID, pDelayedFormulaGrouping, and RegroupFormulaCells().
Referenced by sc::DelayFormulaGroupingSwitch::DelayFormulaGroupingSwitch(), sc::DelayFormulaGroupingSwitch::reset(), and sc::DelayFormulaGroupingSwitch::~DelayFormulaGroupingSwitch().
Definition at line 201 of file documen7.cxx.
References pBASM.
Referenced by DeleteCol(), DeleteRow(), DeleteTab(), and DeleteTabs().
void ScDocument::DeleteArea | ( | SCCOL | nCol1, |
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
const ScMarkData & | rMark, | ||
InsertDeleteFlags | nDelFlag, | ||
bool | bBroadcast = true , |
||
sc::ColumnSpanSet * | pBroadcastSpans = nullptr |
||
) |
Definition at line 1884 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, bIsUndo, CONTENTS, EndListeningIntersectedGroups(), ScMarkData::GetTableSelect(), i, maTabs, sc::EndListeningContext::purgeEmptyBroadcasters(), PutInOrder(), SetDirty(), SetNeedsListeningGroups(), ScAddress::SetTab(), and StartNeededListeners().
Referenced by CopyFromClip(), CopyMultiRangeFromClip(), ScDocFunc::DeleteCell(), ScUndoCut::DoChange(), ScDBDocFunc::DoImport(), and ScUndoAutoFormat::Undo().
Definition at line 1063 of file documen8.cxx.
References ScRange::aStart, ScAreaLink::GetDestArea(), sfx2::LinkManager::GetLinks(), nPos, sfx2::LinkManager::Remove(), and ScAddress::Tab().
Referenced by DeleteTab(), and DeleteTabs().
void ScDocument::DeleteAreaTab | ( | SCCOL | nCol1, |
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
SCTAB | nTab, | ||
InsertDeleteFlags | nDelFlag | ||
) |
Definition at line 1945 of file document.cxx.
References GetAutoCalc(), maTabs, PutInOrder(), SetAutoCalc(), and ValidTab().
Referenced by ScFunctionAccess::callFunction(), DeleteAreaTab(), ScImportExport::Dif2Doc(), ScUndoFillTable::DoChange(), ScUndoMerge::DoChange(), ScUndoListNames::DoChange(), ScUndoConditionalFormat::DoChange(), ScUndoUpdateAreaLink::DoChange(), ScDocShell::DoConsolidate(), ScDBDocFunc::DoImport(), ScUndoDragDrop::DoUndo(), FitBlock(), ScImportExport::HTML2Doc(), lcl_PutDataArray(), lcl_PutFormulaArray(), ScDocFunc::MoveBlock(), ScDPOutput::Output(), ScDPObject::Output(), ScDBDocFunc::Query(), ScUndoDragDrop::Redo(), ScUndoImportData::Redo(), ScUndoRefreshLink::Redo(), ScAreaLink::Refresh(), ScTableLink::Refresh(), ScChangeActionMove::Reject(), ScDBDocFunc::RemovePivotTable(), ScImportExport::RTF2Doc(), ScUndoSubTotals::Undo(), ScUndoQuery::Undo(), ScUndoImportData::Undo(), ScUndoRepeatDB::Undo(), ScUndoDataPilot::Undo(), ScUndoConsolidate::Undo(), ScUndoAutoFill::Undo(), ScUndoTabOp::Undo(), ScUndoUseScenario::Undo(), ScUndoRefreshLink::Undo(), ScUndoEnterMatrix::Undo(), and ScUndoRemoveMerge::Undo().
void ScDocument::DeleteAreaTab | ( | const ScRange & | rRange, |
InsertDeleteFlags | nDelFlag | ||
) |
Definition at line 1960 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), DeleteAreaTab(), ScAddress::Row(), and ScAddress::Tab().
void ScDocument::DeleteBeforeCopyFromClip | ( | sc::CopyFromClipContext & | rCxt, |
const ScMarkData & | rMark, | ||
sc::ColumnSpanSet & | rBroadcastSpans | ||
) |
Definition at line 56 of file document10.cxx.
References ScTable::DeleteBeforeCopyFromClip(), FetchTable(), sc::CopyFromClipContext::getClipDoc(), sc::CopyFromClipContext::getTabEnd(), ScMarkData::GetTableSelect(), sc::CopyFromClipContext::getTabStart(), and maTabs.
Referenced by CopyFromClip().
void ScDocument::DeleteBroadcasters | ( | sc::ColumnBlockPosition & | rBlockPos, |
const ScAddress & | rTopPos, | ||
SCROW | nLength | ||
) |
Definition at line 2462 of file document.cxx.
References ScAddress::Col(), ScTable::DeleteBroadcasters(), FetchTable(), ScAddress::Row(), and ScAddress::Tab().
Referenced by sc::PurgeListenerAction::execute().
void ScDocument::DeleteCol | ( | SCROW | nStartRow, |
SCTAB | nStartTab, | ||
SCROW | nEndRow, | ||
SCTAB | nEndTab, | ||
SCCOL | nStartCol, | ||
SCSIZE | nSize, | ||
ScDocument * | pRefUndoDoc = nullptr , |
||
bool * | pUndoOutline = nullptr , |
||
const ScMarkData * | pTabMark = nullptr |
||
) |
Definition at line 1576 of file document.cxx.
References a, DelBroadcastAreasInRange(), ScMarkData::GetTableSelect(), i, lcl_GetFirstTabRange(), lcl_GetNextTabRange(), sc::RefUpdateContext::maRange, sc::RefUpdateContext::maRegroupCols, maTabs, MaxCol(), MAXCOLCOUNT, sc::RefUpdateContext::meMode, sc::RefUpdateContext::mnColDelta, pChartListenerCollection, PutInOrder(), StartNeededListeners(), UpdateBroadcastAreas(), UpdateReference(), URM_INSDEL, and ValidCol().
Referenced by ScDocFunc::DeleteCells(), DeleteCol(), ScViewFunc::DeleteMulti(), ScUndoInsertCells::DoChange(), ScUndoDeleteCells::DoChange(), FitBlock(), ScUndoDeleteMulti::Redo(), ScChangeActionIns::Reject(), sc::ColumnRemoveTransformation::Transform(), and sc::MergeColumnTransformation::Transform().
Definition at line 1670 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), DeleteCol(), ScAddress::Row(), and ScAddress::Tab().
Definition at line 879 of file documen4.cxx.
References ValidTab().
Referenced by ScDocFunc::ReplaceConditionalFormat().
|
private |
Definition at line 228 of file documen9.cxx.
References CORE, SfxItemPool::GetSecondaryPool(), IsClipOrUndo(), mpDrawLayer, mxPoolHelper, and SfxItemPool::SetSecondaryPool().
Referenced by ~ScDocument().
void ScDocument::DeleteObjectsInArea | ( | SCCOL | nCol1, |
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
const ScMarkData & | rMark, | ||
bool | bAnchored = false |
||
) |
Definition at line 251 of file documen9.cxx.
References GetTableCount(), maTabs, and mpDrawLayer.
Referenced by ScDocFunc::DeleteCell(), ScDocFunc::DeleteCells(), ScDocFunc::DeleteContents(), ScViewFunc::DeleteMulti(), and ScDocFunc::MoveBlock().
void ScDocument::DeleteObjectsInSelection | ( | const ScMarkData & | rMark | ) |
Definition at line 267 of file documen9.cxx.
References mpDrawLayer.
Referenced by ScViewFunc::CutToClip(), and ScDocFunc::DeleteContents().
void ScDocument::DeleteRow | ( | SCCOL | nStartCol, |
SCTAB | nStartTab, | ||
SCCOL | nEndCol, | ||
SCTAB | nEndTab, | ||
SCROW | nStartRow, | ||
SCSIZE | nSize, | ||
ScDocument * | pRefUndoDoc = nullptr , |
||
bool * | pUndoOutline = nullptr , |
||
const ScMarkData * | pTabMark = nullptr |
||
) |
Definition at line 1357 of file document.cxx.
References a, DelBroadcastAreasInRange(), EndListeningGroups(), ScSheetLimits::GetMaxRowCount(), GetSheetLimits(), ScMarkData::GetTableSelect(), i, lcl_GetFirstTabRange(), lcl_GetNextTabRange(), sc::RefUpdateContext::maRange, sc::RefUpdateContext::maRegroupCols, maTabs, MaxRow(), sc::RefUpdateContext::meMode, sc::RefUpdateContext::mnRowDelta, pChartListenerCollection, PutInOrder(), SetNeedsListeningGroups(), StartNeededListeners(), UpdateBroadcastAreas(), UpdateReference(), URM_INSDEL, and ValidRow().
Referenced by ScDocFunc::DeleteCells(), ScViewFunc::DeleteMulti(), DeleteRow(), ScUndoInsertCells::DoChange(), ScUndoDeleteCells::DoChange(), FitBlock(), ScUndoDeleteMulti::Redo(), ScChangeActionIns::Reject(), ScTable::RemoveSubTotals(), ScUndoSubTotals::Undo(), ScUndoRepeatDB::Undo(), and ScUndoConsolidate::Undo().
Definition at line 1461 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), DeleteRow(), ScAddress::Row(), and ScAddress::Tab().
void ScDocument::DeleteSelection | ( | InsertDeleteFlags | nDelFlag, |
const ScMarkData & | rMark, | ||
bool | bBroadcast = true |
||
) |
Definition at line 5917 of file document.cxx.
References CONTENTS, EndListeningIntersectedGroups(), ScMarkData::FillRangeListWithMarks(), GetFormulaCell(), i, maTabs, sc::EndListeningContext::purgeEmptyBroadcasters(), ScFormulaCell::SetDirty(), SetDirty(), SetNeedsListeningGroups(), ScRangeList::size(), and StartNeededListeners().
Referenced by ScViewFunc::CutToClip(), ScDocFunc::DeleteContents(), ScUndoPaste::DoChange(), ScUndoDeleteContents::DoChange(), and ScUndoUseScenario::Undo().
void ScDocument::DeleteSelectionTab | ( | SCTAB | nTab, |
InsertDeleteFlags | nDelFlag, | ||
const ScMarkData & | rMark | ||
) |
Definition at line 5975 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, CONTENTS, EndListeningIntersectedGroups(), ScMarkData::FillRangeListWithMarks(), i, maTabs, sc::EndListeningContext::purgeEmptyBroadcasters(), SetDirty(), SetNeedsListeningGroups(), ScAddress::SetTab(), ScRangeList::size(), StartNeededListeners(), ScAddress::Tab(), and ValidTab().
Referenced by ScUndoFillTable::DoChange().
bool ScDocument::DeleteTab | ( | SCTAB | nTab | ) |
Definition at line 671 of file document.cxx.
References a, ScRange::aEnd, bInsertingFromOtherDoc, CORE, DelBroadcastAreasInRange(), DeleteAreaLinksOnTab(), ScRangePairList::DeleteOnTab(), GetDocumentShell(), SfxObjectShell::GetModel(), comphelper::LibreOfficeKit::isActive(), maTabs, MaxCol(), MaxRow(), MAXTAB, SfxLokHelper::notifyDocumentSizeChangedAllViews(), pDBCollection, pDetOpList, pDPCollection, pRangeName, pUnoBroadcaster, pValidationList, SetAllFormulasDirty(), ScAddress::SetTab(), StartAllListeners(), UpdateBroadcastAreas(), UpdateChartRef(), UpdateRefAreaLinks(), ScRangePairList::UpdateReference(), URM_INSDEL, ValidTab(), xColNameRanges, and xRowNameRanges.
Referenced by ScDocFunc::DeleteTable(), ScViewFunc::MoveTable(), ScChangeActionIns::Reject(), ScUndoCopyTab::Undo(), ScUndoMakeScenario::Undo(), and ScUndoImportTab::Undo().
Definition at line 759 of file document.cxx.
References a, bInsertingFromOtherDoc, CORE, DelBroadcastAreasInRange(), DeleteAreaLinksOnTab(), ScRangePairList::DeleteOnTab(), GetDocumentShell(), SfxObjectShell::GetModel(), comphelper::LibreOfficeKit::isActive(), maTabs, MaxCol(), MaxRow(), MAXTAB, SfxLokHelper::notifyDocumentSizeChangedAllViews(), pDBCollection, pDetOpList, pDPCollection, pRangeName, pUnoBroadcaster, pValidationList, SetAllFormulasDirty(), StartAllListeners(), UpdateBroadcastAreas(), UpdateChartRef(), UpdateRefAreaLinks(), ScRangePairList::UpdateReference(), URM_INSDEL, ValidTab(), xColNameRanges, and xRowNameRanges.
Referenced by ScViewFunc::DeleteTables().
void ScDocument::DiscardFormulaGroupContext | ( | ) |
Definition at line 3523 of file document.cxx.
References assert(), IsThreadedGroupCalcInProgress(), mbFormulaGroupCxtBlockDiscard, and mpFormulaGroupCxt.
Referenced by ScColumn::CellStorageModified().
void ScDocument::DisposeFieldEditEngine | ( | std::unique_ptr< ScFieldEditEngine > & | rpEditEngine | ) |
Definition at line 1140 of file documen2.cxx.
References pCacheFieldEditEngine.
Referenced by ScColumn::GetNeededSize(), and ScCellTextData::~ScCellTextData().
void ScDocument::DoAutoOutline | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
SCTAB | nTab | ||
) |
Definition at line 753 of file documen3.cxx.
References ValidTab().
Referenced by ScOutlineDocFunc::AutoOutline().
void ScDocument::DoEmptyBlock | ( | SCTAB | nTab, |
SCCOL | nStartCol, | ||
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow | ||
) |
Definition at line 2038 of file documen3.cxx.
References SetString().
Referenced by ScDocFunc::MergeCells().
void ScDocument::DoMerge | ( | SCTAB | nTab, |
SCCOL | nStartCol, | ||
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
bool | bDeleteCaptions = true |
||
) |
Definition at line 2051 of file documen3.cxx.
References NOCAPTIONS, NONE, NOTE, and ScTable::SetMergedCells().
Referenced by oox::xls::SheetDataBuffer::applyCellMerging(), ScUndoMerge::DoChange(), ScXMLTableRowCellContext::DoMerge(), XclImpXFRangeBuffer::Finalize(), ScDocFunc::MergeCells(), and ImportLotus::Row_().
void ScDocument::DoMergeContents | ( | SCTAB | nTab, |
SCCOL | nStartCol, | ||
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow | ||
) |
Definition at line 2014 of file documen3.cxx.
References GetString(), and SetString().
Referenced by ScUndoMerge::DoChange(), and ScDocFunc::MergeCells().
bool ScDocument::DoSubTotals | ( | SCTAB | nTab, |
ScSubTotalParam & | rParam | ||
) |
Definition at line 771 of file documen3.cxx.
References ValidTab().
Referenced by ScDBFunc::DoSubTotals(), and ScDBDocFunc::DoSubTotals().
|
private |
Definition at line 246 of file documen9.cxx.
References mpDrawLayer.
Referenced by GetDataStart(), GetPrintArea(), GetPrintAreaHor(), and GetPrintAreaVer().
SC_DLLPUBLIC void ScDocument::DumpColumnStorage | ( | SCTAB | nTab, |
SCCOL | nCol | ||
) | const |
Referenced by ScGridWindow::dumpColumnCellStorage().
OString ScDocument::dumpSheetGeomData | ( | SCTAB | nTab, |
bool | bColumns, | ||
SheetGeomType | eGeomType | ||
) |
Serializes the specified sheet's geometry data.
nTab | is the index of the sheet to operate on. |
bColumns | - if true it dumps the data for columns, else it does for rows. |
eGeomType | indicates the type of data to be dumped for rows/columns. |
Definition at line 1027 of file document10.cxx.
References ScTable::dumpSheetGeomData(), and FetchTable()