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 class | HardRecalcState { OFF , TEMPORARY , 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) |
void | SetImagePreferredDPI (sal_Int32 nValue) |
sal_Int32 | GetImagePreferredDPI () |
SC_DLLPUBLIC sal_uInt64 | GetCellCount () const |
SC_DLLPUBLIC sal_uInt64 | GetFormulaGroupCount () const |
sal_uInt64 | 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, 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, 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 &rName, bool *pSheetLocal=nullptr) 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 |
SC_DLLPUBLIC ScDPObject * | GetDPAtCursor (ScAddress const &rAddress) const |
SC_DLLPUBLIC bool | HasDataPilotAtPosition (ScAddress const &rAddress) 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 |
SC_DLLPUBLIC SCCOL | GetMaxColCount () const |
SC_DLLPUBLIC SCROW | GetMaxRowCount () const |
SC_DLLPUBLIC OUString | MaxRowAsString () const |
SC_DLLPUBLIC OUString | MaxColAsString () 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) |
SC_DLLPUBLIC 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 OUString | GetInputString (SCCOL nCol, SCROW nRow, SCTAB nTab, bool bForceSystemLocale=false) const |
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 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 sal_uInt32 | GetNumberFormat (SCCOL nCol, SCROW nRow, SCTAB nTab) 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 OUString | GetFormula (SCCOL nCol, SCROW nRow, SCTAB nTab) const |
SC_DLLPUBLIC CellType | GetCellType (SCCOL nCol, SCROW nRow, SCTAB nTab) 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 std::shared_ptr< sc::Sparkline > | GetSparkline (ScAddress const &rPosition) |
Returns sparkline at the address if it exists. More... | |
SC_DLLPUBLIC bool | HasSparkline (ScAddress const &rPosition) |
SC_DLLPUBLIC sc::Sparkline * | CreateSparkline (ScAddress const &rPosition, std::shared_ptr< sc::SparklineGroup > const &pSparklineGroup) |
SC_DLLPUBLIC sc::SparklineList * | GetSparklineList (SCTAB nTab) |
SC_DLLPUBLIC bool | DeleteSparkline (ScAddress const &rPosition) |
SC_DLLPUBLIC bool | GetSparklineGroupInRange (ScRange const &rRange, std::shared_ptr< sc::SparklineGroup > &rGroup) |
Returns true if the whole range covers one and the same sparkline group and returns the group via out parameter. More... | |
SC_DLLPUBLIC bool | HasOneSparklineGroup (ScRange const &rRange) |
SC_DLLPUBLIC std::shared_ptr< sc::SparklineGroup > | SearchSparklineGroup (tools::Guid const &rGuid) |
SC_DLLPUBLIC ScPostIt * | GetNote (const ScAddress &rPos) |
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 |
bool | HasNote (SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow) 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 (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) |
SC_DLLPUBLIC void | DoEmptyBlock (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) |
SC_DLLPUBLIC void | DoMerge (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, bool bDeleteCaptions=true) |
void | RemoveMerge (SCCOL nCol, SCROW nRow, SCTAB nTab) |
bool | IsBlockEmpty (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) const |
bool | IsPrintEmpty (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, 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, SCROW *nStartRow=nullptr, SCROW *nEndRow=nullptr) 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 |
bool | HasAttrib (SCCOL nCol, SCROW nRow, SCTAB nTab, HasAttrFlags nMask, SCROW *nStartRow=nullptr, SCROW *nEndRow=nullptr) 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) |
bool | InterpretCellsIfNeeded (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... | |
ScSortedRangeCache & | GetSortedRangeCache (const ScRange &rRange, const ScQueryParam ¶m, ScInterpreterContext *pContext) |
void | RemoveLookupCache (ScLookupCache &rCache) |
Only ScLookupCache dtor uses RemoveLookupCache(), do not use elsewhere! More... | |
void | RemoveSortedRangeCache (ScSortedRangeCache &rCache) |
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... | |
void | EnableDelayDeletingBroadcasters (bool set) |
If set, cells will not delete their empty broadcasters, avoiding possible extensive mdds vector changes. More... | |
bool | IsDelayedDeletingBroadcasters () const |
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, ScDataAreaExtras *pDataAreaExtras=nullptr) const |
Shrink a range to only include used data area. More... | |
SC_DLLPUBLIC 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 bool | IsEmptyData (SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) const |
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) |
SC_DLLPUBLIC 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) |
SC_DLLPUBLIC 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) |
SCROW | CopyNonFilteredFromClip (sc::CopyFromClipContext &rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, SCCOL nDx, SCROW &rClipStartRow, SCROW nClipEndRow) |
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 bSkipEmptyCells=false, const ScRangeList *pDestRanges=nullptr) |
Paste data from a clipboard document into this document. 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, bool bIncludeFiltered) |
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) |
SC_DLLPUBLIC 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_uInt64 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 (SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich, SCROW &nStartRow, SCROW &nEndRow) const |
template<class T > | |
const T * | GetAttr (SCCOL nCol, SCROW nRow, SCTAB nTab, TypedWhichId< T > nWhich, SCROW &nStartRow, SCROW &nEndRow) 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_uInt32 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 > pAttr) |
SC_DLLPUBLIC const ScPatternAttr * | SetPattern (const ScAddress &rPos, std::unique_ptr< ScPatternAttr > pAttr) |
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, bool &bMatchedRangesWereClamped) |
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) |
SC_DLLPUBLIC 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 tools::Long | 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, bool bHiddenAsZero=true) const |
SC_DLLPUBLIC tools::Long | GetRowHeight (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bHiddenAsZero=true) const |
SCROW | GetRowForHeight (SCTAB nTab, tools::Long nHeight) const |
Given the height i.e. More... | |
tools::Long | GetScaledRowHeight (SCROW nStartRow, SCROW nEndRow, SCTAB nTab, double fScale) const |
SC_DLLPUBLIC tools::Long | GetColOffset (SCCOL nCol, SCTAB nTab, bool bHiddenAsZero=true) const |
SC_DLLPUBLIC tools::Long | 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 |
SC_DLLPUBLIC 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 | GetLastChangedColFlagsWidth (SCTAB nTab) const |
SCROW | GetLastChangedRowFlagsWidth (SCTAB nTab) const |
SCCOL | GetNextDifferentChangedColFlagsWidth (SCTAB nTab, SCCOL nStart) const |
SCROW | GetNextDifferentChangedRowFlagsWidth (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 std::optional< ScRange > | GetRepeatColRange (SCTAB nTab) |
SC_DLLPUBLIC std::optional< 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::optional< ScRange > oNew) |
SC_DLLPUBLIC void | SetRepeatRowRange (SCTAB nTab, std::optional< ScRange > oNew) |
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) |
void | PrepareQuery (SCTAB nTab, ScQueryParam &rQueryParam) |
SCSIZE | Query (SCTAB nTab, const ScQueryParam &rQueryParam, bool bKeepSub) |
SC_DLLPUBLIC bool | CreateQueryParam (const ScRange &rRange, ScQueryParam &rQueryParam) |
OUString | GetUpperCellString (SCCOL nCol, SCROW nRow, SCTAB nTab) |
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 bValidation=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 () |
std::set< SCCOL > | QueryColumnsWithFormulaCells (SCTAB nTab) const |
void | CheckIntegrity (SCTAB nTab) const |
Check the integrity of the internal table state. More... | |
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) |
SC_DLLPUBLIC void | StartAllListeners (const ScRange &rRange) |
void | SetForcedFormulas (bool bVal) |
sal_uInt64 | 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_uInt64 | GetXMLImportedFormulaCount () const |
void | IncXMLImportedFormulaCount (sal_uInt64 nVal) |
void | DecXMLImportedFormulaCount (sal_uInt64 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< EditTextObject > | CreateSharedStringTextObject (const svl::SharedString &rSS) |
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 ScUndoManager * | 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) |
void | UnshareFormulaCells (SCTAB nTab, SCCOL nCol, std::vector< SCROW > &rRows) |
Make specified formula cells non-grouped. More... | |
void | RegroupFormulaCells (SCTAB nTab, SCCOL nCol) |
SC_DLLPUBLIC void | RegroupFormulaCells (const ScRange &range) |
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::optional< 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 | GetWritableColumnsRange (SCTAB nTab, SCCOL nColBegin, SCCOL nColEnd) |
SC_DLLPUBLIC ScColumnsRange | GetAllocatedColumnsRange (SCTAB nTab, SCCOL nColBegin, SCCOL nColEnd) const |
SC_DLLPUBLIC ScColumnsRange | GetColumnsRange (SCTAB nTab, SCCOL nColBegin, SCCOL nColEnd) const |
bool | IsInDocShellRecalc () const |
void | SetDocShellRecalc (bool bSet) |
bool | IsInLayoutStrings () const |
void | SetLayoutStrings (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) |
ScTable * | FetchTable (SCTAB nTab) |
const ScTable * | FetchTable (SCTAB nTab) const |
ScRefCellValue | GetRefCellValue (const ScAddress &rPos) |
Static Public Member Functions | |
static SC_DLLPUBLIC bool | ValidTabName (const OUString &rName) |
static bool | IsChart (const SdrObject *pObject) |
static bool | IsEmptyCellSearch (const SvxSearchItem &rSearchItem) |
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 |
Private Member Functions | |
ScDocument (const ScDocument &r)=delete | |
void | FindMaxRotCol (SCTAB nTab, RowInfo *pRowInfo, SCSIZE nArrCount, SCCOL nX1, SCCOL nX2) const |
sal_uInt16 | RowDifferences (SCROW nThisRow, SCTAB nThisTab, ScDocument &rOtherDoc, SCROW nOtherRow, SCTAB nOtherTab, SCCOL nMaxCol, const SCCOLROW *pOtherCols) |
sal_uInt16 | ColDifferences (SCCOL nThisCol, SCTAB nThisTab, ScDocument &rOtherDoc, SCCOL nOtherCol, SCTAB nOtherTab, SCROW nMaxRow, const SCCOLROW *pOtherRows) |
void | FindOrder (SCCOLROW *pOtherRows, SCCOLROW nThisEndRow, SCCOLROW nOtherEndRow, bool bColumns, ScDocument &rOtherDoc, SCTAB nThisTab, SCTAB nOtherTab, SCCOLROW nEndCol, const SCCOLROW *pTranslate, ScProgress *pProgress, sal_uInt64 nProAdd) |
DECL_LINK (TrackTimeHdl, Timer *, void) | |
bool | LimitRangeToAvailableSheets (const ScRange &rRange, ScRange &o_rRange, bool &o_bEntirelyOutOfBounds) const |
Adjust a range to available sheets. More... | |
void | MergeNumberFormatter (const ScDocument &rSrcDoc) |
void | ImplCreateOptions () |
void | ImplDeleteOptions () |
void | DeleteDrawLayer () |
SC_DLLPUBLIC bool | DrawGetPrintArea (ScRange &rRange, bool bSetHor, bool bSetVer) const |
void | UpdateDrawPrinter () |
void | UpdateDrawLanguages () |
SC_DLLPUBLIC void | InitClipPtrs (ScDocument *pSourceDoc) |
void | LoadDdeLinks (SvStream &rStream) |
void | SaveDdeLinks (SvStream &rStream) const |
void | DeleteAreaLinksOnTab (SCTAB nTab) |
void | UpdateRefAreaLinks (UpdateRefMode eUpdateRefMode, const ScRange &r, SCCOL nDx, SCROW nDy, SCTAB nDz) |
void | CopyRangeNamesToClip (ScDocument *pClipDoc, const ScRange &rClipRange, const ScMarkData *pMarks) |
bool | HasPartOfMerged (const ScRange &rRange) |
ScRefCellValue | GetRefCellValue (const ScAddress &rPos, sc::ColumnBlockPosition &rBlockPos) |
SCSIZE | GetPatternCount (SCTAB nTab, SCCOL nCol) const |
SCSIZE | GetPatternCount (SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2) const |
void | ReservePatternCount (SCTAB nTab, SCCOL nCol, SCSIZE nReserve) |
void | SharePooledResources (const ScDocument *pSrcDoc) |
void | EndListeningIntersectedGroup (sc::EndListeningContext &rCxt, const ScAddress &rPos, std::vector< ScAddress > *pGroupPos) |
void | EndListeningIntersectedGroups (sc::EndListeningContext &rCxt, const ScRange &rRange, std::vector< ScAddress > *pGroupPos) |
void | EndListeningGroups (const std::vector< ScAddress > &rPosArray) |
void | SetNeedsListeningGroups (const std::vector< ScAddress > &rPosArray) |
bool | BroadcastHintInternal (const ScHint &rHint) |
Static Private Attributes | |
static thread_local ScDocumentThreadSpecific | maThreadSpecific |
static const sal_uInt16 | nSrcVer = SC_CURRENT_VERSION |
Friends | |
class | ScValueIterator |
class | ScHorizontalValueIterator |
class | ScDBQueryDataIterator |
class | ScCellIterator |
template<ScQueryCellIteratorAccess accessType, ScQueryCellIteratorType queryType> | |
class | ScQueryCellIteratorBase |
template<ScQueryCellIteratorAccess accessType> | |
class | ScQueryCellIteratorAccessSpecific |
class | ScHorizontalCellIterator |
class | ScHorizontalAttrIterator |
class | ScDocAttrIterator |
class | ScAttrRectIterator |
class | ScDocShell |
class | ScDocRowHeightUpdater |
class | ScColumnTextWidthIterator |
class | ScTable |
class | ScColumn |
struct | ScRefCellValue |
class | ScDocumentImport |
class | sc::EditTextIterator |
struct | ScMutationGuard |
struct | ScMutationDisable |
Definition at line 321 of file document.hxx.
|
private |
Definition at line 346 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 349 of file document.hxx.
ScDocument::ScDocument | ( | ScDocumentMode | eMode = SCDOCMODE_DOCUMENT , |
SfxObjectShell * | pDocShell = nullptr |
||
) |
Definition at line 114 of file documen2.cxx.
References aCurTextWidthCalcPos, apTemporaryChartLock, aTrackIdle, ScGlobal::eLnge, eMode, eSrcSet, getCharClass(), formula::FormulaGrammar::GRAM_STORAGE_DEFAULT, ImplCreateOptions(), Invalid, utl::ConfigManager::IsFuzzing(), 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 346 of file documen2.cxx.
References apTemporaryChartLock, bInDtorClear, bInLinkUpdate, bIsClip, bIsUndo, Clear(), ClearLookupCaches(), sc::SharedStringPoolPurge::delayedPurge(), DeleteDrawLayer(), VclPtr< class reference_type >::disposeAndClear(), GetRefreshTimerControlAddress(), comphelper::ThreadPool::getSharedOptimalPool(), ScGlobal::GetSharedStringPoolPurge(), ImplDeleteOptions(), IsClipOrUndo(), 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, ScAddInListener::RemoveDocument(), ScAddInAsync::RemoveDocument(), SAL_WARN_IF, and ScDocumentThreadSpecific::xRecursionHelper.
|
privatedelete |
sal_uLong ScDocument::AddCondFormat | ( | std::unique_ptr< ScConditionalFormat > | pNew, |
SCTAB | nTab | ||
) |
Definition at line 715 of file documen4.cxx.
References maTabs, and 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 4885 of file document.cxx.
References o3tl::make_unsigned(), maTabs, and nIndex.
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 393 of file document10.cxx.
References ScFormulaCell::aPos, and pDelayedFormulaGrouping.
Referenced by sc::SharedFormulaUtil::joinFormulaCells().
void ScDocument::AddDetectiveOperation | ( | const ScDetOpData & | rData | ) |
Definition at line 900 of file documen4.cxx.
References pDetOpList.
Referenced by ScDocFunc::DetectiveAddError(), ScDocFunc::DetectiveAddPred(), ScDocFunc::DetectiveAddSucc(), ScDocFunc::DetectiveDelPred(), ScDocFunc::DetectiveDelSucc(), ScXMLBodyContext::endFastElement(), and ScUndoDetective::Redo().
void ScDocument::AddOLEObjectToCollection | ( | const OUString & | rName | ) |
Definition at line 648 of file documen5.cxx.
References pChartListenerCollection.
Referenced by ScMyOLEFixer::CreateChartListener().
Adds a new print ranges.
Definition at line 6425 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScXMLTableContext::endFastElement(), ImportExcel::PostDocLoad(), ScTableSheetObj::setPrintAreas(), and ScViewFunc::SetPrintRanges().
void ScDocument::AddSubTotalCell | ( | ScFormulaCell * | pCell | ) |
Definition at line 6514 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 3977 of file document.cxx.
References ScFormulaCell::aPos, m_TableOpList, and p.
Referenced by ScFormulaCell::Notify(), and ScFormulaCell::SetTableOpDirty().
void ScDocument::AddUndoTab | ( | SCTAB | nTab1, |
SCTAB | nTab2, | ||
bool | bColInfo = false , |
||
bool | bRowInfo = false |
||
) |
Definition at line 2031 of file document.cxx.
void ScDocument::AddUnoListenerCall | ( | const css::uno::Reference< css::util::XModifyListener > & | rListener, |
const css::lang::EventObject & | rEvent | ||
) |
Definition at line 986 of file documen3.cxx.
References bInUnoBroadcast, and pUnoListenerCalls.
Referenced by ScChart2DataSequence::Notify(), and ScDataPilotTableObj::Refreshed_Impl().
void ScDocument::AddUnoObject | ( | SfxListener & | rObject | ) |
Definition at line 907 of file documen3.cxx.
References pUnoBroadcaster, and SfxListener::StartListening().
Referenced by ScTabViewShell::AddAccessibilityObject(), ScStyleObj::InitDoc(), sc::PivotTableDataSequence::PivotTableDataSequence(), ScAccessibleHeaderTextData::ScAccessibleHeaderTextData(), ScAccessibleNoteTextData::ScAccessibleNoteTextData(), ScAddressConversionObj::ScAddressConversionObj(), ScAnnotationEditSource::ScAnnotationEditSource(), ScAreaLinkObj::ScAreaLinkObj(), ScAreaLinksObj::ScAreaLinksObj(), ScCellFieldsObj::ScCellFieldsObj(), ScCellFormatsEnumeration::ScCellFormatsEnumeration(), ScCellFormatsObj::ScCellFormatsObj(), ScCellsEnumeration::ScCellsEnumeration(), ScCellsObj::ScCellsObj(), ScCellTextData::ScCellTextData(), ScChart2DataProvider::ScChart2DataProvider(), ScChart2DataSequence::ScChart2DataSequence(), 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 1008 of file documen3.cxx.
References nId, and pUnoRefUndoList.
Referenced by ScChart2DataSequence::Notify().
sal_uLong ScDocument::AddValidationEntry | ( | const ScValidationData & | rNew | ) |
Definition at line 726 of file documen4.cxx.
References ScValidationData::Clone(), CORE, ScValidationData::IsEmpty(), pData, and pValidationList.
Referenced by XclImpValidationManager::Apply(), ScPatternAttr::PutInPool(), ScXMLTableRowCellContext::SetContentValidation(), and ScViewFunc::SetValidation().
void ScDocument::AppendTabOnLoad | ( | const OUString & | rName | ) |
Definition at line 475 of file document.cxx.
References aName, CreateValidTabName(), maTabs, ScTable, and ValidTab().
Referenced by ScMyTables::NewSheet().
void ScDocument::AppendToFormulaTrack | ( | ScFormulaCell * | pCell | ) |
Definition at line 459 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 674 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 4835 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScDBFunc::ApplyAutoFilter(), ScHTMLTable::ApplyCellBorders(), ScDPOutput::DataCell(), ScUndoMerge::DoChange(), oox::xls::AutoFilter::finalizeImport(), ScDBFunc::HideAutoFilter(), oox::xls::WorksheetGlobals::insertHyperlink(), ScAttrArray::InsertRow(), oox::xls::lcl_SetBorderLine(), ScDocFunc::MergeCells(), ScDPOutput::Output(), PutFormString(), ScAttrArray::RemoveAreaMerge(), RemoveMerge(), 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 5083 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ExcScenario::Apply(), XclImpPivotTable::ApplyMergeFlags(), 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 5971 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 4841 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 4847 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 4864 of file document.cxx.
References maTabs, and ValidTab().
Referenced by XclImpValidationManager::Apply(), LotAttrCol::Apply(), DifColumn::Apply(), XclImpXF::ApplyPattern(), OP_ApplyPatternArea123(), ScDBDocFunc::Query(), ScUndoRemoveMerge::Redo(), ScAreaLink::Refresh(), ScAttrArray::RemoveAreaMerge(), ScOrcusSheet::set_column_format(), ScOrcusSheet::set_row_format(), 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 4872 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 5863 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScMarkData::FillRangeListWithMarks(), SvxBoxItem::GetBottom(), ScMarkData::GetBottomEnvelope(), SvxBoxItem::GetLeft(), ScMarkData::GetLeftEnvelope(), SvxBoxItem::GetRight(), ScMarkData::GetRightEnvelope(), SvxBoxItem::GetTop(), ScMarkData::GetTopEnvelope(), SvxBoxItem::IsRemoveAdjacentCellBorder(), SvxBoxInfoItem::IsValid(), maTabs, ScAddress::Row(), SvxBoxInfoItem::SetLine(), SvxBoxItem::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 4959 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 5984 of file document.cxx.
References ScRange::aEnd, ApplyPatternArea(), ScRange::aStart, ATTR_PATTERN_END(), ATTR_PATTERN_START(), ScAddress::Col(), ScPatternAttr::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(), and ScFormatShell::ExecuteStyle().
void ScDocument::ApplySelectionStyle | ( | const ScStyleSheet & | rStyle, |
const ScMarkData & | rMark | ||
) |
Definition at line 4937 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 4907 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 4914 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 4929 of file document.cxx.
References maTabs, and ValidTab().
Referenced by XclImpXF::ApplyPattern(), ScDBDocFunc::Query(), and oox::xls::Xf::writeToDoc().
void ScDocument::AreaBroadcast | ( | const ScHint & | rHint | ) |
only area, no cell broadcast
Definition at line 203 of file documen7.cxx.
References eHardRecalcState, SfxHint::GetId(), OFF, pBASM, and TrackFormulas().
Referenced by ScColumn::MoveTo().
Definition at line 1803 of file document.cxx.
References ScAddress::Col(), maTabs, nLength, 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 1193 of file documen3.cxx.
References maTabs, and PutInOrder().
Referenced by ScDocFunc::AutoFormat(), and ScUndoAutoFormat::Redo().
void ScDocument::BeginDrawUndo | ( | ) |
Definition at line 60 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(), ScDocFunc::MergeCells(), ScDocFunc::MoveBlock(), ScViewFunc::MoveTable(), ScViewFunc::PasteFromClip(), ScViewFunc::PasteFromClipToMultiRanges(), ScViewFunc::PasteMultiRangesFromClip(), ScDBDocFunc::Query(), ScViewFunc::SetWidthOrHeight(), and ScDocFunc::SetWidthOrHeight().
void ScDocument::BeginUnoRefUndo | ( | ) |
Definition at line 996 of file documen3.cxx.
References pUnoRefUndoList.
|
inline |
Definition at line 1213 of file document.hxx.
References mbFormulaGroupCxtBlockDiscard.
void ScDocument::Broadcast | ( | const ScHint & | rHint | ) |
Broadcast wrapper, calls rHint.GetCell()->Broadcast() and AreaBroadcast() and TrackFormulas() Preferred.
Definition at line 117 of file documen7.cxx.
References BCA_BRDCST_ALWAYS, BroadcastHintInternal(), eHardRecalcState, SfxHint::GetId(), ScHint::GetStartAddress(), maTabs, OFF, pBASM, ScAddress::Tab(), and TrackFormulas().
Referenced by ScColumn::Broadcast(), and ScColumn::BroadcastCells().
void ScDocument::BroadcastCells | ( | const ScRange & | rRange, |
SfxHintId | nHint, | ||
bool | bBroadcastSingleBroadcasters = true |
||
) |
Definition at line 158 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(), SetDirty(), ScImportExport::Text2Doc(), and ScUndoDragDrop::Undo().
|
private |
Definition at line 137 of file documen7.cxx.
References a, SvtBroadcaster::Broadcast(), GetBroadcaster(), ScHint::GetRowCount(), ScHint::GetStartAddress(), and ScAddress::Row().
Referenced by Broadcast(), and TrackFormulas().
void ScDocument::BroadcastUno | ( | const SfxHint & | rHint | ) |
Definition at line 958 of file documen3.cxx.
References bInUnoBroadcast, bInUnoListenerCall, SfxHint::GetId(), pUnoBroadcaster, and pUnoListenerCalls.
Referenced by BroadcastCells(), ScDBDocFunc::CreatePivotTable(), ScDdeLink::DataChanged(), ScDBDocFunc::DataPilotUpdate(), ScDBDocFunc::DoImport(), ScXMLImport::endDocument(), ScChart2DataSequence::RebuildDataCache(), ScAreaLink::Refresh(), ScTableLink::Refresh(), ScDocShellModificator::SetDocumentModified(), ScUndoDataPilot::Undo(), ScUnoRefList::Undo(), and ScDBDocFunc::UpdatePivotTable().
void ScDocument::CalcAfterLoad | ( | bool | bStartListening = true | ) |
Definition at line 4090 of file document.cxx.
References a, bCalcingAfterLoad, bIsClip, InterpretDirtyCells(), maTabs, p, pChartListenerCollection, and SetDetectiveDirty().
Referenced by generate_Opcodes(), ScQProReader::import(), ImportExcel::Read(), ImportLotus::Read(), and ImportExcel8::Read().
void ScDocument::CalcAll | ( | ) |
Definition at line 3997 of file document.cxx.
References a, ClearFormulaTree(), ClearLookupCaches(), ETERNAL, GetHardRecalcState(), maTabs, and PrepareFormulaCalc().
Referenced by CalcFormulaTree(), 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 334 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 SetAutoCalc(), and TrackFormulas().
void ScDocument::CalculateInColumnInThread | ( | ScInterpreterContext & | rContext, |
const ScRange & | rCalcRange, | ||
unsigned | nThisThread, | ||
unsigned | nThreadsTotal | ||
) |
Definition at line 411 of file documen8.cxx.
References ScRange::aEnd, ScRange::aStart, ScTable::CalculateInColumnInThread(), ScAddress::Col(), FetchTable(), IsThreadedGroupCalcInProgress(), maThreadSpecific, ScDocumentThreadSpecific::pContext, ScAddress::Row(), ScAddress::Tab(), and ScDocumentThreadSpecific::xRecursionHelper.
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 428 of file document10.cxx.
References pDelayedStartListeningFormulaCells.
Referenced by ScColumn::StartListeningUnshared().
Definition at line 1827 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 1485 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 1196 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 6017 of file document.cxx.
References maTabs.
Referenced by ScDocFunc::ChangeIndent(), and ScUndoIndent::Redo().
void ScDocument::CheckIntegrity | ( | SCTAB | nTab | ) | const |
Check the integrity of the internal table state.
Useful from testing code. It throws an exception upon first failure.
Feel free to add more checks as needed.
Definition at line 1095 of file document10.cxx.
References ScTable::CheckIntegrity(), and FetchTable().
void ScDocument::CheckLinkFormulaNeedingCheck | ( | const ScTokenArray & | rCode | ) |
Check token array and set link check if ocDde/ocWebservice is contained.
Definition at line 1154 of file documen8.cxx.
References formula::FormulaTokenArray::GetCodeLen(), formula::FormulaTokenArray::GetLen(), HasLinkFormulaNeedingCheck(), formula::FormulaTokenArray::HasOpCode(), formula::FormulaTokenArray::HasOpCodeRPN(), ocDde, ocWebservice, SAL_WARN, and SetLinkFormulaNeedingCheck().
Referenced by ScRangeData::CompileUnresolvedXML(), ScConditionEntry::CompileXML(), ScFormulaCell::CompileXML(), oox::xls::CondFormatRule::finalizeImport(), ImportExcel::Formula(), oox::xls::DefinedName::getScTokens(), oox::xls::ExternalName::importDefinedName(), XclImpName::InsertName(), ScColumn::ParseString(), XclImpCondFormat::ReadCF(), ScRangeData::ScRangeData(), ImportExcel::Shrfmla(), and ScImportExport::Sylk2Doc().
void ScDocument::CheckVectorizationState | ( | ) |
Definition at line 3863 of file document.cxx.
References a, bAutoCalc, GetAutoCalc(), maTabs, and SetAutoCalc().
Referenced by ScModelObj::enableOpenCL().
Definition at line 2151 of file documen3.cxx.
References maTabs.
Referenced by ScChangeTrack::AppendContentRange(), and ScTabPageSortFields::FillFieldLists().
void ScDocument::Clear | ( | bool | bFromDestructor = false | ) |
Definition at line 501 of file documen9.cxx.
References maTabs, mpDrawLayer, and pSelectionAttr.
Referenced by InitClipPtrs(), InitUndo(), InitUndoSelected(), and ~ScDocument().
void ScDocument::ClearDetectiveOperations | ( | ) |
Definition at line 908 of file documen4.cxx.
References pDetOpList.
Referenced by ScDocFunc::DetectiveDelAll(), and ScUndoDetective::Redo().
void ScDocument::ClearFormulaTree | ( | ) |
Definition at line 446 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 1288 of file documen2.cxx.
References ScInterpreterContextPool::ClearLookupCaches(), GetNonThreadedContext(), IsThreadedGroupCalcInProgress(), ScInterpreterContext::mxScLookupCache, and mxScSortedRangeCache.
Referenced by CalcAll(), and ~ScDocument().
void ScDocument::ClearPrintRanges | ( | SCTAB | nTab | ) |
Removes all print ranges.
Definition at line 6419 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScXMLTableContext::endFastElement(), ImportExcel::PostDocLoad(), ScTableSheetObj::SetOnePropertyValue(), ScTableSheetObj::setPrintAreas(), and ScViewFunc::SetPrintRanges().
void ScDocument::ClearSelectionItems | ( | const sal_uInt16 * | pWhich, |
const ScMarkData & | rMark | ||
) |
Definition at line 6029 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 338 of file documen2.cxx.
References bIsClip, ForgetNoteCaptions(), GetTableCount(), MaxCol(), and MaxRow().
Referenced by ScDocShell::Notify().
|
private |
Definition at line 964 of file documen4.cxx.
References ScRefCellValue::equalsWithoutFormat(), ScRefCellValue::isEmpty(), and ValidRow().
Referenced by FindOrder().
Definition at line 4579 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 4509 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScChart2DataSequence::BuildDataCache(), sc::PrintPageRanges::calculate(), ScChartArray::CreateMemChartSingle(), ScOutputData::DrawEdit(), ScOutputData::DrawGrid(), ScGridWindow::DrawHiddenIndicator(), ScOutputData::DrawNoteMarks(), ScOutputData::DrawSparklines(), ScCellShell::ExecuteEdit(), FillInfo(), ScTable::FindNextVisibleCol(), ScTable::FindNextVisibleColWithContent(), ScColBar::GetEntrySize(), ScGridWindow::GetListValButtonRect(), ScOutputData::GetMergeOrigin(), ScTableColumnObj::GetOnePropertyValue(), ScTable::GetPrintArea(), ScTableColumnsObj::getPropertyValue(), ScViewData::GetScrPos(), ScPreviewLocationData::GetTableInfo(), ScDrawLayer::InitializeCellAnchoredObj(), sc::SparklineRenderer::isCellHidden(), ScOutlineWindow::IsHidden(), ScAccessibleCellBase::isVisible(), lcl_GetMergeRange(), lcl_PaintOneRange(), ScTabView::PaintRangeFinderEntry(), ScDrawLayer::RecalcPos(), ScUndoAutoFormat::Redo(), ScTabView::ScrollX(), ScOutputData::SetCellRotations(), ScViewFunctionSet::SetCursorAtCell(), ScViewFunctionSet::SetCursorAtPoint(), ScViewFunc::SetWidthOrHeight(), ScDocFunc::SetWidthOrHeight(), ScTabView::SkipCursorHorizontal(), ScHTMLExport::WriteTables(), XclExpColinfo::XclExpColinfo(), and XclExpNote::XclExpNote().
void ScDocument::CompareDocument | ( | ScDocument & | rOtherDoc | ) |
Definition at line 1103 of file documen4.cxx.
References ScCellValue::assign(), ScCellValue::equalsWithoutFormat(), FindOrder(), GetCellArea(), GetDocumentShell(), GetName(), GetTableCount(), o3tl::getToken(), i, IsScenario(), MaxCol(), MaxRow(), MAXTAB, n1, n2, nIndex, pChangeTrack, RowDifferences(), SC_DOCCOMP_MAXDIFF, ScResId(), SCTAB_MAX, ScChangeActionContent::SetNewValue(), ScChangeActionContent::SetOldValue(), ScProgress::SetStateOnPercent(), ValidCol(), ValidRow(), and ValidTab().
void ScDocument::CompileAll | ( | ) |
Definition at line 4021 of file document.cxx.
References a, maTabs, and SetAllFormulasDirty().
Referenced by ScRefUndoData::DoUndo().
void ScDocument::CompileColRowNameFormula | ( | ) |
Definition at line 567 of file documen4.cxx.
References maTabs.
Referenced by ScLabelRangesObj::addNew(), ScLabelRangeObj::Modify_Impl(), and ScLabelRangesObj::removeByIndex().
void ScDocument::CompileDBFormula | ( | ) |
Definition at line 557 of file documen4.cxx.
References maTabs.
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 4074 of file document.cxx.
Referenced by ScModule::ModifyOptions().
void ScDocument::CompileHybridFormula | ( | ) |
Call this immediately after updating named ranges.
Definition at line 317 of file document10.cxx.
Referenced by ScDBDocFunc::AddDBRange(), ScDBDocFunc::DeleteDBRange(), ScUndoRangeNames::DoChange(), ScUndoAllRangeNames::DoChange(), ScViewFunc::InsertName(), ScDBDocFunc::ModifyAllDBData(), ScDocFunc::ModifyAllRangeNames(), ScUndoDBData::Redo(), ScDBDocFunc::RenameDBRange(), ScDocFunc::SetNewRangeNames(), ScUndoDBData::Undo(), and ScNamedRangesObj::unlock().
void ScDocument::CompileXML | ( | ) |
Definition at line 4034 of file document.cxx.
References CORE, GetAutoCalc(), GetDocumentShell(), GetXMLImportedFormulaCount(), maTabs, pAutoNameCache, pRangeName, pValidationList, ScResId(), SetAutoCalc(), StartAllListeners(), and TrackFormulas().
Referenced by ScXMLImport::endDocument().
bool ScDocument::ContainsNotesInRange | ( | const ScRangeList & | rRange | ) | const |
Definition at line 7031 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 209 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 799 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 2671 of file document.cxx.
References CONTENTS, sc::ColumnSet::empty(), get(), 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 2261 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 176 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 866 of file documen8.cxx.
References bAutoCalc, bIsClip, ScDdeLink::GetAppl(), GetDocLinkManager(), sc::DocumentLinkManager::getExistingLinkManager(), ScDdeLink::GetItem(), sc::DocumentLinkManager::getLinkManager(), sfx2::LinkManager::GetLinks(), ScDdeLink::GetTopic(), sfx2::LinkManager::InsertDDELink(), LoadDdeLinks(), p, and pClipData.
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 | bSkipEmptyCells = false , |
||
const ScRangeList * | pDestRanges = nullptr |
||
) |
Paste data from a clipboard document into this document.
rDestRange | destination range. |
pClipDoc | pointer to the clipboard document to copy data from. |
bSkipEmptyCells | if this flag is set, empty cells in the source range in the clipboard document will not overwrite the target destination cells. |
pDestRanges | If pDestRanges is given it overrides rDestRange, where rDestRange becomes the overall encompassing range. |
Definition at line 2852 of file document.cxx.
References ADDNOTES, ScRange::aEnd, ScRange::aStart, ATTRIB, bInsertingFromOtherDoc, bIsClip, ScAddress::Col(), CONTENTS, CopyBlockFromClip(), CopyNonFilteredFromClip(), CopyOneCellFromClip(), 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 3063 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, bInsertingFromOtherDoc, bIsClip, ScAddress::Col(), ScClipParam::Column, CONTENTS, CopyBlockFromClip(), CopyNonFilteredFromClip(), DeleteArea(), sc::ColumnSpanSet::executeColumnAction(), GetBASM(), GetClipParam(), ScMarkData::GetMarkArea(), ScClipParam::getPasteColSize(), ScClipParam::getPasteRowSize(), GetTableCount(), i, ScClipParam::maRanges, maTabs, ScClipParam::mbCutMode, ScClipParam::meDirection, n, ScAddress::Row(), ScClipParam::Row, SetDirtyFromClip(), sc::CopyFromClipContext::setTabRange(), ScRangeList::size(), and StartListeningFromClip().
Referenced by ScViewFunc::PasteMultiRangesFromClip().
SCROW ScDocument::CopyNonFilteredFromClip | ( | sc::CopyFromClipContext & | rCxt, |
SCCOL | nCol1, | ||
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
const ScMarkData & | rMark, | ||
SCCOL | nDx, | ||
SCROW & | rClipStartRow, | ||
SCROW | nClipEndRow | ||
) |
Definition at line 2774 of file document.cxx.
References CopyBlockFromClip(), FirstNonFilteredRow(), sc::CopyFromClipContext::getClipDoc(), maTabs, and RowFiltered().
Referenced by CopyFromClip(), and CopyMultiRangeFromClip().
bool ScDocument::CopyOneCellFromClip | ( | sc::CopyFromClipContext & | rCxt, |
SCCOL | nCol1, | ||
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2 | ||
) |
Definition at line 81 of file document10.cxx.
References ADDNOTES, ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScTable::FetchColumn(), FetchTable(), sc::CopyFromClipContext::getClipDoc(), GetClipParam(), sc::CopyFromClipContext::getInsertFlag(), GetNote(), GetPattern(), GetSparkline(), 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(), sc::CopyFromClipContext::setSingleSparkline(), SPARKLINES, ScAddress::Tab(), UpdateReference(), ScColumn::UpdateScriptTypes(), and URM_COPY.
Referenced by CopyFromClip().
|
private |
Definition at line 2457 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), GetRangeName(), ScMarkData::GetTableSelect(), sc::UpdatedRangeNames::getUpdatedNames(), i, maTabs, pRangeName, and ScAddress::Row().
Referenced by CopyToClip().
Definition at line 817 of file documen3.cxx.
References get(), GetScenarioFlags(), HasScenarioRange(), IsActiveScenario(), maTabs, SetAllFormulasDirty(), ScRangeList::size(), TwoWay, and ValidTab().
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 2245 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 288 of file documen8.cxx.
References mxPoolHelper.
Referenced by ScTransferObj::InitDocShell().
bool ScDocument::CopyTab | ( | SCTAB | nOldPos, |
SCTAB | nNewPos, | ||
const ScMarkData * | pOnlyMarked = nullptr |
||
) |
Definition at line 806 of file documen2.cxx.
References ALL, aName, ScRangeName::CopyUsedNames(), CreateValidTabName(), get(), 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(), URM_COPY, URM_INSDEL, ValidNewTabName(), ValidTab(), ValidTabName(), xColNameRanges, and xRowNameRanges.
Referenced by ScUndoCopyTab::Redo().
Definition at line 1944 of file documen3.cxx.
References maTabs, and ValidTab().
Referenced by ScUndoCopyTab::Redo().
void ScDocument::CopyTabToClip | ( | SCCOL | nCol1, |
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
SCTAB | nTab, | ||
ScDocument * | pClipDoc | ||
) |
Definition at line 2272 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 2173 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 | ( | const ScRange & | rRange, |
InsertDeleteFlags | nFlags, | ||
bool | bMarked, | ||
ScDocument & | rDestDoc, | ||
const ScMarkData * | pMarks = nullptr , |
||
bool | bColRowFlags = true |
||
) |
Definition at line 2112 of file document.cxx.
References aDocName, ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScTable::CopyToTable(), FetchTable(), GetBASM(), i, maTabs, ScRange::PutInOrder(), ScAddress::Row(), sc::CopyToDocContext::setStartListening(), StartAllListeners(), and ScAddress::Tab().
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 2072 of file document.cxx.
References CopyToDocument(), and ValidTab().
Referenced by ScDocFunc::ApplyAttributes(), ScHelperFunctions::ApplyBorder(), ScViewFunc::ApplyPatternLines(), ScViewFunc::ApplySelectionPattern(), ScDocFunc::ApplyStyle(), ScDocFunc::AutoFormat(), ScOutlineDocFunc::AutoOutline(), ScDocFunc::ChangeIndent(), ScDocFunc::ClearItems(), CopyToDocument(), sc::DocFuncUtil::createDeleteContentsUndoDoc(), ScViewFunc::CutToClip(), ScViewFunc::DataFormPutData(), ScDocFunc::DeleteCells(), ScViewFunc::DeleteMulti(), ScDocFunc::DeleteTable(), ScUndoPaste::DoChange(), ScUndoDataForm::DoChange(), ScUndoConditionalFormat::DoChange(), ScUndoRefConversion::DoChange(), ScUndoConversion::DoChange(), ScUndoListNames::DoChange(), 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(), ScViewFunc::SetWidthOrHeight(), ScDocFunc::SetWidthOrHeight(), ScOutlineDocFunc::ShowMarkedOutlines(), ScOutlineDocFunc::ShowOutline(), ScImportExport::StartPaste(), ScDocFunc::TabOp(), ScDocFunc::TransliterateText(), ScUndoRefreshLink::Undo(), ScUndoImportData::Undo(), ScUndoImportTab::Undo(), UndoToDocument(), and ScDocFunc::UnmergeCells().
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 809 of file documen3.cxx.
References maTabs, and nCount.
Referenced by ScViewFunc::PasteFromClip().
Definition at line 4611 of file document.cxx.
References maTabs, and ValidTab().
Referenced by ScViewUtil::FitToUnfilteredRows(), GetClipArea(), ScClipParam::getPasteRowSize(), ScCellShell::GetState(), ScViewFunc::MoveBlockTo(), ScUndoDragDrop::ScUndoDragDrop(), ScClipParam::transpose(), and TransposeClip().
Definition at line 4555 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 6870 of file document.cxx.
Referenced by ScXMLImportWrapper::Export().
Definition at line 990 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 993 of file documen8.cxx.
References bAutoCalc, GetDocLinkManager(), sc::DocumentLinkManager::getLinkManager(), 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 1161 of file documen2.cxx.
References bImportingXML, GetEditPool(), GetEnginePool(), and pCacheFieldEditEngine.
Referenced by ScColumn::GetNeededSize(), ScCellTextData::GetTextForwarder(), ScAccessiblePreviewHeaderCellTextData::GetTextForwarder(), and ScAccessibleNoteTextData::GetTextForwarder().
Definition at line 6854 of file document.cxx.
References SetNote().
Referenced by GetOrCreateNote().
std::unique_ptr< ScPrintRangeSaver > ScDocument::CreatePrintRangeSaver | ( | ) | const |
Definition at line 6449 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 1495 of file documen3.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScTable::CreateQueryParam(), FetchTable(), 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 5132 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 GetSelectionPattern().
std::unique_ptr< EditTextObject > ScDocument::CreateSharedStringTextObject | ( | const svl::SharedString & | rSS | ) |
Definition at line 514 of file documen2.cxx.
References EditEngine::CreateTextObject(), GetEditEngine(), GetSharedStringPool(), svl::SharedString::getString(), and ScEditEngineDefaulter::SetTextCurrentDefaults().
Referenced by sc::CopyFromClipContext::setSingleCell().
sc::Sparkline * ScDocument::CreateSparkline | ( | ScAddress const & | rPosition, |
std::shared_ptr< sc::SparklineGroup > const & | pSparklineGroup | ||
) |
Definition at line 6641 of file document.cxx.
References ScAddress::Col(), maTabs, ScAddress::Row(), ScAddress::Tab(), and ValidTab().
Referenced by sc::SparklineGroupsImportContext::insertSparklines(), sc::UndoGroupSparklines::Redo(), sc::UndoInsertSparkline::Redo(), sc::UndoUngroupSparklines::Redo(), sc::UndoDeleteSparkline::Undo(), sc::UndoDeleteSparklineGroup::Undo(), sc::UndoGroupSparklines::Undo(), and sc::UndoUngroupSparklines::Undo().
void ScDocument::CreateValidTabName | ( | OUString & | rName | ) | const |
Definition at line 395 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(), ScViewFunc::MoveTable(), ImportLotus::parse(), XclImpPivotCache::ReadPivotCacheStream(), ScChangeActionDel::Reject(), ScMoveTableDlg::ResetRenameInput(), ScDBFunc::ShowDataPilotSourceData(), and TransferTab().
void ScDocument::CreateValidTabNames | ( | std::vector< OUString > & | aNames, |
SCTAB | nCount | ||
) | const |
Definition at line 442 of file document.cxx.
References ScDefaultsOptions::GetInitTabPrefix(), GetTable(), i, maTabs, nCount, SC_MOD, ValidNewTabName(), and ValidTabName().
Referenced by ScViewFunc::InsertTables().
|
inline |
Definition at line 1042 of file document.hxx.
References nInDdeLinkUpdate.
Referenced by ScDdeLink::TryUpdate().
|
inline |
Definition at line 2438 of file document.hxx.
References nInterpreterTableOpLevel.
Referenced by ScInterpreter::ScTableOp().
|
inline |
Definition at line 2413 of file document.hxx.
References IsThreadedGroupCalcInProgress(), and nInterpretLevel.
Referenced by ScFormulaCell::Interpret().
ScDocument::DECL_LINK | ( | GetUserDefinedColor | , |
sal_uInt16 | , | ||
Color * | |||
) |
|
private |
|
inline |
Definition at line 2426 of file document.hxx.
References IsThreadedGroupCalcInProgress(), and nMacroInterpretLevel.
Referenced by ScInterpreter::ScMacro().
|
inline |
Definition at line 2458 of file document.hxx.
References nXMLImportedFormulaCount.
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 378 of file document10.cxx.
References ScAddress::INITIALIZE_INVALID, pDelayedFormulaGrouping, and RegroupFormulaCells().
Referenced by sc::DelayFormulaGroupingSwitch::DelayFormulaGroupingSwitch(), sc::DelayFormulaGroupingSwitch::reset(), and sc::DelayFormulaGroupingSwitch::~DelayFormulaGroupingSwitch().
void ScDocument::DelBroadcastAreasInRange | ( | const ScRange & | rRange | ) |
Definition at line 215 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 1890 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, bIsUndo, CONTENTS, DeleteArea(), EndListeningIntersectedGroups(), ScMarkData::GetTableSelect(), i, maTabs, sc::EndListeningContext::purgeEmptyBroadcasters(), PutInOrder(), SetDirty(), SetNeedsListeningGroups(), ScAddress::SetTab(), and StartNeededListeners().
Referenced by CopyMultiRangeFromClip(), DeleteArea(), ScDocFunc::DeleteCell(), ScUndoCut::DoChange(), ScDBDocFunc::DoImport(), and ScUndoAutoFormat::Undo().
|
private |
Definition at line 1064 of file documen8.cxx.
References GetDocLinkManager(), sc::DocumentLinkManager::getLinkManager(), sfx2::LinkManager::GetLinks(), nPos, pLink, and sfx2::LinkManager::Remove().
Referenced by DeleteTab(), and DeleteTabs().
void ScDocument::DeleteAreaTab | ( | const ScRange & | rRange, |
InsertDeleteFlags | nDelFlag | ||
) |
Definition at line 1966 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), DeleteAreaTab(), ScAddress::Row(), and ScAddress::Tab().
void ScDocument::DeleteAreaTab | ( | SCCOL | nCol1, |
SCROW | nRow1, | ||
SCCOL | nCol2, | ||
SCROW | nRow2, | ||
SCTAB | nTab, | ||
InsertDeleteFlags | nDelFlag | ||
) |
Definition at line 1951 of file document.cxx.
References GetAutoCalc(), maTabs, PutInOrder(), SetAutoCalc(), and ValidTab().
Referenced by ScFunctionAccess::callFunction(), DeleteAreaTab(), ScImportExport::Dif2Doc(), ScUndoMerge::DoChange(), ScUndoFillTable::DoChange(), ScUndoUpdateAreaLink::DoChange(), ScUndoConditionalFormat::DoChange(), ScUndoListNames::DoChange(), ScDBDocFunc::DoImport(), DoMerge(), ScUndoDragDrop::DoUndo(), FitBlock(), ScImportExport::HTML2Doc(), lcl_PutDataArray(), lcl_PutFormulaArray(), ScDocFunc::MoveBlock(), ScDPOutput::Output(), ScDPObject::Output(), ScDBDocFunc::Query(), ScUndoDragDrop::Redo(), ScUndoRefreshLink::Redo(), ScUndoImportData::Redo(), ScAreaLink::Refresh(), ScTableLink::Refresh(), ScChangeActionMove::Reject(), ScDBDocFunc::RemovePivotTable(), ScImportExport::RTF2Doc(), ScUndoAutoFill::Undo(), ScUndoTabOp::Undo(), ScUndoUseScenario::Undo(), ScUndoRefreshLink::Undo(), ScUndoEnterMatrix::Undo(), ScUndoRemoveMerge::Undo(), ScUndoSubTotals::Undo(), ScUndoQuery::Undo(), ScUndoImportData::Undo(), ScUndoRepeatDB::Undo(), ScUndoDataPilot::Undo(), and ScUndoConsolidate::Undo().
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 2512 of file document.cxx.
References ScAddress::Col(), ScTable::DeleteBroadcasters(), FetchTable(), nLength, ScAddress::Row(), and ScAddress::Tab().
Referenced by sc::PurgeListenerAction::execute().
void ScDocument::DeleteCol | ( | const ScRange & | rRange | ) |
Definition at line 1694 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), DeleteCol(), ScAddress::Row(), and ScAddress::Tab().
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 1599 of file document.cxx.
References a, DelBroadcastAreasInRange(), DeleteCol(), GetBASM(), GetMaxColCount(), ScMarkData::GetTableSelect(), i, lcl_GetFirstTabRange(), lcl_GetNextTabRange(), sc::RefUpdateContext::maRange, sc::RefUpdateContext::maRegroupCols, maTabs, MaxCol(), 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 889 of file documen4.cxx.
References maTabs, and ValidTab().
Referenced by ScDocFunc::ReplaceConditionalFormat().
|
private |
Definition at line 229 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 252 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 268 of file documen9.cxx.
References mpDrawLayer.
Referenced by ScViewFunc::CutToClip(), and ScDocFunc::DeleteContents().
void ScDocument::DeleteRow | ( | const ScRange & | rRange | ) |
Definition at line 1478 of file document.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), DeleteRow(), ScAddress::Row(), and ScAddress::Tab().
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 1374 of file document.cxx.
References a, DelBroadcastAreasInRange(), DeleteRow(), EndListeningGroups(), GetMaxRowCount(), 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(), sc::DeleteRowTransformation::Transform(), ScUndoSubTotals::Undo(), ScUndoRepeatDB::Undo(), and ScUndoConsolidate::Undo().
void ScDocument::DeleteSelection | ( | InsertDeleteFlags | nDelFlag, |
const ScMarkData & | rMark, | ||
bool | bBroadcast = true |
||
) |
Definition at line 6041 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 6099 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::DeleteSparkline | ( | ScAddress const & | rPosition | ) |
Definition at line 6653 of file document.cxx.
References ScAddress::Col(), maTabs, ScAddress::Row(), ScAddress::Tab(), and TableExists().
Referenced by sc::UndoDeleteSparkline::Redo(), sc::UndoDeleteSparklineGroup::Redo(), sc::UndoGroupSparklines::Redo(), sc::UndoUngroupSparklines::Redo(), sc::UndoGroupSparklines::Undo(), sc::UndoInsertSparkline::Undo(), and sc::UndoUngroupSparklines::Undo().
bool ScDocument::DeleteTab | ( | SCTAB | nTab | ) |
Definition at line 676 of file document.cxx.
References a, ScRange::aEnd, bInsertingFromOtherDoc, CORE, DelBroadcastAreasInRange(), DeleteAreaLinksOnTab(), GetDocumentShell(), comphelper::LibreOfficeKit::isActive(), maTabs, MaxCol(), MaxRow(), MAXTAB, SfxLokHelper::notifyDocumentSizeChangedAllViews(), pDBCollection, pDetOpList, pDPCollection, pRangeName, pUnoBroadcaster, pValidationList, SetAllFormulasDirty(), ScAddress::SetTab(), StartAllListeners(), UpdateBroadcastAreas(), UpdateChartRef(), UpdateRefAreaLinks(), URM_INSDEL, ValidTab(), xColNameRanges, and xRowNameRanges.
Referenced by ScDocFunc::DeleteTable(), ScViewFunc::MoveTable(), ScChangeActionIns::Reject(), ScUndoCopyTab::Undo(), ScUndoMakeScenario::Undo(), and ScUndoImportTab::Undo().
Definition at line 772 of file document.cxx.
References a, bInsertingFromOtherDoc, CORE, DelBroadcastAreasInRange(), DeleteAreaLinksOnTab(), GetDocumentShell(), comphelper::LibreOfficeKit::isActive(), maTabs, MaxCol(), MaxRow(), MAXTAB, SfxLokHelper::notifyDocumentSizeChangedAllViews(), pDBCollection, pDetOpList, pDPCollection, pRangeName, pUnoBroadcaster, pValidationList, SetAllFormulasDirty(), StartAllListeners(), UpdateBroadcastAreas(), UpdateChartRef(), UpdateRefAreaLinks(), URM_INSDEL, ValidTab(), xColNameRanges, and xRowNameRanges.
Referenced by ScViewFunc::DeleteTables().
void ScDocument::DiscardFormulaGroupContext | ( | ) |
Definition at line 3585 of file document.cxx.
References IsThreadedGroupCalcInProgress(), mbFormulaGroupCxtBlockDiscard, and mpFormulaGroupCxt.
Referenced by ScColumn::CellStorageModified().
void ScDocument::DisposeFieldEditEngine | ( | std::unique_ptr< ScFieldEditEngine > & | rpEditEngine | ) |
Definition at line 1183 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 768 of file documen3.cxx.
References maTabs, and ValidTab().
Referenced by ScOutlineDocFunc::AutoOutline().
void ScDocument::DoEmptyBlock | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
SCTAB | nTab | ||
) |
Definition at line 2066 of file documen3.cxx.
References SetString().
Referenced by ScDocFunc::MergeCells().
void ScDocument::DoMerge | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
SCTAB | nTab, | ||
bool | bDeleteCaptions = true |
||
) |
Definition at line 2079 of file documen3.cxx.
References DeleteAreaTab(), FetchTable(), 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 | ( | SCCOL | nStartCol, |
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
SCTAB | nTab | ||
) |
Definition at line 2042 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 786 of file documen3.cxx.
References maTabs, and ValidTab().
Referenced by ScDBFunc::DoSubTotals(), and ScDBDocFunc::DoSubTotals().
|
private |
Definition at line 247 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 1042 of file document10.cxx.
References ScTable::dumpSheetGeomData(), and FetchTable().
Referenced by ScTabView::getSheetGeometryData().
|
inline |
Definition at line 1603 of file document.hxx.
References mbChangeReadOnlyEnabled.
Referenced by oox::xls::WorkbookGlobals::finalize(), oox::xls::WorkbookGlobals::initialize(), and ScModelObj::setPropertyValue().
void ScDocument::EnableDelayDeletingBroadcasters | ( | bool | set | ) |
If set, cells will not delete their empty broadcasters, avoiding possible extensive mdds vector changes.
Disabling delay will collect and delete all empty broadcasters.
Definition at line 447 of file document10.cxx.
References bDelayedDeletingBroadcasters, maTabs, and set().
Referenced by sc::DelayDeletingBroadcasters::DelayDeletingBroadcasters(), InsertCol(), InsertRow(), and sc::DelayDeletingBroadcasters::~DelayDeletingBroadcasters().
void ScDocument::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.
Definition at line 399 of file document10.cxx.
References pDelayedStartListeningFormulaCells, and ScColumn::StartListeningFormulaCells().
Referenced by sc::DelayStartListeningFormulaCells::DelayStartListeningFormulaCells(), sc::DelayStartListeningFormulaCells::set(), and sc::DelayStartListeningFormulaCells::~DelayStartListeningFormulaCells().
|
inline |
Definition at line 1601 of file document.hxx.
References mbExecuteLinkEnabled.
Referenced by oox::xls::WorkbookGlobals::finalize(), oox::xls::WorkbookGlobals::initialize(), ScExternalRefManager::loadSrcDocument(), ScModelObj::setPropertyValue(), and TestImportXLS().
|
inline |
Definition at line 2203 of file document.hxx.
References mbIdleEnabled.
Referenced by CalcFormulaTree(), ScXMLExport::cancel(), ScProgress::CreateInterpretProgress(), ScProgress::DeleteInterpretProgress(), ScViewFunc::DoSheetConversion(), ScXMLExport::filter(), ScOutputData::FindChanged(), sc::IdleSwitch::IdleSwitch(), ScSpellDialogChildWindow::Init(), XclExpXmlStream::renameTab(), Reorder(), ScSpellDialogChildWindow::Reset(), ScInterpreter::ScDde(), ScDocShellModificator::ScDocShellModificator(), ScInterpreter::ScWebservice(), Sort(), sc::IdleSwitch::~IdleSwitch(), and ScDocShellModificator::~ScDocShellModificator().
void ScDocument::EnableUndo | ( | bool | bVal | ) |
Definition at line 6586 of file document.cxx.
References GetUndoManager(), IsUndoEnabled(), mbUndoEnabled, and mpDrawLayer.
Referenced by oox::xls::WorkbookGlobals::finalize(), oox::xls::WorkbookGlobals::initialize(), ScExternalRefManager::loadSrcDocument(), ScViewFunc::PasteRTF(), ScModelObj::setPropertyValue(), sc::UndoSwitch::UndoSwitch(), and sc::UndoSwitch::~UndoSwitch().
void ScDocument::EnableUserInteraction | ( | bool | bVal | ) |
Definition at line 6602 of file document.cxx.
References mbUserInteractionEnabled.
Referenced by ScExternalRefManager::loadSrcDocument().
void ScDocument::EndChangeTracking | ( | ) |
Definition at line 287 of file documen2.cxx.
References mpShell, pChangeTrack, and SfxObjectShell::SetModified().
Referenced by ScDocShell::Execute(), and SetChangeTrack().
void ScDocument::EndListeningArea | ( | const ScRange & | rRange, |
bool | bGroupListening, | ||
SvtListener * | pListener | ||
) |
Definition at line 61 of file documen7.cxx.
References LimitRangeToAvailableSheets(), pBASM, and ScAddress::UNINITIALIZED.
Referenced by ScServerObject::Clear(), ScFormulaCellGroup::endAllGroupListening(), ScFormulaCell::EndListeningTo(), ScFormulaCell::HandleStuffAfterParallelCalculation(), ScFormulaCell::InterpretTail(), RemoveLookupCache(), RemoveSortedRangeCache(), ScTable::SortReorderByColumn(), and ScTable::SortReorderByRowRefUpdate().
void ScDocument::EndListeningCell | ( | const ScAddress & | rAddress, |
SvtListener * | pListener | ||
) |
Definition at line 230 of file documen7.cxx.
References maTabs, ScAddress::Tab(), and ValidTab().
Referenced by ScFormulaCell::EndListeningTo().
void ScDocument::EndListeningCell | ( | sc::EndListeningContext & | rCxt, |
const ScAddress & | rPos, | ||
SvtListener & | rListener | ||
) |
Definition at line 249 of file documen7.cxx.