LibreOffice Module sc (master)  1
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at .
18  */
23 #include <vcl/idle.hxx>
24 #include <vcl/errcode.hxx>
25 #include <com/sun/star/uno/Reference.hxx>
26 #include <vcl/vclptr.hxx>
27 #include "patattr.hxx"
28 #include "scdllapi.h"
29 #include "interpretercontext.hxx"
30 #include "rangelst.hxx"
31 #include "rangenam.hxx"
32 #include "tabopparams.hxx"
33 #include "types.hxx"
34 #include <formula/grammar.hxx>
35 #include <formula/types.hxx>
36 #include "typedstrdata.hxx"
37 #include "calcmacros.hxx"
38 #include "calcconfig.hxx"
39 #include "sheetlimits.hxx"
40 #include <o3tl/deleter.hxx>
41 #include <o3tl/sorted_vector.hxx>
42 #include <svl/hint.hxx>
43 #include <svl/typedwhich.hxx>
44 #include <svl/zforlist.hxx>
45 #include <tools/gen.hxx>
46 #include <tools/solar.h>
48 #include <cassert>
49 #include <memory>
50 #include <map>
51 #include <set>
52 #include <unordered_map>
53 #include <vector>
55 #include "markdata.hxx"
57 namespace com::sun::star::chart2 { class XChartDocument; }
59 class Timer;
61 enum class SvtScriptType;
62 enum class ScMF;
63 enum class FormulaError : sal_uInt16;
64 enum class CharCompressType;
65 enum class EEHorizontalTextDirection;
66 namespace editeng { class SvxBorderLine; }
67 namespace formula { struct VectorRefArray; }
68 namespace svl {
70 class SharedString;
71 class SharedStringPool;
73 }
75 namespace sc {
77 struct FormulaGroupContext;
78 class StartListeningContext;
79 class EndListeningContext;
80 class CopyFromClipContext;
81 class ColumnSpanSet;
82 class RangeColumnSpanSet;
83 struct ColumnBlockPosition;
84 struct RefUpdateContext;
85 class EditTextIterator;
86 struct NoteEntry;
87 class DocumentStreamAccess;
88 class DocumentLinkManager;
89 class CellValues;
90 class TableValues;
91 class RowHeightContext;
92 struct SetFormulaDirtyContext;
93 class RefMovedHint;
94 struct ReorderParam;
95 class FormulaGroupAreaListener;
96 class ColumnSet;
97 class UpdatedRangeNames;
98 class TableColumnBlockPositionSet;
99 class ColumnIterator;
100 class ExternalDataMapper;
102 }
104 class Fraction;
106 class OutputDevice;
107 class SdrObject;
108 class SfxBroadcaster;
109 class SfxListener;
110 class SfxItemSet;
111 class SfxObjectShell;
112 class SfxBindings;
113 class SfxPoolItem;
114 class SfxItemPool;
115 class SfxPrinter;
116 class SfxStyleSheetBase;
117 class SvMemoryStream;
118 class SvxBoxInfoItem;
119 class SvxBoxItem;
121 namespace sfx2 {
122  class LinkManager;
123  }
124 class SvxSearchItem;
125 namespace vcl { class Window; }
126 class XColorList;
128 class ScAutoFormatData;
132 class ScClipOptions;
133 class ScColumn;
134 class ScConditionalFormat;
136 class ScDBCollection;
137 class ScDBData;
138 class ScDetOpData;
139 class ScDetOpList;
140 class ScDocOptions;
141 class ScDocProtection;
142 class ScDocumentPool;
143 class ScDrawLayer;
144 class ScExtDocOptions;
146 class ScFormulaCell;
147 class ScMacroManager;
148 class ScOutlineTable;
149 class ScPrintRangeSaver;
150 class ScStyleSheet;
151 class ScStyleSheetPool;
152 class ScTable;
153 class ScTableProtection;
154 class ScTokenArray;
155 class ScValidationData;
157 class ScViewOptions;
158 class ScChangeTrack;
160 class ScFieldEditEngine;
161 class ScNoteEditEngine;
162 class ScDPObject;
163 class ScDPCollection;
164 class ScMatrix;
165 class ScScriptTypeData;
166 class ScPoolHelper;
167 struct ScSortParam;
169 class ScUnoListenerCalls;
170 class ScUnoRefList;
171 class ScRecursionHelper;
172 struct RowInfo;
173 struct ScTableInfo;
174 struct ScTabOpParam;
175 class VirtualDevice;
176 class ScAutoNameCache;
178 class ScLookupCache;
179 struct ScLookupCacheMap;
180 class SfxUndoManager;
181 class ScFormulaParserPool;
182 struct ScClipParam;
183 class ScRowBreakIterator;
184 struct ScSetStringParam;
185 struct ScColWidthParam;
186 class ScSheetEvents;
187 class ScProgress;
188 class SvtListener;
189 class ScEditDataArray;
190 class EditTextObject;
191 struct ScRefCellValue;
192 class ScPostIt;
193 struct ScSubTotalParam;
194 struct ScQueryParam;
195 class ScHint;
196 class SvtBroadcaster;
197 enum class ScDBDataPortion;
198 enum class ScSheetEventId;
199 class BitmapEx;
200 class ScColumnsRange;
203 struct ScSheetLimits;
205 namespace sc {
207 typedef std::map<OUString, BitmapEx> IconSetBitmapMap;
209 }
211 namespace com::sun::star {
212  namespace lang {
213  struct EventObject;
214  }
215  namespace i18n {
216  class XBreakIterator;
217  }
218  namespace util {
219  class XModifyListener;
220  }
221  namespace embed {
222  class XEmbeddedObject;
223  }
224  namespace script::vba {
225  class XVBAEventProcessor;
226  }
227  namespace sheet {
228  struct TablePageBreakData;
229  }
230 }
232 namespace weld {
234 class Window;
236 }
238 #define SC_DOC_NEW 0xFFFF
245 {
250 };
253 {
254  ALLSHOWN, // All comments captions are shown
255  ALLHIDDEN, // All comments captions are hidden
256  MIXED // There are comments in shown and hidden.
257 };
260 {
261  GLOBAL, // A range name can be defined
262  SHEET // with two scope on Manage Names dialog.
263 };
266 enum class SheetGeomType
267 {
268  SIZES, // Column widths or row heights.
269  HIDDEN, // Hidden columns/rows.
270  FILTERED, // Filtered columns/rows.
271  GROUPS // Grouping of columns/rows.
272 };
274 struct ScDocStat
275 {
276  OUString aDocName;
280  sal_uInt16 nPageCount;
282  : nTableCount(0)
283  , nCellCount(0)
284  , nFormulaCount(0)
285  , nPageCount(0)
286  {
287  }
288 };
290 // DDE link modes
296 // During threaded calculation fields being mutated are kept in this struct
298 {
299  std::unique_ptr<ScRecursionHelper> xRecursionHelper; // information for recursive and iterative cell formulas
300  ScInterpreterContext* pContext; // references the context passed around for easier access
305  // To be called in the thread at start
306  static void SetupFromNonThreadedData(const ScDocumentThreadSpecific& rNonThreadedData);
308  // To be called in the main thread after the thread has finished
309  static void MergeBackIntoNonThreadedData(ScDocumentThreadSpecific& rNonThreadedData);
310 };
314 {
315  // Bit mask bits
316  CORE = 0x0001,
317 };
319 typedef std::unique_ptr<ScTable, o3tl::default_delete<ScTable>> ScTableUniquePtr;
322 {
323 friend class ScValueIterator;
327 friend class ScCellIterator;
328 friend class ScQueryCellIterator;
332 friend class ScDocAttrIterator;
334 friend class ScAttrRectIterator;
335 friend class ScDocShell;
338 friend class ScFormulaCell;
339 friend class ScTable;
340 friend class ScColumn;
341 friend struct ScRefCellValue;
342 friend class ScDocumentImport;
344 friend class sc::ColumnSpanSet;
346 friend class sc::EditTextIterator;
349 friend struct ScMutationGuard;
350 friend struct ScMutationDisable;
352  typedef std::vector<ScTableUniquePtr> TableContainer;
354 public:
355  enum class HardRecalcState
356  {
357  OFF,
360  };
362 private:
365  std::shared_ptr<svl::SharedStringPool> mpCellStringPool;
366  std::unique_ptr<sc::DocumentLinkManager> mpDocLinkMgr;
368  std::shared_ptr<sc::FormulaGroupContext> mpFormulaGroupCxt;
374  std::unique_ptr<ScFieldEditEngine> mpEditEngine; // uses pEditPool from xPoolHelper
375  std::unique_ptr<ScNoteEditEngine> mpNoteEngine; // uses pEditPool from xPoolHelper
379  std::unique_ptr<ScDrawLayer> mpDrawLayer; // SdrModel
381  std::unique_ptr<ScValidationDataList> pValidationList; // validity
382  SvNumberFormatterIndexTable* pFormatExchangeList; // for application of number formats
383  TableContainer maTabs;
385  std::vector<OUString> maTabNames; // for undo document, we need the information tab name <-> index
386  mutable std::unique_ptr<ScRangeName> pRangeName;
387  std::unique_ptr<ScDBCollection> pDBCollection;
388  std::unique_ptr<ScDPCollection> pDPCollection;
389  std::unique_ptr< ScTemporaryChartLock > apTemporaryChartLock;
390  std::unique_ptr<ScPatternAttr> pSelectionAttr; // Attributes of a block
391  ScFormulaCell* pFormulaTree; // formula tree (start)
392  ScFormulaCell* pEOFormulaTree; // formula tree (end), last cell
393  ScFormulaCell* pFormulaTrack; // BroadcastTrack (start)
394  ScFormulaCell* pEOFormulaTrack; // BroadcastTrack (end), last cell
395  std::unique_ptr<ScBroadcastAreaSlotMachine> pBASM; // BroadcastAreas
396  std::unique_ptr<ScChartListenerCollection> pChartListenerCollection;
397  std::unique_ptr<SvMemoryStream> pClipData;
398  std::unique_ptr<ScDetOpList> pDetOpList;
399  std::unique_ptr<ScChangeTrack> pChangeTrack;
400  std::unique_ptr<SfxBroadcaster> pUnoBroadcaster;
401  std::unique_ptr<ScUnoListenerCalls> pUnoListenerCalls;
402  std::unique_ptr<ScUnoRefList> pUnoRefUndoList;
403  std::unique_ptr<ScChangeViewSettings> pChangeViewSettings;
404  std::unique_ptr<ScScriptTypeData> pScriptTypeData;
405  std::unique_ptr<ScRefreshTimerControl> pRefreshTimerControl;
406  std::shared_ptr<SvxForbiddenCharactersTable> xForbiddenCharacters;
407  std::unique_ptr<ScDBData> mpAnonymousDBData;
408  std::unique_ptr<sc::ExternalDataMapper> mpDataMapper;
410  std::unique_ptr<ScFieldEditEngine> pCacheFieldEditEngine;
412  std::unique_ptr<ScDocProtection> pDocProtection;
413  std::unique_ptr<ScClipParam> mpClipParam;
415  std::unique_ptr<ScExternalRefManager> pExternalRefMgr;
416  std::unique_ptr<ScMacroManager> mpMacroMgr;
418  // mutable for lazy construction
419  mutable std::unique_ptr< ScFormulaParserPool >
422  OUString aDocName; // optional: name of document
423  OUString aDocCodeName; // optional: name of document (twice?)
424  OUString maFileURL; // file URL for copy & paste
428  std::unique_ptr<ScViewOptions> pViewOptions; // view options
429  std::unique_ptr<ScDocOptions> pDocOptions; // document options
430  std::unique_ptr<ScExtDocOptions> pExtDocOptions; // for import etc.
431  std::unique_ptr<ScClipOptions> mpClipOptions; // clipboard options
432  std::unique_ptr<ScConsolidateParam> pConsolidateDlgData;
434  std::unique_ptr<ScAutoNameCache> pAutoNameCache; // for automatic name lookup during CompileXML
436  std::unique_ptr<SfxItemSet> pPreviewFont; // convert to std::unique_ptr or whatever
439  sal_Int64 nUnoObjectId; // counted up for UNO objects
441  ErrCode nRangeOverflowType; // used in (xml) loading for overflow warnings
448  css::uno::Reference< css::script::vba::XVBAEventProcessor >
450 public:
452  std::vector<ScInterpreterTableOpParams*> m_TableOpList;
455 private:
457  LanguageType eLanguage; // default language
458  LanguageType eCjkLanguage; // default language for asian text
459  LanguageType eCtlLanguage; // default language for complex text
460  rtl_TextEncoding eSrcSet; // during reading: source character set
466  sal_uLong nFormulaCodeInTree; // formula RPN in the formula tree
467  sal_uLong nXMLImportedFormulaCount; // progress count during XML import
468  sal_uInt16 nInterpretLevel; // >0 if in interpreter
469  sal_uInt16 nMacroInterpretLevel; // >0 if macro in interpreter
470  sal_uInt16 nInterpreterTableOpLevel; // >0 if in interpreter TableOp
474  // There can be only one ScDocument being calculated in a thread at a time, so we can use a
475  // plain thread_local static member.
480  osl::Mutex mScLookupMutex; // protection for thread-unsafe parts of handling ScLookup
482  static const sal_uInt16 nSrcVer; // file version (load/save)
483  sal_uInt16 nFormulaTrackCount;
484  HardRecalcState eHardRecalcState; // off, temporary, eternal
485  SCTAB nVisibleTab; // for OLE etc., don't use inside ScDocument
486  SCCOL nPosLeft; // for OLE etc., don't use inside ScDocument
487  SCROW nPosTop; // for OLE etc., don't use inside ScDocument
491  bool bAutoCalc; // calculate automatically
492  bool bAutoCalcShellDisabled; // in/from/for ScDocShell disabled
493  // are there ForcedFormulas which have to be calculated
494  // in interaction with ScDocShell SetDocumentModified,
495  // AutoCalcShellDisabled and TrackFormulas
498  bool bIsClip;
499  bool bIsUndo;
501  bool bIsVisible; // set from view ctor
503  bool bIsEmbedded; // display/adjust Embedded area?
505  // no broadcast, construct no listener during insert from a different
506  // Doc (per filter or the like ), not until CompileAll / CalcAfterLoad
509  bool bImportingXML; // special handling of formula text
510  bool bCalcingAfterLoad; // in CalcAfterLoad TRUE
511  // don't construct/destruct listeners temporarily
514  bool bInLinkUpdate; // TableLink or AreaLink
516  // are/were there RC_FORCED formula cells in the document (if set once to TRUE then set forever)
518  // is the Doc being destroyed? (no Notify-Tracking etc. needed anymore)
520  // expand reference if insert column/row takes place at the border
521  // of a reference
522  // is fetched in each UpdateReference from InputOptions,
523  // assigned, and restored at the end of UpdateReference
525  // for detective update, is set for each change of a formula
527  // If the pointer is set, formula cells will not be automatically grouped into shared formula groups,
528  // instead the range will be extended to contain all such cells.
529  std::unique_ptr< ScRange > pDelayedFormulaGrouping;
530  // If non-empty, ScColumn::StartListeningFormulaCells() calls may be delayed using this,
531  // avoiding repeated calling for the same cells in the given range. The function will be called once
532  // later for all the cells in the range.
533  std::unordered_map< ScColumn*, std::pair<SCROW, SCROW>> pDelayedStartListeningFormulaCells;
535  bool bLinkFormulaNeedingCheck; // valid only after loading, for ocDde and ocWebservice
542  sal_uInt8 nInDdeLinkUpdate; // originating DDE links (stacked bool)
546  sal_uInt32 nAdjustHeightLock;
553  bool mbChangeReadOnlyEnabled:1; // allow changes in read-only document (for API import filters)
555  bool mbUserInteractionEnabled:1; // whether or not to launch any kind of interactive dialogs.
559  std::set<ScFormulaCell*> maSubTotalCells;
562  bool mbEmbedFonts : 1;
568  std::unique_ptr<sc::IconSetBitmapMap> m_pIconSetBitmapMap;
572  // This indicates if a ScDocShell::DoRecalc() or ScDocShell::DoHardRecalc() is in progress.
577 public:
578  bool IsCellInChangeTrack(const ScAddress &cell,Color *pColCellBorder);
579  void GetCellChangeTrackNote(const ScAddress &cell, OUString &strTrackText, bool &pbLeftEdge);
581  bool IsEmbedFonts() const { return mbEmbedFonts; }
587  void SetEmbedFonts(bool bUse) { mbEmbedFonts = bUse; }
588  void SetEmbedUsedFontsOnly(bool bUse) { mbEmbedUsedFontsOnly = bUse; }
593  SC_DLLPUBLIC sal_uLong GetCellCount() const; // all cells
594  SC_DLLPUBLIC sal_uLong GetFormulaGroupCount() const; // all cells
595  sal_uLong GetCodeCount() const; // RPN-Code in formulas
596  DECL_LINK( GetUserDefinedColor, sal_uInt16, Color* );
597  // number formatter
598 public:
600  SfxObjectShell* pDocShell = nullptr );
603  void SetName( const OUString& r ) { aDocName = r; }
604  const OUString& GetCodeName() const { return aDocCodeName; }
605  void SetCodeName( const OUString& r ) { aDocCodeName = r; }
606  const OUString& GetFileURL() const { return maFileURL; }
608  void GetDocStat( ScDocStat& rDocStat );
610  SC_DLLPUBLIC void InitDrawLayer( SfxObjectShell* pDocShell = nullptr );
613  {
615  return maInterpreterContext;
616  }
617  // Uses thread_local.
619  {
620  return IsThreadedGroupCalcInProgress() ? *maThreadSpecific.pContext : GetNonThreadedContext();
621  }
622  static void SetupFromNonThreadedContext( ScInterpreterContext& threadedContext, int threadNumber );
623  void MergeBackIntoNonThreadedContext( ScInterpreterContext& threadedContext, int threadNumber );
633  SC_DLLPUBLIC const ScDocOptions& GetDocOptions() const;
634  SC_DLLPUBLIC void SetDocOptions( const ScDocOptions& rOpt );
636  SC_DLLPUBLIC void SetViewOptions( const ScViewOptions& rOpt );
637  void SetPrintOptions();
639  ScExtDocOptions* GetExtDocOptions() { return pExtDocOptions.get(); }
640  SC_DLLPUBLIC void SetExtDocOptions( std::unique_ptr<ScExtDocOptions> pNewOptions );
642  ScClipOptions* GetClipOptions() { return mpClipOptions.get(); }
643  void SetClipOptions(std::unique_ptr<ScClipOptions> pClipOptions);
645  SC_DLLPUBLIC void GetLanguage( LanguageType& rLatin, LanguageType& rCjk, LanguageType& rCtl ) const;
646  void SetLanguage( LanguageType eLatin, LanguageType eCjk, LanguageType eCtl );
648  void SetConsolidateDlgData( std::unique_ptr<ScConsolidateParam> pData );
649  const ScConsolidateParam* GetConsolidateDlgData() const { return pConsolidateDlgData.get(); }
651  void Clear( bool bFromDestructor = false );
653  std::unique_ptr<ScFieldEditEngine> CreateFieldEditEngine();
654  void DisposeFieldEditEngine(std::unique_ptr<ScFieldEditEngine>& rpEditEngine);
661  SC_DLLPUBLIC void SetAllRangeNames(const std::map<OUString, std::unique_ptr<ScRangeName>>& rRangeMap);
662  SC_DLLPUBLIC void GetRangeNameMap(std::map<OUString, ScRangeName*>& rRangeName);
665  void SetRangeName(SCTAB nTab, std::unique_ptr<ScRangeName> pNew);
666  void SetRangeName( std::unique_ptr<ScRangeName> pNewRangeName );
667  bool IsAddressInRangeName( RangeNameScope eScope, const ScAddress& rAddress);
676  ScRangeData* FindRangeNameBySheetAndIndex( SCTAB nTab, sal_uInt16 nIndex ) const;
722  SCTAB nTokenTab, const sal_uInt16 nTokenIndex,
723  SCTAB nGlobalRefTab, SCTAB nLocalRefTab, SCTAB nOldTokenTab, SCTAB nOldTokenTabReplacement,
724  bool bSameDoc, int nRecursion ) const;
766  bool CopyAdjustRangeName( SCTAB& rSheet, sal_uInt16& rIndex, ScRangeData*& rpRangeData, ScDocument& rNewDoc,
767  const ScAddress& rNewPos, const ScAddress& rOldPos, const bool bGlobalNamesToLocal,
768  const bool bUsedByFormula ) const;
773  SC_DLLPUBLIC void PreprocessAllRangeNamesUpdate( const std::map<OUString, std::unique_ptr<ScRangeName>>& rRangeMap );
791  bool InsertNewRangeName( const OUString& rName, const ScAddress& rPos, const OUString& rExpr );
804  bool InsertNewRangeName( SCTAB nTab, const OUString& rName, const ScAddress& rPos, const OUString& rExpr );
806  SCTAB GetMaxTableNumber() const { return static_cast<SCTAB>(maTabs.size()) - 1; }
808  ScRangePairList* GetColNameRanges() { return xColNameRanges.get(); }
809  ScRangePairList* GetRowNameRanges() { return xRowNameRanges.get(); }
816  SC_DLLPUBLIC ScDBCollection* GetDBCollection() const { return pDBCollection.get();}
817  void SetDBCollection( std::unique_ptr<ScDBCollection> pNewDBCollection,
818  bool bRemoveAutoFilter = false );
819  const ScDBData* GetDBAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, ScDBDataPortion ePortion) const;
820  ScDBData* GetDBAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, ScDBDataPortion ePortion);
821  SC_DLLPUBLIC const ScDBData* GetDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const;
822  SC_DLLPUBLIC ScDBData* GetDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2);
826  SC_DLLPUBLIC const ScRangeData* GetRangeAtBlock( const ScRange& rBlock, OUString* pName ) const;
828  SC_DLLPUBLIC bool HasPivotTable() const;
831  SC_DLLPUBLIC ScDPObject* GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const;
832  ScDPObject* GetDPAtBlock( const ScRange& rBlock ) const;
834  void StopTemporaryChartLock();
836  void EnsureGraphicNames();
838  SdrObject* GetObjectAtPoint( SCTAB nTab, const Point& rPos );
839  bool HasChartAtPoint( SCTAB nTab, const Point& rPos, OUString& rName );
841  css::uno::Reference< css::chart2::XChartDocument > GetChartByName( const OUString& rChartName );
843  SC_DLLPUBLIC void GetChartRanges( const OUString& rChartName, std::vector< ScRangeList >& rRanges, const ScDocument& rSheetNameDoc );
844  void SetChartRanges( const OUString& rChartName, const std::vector< ScRangeList >& rRanges );
846  void UpdateChartArea( const OUString& rChartName, const ScRange& rNewArea,
847  bool bColHeaders, bool bRowHeaders, bool bAdd );
848  void UpdateChartArea( const OUString& rChartName,
849  const ScRangeListRef& rNewList,
850  bool bColHeaders, bool bRowHeaders, bool bAdd );
851  void GetOldChartParameters( const OUString& rName,
852  ScRangeList& rRanges, bool& rColHeaders, bool& rRowHeaders );
853  css::uno::Reference<
854  css::embed::XEmbeddedObject >
855  FindOleObjectByName( const OUString& rName );
857  SC_DLLPUBLIC void MakeTable( SCTAB nTab,bool _bNeedsNameCheck = true );
859  SCTAB GetVisibleTab() const { return nVisibleTab; }
860  SC_DLLPUBLIC void SetVisibleTab(SCTAB nTab) { nVisibleTab = nTab; }
861  SCCOL GetPosLeft() const { return nPosLeft; }
862  SC_DLLPUBLIC void SetPosLeft(SCCOL nCol) { nPosLeft = nCol; }
863  SCROW GetPosTop() const { return nPosTop; }
864  SC_DLLPUBLIC void SetPosTop(SCROW nRow) { nPosTop = nRow; }
866  SC_DLLPUBLIC bool HasTable( SCTAB nTab ) const;
867  SC_DLLPUBLIC bool GetHashCode( SCTAB nTab, sal_Int64& rHashCode) const;
868  SC_DLLPUBLIC bool GetName( SCTAB nTab, OUString& rName ) const;
869  SC_DLLPUBLIC bool GetCodeName( SCTAB nTab, OUString& rName ) const;
870  SC_DLLPUBLIC bool SetCodeName( SCTAB nTab, const OUString& rName );
871  SC_DLLPUBLIC bool GetTable( const OUString& rName, SCTAB& rTab ) const;
872  SC_DLLPUBLIC SCCOL MaxCol() const { return mxSheetLimits->mnMaxCol; }
873  SC_DLLPUBLIC SCROW MaxRow() const { return mxSheetLimits->mnMaxRow; }
875  [[nodiscard]] bool ValidCol(SCCOL nCol) const { return ::ValidCol(nCol, mxSheetLimits->mnMaxCol); }
876  [[nodiscard]] bool ValidRow(SCROW nRow) const { return ::ValidRow(nRow, mxSheetLimits->mnMaxRow); }
877  [[nodiscard]] bool ValidColRow(SCCOL nCol, SCROW nRow) const { return ::ValidColRow(nCol, nRow, MaxCol(), MaxRow()); }
878  [[nodiscard]] bool ValidColRowTab(SCCOL nCol, SCROW nRow, SCTAB nTab) const { return ::ValidColRowTab(nCol, nRow, nTab, MaxCol(), MaxRow()); }
879  [[nodiscard]] bool ValidRange(const ScRange& rRange) const { return ::ValidRange(rRange, MaxCol(), MaxRow()); }
880  [[nodiscard]] bool ValidAddress(const ScAddress& rAddress) const { return ::ValidAddress(rAddress, MaxCol(), MaxRow()); }
881  [[nodiscard]] SCCOL SanitizeCol( SCCOL nCol ) const { return ::SanitizeCol(nCol, MaxCol()); }
882  [[nodiscard]] SCROW SanitizeRow( SCROW nRow ) const { return ::SanitizeRow(nRow, MaxRow()); }
884  SC_DLLPUBLIC std::vector<OUString> GetAllTableNames() const;
886  OUString GetCopyTabName(SCTAB nTab) const;
888  SC_DLLPUBLIC void SetAnonymousDBData(SCTAB nTab, std::unique_ptr<ScDBData> pDBData);
895  SC_DLLPUBLIC void SetAnonymousDBData(std::unique_ptr<ScDBData> pDBData);
902  SC_DLLPUBLIC void SetDocProtection(const ScDocProtection* pProtect);
903  SC_DLLPUBLIC bool IsDocProtected() const;
904  bool IsDocEditable() const;
905  SC_DLLPUBLIC bool IsTabProtected( SCTAB nTab ) const;
907  SC_DLLPUBLIC void SetTabProtection(SCTAB nTab, const ScTableProtection* pProtect);
908  void CopyTabProtection(SCTAB nTabSrc, SCTAB nTabDest);
910  void LockTable(SCTAB nTab);
911  void UnlockTable(SCTAB nTab);
913  bool IsBlockEditable( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
914  SCCOL nEndCol, SCROW nEndRow,
915  bool* pOnlyNotBecauseOfMatrix = nullptr,
916  bool bNoMatrixAtAll = false ) const;
917  bool IsSelectionEditable( const ScMarkData& rMark,
918  bool* pOnlyNotBecauseOfMatrix = nullptr ) const;
919  bool HasSelectedBlockMatrixFragment( SCCOL nStartCol, SCROW nStartRow,
920  SCCOL nEndCol, SCROW nEndRow,
921  const ScMarkData& rMark ) const;
923  bool IsEditActionAllowed( sc::ColRowEditAction eAction, SCTAB nTab, SCCOLROW nStart, SCCOLROW nEnd ) const;
924  bool IsEditActionAllowed( sc::ColRowEditAction eAction, const ScMarkData& rMark, SCCOLROW nStart, SCCOLROW nEnd ) const;
926  SC_DLLPUBLIC bool GetMatrixFormulaRange( const ScAddress& rCellPos, ScRange& rMatrix );
928  bool IsEmbedded() const { return bIsEmbedded;}
929  void GetEmbedded( ScRange& rRange ) const;
930  void SetEmbedded( const ScRange& rRange );
931  void ResetEmbedded();
932  tools::Rectangle GetEmbeddedRect() const; // 1/100 mm
933  void SetEmbedded( SCTAB nTab, const tools::Rectangle& rRect ); // from VisArea (1/100 mm)
935  static SC_DLLPUBLIC bool ValidTabName( const OUString& rName );
937  SC_DLLPUBLIC bool ValidNewTabName( const OUString& rName ) const;
938  SC_DLLPUBLIC void CreateValidTabName(OUString& rName) const;
939  SC_DLLPUBLIC void CreateValidTabNames(std::vector<OUString>& aNames, SCTAB nCount) const;
941  void AppendTabOnLoad(const OUString& rName);
942  void SetTabNameOnLoad(SCTAB nTab, const OUString& rName);
943  void InvalidateStreamOnSave();
945  SC_DLLPUBLIC bool InsertTab( SCTAB nPos, const OUString& rName,
946  bool bExternalDocument = false, bool bUndoDeleteTab = false );
948  SC_DLLPUBLIC bool InsertTabs( SCTAB nPos, const std::vector<OUString>& rNames,
949  bool bNamesValid = false );
950  SC_DLLPUBLIC bool DeleteTabs( SCTAB nTab, SCTAB nSheets );
951  SC_DLLPUBLIC bool DeleteTab( SCTAB nTab );
952  SC_DLLPUBLIC bool RenameTab( SCTAB nTab, const OUString& rName,
953  bool bExternalDocument = false );
954  bool MoveTab( SCTAB nOldPos, SCTAB nNewPos, ScProgress* pProgress = nullptr );
955  bool CopyTab( SCTAB nOldPos, SCTAB nNewPos,
956  const ScMarkData* pOnlyMarked = nullptr );
957  SC_DLLPUBLIC sal_uLong TransferTab(ScDocument& rSrcDoc, SCTAB nSrcPos, SCTAB nDestPos,
958  bool bInsertNew = true,
959  bool bResultsOnly = false );
960  SC_DLLPUBLIC void TransferDrawPage(const ScDocument& rSrcDoc, SCTAB nSrcPos, SCTAB nDestPos);
961  SC_DLLPUBLIC void SetVisible( SCTAB nTab, bool bVisible );
962  SC_DLLPUBLIC bool IsVisible( SCTAB nTab ) const;
963  bool IsStreamValid( SCTAB nTab ) const;
964  void SetStreamValid( SCTAB nTab, bool bSet, bool bIgnoreLock = false );
965  void LockStreamValid( bool bLock );
966  bool IsStreamValidLocked() const { return mbStreamValidLocked; }
967  bool IsPendingRowHeights( SCTAB nTab ) const;
968  void SetPendingRowHeights( SCTAB nTab, bool bSet );
969  SC_DLLPUBLIC void SetLayoutRTL( SCTAB nTab, bool bRTL );
970  SC_DLLPUBLIC bool IsLayoutRTL( SCTAB nTab ) const;
971  SC_DLLPUBLIC bool IsNegativePage( SCTAB nTab ) const;
972  SC_DLLPUBLIC void SetScenario( SCTAB nTab, bool bFlag );
973  SC_DLLPUBLIC bool IsScenario( SCTAB nTab ) const;
974  SC_DLLPUBLIC void GetScenarioData(SCTAB nTab, OUString& rComment,
975  Color& rColor, ScScenarioFlags &rFlags) const;
976  SC_DLLPUBLIC void SetScenarioData(SCTAB nTab, const OUString& rComment,
977  const Color& rColor, ScScenarioFlags nFlags);
978  SC_DLLPUBLIC Color GetTabBgColor( SCTAB nTab ) const;
979  SC_DLLPUBLIC void SetTabBgColor( SCTAB nTab, const Color& rColor );
980  SC_DLLPUBLIC bool IsDefaultTabBgColor( SCTAB nTab ) const;
981  void GetScenarioFlags(SCTAB nTab, ScScenarioFlags &rFlags) const;
982  SC_DLLPUBLIC bool IsActiveScenario( SCTAB nTab ) const;
983  SC_DLLPUBLIC void SetActiveScenario( SCTAB nTab, bool bActive ); // only for Undo etc.
988  bool IsLinked( SCTAB nTab ) const;
989  SC_DLLPUBLIC OUString GetLinkDoc( SCTAB nTab ) const;
990  OUString GetLinkFlt( SCTAB nTab ) const;
991  OUString GetLinkOpt( SCTAB nTab ) const;
992  SC_DLLPUBLIC OUString GetLinkTab( SCTAB nTab ) const;
993  sal_uLong GetLinkRefreshDelay( SCTAB nTab ) const;
994  void SetLink( SCTAB nTab, ScLinkMode nMode, const OUString& rDoc,
995  const OUString& rFilter, const OUString& rOptions,
996  const OUString& rTabName, sal_uLong nRefreshDelay );
997  bool HasLink( const OUString& rDoc,
998  const OUString& rFilter, const OUString& rOptions ) const;
999  SC_DLLPUBLIC bool LinkExternalTab( SCTAB& nTab, const OUString& aDocTab,
1000  const OUString& aFileName,
1001  const OUString& aTabName );
1003  bool HasExternalRefManager() const { return bool(pExternalRefMgr); }
1005  bool IsInExternalReferenceMarking() const;
1007  bool MarkUsedExternalReferences( const ScTokenArray& rArr, const ScAddress& rPos );
1013  bool HasAreaLinks() const;
1015  void UpdateAreaLinks();
1017  // originating DDE links
1018  void IncInDdeLinkUpdate() { if ( nInDdeLinkUpdate < 255 ) ++nInDdeLinkUpdate; }
1019  void DecInDdeLinkUpdate() { if ( nInDdeLinkUpdate ) --nInDdeLinkUpdate; }
1020  bool IsInDdeLinkUpdate() const { return nInDdeLinkUpdate != 0; }
1022  SC_DLLPUBLIC void CopyDdeLinks( ScDocument& rDestDoc ) const;
1027  SC_DLLPUBLIC bool FindDdeLink( const OUString& rAppl, const OUString& rTopic,
1028  const OUString& rItem, sal_uInt8 nMode, size_t& rnDdePos );
1036  bool GetDdeLinkData( size_t nDdePos, OUString& rAppl, OUString& rTopic, OUString& rItem ) const;
1041  bool GetDdeLinkMode( size_t nDdePos, sal_uInt8& rnMode ) const;
1045  SC_DLLPUBLIC const ScMatrix* GetDdeLinkResultMatrix( size_t nDdePos ) const;
1050  SC_DLLPUBLIC bool CreateDdeLink( const OUString& rAppl, const OUString& rTopic, const OUString& rItem, sal_uInt8 nMode, const ScMatrixRef& pResults );
1055  bool SetDdeLinkResultMatrix( size_t nDdePos, const ScMatrixRef& pResults );
1059  SC_DLLPUBLIC ScDrawLayer* GetDrawLayer() { return mpDrawLayer.get(); }
1060  SC_DLLPUBLIC const ScDrawLayer* GetDrawLayer() const { return mpDrawLayer.get(); }
1061  SfxBroadcaster* GetDrawBroadcaster(); // to avoid header
1062  void BeginDrawUndo();
1064  void BeginUnoRefUndo();
1065  bool HasUnoRefUndo() const { return ( pUnoRefUndoList != nullptr ); }
1066  [[nodiscard]]
1067  std::unique_ptr<ScUnoRefList> EndUnoRefUndo(); // must be deleted by caller!
1068  sal_Int64 GetNewUnoId() { return ++nUnoObjectId; }
1069  void AddUnoRefChange( sal_Int64 nId, const ScRangeList& rOldRanges );
1071  static bool IsChart( const SdrObject* pObject );
1073  void UpdateChartRef( UpdateRefMode eUpdateRefMode,
1074  SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
1075  SCCOL nCol2, SCROW nRow2, SCTAB nTab2,
1076  SCCOL nDx, SCROW nDy, SCTAB nDz );
1078  void SetChartRangeList( const OUString& rChartName,
1079  const ScRangeListRef& rNewRangeListRef );
1081  void StartAnimations( SCTAB nTab );
1083  bool HasBackgroundDraw( SCTAB nTab, const tools::Rectangle& rMMRect ) const;
1084  bool HasAnyDraw( SCTAB nTab, const tools::Rectangle& rMMRect ) const;
1086  const ScSheetEvents* GetSheetEvents( SCTAB nTab ) const;
1087  void SetSheetEvents( SCTAB nTab, std::unique_ptr<ScSheetEvents> pNew );
1088  bool HasSheetEventScript( SCTAB nTab, ScSheetEventId nEvent, bool bWithVbaEvents = false ) const;
1089  bool HasAnySheetEventScript( ScSheetEventId nEvent, bool bWithVbaEvents = false ) const; // on any sheet
1091  bool HasAnyCalcNotification() const;
1092  bool HasCalcNotification( SCTAB nTab ) const;
1093  void SetCalcNotification( SCTAB nTab );
1094  void ResetCalcNotifications();
1096  SC_DLLPUBLIC ScOutlineTable* GetOutlineTable( SCTAB nTab, bool bCreate = false );
1097  bool SetOutlineTable( SCTAB nTab, const ScOutlineTable* pNewOutline );
1099  void DoAutoOutline( SCCOL nStartCol, SCROW nStartRow,
1100  SCCOL nEndCol, SCROW nEndRow, SCTAB nTab );
1102  bool DoSubTotals( SCTAB nTab, ScSubTotalParam& rParam );
1103  void RemoveSubTotals( SCTAB nTab, ScSubTotalParam& rParam );
1104  bool TestRemoveSubTotals( SCTAB nTab, const ScSubTotalParam& rParam );
1105  bool HasSubTotalCells( const ScRange& rRange );
1107  SC_DLLPUBLIC void EnsureTable( SCTAB nTab );
1109  // return TRUE = number format is set
1110  SC_DLLPUBLIC bool SetString( SCCOL nCol, SCROW nRow, SCTAB nTab, const OUString& rString,
1111  const ScSetStringParam * pParam = nullptr );
1112  SC_DLLPUBLIC bool SetString( const ScAddress& rPos, const OUString& rString,
1113  const ScSetStringParam* pParam = nullptr );
1124  SC_DLLPUBLIC bool SetEditText( const ScAddress& rPos, std::unique_ptr<EditTextObject> pEditText );
1125  void SetEditText( const ScAddress& rPos, const EditTextObject& rEditText, const SfxItemPool* pEditPool );
1126  SC_DLLPUBLIC void SetEditText( const ScAddress& rPos, const OUString& rStr );
1127  SC_DLLPUBLIC SCROW GetFirstEditTextRow( const ScRange& rRange ) const;
1133  SC_DLLPUBLIC void SetTextCell( const ScAddress& rPos, const OUString& rStr );
1134  void SetEmptyCell( const ScAddress& rPos );
1135  SC_DLLPUBLIC void SetValue( SCCOL nCol, SCROW nRow, SCTAB nTab, const double& rVal );
1136  SC_DLLPUBLIC void SetValue( const ScAddress& rPos, double fVal );
1137  void SetValues( const ScAddress& rPos, const std::vector<double>& rVals );
1138  void SetError( SCCOL nCol, SCROW nRow, SCTAB nTab, const FormulaError nError);
1139  SC_DLLPUBLIC void SetFormula( const ScAddress& rPos, const ScTokenArray& rArray );
1140  SC_DLLPUBLIC void SetFormula( const ScAddress& rPos, const OUString& rFormula,
1152  bool SetFormulaCells( const ScAddress& rPos, std::vector<ScFormulaCell*>& rCells );
1157  bool HasFormulaCell( const ScRange& rRange ) const;
1158  SC_DLLPUBLIC void InsertMatrixFormula(SCCOL nCol1, SCROW nRow1,
1159  SCCOL nCol2, SCROW nRow2,
1160  const ScMarkData& rMark,
1161  const OUString& rFormula,
1162  const ScTokenArray* p = nullptr,
1164  SC_DLLPUBLIC void InsertTableOp(const ScTabOpParam& rParam, // multi-operation
1165  SCCOL nCol1, SCROW nRow1,
1166  SCCOL nCol2, SCROW nRow2, const ScMarkData& rMark);
1168  SC_DLLPUBLIC OUString GetString( SCCOL nCol, SCROW nRow, SCTAB nTab,
1169  const ScInterpreterContext* pContext = nullptr ) const;
1170  SC_DLLPUBLIC OUString GetString( const ScAddress& rPos,
1171  const ScInterpreterContext* pContext = nullptr ) const;
1181  SC_DLLPUBLIC double* GetValueCell( const ScAddress& rPos );
1186  svl::SharedString GetSharedString( const ScAddress& rPos ) const;
1188  std::shared_ptr<sc::FormulaGroupContext>& GetFormulaGroupContext();
1191  { mbFormulaGroupCxtBlockDiscard = block; }
1193  SC_DLLPUBLIC void GetInputString( SCCOL nCol, SCROW nRow, SCTAB nTab, OUString& rString );
1194  FormulaError GetStringForFormula( const ScAddress& rPos, OUString& rString );
1195  SC_DLLPUBLIC double GetValue( const ScAddress& rPos ) const;
1196  SC_DLLPUBLIC double GetValue( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1197  SC_DLLPUBLIC void GetValue( SCCOL nCol, SCROW nRow, SCTAB nTab, double& rValue ) const;
1198  SC_DLLPUBLIC const EditTextObject* GetEditText( const ScAddress& rPos ) const;
1199  void RemoveEditTextCharAttribs( const ScAddress& rPos, const ScPatternAttr& rAttr );
1200  SC_DLLPUBLIC double RoundValueAsShown( double fVal, sal_uInt32 nFormat, const ScInterpreterContext* pContext = nullptr ) const;
1201  SC_DLLPUBLIC void GetNumberFormat( SCCOL nCol, SCROW nRow, SCTAB nTab,
1202  sal_uInt32& rFormat ) const;
1203  sal_uInt32 GetNumberFormat( const ScRange& rRange ) const;
1204  SC_DLLPUBLIC sal_uInt32 GetNumberFormat( const ScInterpreterContext& rContext, const ScAddress& ) const;
1205  void SetNumberFormat( const ScAddress& rPos, sal_uInt32 nNumberFormat );
1207  void GetNumberFormatInfo( const ScInterpreterContext& rContext, SvNumFormatType& nType, sal_uInt32& nIndex, const ScAddress& rPos ) const;
1208  SC_DLLPUBLIC const ScFormulaCell* GetFormulaCell( const ScAddress& rPos ) const;
1210  SC_DLLPUBLIC void GetFormula( SCCOL nCol, SCROW nRow, SCTAB nTab, OUString& rFormula ) const;
1211  SC_DLLPUBLIC void GetCellType( SCCOL nCol, SCROW nRow, SCTAB nTab, CellType& rCellType ) const;
1212  SC_DLLPUBLIC CellType GetCellType( const ScAddress& rPos ) const;
1214  SC_DLLPUBLIC bool HasData( SCCOL nCol, SCROW nRow, SCTAB nTab );
1215  SC_DLLPUBLIC bool HasStringData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1216  SC_DLLPUBLIC bool HasValueData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1217  SC_DLLPUBLIC bool HasValueData( const ScAddress& rPos ) const;
1218  bool HasStringCells( const ScRange& rRange ) const;
1221  bool HasSelectionData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1222  bool HasValidationData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1230  sc::MultiDataCellState HasMultipleDataCells( const ScRange& rRange ) const;
1233  SC_DLLPUBLIC ScPostIt* GetNote(const ScAddress& rPos);
1234  SC_DLLPUBLIC ScPostIt* GetNote(SCCOL nCol, SCROW nRow, SCTAB nTab);
1235  void SetNote(const ScAddress& rPos, std::unique_ptr<ScPostIt> pNote);
1236  void SetNote(SCCOL nCol, SCROW nRow, SCTAB nTab, std::unique_ptr<ScPostIt> pNote);
1237  SC_DLLPUBLIC bool HasNote(const ScAddress& rPos) const;
1238  bool HasNote(SCCOL nCol, SCROW nRow, SCTAB nTab) const;
1239  SC_DLLPUBLIC bool HasColNotes(SCCOL nCol, SCTAB nTab) const;
1240  SC_DLLPUBLIC bool HasTabNotes(SCTAB nTab) const;
1241  bool HasNotes() const;
1242  SC_DLLPUBLIC std::unique_ptr<ScPostIt> ReleaseNote(const ScAddress& rPos);
1244  SC_DLLPUBLIC ScPostIt* CreateNote(const ScAddress& rPos);
1245  size_t GetNoteCount( SCTAB nTab, SCCOL nCol ) const;
1251  void CreateAllNoteCaptions();
1252  void ForgetNoteCaptions( const ScRangeList& rRanges, bool bPreserveData );
1255  ScAddress GetNotePosition( size_t nIndex ) const;
1256  ScAddress GetNotePosition( size_t nIndex, SCTAB nTab ) const;
1257  SCROW GetNotePosition( SCTAB nTab, SCCOL nCol, size_t nIndex ) const;
1259  SC_DLLPUBLIC void GetAllNoteEntries( std::vector<sc::NoteEntry>& rNotes ) const;
1260  SC_DLLPUBLIC void GetAllNoteEntries( SCTAB nTab, std::vector<sc::NoteEntry>& rNotes ) const;
1261  void GetNotesInRange( const ScRangeList& rRange, std::vector<sc::NoteEntry>& rNotes ) const;
1262  bool ContainsNotesInRange( const ScRangeList& rRange ) const;
1264  SC_DLLPUBLIC void SetDrawPageSize(SCTAB nTab);
1266  bool IsMerged( const ScAddress& rPos ) const;
1268  void ExtendMergeSel( SCCOL nStartCol, SCROW nStartRow,
1269  SCCOL& rEndCol, SCROW& rEndRow, const ScMarkData& rMark,
1270  bool bRefresh = false );
1271  SC_DLLPUBLIC bool ExtendMerge( SCCOL nStartCol, SCROW nStartRow,
1272  SCCOL& rEndCol, SCROW& rEndRow, SCTAB nTab,
1273  bool bRefresh = false );
1274  bool ExtendMerge( ScRange& rRange, bool bRefresh = false );
1275  SC_DLLPUBLIC void ExtendTotalMerge( ScRange& rRange ) const;
1276  SC_DLLPUBLIC void ExtendOverlapped( SCCOL& rStartCol, SCROW& rStartRow,
1277  SCCOL nEndCol, SCROW nEndRow, SCTAB nTab ) const;
1278  SC_DLLPUBLIC void ExtendOverlapped( ScRange& rRange ) const;
1280  bool RefreshAutoFilter( SCCOL nStartCol, SCROW nStartRow,
1281  SCCOL nEndCol, SCROW nEndRow, SCTAB nTab );
1283  SC_DLLPUBLIC void DoMergeContents( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
1284  SCCOL nEndCol, SCROW nEndRow );
1285  SC_DLLPUBLIC void DoEmptyBlock( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
1286  SCCOL nEndCol, SCROW nEndRow );
1287  // without checking:
1288  SC_DLLPUBLIC void DoMerge( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
1289  SCCOL nEndCol, SCROW nEndRow, bool bDeleteCaptions = true );
1290  void RemoveMerge( SCCOL nCol, SCROW nRow, SCTAB nTab );
1292  bool IsBlockEmpty( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
1293  SCCOL nEndCol, SCROW nEndRow, bool bIgnoreNotes = false ) const;
1294  bool IsPrintEmpty( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
1295  SCCOL nEndCol, SCROW nEndRow,
1296  bool bLeftIsEmpty = false,
1297  ScRange* pLastRange = nullptr,
1298  tools::Rectangle* pLastMM = nullptr ) const;
1300  void SkipOverlapped( SCCOL& rCol, SCROW& rRow, SCTAB nTab ) const;
1301  bool IsHorOverlapped( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1302  bool IsVerOverlapped( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1304  SC_DLLPUBLIC bool HasAttrib( SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
1305  SCCOL nCol2, SCROW nRow2, SCTAB nTab2, HasAttrFlags nMask ) const;
1306  SC_DLLPUBLIC bool HasAttrib( const ScRange& rRange, HasAttrFlags nMask ) const;
1308  SC_DLLPUBLIC void GetBorderLines( SCCOL nCol, SCROW nRow, SCTAB nTab,
1309  const ::editeng::SvxBorderLine** ppLeft,
1310  const ::editeng::SvxBorderLine** ppTop,
1311  const ::editeng::SvxBorderLine** ppRight,
1312  const ::editeng::SvxBorderLine** ppBottom ) const;
1314  void ResetChanged( const ScRange& rRange );
1316  void CheckVectorizationState();
1317  void SetAllFormulasDirty( const sc::SetFormulaDirtyContext& rCxt );
1318  void SetDirty( const ScRange&, bool bIncludeEmptyCells );
1319  void SetTableOpDirty( const ScRange& ); // for Interpreter TableOp
1320  void InterpretDirtyCells( const ScRangeList& rRanges );
1321  SC_DLLPUBLIC void CalcAll();
1322  SC_DLLPUBLIC void CalcAfterLoad( bool bStartListening = true );
1323  void CompileAll();
1324  void CompileXML();
1336  bool CompileErrorCells(FormulaError nErrCode);
1338  ScAutoNameCache* GetAutoNameCache() { return pAutoNameCache.get(); }
1339  void SetPreviewFont( std::unique_ptr<SfxItemSet> pFontSet );
1340  SfxItemSet* GetPreviewFont() { return pPreviewFont.get(); }
1341  SfxItemSet* GetPreviewFont( SCCOL nCol, SCROW nRow, SCTAB nTab );
1343  void SetPreviewSelection( const ScMarkData& rSel );
1345  ScStyleSheet* GetPreviewCellStyle( SCCOL nCol, SCROW nRow, SCTAB nTab );
1346  void SetPreviewCellStyle( ScStyleSheet* pStyle ) { pPreviewCellStyle = pStyle; }
1347  SC_DLLPUBLIC void SetAutoNameCache( std::unique_ptr<ScAutoNameCache> pCache );
1351  ScLookupCache & GetLookupCache( const ScRange & rRange, ScInterpreterContext* pContext );
1354  void RemoveLookupCache( ScLookupCache & rCache );
1356  void ClearLookupCaches();
1358  // calculate automatically
1359  SC_DLLPUBLIC void SetAutoCalc( bool bNewAutoCalc );
1360  SC_DLLPUBLIC bool GetAutoCalc() const { return bAutoCalc; }
1361  // calculate automatically in/from/for ScDocShell disabled
1362  void SetAutoCalcShellDisabled( bool bNew ) { bAutoCalcShellDisabled = bNew; }
1364  // ForcedFormulas are to be calculated
1365  void SetForcedFormulaPending( bool bNew ) { bForcedFormulaPending = bNew; }
1367  // if CalcFormulaTree() is currently running
1371  void DelayFormulaGrouping( bool delay );
1372  bool IsDelayedFormulaGrouping() const { return bool(pDelayedFormulaGrouping); }
1374  void AddDelayedFormulaGroupingCell( const ScFormulaCell* cell );
1378  void EnableDelayStartListeningFormulaCells( ScColumn* column, bool delay );
1379  bool IsEnabledDelayStartListeningFormulaCells( ScColumn* column ) const;
1382  bool CanDelayStartListeningFormulaCells( ScColumn* column, SCROW row1, SCROW row2 );
1384  FormulaError GetErrCode( const ScAddress& ) const;
1398  bool ShrinkToDataArea( SCTAB nTab, SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol, SCROW& rEndRow ) const;
1415  bool ShrinkToUsedDataArea( bool& o_bShrunk,
1416  SCTAB nTab, SCCOL& rStartCol, SCROW& rStartRow,
1417  SCCOL& rEndCol, SCROW& rEndRow, bool bColumnsOnly,
1418  bool bStickyTopRow = false, bool bStickyLeftCol = false,
1419  bool bConsiderCellNotes = false,
1420  bool bConsiderCellDrawObjects = false ) const;
1432  SCROW GetLastDataRow( SCTAB nTab, SCCOL nCol1, SCCOL nCol2, SCROW nLastRow ) const;
1447  SC_DLLPUBLIC void GetDataArea( SCTAB nTab, SCCOL& rStartCol, SCROW& rStartRow,
1448  SCCOL& rEndCol, SCROW& rEndRow,
1449  bool bIncludeOld, bool bOnlyDown ) const;
1458  bool GetDataAreaSubrange(ScRange& rRange) const;
1460  SC_DLLPUBLIC bool GetCellArea( SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow ) const;
1461  SC_DLLPUBLIC bool GetTableArea( SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow ) const;
1462  SC_DLLPUBLIC bool GetPrintArea( SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow,
1463  bool bNotes = true ) const;
1464  SC_DLLPUBLIC bool GetPrintAreaHor( SCTAB nTab, SCROW nStartRow, SCROW nEndRow,
1465  SCCOL& rEndCol ) const;
1466  SC_DLLPUBLIC bool GetPrintAreaVer( SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol,
1467  SCROW& rEndRow, bool bNotes ) const;
1468  void InvalidateTableArea();
1471  SC_DLLPUBLIC void GetTiledRenderingArea(SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow) const;
1473  SC_DLLPUBLIC bool GetDataStart( SCTAB nTab, SCCOL& rStartCol, SCROW& rStartRow ) const;
1480  void ExtendPrintArea( OutputDevice* pDev, SCTAB nTab,
1481  SCCOL nStartCol, SCROW nStartRow,
1482  SCCOL& rEndCol, SCROW nEndRow ) const;
1483  SC_DLLPUBLIC SCSIZE GetEmptyLinesInBlock( SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab,
1484  SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab,
1485  ScDirection eDir );
1487  void FindAreaPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, ScMoveDirection eDirection ) const;
1488  SC_DLLPUBLIC void GetNextPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, SCCOL nMovX, SCROW nMovY,
1489  bool bMarked, bool bUnprotected, const ScMarkData& rMark,
1490  SCCOL nTabStartCol = SC_TABSTART_NONE ) const;
1492  bool GetNextMarkedCell( SCCOL& rCol, SCROW& rRow, SCTAB nTab,
1493  const ScMarkData& rMark );
1495  void LimitChartArea( SCTAB nTab, SCCOL& rStartCol, SCROW& rStartRow,
1496  SCCOL& rEndCol, SCROW& rEndRow );
1497  void LimitChartIfAll( ScRangeListRef& rRangeList );
1499  bool InsertRow( SCCOL nStartCol, SCTAB nStartTab,
1500  SCCOL nEndCol, SCTAB nEndTab,
1501  SCROW nStartRow, SCSIZE nSize, ScDocument* pRefUndoDoc = nullptr,
1502  const ScMarkData* pTabMark = nullptr );
1503  SC_DLLPUBLIC bool InsertRow( const ScRange& rRange );
1504  void DeleteRow( SCCOL nStartCol, SCTAB nStartTab,
1505  SCCOL nEndCol, SCTAB nEndTab,
1506  SCROW nStartRow, SCSIZE nSize,
1507  ScDocument* pRefUndoDoc = nullptr, bool* pUndoOutline = nullptr,
1508  const ScMarkData* pTabMark = nullptr );
1509  SC_DLLPUBLIC void DeleteRow( const ScRange& rRange );
1510  bool InsertCol( SCROW nStartRow, SCTAB nStartTab,
1511  SCROW nEndRow, SCTAB nEndTab,
1512  SCCOL nStartCol, SCSIZE nSize, ScDocument* pRefUndoDoc = nullptr,
1513  const ScMarkData* pTabMark = nullptr );
1514  SC_DLLPUBLIC bool InsertCol( const ScRange& rRange );
1515  void DeleteCol( SCROW nStartRow, SCTAB nStartTab,
1516  SCROW nEndRow, SCTAB nEndTab,
1517  SCCOL nStartCol, SCSIZE nSize,
1518  ScDocument* pRefUndoDoc = nullptr, bool* pUndoOutline = nullptr,
1519  const ScMarkData* pTabMark = nullptr );
1520  void DeleteCol( const ScRange& rRange );
1522  bool CanInsertRow( const ScRange& rRange ) const;
1523  bool CanInsertCol( const ScRange& rRange ) const;
1525  void FitBlock( const ScRange& rOld, const ScRange& rNew, bool bClear = true );
1526  bool CanFitBlock( const ScRange& rOld, const ScRange& rNew );
1528  bool IsClipOrUndo() const { return bIsClip || bIsUndo; }
1529  bool IsUndo() const { return bIsUndo; }
1530  bool IsClipboard() const { return bIsClip; }
1531  bool IsUndoEnabled() const { return mbUndoEnabled; }
1532  SC_DLLPUBLIC void EnableUndo( bool bVal );
1533  bool IsFunctionAccess() const { return bIsFunctionAccess; }
1535  bool IsAdjustHeightLocked() const { return nAdjustHeightLock != 0; }
1539  void EnableExecuteLink( bool bVal ) { mbExecuteLinkEnabled = bVal; }
1541  void EnableChangeReadOnly( bool bVal ) { mbChangeReadOnlyEnabled = bVal; }
1543  SC_DLLPUBLIC void EnableUserInteraction( bool bVal );
1545  void SetNamedRangesLockCount( sal_Int16 nCount ) { mnNamedRangesLockCount = nCount; }
1546  SC_DLLPUBLIC void ResetClip( ScDocument* pSourceDoc, const ScMarkData* pMarks );
1547  SC_DLLPUBLIC void ResetClip( ScDocument* pSourceDoc, SCTAB nTab );
1548  void SetCutMode( bool bCut );
1549  bool IsCutMode();
1550  void SetClipArea( const ScRange& rArea, bool bCut = false );
1552  SC_DLLPUBLIC bool IsDocVisible() const { return bIsVisible; }
1553  SC_DLLPUBLIC void SetDocVisible( bool bSet );
1555  bool HasOLEObjectsInArea( const ScRange& rRange, const ScMarkData* pTabMark = nullptr );
1557  void DeleteObjectsInArea( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
1558  const ScMarkData& rMark, bool bAnchored = false );
1559  void DeleteObjectsInSelection( const ScMarkData& rMark );
1561  void DeleteArea( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData& rMark,
1562  InsertDeleteFlags nDelFlag, bool bBroadcast = true,
1563  sc::ColumnSpanSet* pBroadcastSpans = nullptr );
1565  SC_DLLPUBLIC void DeleteAreaTab(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
1566  SCTAB nTab, InsertDeleteFlags nDelFlag);
1567  void DeleteAreaTab(const ScRange& rRange, InsertDeleteFlags nDelFlag);
1569  SC_DLLPUBLIC void CopyToClip( const ScClipParam& rClipParam, ScDocument* pClipDoc,
1570  const ScMarkData* pMarks, bool bKeepScenarioFlags,
1571  bool bIncludeObjects );
1582  SC_DLLPUBLIC void CopyStaticToDocument(const ScRange& rSrcRange, SCTAB nDestTab, ScDocument& rDestDoc);
1591  void CopyCellToDocument( const ScAddress& rSrcPos, const ScAddress& rDestPos, ScDocument& rDestDoc );
1593  void CopyTabToClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
1594  SCTAB nTab, ScDocument* pClipDoc);
1599  sc::ColumnSpanSet& rBroadcastSpans );
1601  bool CopyOneCellFromClip(sc::CopyFromClipContext& rCxt, SCCOL nCol1, SCROW nRow1,
1602  SCCOL nCol2, SCROW nRow2 );
1603  void CopyBlockFromClip( sc::CopyFromClipContext& rCxt, SCCOL nCol1, SCROW nRow1,
1604  SCCOL nCol2, SCROW nRow2, const ScMarkData& rMark,
1605  SCCOL nDx, SCROW nDy );
1607  SCROW nRow1, SCCOL nCol2, SCROW nRow2,
1608  const ScMarkData& rMark, SCCOL nDx, SCROW & rClipStartRow );
1610  void StartListeningFromClip( SCCOL nCol1, SCROW nRow1,
1611  SCCOL nCol2, SCROW nRow2,
1612  const ScMarkData& rMark, InsertDeleteFlags nInsFlag );
1614  void SetDirtyFromClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
1615  const ScMarkData& rMark, InsertDeleteFlags nInsFlag,
1616  sc::ColumnSpanSet& rBroadcastSpans );
1620  SC_DLLPUBLIC void CopyFromClip( const ScRange& rDestRange, const ScMarkData& rMark,
1621  InsertDeleteFlags nInsFlag,
1622  ScDocument* pRefUndoDoc,
1623  ScDocument* pClipDoc,
1624  bool bResetCut = true,
1625  bool bAsLink = false,
1626  bool bIncludeFiltered = true,
1627  bool bSkipAttrForEmpty = false,
1628  const ScRangeList * pDestRanges = nullptr );
1630  void CopyMultiRangeFromClip(const ScAddress& rDestPos, const ScMarkData& rMark,
1631  InsertDeleteFlags nInsFlag, ScDocument* pClipDoc,
1632  bool bResetCut = true, bool bAsLink = false,
1633  bool bIncludeFiltered = true,
1634  bool bSkipAttrForEmpty = false);
1636  void GetClipArea(SCCOL& nClipX, SCROW& nClipY, bool bIncludeFiltered);
1637  void GetClipStart(SCCOL& nClipX, SCROW& nClipY);
1639  bool HasClipFilteredRows();
1641  bool IsClipboardSource() const;
1643  SC_DLLPUBLIC void TransposeClip( ScDocument* pTransClip, InsertDeleteFlags nFlags, bool bAsLink );
1646  void SetClipParam(const ScClipParam& rParam);
1653  void ClosingClipboardSource();
1655  void MixDocument( const ScRange& rRange, ScPasteFunc nFunction, bool bSkipEmpty,
1656  ScDocument& rSrcDoc );
1658  void FillTab( const ScRange& rSrcArea, const ScMarkData& rMark,
1659  InsertDeleteFlags nFlags, ScPasteFunc nFunction,
1660  bool bSkipEmpty, bool bAsLink );
1661  void FillTabMarked( SCTAB nSrcTab, const ScMarkData& rMark,
1662  InsertDeleteFlags nFlags, ScPasteFunc nFunction,
1663  bool bSkipEmpty, bool bAsLink );
1665  void TransliterateText( const ScMarkData& rMultiMark, TransliterationFlags nType );
1667  SC_DLLPUBLIC void InitUndo( const ScDocument& rSrcDoc, SCTAB nTab1, SCTAB nTab2,
1668  bool bColInfo = false, bool bRowInfo = false );
1669  void AddUndoTab( SCTAB nTab1, SCTAB nTab2,
1670  bool bColInfo = false, bool bRowInfo = false );
1671  SC_DLLPUBLIC void InitUndoSelected( const ScDocument& rSrcDoc, const ScMarkData& rTabSelection,
1672  bool bColInfo = false, bool bRowInfo = false );
1674  // don't use anymore:
1675  void CopyToDocument(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
1676  SCCOL nCol2, SCROW nRow2, SCTAB nTab2,
1677  InsertDeleteFlags nFlags, bool bMarked, ScDocument& rDestDoc,
1678  const ScMarkData* pMarks = nullptr, bool bColRowFlags = true);
1679  void UndoToDocument(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
1680  SCCOL nCol2, SCROW nRow2, SCTAB nTab2,
1681  InsertDeleteFlags nFlags, bool bMarked, ScDocument& rDestDoc);
1683  void CopyToDocument(const ScRange& rRange,
1684  InsertDeleteFlags nFlags, bool bMarked, ScDocument& rDestDoc,
1685  const ScMarkData* pMarks = nullptr, bool bColRowFlags = true);
1686  void UndoToDocument(const ScRange& rRange,
1687  InsertDeleteFlags nFlags, bool bMarked, ScDocument& rDestDoc);
1689  void CopyScenario( SCTAB nSrcTab, SCTAB nDestTab, bool bNewScenario = false );
1690  bool TestCopyScenario( SCTAB nSrcTab, SCTAB nDestTab ) const;
1691  void MarkScenario(SCTAB nSrcTab, SCTAB nDestTab,
1692  ScMarkData& rDestMark, bool bResetMark = true,
1693  ScScenarioFlags nNeededBits = ScScenarioFlags::NONE) const;
1694  bool HasScenarioRange( SCTAB nTab, const ScRange& rRange ) const;
1695  SC_DLLPUBLIC const ScRangeList* GetScenarioRanges( SCTAB nTab ) const;
1697  SC_DLLPUBLIC void CopyUpdated( ScDocument* pPosDoc, ScDocument* pDestDoc );
1700  pUndoDoc = nullptr, bool bIncludeDraw = true,
1701  bool bUpdateNoteCaptionPos = true );
1703  SC_DLLPUBLIC void UpdateTranspose( const ScAddress& rDestPos, ScDocument* pClipDoc,
1704  const ScMarkData& rMark, ScDocument* pUndoDoc );
1706  void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY );
1708  SC_DLLPUBLIC void Fill( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
1709  ScProgress* pProgress, const ScMarkData& rMark,
1710  sal_uLong nFillCount, FillDir eFillDir = FILL_TO_BOTTOM,
1711  FillCmd eFillCmd = FILL_LINEAR, FillDateCmd eFillDateCmd = FILL_DAY,
1712  double nStepValue = 1.0, double nMaxValue = 1E307 );
1713  OUString GetAutoFillPreview( const ScRange& rSource, SCCOL nEndX, SCROW nEndY );
1716  const ScAddress& rCursor, const ScMarkData& rMark,
1717  double& rResult );
1719  SC_DLLPUBLIC const SfxPoolItem* GetAttr( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich ) const;
1720  template<class T> const T* GetAttr( SCCOL nCol, SCROW nRow, SCTAB nTab, TypedWhichId<T> nWhich ) const
1721  {
1722  return static_cast<const T*>(GetAttr(nCol, nRow, nTab, sal_uInt16(nWhich)));
1723  }
1724  SC_DLLPUBLIC const SfxPoolItem* GetAttr( const ScAddress& rPos, sal_uInt16 nWhich ) const;
1725  template<class T> const T* GetAttr( const ScAddress& rPos, TypedWhichId<T> nWhich ) const
1726  {
1727  return static_cast<const T*>(GetAttr(rPos, sal_uInt16(nWhich)));
1728  }
1729  SC_DLLPUBLIC const ScPatternAttr* GetPattern( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1730  SC_DLLPUBLIC const ScPatternAttr* GetPattern( const ScAddress& rPos ) const;
1731  SC_DLLPUBLIC const ScPatternAttr* GetMostUsedPattern( SCCOL nCol, SCROW nStartRow, SCROW nEndRow, SCTAB nTab ) const;
1732  const ScPatternAttr* GetSelectionPattern( const ScMarkData& rMark );
1733  std::unique_ptr<ScPatternAttr> CreateSelectionPattern( const ScMarkData& rMark, bool bDeep = true );
1734  SC_DLLPUBLIC void AddCondFormatData( const ScRangeList& rRange, SCTAB nTab, sal_uInt32 nIndex );
1735  void RemoveCondFormatData( const ScRangeList& rRange, SCTAB nTab, sal_uInt32 nIndex );
1737  SC_DLLPUBLIC ScConditionalFormat* GetCondFormat( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1738  // pCell is an optimization, must point to rPos
1739  SC_DLLPUBLIC const SfxItemSet* GetCondResult( SCCOL nCol, SCROW nRow, SCTAB nTab,
1740  ScRefCellValue* pCell = nullptr ) const;
1741  const SfxItemSet* GetCondResult( ScRefCellValue& rCell, const ScAddress& rPos,
1742  const ScConditionalFormatList& rList,
1743  const ScCondFormatIndexes& rIndex ) const;
1744  const SfxPoolItem* GetEffItem( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich ) const;
1745  template<class T> const T* GetEffItem( SCCOL nCol, SCROW nRow, SCTAB nTab, TypedWhichId<T> nWhich ) const
1746  {
1747  return static_cast<const T*>(GetEffItem(nCol, nRow, nTab, sal_uInt16(nWhich)));
1748  }
1750  SC_DLLPUBLIC const css::uno::Reference< css::i18n::XBreakIterator >& GetBreakIterator();
1751  bool HasStringWeakCharacters( const OUString& rString );
1752  SC_DLLPUBLIC SvtScriptType GetStringScriptType( const OUString& rString );
1753  // pCell is an optimization, must point to rPos
1754  SC_DLLPUBLIC SvtScriptType GetCellScriptType( const ScAddress& rPos, sal_uInt32 nNumberFormat,
1755  const ScRefCellValue* pCell = nullptr );
1756  // pCell is an optimization, must point to nCol,nRow,nTab
1758  const ScRefCellValue* pCell = nullptr );
1759  SvtScriptType GetRangeScriptType( sc::ColumnBlockPosition& rBlockPos, const ScAddress& rPos, SCROW nLength );
1760  SvtScriptType GetRangeScriptType( const ScRangeList& rRanges );
1762  bool HasDetectiveOperations() const;
1763  void AddDetectiveOperation( const ScDetOpData& rData );
1764  void ClearDetectiveOperations();
1765  ScDetOpList* GetDetOpList() const { return pDetOpList.get(); }
1766  void SetDetOpList(std::unique_ptr<ScDetOpList> pNew);
1768  bool HasDetectiveObjects(SCTAB nTab) const;
1770  void GetSelectionFrame( const ScMarkData& rMark,
1771  SvxBoxItem& rLineOuter,
1772  SvxBoxInfoItem& rLineInner );
1773  void ApplySelectionFrame(const ScMarkData& rMark,
1774  const SvxBoxItem& rLineOuter,
1775  const SvxBoxInfoItem* pLineInner);
1776  void ApplyFrameAreaTab(const ScRange& rRange,
1777  const SvxBoxItem& rLineOuter,
1778  const SvxBoxInfoItem& rLineInner);
1780  void ClearSelectionItems( const sal_uInt16* pWhich, const ScMarkData& rMark );
1781  void ChangeSelectionIndent( bool bIncrement, const ScMarkData& rMark );
1783  SC_DLLPUBLIC sal_uLong AddCondFormat( std::unique_ptr<ScConditionalFormat> pNew, SCTAB nTab );
1784  void DeleteConditionalFormat( sal_uLong nIndex, SCTAB nTab );
1786  void SetCondFormList( ScConditionalFormatList* pList, SCTAB nTab );
1792  const ScValidationDataList* GetValidationList() const { return pValidationList.get();}
1793  ScValidationDataList* GetValidationList() { return pValidationList.get();}
1795  SC_DLLPUBLIC void ApplyAttr( SCCOL nCol, SCROW nRow, SCTAB nTab,
1796  const SfxPoolItem& rAttr );
1797  SC_DLLPUBLIC void ApplyPattern( SCCOL nCol, SCROW nRow, SCTAB nTab,
1798  const ScPatternAttr& rAttr );
1799  SC_DLLPUBLIC void ApplyPatternArea( SCCOL nStartCol, SCROW nStartRow,
1800  SCCOL nEndCol, SCROW nEndRow,
1801  const ScMarkData& rMark, const ScPatternAttr& rAttr,
1802  ScEditDataArray* pDataArray = nullptr,
1803  bool* const pIsChanged = nullptr );
1804  SC_DLLPUBLIC void ApplyPatternAreaTab( SCCOL nStartCol, SCROW nStartRow,
1805  SCCOL nEndCol, SCROW nEndRow, SCTAB nTab,
1806  const ScPatternAttr& rAttr );
1809  const ScMarkData& rMark,
1810  const ScPatternAttr& rPattern,
1811  SvNumFormatType nNewType );
1813  void ApplyStyle( SCCOL nCol, SCROW nRow, SCTAB nTab,
1814  const ScStyleSheet& rStyle);
1815  void ApplyStyleArea( SCCOL nStartCol, SCROW nStartRow,
1816  SCCOL nEndCol, SCROW nEndRow,
1817  const ScMarkData& rMark, const ScStyleSheet& rStyle);
1818  SC_DLLPUBLIC void ApplyStyleAreaTab( SCCOL nStartCol, SCROW nStartRow,
1819  SCCOL nEndCol, SCROW nEndRow, SCTAB nTab,
1820  const ScStyleSheet& rStyle);
1822  SC_DLLPUBLIC void ApplySelectionStyle( const ScStyleSheet& rStyle, const ScMarkData& rMark );
1823  void ApplySelectionLineStyle( const ScMarkData& rMark,
1824  const ::editeng::SvxBorderLine* pLine, bool bColorOnly );
1826  const ScStyleSheet* GetStyle( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
1827  const ScStyleSheet* GetSelectionStyle( const ScMarkData& rMark ) const;
1829  void StyleSheetChanged( const SfxStyleSheetBase* pStyleSheet, bool bRemoved,
1830  OutputDevice* pDev,
1831  double nPPTX, double nPPTY,
1832  const Fraction& rZoomX, const Fraction& rZoomY );
1834  bool IsStyleSheetUsed( const ScStyleSheet& rStyle ) const;
1836  SC_DLLPUBLIC bool ApplyFlagsTab( SCCOL nStartCol, SCROW nStartRow,
1837  SCCOL nEndCol, SCROW nEndRow,
1838  SCTAB nTab, ScMF nFlags );
1839  SC_DLLPUBLIC bool RemoveFlagsTab( SCCOL nStartCol, SCROW nStartRow,
1840  SCCOL nEndCol, SCROW nEndRow,
1841  SCTAB nTab, ScMF nFlags );
1843  SC_DLLPUBLIC void SetPattern( const ScAddress&, const ScPatternAttr& rAttr );
1844  SC_DLLPUBLIC const ScPatternAttr* SetPattern( SCCOL nCol, SCROW nRow, SCTAB nTab, std::unique_ptr<ScPatternAttr> );
1845  SC_DLLPUBLIC void SetPattern( SCCOL nCol, SCROW nRow, SCTAB nTab, const ScPatternAttr& rAttr );
1847  void AutoFormat( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
1848  sal_uInt16 nFormatNo, const ScMarkData& rMark );
1849  void GetAutoFormatData( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
1850  ScAutoFormatData& rData );
1851  bool SearchAndReplace( const SvxSearchItem& rSearchItem,
1852  SCCOL& rCol, SCROW& rRow, SCTAB& rTab,
1853  const ScMarkData& rMark, ScRangeList& rMatchedRanges,
1854  OUString& rUndoStr, ScDocument* pUndoDoc = nullptr );
1856  // determine Col/Row of subsequent calls
1857  // (e.g. not found from the beginning, or subsequent tables)
1858  // meaning of explanation in "()" was already unclear in German
1859  void GetSearchAndReplaceStart( const SvxSearchItem& rSearchItem,
1860  SCCOL& rCol, SCROW& rRow );
1862  bool Solver( SCCOL nFCol, SCROW nFRow, SCTAB nFTab,
1863  SCCOL nVCol, SCROW nVRow, SCTAB nVTab,
1864  const OUString& sValStr, double& nX);
1866  SC_DLLPUBLIC void ApplySelectionPattern( const ScPatternAttr& rAttr, const ScMarkData& rMark,
1867  ScEditDataArray* pDataArray = nullptr, bool* pIsChanged = nullptr );
1868  void DeleteSelection( InsertDeleteFlags nDelFlag, const ScMarkData& rMark, bool bBroadcast = true );
1869  void DeleteSelectionTab( SCTAB nTab, InsertDeleteFlags nDelFlag, const ScMarkData& rMark );
1871  SC_DLLPUBLIC void SetColWidth( SCCOL nCol, SCTAB nTab, sal_uInt16 nNewWidth );
1872  SC_DLLPUBLIC void SetColWidthOnly( SCCOL nCol, SCTAB nTab, sal_uInt16 nNewWidth );
1873  SC_DLLPUBLIC void SetRowHeight( SCROW nRow, SCTAB nTab, sal_uInt16 nNewHeight );
1874  SC_DLLPUBLIC void SetRowHeightRange( SCROW nStartRow, SCROW nEndRow, SCTAB nTab,
1875  sal_uInt16 nNewHeight );
1877  SC_DLLPUBLIC void SetRowHeightOnly( SCROW nStartRow, SCROW nEndRow, SCTAB nTab,
1878  sal_uInt16 nNewHeight );
1879  SC_DLLPUBLIC void SetManualHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bManual );
1881  SC_DLLPUBLIC sal_uInt16 GetColWidth( SCCOL nCol, SCTAB nTab, bool bHiddenAsZero = true ) const;
1882  SC_DLLPUBLIC sal_uLong GetColWidth( SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab ) const;
1883  SC_DLLPUBLIC sal_uInt16 GetRowHeight( SCROW nRow, SCTAB nTab, bool bHiddenAsZero = true ) const;
1884  SC_DLLPUBLIC sal_uInt16 GetRowHeight( SCROW nRow, SCTAB nTab, SCROW* pStartRow, SCROW* pEndRow ) const;
1885  SC_DLLPUBLIC sal_uLong GetRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bHiddenAsZero = true ) const;
1892  SCROW GetRowForHeight( SCTAB nTab, sal_uLong nHeight ) const;
1893  sal_uLong GetScaledRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab, double fScale, const sal_uLong* pnMaxHeight = nullptr ) const;
1894  SC_DLLPUBLIC sal_uLong GetColOffset( SCCOL nCol, SCTAB nTab, bool bHiddenAsZero = true ) const;
1895  SC_DLLPUBLIC sal_uLong GetRowOffset( SCROW nRow, SCTAB nTab, bool bHiddenAsZero = true ) const;
1897  SC_DLLPUBLIC sal_uInt16 GetOriginalWidth( SCCOL nCol, SCTAB nTab ) const;
1898  SC_DLLPUBLIC sal_uInt16 GetOriginalHeight( SCROW nRow, SCTAB nTab ) const;
1900  sal_uInt16 GetCommonWidth( SCCOL nEndCol, SCTAB nTab ) const;
1902  SCROW GetHiddenRowCount( SCROW nRow, SCTAB nTab ) const;
1904  sal_uInt16 GetOptimalColWidth( SCCOL nCol, SCTAB nTab, OutputDevice* pDev,
1905  double nPPTX, double nPPTY,
1906  const Fraction& rZoomX, const Fraction& rZoomY,
1907  bool bFormula,
1908  const ScMarkData* pMarkData = nullptr,
1909  const ScColWidthParam* pParam = nullptr );
1912  SCROW nEndRow, SCTAB nTab );
1914  void UpdateAllRowHeights( sc::RowHeightContext& rCxt, const ScMarkData* pTabMark );
1916  long GetNeededSize( SCCOL nCol, SCROW nRow, SCTAB nTab,
1917  OutputDevice* pDev,
1918  double nPPTX, double nPPTY,
1919  const Fraction& rZoomX, const Fraction& rZoomY,
1920  bool bWidth, bool bTotalSize = false,
1921  bool bInPrintTwips = false );
1923  SC_DLLPUBLIC void ShowCol(SCCOL nCol, SCTAB nTab, bool bShow);
1924  SC_DLLPUBLIC void ShowRow(SCROW nRow, SCTAB nTab, bool bShow);
1925  SC_DLLPUBLIC void ShowRows(SCROW nRow1, SCROW nRow2, SCTAB nTab, bool bShow);
1926  SC_DLLPUBLIC void SetRowFlags( SCROW nRow, SCTAB nTab, CRFlags nNewFlags );
1927  SC_DLLPUBLIC void SetRowFlags( SCROW nStartRow, SCROW nEndRow, SCTAB nTab, CRFlags nNewFlags );
1929  SC_DLLPUBLIC CRFlags GetColFlags( SCCOL nCol, SCTAB nTab ) const;
1930  SC_DLLPUBLIC CRFlags GetRowFlags( SCROW nRow, SCTAB nTab ) const;
1932  SC_DLLPUBLIC void GetAllRowBreaks(std::set<SCROW>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const;
1933  SC_DLLPUBLIC void GetAllColBreaks(std::set<SCCOL>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const;
1934  SC_DLLPUBLIC ScBreakType HasRowBreak(SCROW nRow, SCTAB nTab) const;
1935  SC_DLLPUBLIC ScBreakType HasColBreak(SCCOL nCol, SCTAB nTab) const;
1936  SC_DLLPUBLIC void SetRowBreak(SCROW nRow, SCTAB nTab, bool bPage, bool bManual);
1937  SC_DLLPUBLIC void SetColBreak(SCCOL nCol, SCTAB nTab, bool bPage, bool bManual);
1938  void RemoveRowBreak(SCROW nRow, SCTAB nTab, bool bPage, bool bManual);
1939  void RemoveColBreak(SCCOL nCol, SCTAB nTab, bool bPage, bool bManual);
1940  css::uno::Sequence<
1941  css::sheet::TablePageBreakData> GetRowBreakData(SCTAB nTab) const;
1943  SC_DLLPUBLIC bool RowHidden(SCROW nRow, SCTAB nTab, SCROW* pFirstRow = nullptr, SCROW* pLastRow = nullptr) const;
1944  SC_DLLPUBLIC bool HasHiddenRows(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const;
1945  SC_DLLPUBLIC bool ColHidden(SCCOL nCol, SCTAB nTab, SCCOL* pFirstCol = nullptr, SCCOL* pLastCol = nullptr) const;
1946  SC_DLLPUBLIC void SetRowHidden(SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bHidden);
1947  SC_DLLPUBLIC void SetColHidden(SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab, bool bHidden);
1948  SC_DLLPUBLIC SCROW FirstVisibleRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const;
1949  SC_DLLPUBLIC SCROW LastVisibleRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const;
1950  SCROW CountVisibleRows(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const;
1952  bool RowFiltered(SCROW nRow, SCTAB nTab, SCROW* pFirstRow = nullptr, SCROW* pLastRow = nullptr) const;
1953  bool HasFilteredRows(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const;
1954  bool ColFiltered(SCCOL nCol, SCTAB nTab) const;
1955  SC_DLLPUBLIC void SetRowFiltered(SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bFiltered);
1956  SCROW FirstNonFilteredRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const;
1957  SCROW LastNonFilteredRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const;
1958  SCROW CountNonFilteredRows(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const;
1960  SC_DLLPUBLIC bool IsManualRowHeight(SCROW nRow, SCTAB nTab) const;
1962  bool HasUniformRowHeight( SCTAB nTab, SCROW nRow1, SCROW nRow2 ) const;
1969  void SyncColRowFlags();
1972  SC_DLLPUBLIC SCROW GetLastFlaggedRow( SCTAB nTab ) const;
1975  SCCOL GetLastChangedCol( SCTAB nTab ) const;
1977  SCROW GetLastChangedRow( SCTAB nTab ) const;
1979  SCCOL GetNextDifferentChangedCol( SCTAB nTab, SCCOL nStart) const;
1981  SCROW GetNextDifferentChangedRow( SCTAB nTab, SCROW nStart) const;
1983  // returns whether to export a Default style for this col or not
1984  // nDefault is set to one position in the current row where the Default style is
1985  void GetColDefault( SCTAB nTab, SCCOL nCol, SCROW nLastRow, SCROW& nDefault);
1987  bool UpdateOutlineCol( SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab, bool bShow );
1988  bool UpdateOutlineRow( SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bShow );
1990  void StripHidden( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2, SCTAB nTab );
1991  void ExtendHidden( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2, SCTAB nTab );
1996  void GetUnprotectedCells( ScRangeList& rRange, SCTAB nTab ) const;
1998  // PageStyle:
1999  SC_DLLPUBLIC OUString GetPageStyle( SCTAB nTab ) const;
2000  SC_DLLPUBLIC void SetPageStyle( SCTAB nTab, const OUString& rName );
2001  Size GetPageSize( SCTAB nTab ) const;
2002  void SetPageSize( SCTAB nTab, const Size& rSize );
2003  void SetRepeatArea( SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCROW nEndRow );
2004  void InvalidatePageBreaks(SCTAB nTab);
2005  void UpdatePageBreaks( SCTAB nTab, const ScRange* pUserArea = nullptr );
2006  void RemoveManualBreaks( SCTAB nTab );
2007  bool HasManualBreaks( SCTAB nTab ) const;
2009  bool IsPageStyleInUse( const OUString& rStrPageStyle, SCTAB* pInTab );
2010  bool RemovePageStyleInUse( const OUString& rStrPageStyle );
2011  bool RenamePageStyleInUse( const OUString& rOld, const OUString& rNew );
2012  void ModifyStyleSheet( SfxStyleSheetBase& rPageStyle,
2013  const SfxItemSet& rChanges );
2015  void PageStyleModified( SCTAB nTab, const OUString& rNewName );
2017  SC_DLLPUBLIC bool NeedPageResetAfterTab( SCTAB nTab ) const;
2019  // Was stored in PageStyle previously. Now it exists for every table:
2020  SC_DLLPUBLIC bool HasPrintRange();
2021  SC_DLLPUBLIC sal_uInt16 GetPrintRangeCount( SCTAB nTab );
2022  SC_DLLPUBLIC const ScRange* GetPrintRange( SCTAB nTab, sal_uInt16 nPos );
2026  bool IsPrintEntireSheet( SCTAB nTab ) const;
2029  SC_DLLPUBLIC void ClearPrintRanges( SCTAB nTab );
2031  SC_DLLPUBLIC void AddPrintRange( SCTAB nTab, const ScRange& rNew );
2033  SC_DLLPUBLIC void SetPrintEntireSheet( SCTAB nTab );
2034  SC_DLLPUBLIC void SetRepeatColRange( SCTAB nTab, std::unique_ptr<ScRange> pNew );
2035  SC_DLLPUBLIC void SetRepeatRowRange( SCTAB nTab, std::unique_ptr<ScRange> pNew );
2036  std::unique_ptr<ScPrintRangeSaver> CreatePrintRangeSaver() const;
2037  void RestorePrintRanges( const ScPrintRangeSaver& rSaver );
2039  SC_DLLPUBLIC tools::Rectangle GetMMRect( SCCOL nStartCol, SCROW nStartRow,
2040  SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, bool bHiddenAsZero = true ) const;
2041  SC_DLLPUBLIC ScRange GetRange( SCTAB nTab, const tools::Rectangle& rMMRect, bool bHiddenAsZero = true ) const;
2043  void UpdStlShtPtrsFrmNms();
2044  void StylesToNames();
2046  SC_DLLPUBLIC void CopyStdStylesFrom( const ScDocument& rSrcDoc );
2048  static sal_uInt16 GetSrcVersion() { return nSrcVer; }
2050  void SetSrcCharSet( rtl_TextEncoding eNew ) { eSrcSet = eNew; }
2051  void UpdateFontCharSet();
2053  void FillInfo( ScTableInfo& rTabInfo, SCCOL nCol1, SCROW nRow1,
2054  SCCOL nCol2, SCROW nRow2, SCTAB nTab, double fColScale,
2055  double fRowScale, bool bPageMode, bool bFormulaMode,
2056  const ScMarkData* pMarkData = nullptr );
2061  void Sort( SCTAB nTab, const ScSortParam& rSortParam,
2062  bool bKeepQuery, bool bUpdateRefs,
2063  ScProgress* pProgress, sc::ReorderParam* pUndo );
2065  void Reorder( const sc::ReorderParam& rParam );
2067  SCSIZE Query( SCTAB nTab, const ScQueryParam& rQueryParam, bool bKeepSub );
2068  SC_DLLPUBLIC bool CreateQueryParam( const ScRange& rRange, ScQueryParam& rQueryParam );
2069  void GetUpperCellString(SCCOL nCol, SCROW nRow, SCTAB nTab, OUString& rStr);
2077  void GetFilterEntries( SCCOL nCol, SCROW nRow,
2078  SCTAB nTab, ScFilterEntries& rFilterEntries );
2080  SC_DLLPUBLIC void GetFilterEntriesArea( SCCOL nCol, SCROW nStartRow, SCROW nEndRow,
2081  SCTAB nTab, bool bCaseSens,
2082  ScFilterEntries& rFilterEntries );
2084  void GetDataEntries( SCCOL nCol, SCROW nRow, SCTAB nTab,
2085  std::vector<ScTypedStrData>& rStrings, bool bLimit = false );
2086  void GetFormulaEntries( ScTypedCaseStrSet& rStrings );
2088  bool HasAutoFilter( SCCOL nCol, SCROW nRow, SCTAB nTab );
2089  void GetFilterSelCount( SCCOL nCol, SCROW nRow, SCTAB nTab, SCSIZE& nSelected, SCSIZE& nTotal );
2091  SC_DLLPUBLIC bool HasColHeader( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
2092  SCTAB nTab );
2093  SC_DLLPUBLIC bool HasRowHeader( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
2094  SCTAB nTab );
2096  SfxPrinter* GetPrinter( bool bCreateIfNotExist = true );
2097  void SetPrinter( VclPtr<SfxPrinter> const & pNewPrinter );
2099  SC_DLLPUBLIC OutputDevice* GetRefDevice(); // WYSIWYG: Printer, otherwise VirtualDevice...
2101  bool GetNextSpellingCell( SCCOL& nCol, SCROW& nRow, SCTAB nTab,
2102  bool bInSel, const ScMarkData& rMark) const;
2104  void ReplaceStyle( const SvxSearchItem& rSearchItem,
2105  SCCOL nCol, SCROW nRow, SCTAB nTab,
2106  const ScMarkData& rMark);
2108  void InvalidateTextWidth( const OUString& rStyleName );
2109  void InvalidateTextWidth( SCTAB nTab );
2110  void InvalidateTextWidth( const ScAddress* pAdrFrom, const ScAddress* pAdrTo, bool bNumFormatChanged );
2112  bool IdleCalcTextWidth();
2114  void RepaintRange( const ScRange& rRange );
2115  void RepaintRange( const ScRangeList& rRange );
2117  bool IsIdleEnabled() const { return mbIdleEnabled; }
2118  void EnableIdle(bool bDo) { mbIdleEnabled = bDo; }
2120  bool IsDetectiveDirty() const { return bDetectiveDirty; }
2121  void SetDetectiveDirty(bool bSet) { bDetectiveDirty = bSet; }
2124  void SetLinkFormulaNeedingCheck(bool bSet) { bLinkFormulaNeedingCheck = bSet; }
2128  void SetRangeOverflowType(ErrCode nType) { nRangeOverflowType = nType; }
2129  bool HasRangeOverflow() const { return nRangeOverflowType != ERRCODE_NONE; }
2132  // for broadcasting/listening
2133  void SetInsertingFromOtherDoc( bool bVal ) { bInsertingFromOtherDoc = bVal; }
2135  void SetLoadingMedium( bool bVal );
2136  SC_DLLPUBLIC void SetImportingXML( bool bVal );
2137  bool IsImportingXML() const { return bImportingXML; }
2138  bool IsCalcingAfterLoad() const { return bCalcingAfterLoad; }
2139  void SetNoListening( bool bVal ) { bNoListening = bVal; }
2140  bool GetNoListening() const { return bNoListening; }
2141  ScBroadcastAreaSlotMachine* GetBASM() const { return pBASM.get(); }
2143  SC_DLLPUBLIC ScChartListenerCollection* GetChartListenerCollection() const { return pChartListenerCollection.get(); }
2144  void SetChartListenerCollection( std::unique_ptr<ScChartListenerCollection>,
2145  bool bSetChartRangeLists );
2146  void UpdateChart( const OUString& rName );
2147  void RestoreChartListener( const OUString& rName );
2150  void SetChartListenerCollectionNeedsUpdate( bool bFlg ) { bChartListenerCollectionNeedsUpdate = bFlg; }
2151  void AddOLEObjectToCollection(const OUString& rName);
2153  ScChangeViewSettings* GetChangeViewSettings() const { return pChangeViewSettings.get(); }
2156  const std::shared_ptr<SvxForbiddenCharactersTable>& GetForbiddenCharacters() const;
2157  void SetForbiddenCharacters(const std::shared_ptr<SvxForbiddenCharactersTable>& rNew);
2160  bool IsValidAsianCompression() const;
2163  bool GetAsianKerning() const;
2164  bool IsValidAsianKerning() const;
2165  void SetAsianKerning(bool bNew);
2168  EEHorizontalTextDirection GetEditTextDirection(SCTAB nTab) const; // EEHorizontalTextDirection values
2171  void SetLinkMode( ScLkUpdMode nSet ) { eLinkMode = nSet;}
2175  void FillMatrix( ScMatrix& rMat, SCTAB nTab, SCCOL nCol1,
2176  SCROW nRow1, SCCOL nCol2, SCROW nRow2,
2177  svl::SharedStringPool* pPool = nullptr) const;
2187  void SC_DLLPUBLIC SetFormulaResults( const ScAddress& rTopPos, const double* pResults, size_t nLen );
2189  const ScDocumentThreadSpecific& CalculateInColumnInThread( ScInterpreterContext& rContext, const ScRange& rCalcRange, unsigned nThisThread, unsigned nThreadsTotal);
2190  void HandleStuffAfterParallelCalculation( SCCOL nColStart, SCCOL nColEnd, SCROW nRow, size_t nLen, SCTAB nTab, ScInterpreter* pInterpreter );
2197  void TransferCellValuesTo( const ScAddress& rTopPos, size_t nLen, sc::CellValues& rDest );
2198  void CopyCellValuesFrom( const ScAddress& rTopPos, const sc::CellValues& rSrc );
2200  std::set<Color> GetDocColors();
2203 private:
2204  ScDocument(const ScDocument& r) = delete;
2206  void FindMaxRotCol( SCTAB nTab, RowInfo* pRowInfo, SCSIZE nArrCount,
2207  SCCOL nX1, SCCOL nX2 ) const;
2209  sal_uInt16 RowDifferences( SCROW nThisRow, SCTAB nThisTab,
2210  ScDocument& rOtherDoc,
2211  SCROW nOtherRow, SCTAB nOtherTab,
2212  SCCOL nMaxCol, const SCCOLROW* pOtherCols );
2213  sal_uInt16 ColDifferences( SCCOL nThisCol, SCTAB nThisTab,
2214  ScDocument& rOtherDoc,
2215  SCCOL nOtherCol, SCTAB nOtherTab,
2216  SCROW nMaxRow, const SCCOLROW* pOtherRows );
2217  void FindOrder( SCCOLROW* pOtherRows, SCCOLROW nThisEndRow, SCCOLROW nOtherEndRow,
2218  bool bColumns,
2219  ScDocument& rOtherDoc, SCTAB nThisTab, SCTAB nOtherTab,
2220  SCCOLROW nEndCol, const SCCOLROW* pTranslate,
2221  ScProgress* pProgress, sal_uLong nProAdd );
2223  DECL_LINK(TrackTimeHdl, Timer *, void);
2240  bool LimitRangeToAvailableSheets( const ScRange& rRange, ScRange& o_rRange,
2241  bool& o_bEntirelyOutOfBounds ) const;
2243 public:
2244  void StartListeningArea( const ScRange& rRange, bool bGroupListening, SvtListener* pListener );
2246  void EndListeningArea( const ScRange& rRange, bool bGroupListening, SvtListener* pListener );
2252  void Broadcast( const ScHint& rHint );
2254  void BroadcastCells( const ScRange& rRange, SfxHintId nHint, bool bBroadcastSingleBroadcasters = true );
2257  void AreaBroadcast( const ScHint& rHint );
2258  void DelBroadcastAreasInRange( const ScRange& rRange );
2259  void UpdateBroadcastAreas( UpdateRefMode eUpdateRefMode,
2260  const ScRange& rRange,
2261  SCCOL nDx, SCROW nDy, SCTAB nDz );
2263  void StartListeningCell( const ScAddress& rAddress,
2264  SvtListener* pListener );
2265  void EndListeningCell( const ScAddress& rAddress,
2266  SvtListener* pListener );
2268  void StartListeningCell( sc::StartListeningContext& rCxt, const ScAddress& rPos, SvtListener& rListener );
2269  void EndListeningCell( sc::EndListeningContext& rCxt, const ScAddress& rPos, SvtListener& rListener );
2271  void EndListeningFormulaCells( std::vector<ScFormulaCell*>& rCells );
2273  void PutInFormulaTree( ScFormulaCell* pCell );
2274  void RemoveFromFormulaTree( ScFormulaCell* pCell );
2289  SC_DLLPUBLIC void CalcFormulaTree( bool bOnlyForced = false, bool bProgressBar = true, bool bSetAllDirty = true );
2290  void ClearFormulaTree();
2291  void AppendToFormulaTrack( ScFormulaCell* pCell );
2292  void RemoveFromFormulaTrack( ScFormulaCell* pCell );
2293  void TrackFormulas( SfxHintId nHintId = SfxHintId::ScDataChanged );
2296  void FinalTrackFormulas( SfxHintId nHintId );
2298  bool IsInFormulaTree( const ScFormulaCell* pCell ) const;
2299  bool IsInFormulaTrack( const ScFormulaCell* pCell ) const;
2301  void SetHardRecalcState( HardRecalcState eVal ) { eHardRecalcState = eVal; }
2302  void StartAllListeners();
2303  void StartNeededListeners();
2304  void StartNeededListeners( const std::shared_ptr<const sc::ColumnSet>& rpColSet );
2305  void StartAllListeners( const ScRange& rRange );
2307  void SetForcedFormulas( bool bVal ) { bHasForcedFormulas = bVal; }
2310  bool IsInInterpreter() const { return nInterpretLevel != 0; }
2313  {
2315  if ( nInterpretLevel < USHRT_MAX )
2316  nInterpretLevel++;
2317  }
2319  {
2321  if ( nInterpretLevel )
2322  nInterpretLevel--;
2323  }
2324  sal_uInt16 GetMacroInterpretLevel() const { return nMacroInterpretLevel; }
2326  {
2328  if ( nMacroInterpretLevel < USHRT_MAX )
2329  nMacroInterpretLevel++;
2330  }
2332  {
2334  if ( nMacroInterpretLevel )
2335  nMacroInterpretLevel--;
2336  }
2337  bool IsInInterpreterTableOp() const { return nInterpreterTableOpLevel != 0; }
2339  {
2340  if ( nInterpreterTableOpLevel < USHRT_MAX )
2341  nInterpreterTableOpLevel++;
2342  }
2344  {
2345  if ( nInterpreterTableOpLevel )
2346  nInterpreterTableOpLevel--;
2347  }
2349  // add a formula to be remembered for TableOp broadcasts
2351  void InvalidateLastTableOpParams() { aLastTableOpParams.bValid = false; }
2353  bool IsInDtorClear() const { return bInDtorClear; }
2354  void SetExpandRefs( bool bVal );
2355  bool IsExpandRefs() const { return bExpandRefs; }
2359  {
2360  if ( nXMLImportedFormulaCount + nVal > nXMLImportedFormulaCount )
2361  nXMLImportedFormulaCount += nVal;
2362  }
2364  {
2365  if ( nVal <= nXMLImportedFormulaCount )
2366  nXMLImportedFormulaCount -= nVal;
2367  else
2368  nXMLImportedFormulaCount = 0;
2369  }
2371  void StartTrackTimer();
2373  void CompileDBFormula();
2374  void CompileColRowNameFormula();
2380  sal_Int32 GetMaxStringLen( SCTAB nTab, SCCOL nCol,
2381  SCROW nRowStart, SCROW nRowEnd,
2382  rtl_TextEncoding eCharSet ) const;
2386  sal_Int32 GetMaxNumberStringLen( sal_uInt16& nPrecision,
2387  SCTAB nTab, SCCOL nCol,
2388  SCROW nRowStart, SCROW nRowEnd ) const;
2390  void KeyInput(); // TimerDelays etc.
2392  ScChangeTrack* GetChangeTrack() const { return pChangeTrack.get(); }
2396  SC_DLLPUBLIC void SetChangeTrack( std::unique_ptr<ScChangeTrack> pTrack );
2398  void StartChangeTracking();
2399  void EndChangeTracking();
2401  SC_DLLPUBLIC void CompareDocument( ScDocument& rOtherDoc );
2403  void AddUnoObject( SfxListener& rObject );
2404  void RemoveUnoObject( SfxListener& rObject );
2405  void BroadcastUno( const SfxHint &rHint );
2406  void AddUnoListenerCall( const css::uno::Reference<
2407  css::util::XModifyListener >& rListener,
2408  const css::lang::EventObject& rEvent );
2410  void SetInLinkUpdate(bool bSet); // TableLink or AreaLink
2411  bool IsInLinkUpdate() const; // including DdeLink
2418  std::unique_ptr<ScRefreshTimerControl> const & GetRefreshTimerControlAddress() const
2419  { return pRefreshTimerControl; }
2421  void SetPastingDrawFromOtherDoc( bool bVal )
2422  { bPastingDrawFromOtherDoc = bVal; }
2424  { return bPastingDrawFromOtherDoc; }
2427  sal_uInt32 GetDocumentID() const;
2429  void InvalidateStyleSheetUsage() { bStyleSheetUsageInvalid = true; }
2430  void SC_DLLPUBLIC GetSortParam( ScSortParam& rParam, SCTAB nTab );
2431  void SC_DLLPUBLIC SetSortParam( const ScSortParam& rParam, SCTAB nTab );
2433  void SetVbaEventProcessor( const css::uno::Reference< css::script::vba::XVBAEventProcessor >& rxVbaEvents )
2434  { mxVbaEvents = rxVbaEvents; }
2435  const css::uno::Reference< css::script::vba::XVBAEventProcessor >& GetVbaEventProcessor() const { return mxVbaEvents; }
2442  bool IsInVBAMode() const;
2445  void AddSubTotalCell(ScFormulaCell* pCell);
2446  void RemoveSubTotalCell(ScFormulaCell* pCell);
2447  void SetSubTotalCellsDirty(const ScRange& rDirtyRange);
2449  sal_uInt16 GetTextWidth( const ScAddress& rPos ) const;
2451  SvtScriptType GetScriptType( const ScAddress& rPos ) const;
2452  void SetScriptType( const ScAddress& rPos, SvtScriptType nType );
2453  void UpdateScriptTypes( const ScAddress& rPos, SCCOL nColSize, SCROW nRowSize );
2455  size_t GetFormulaHash( const ScAddress& rPos ) const;
2467  void UnshareFormulaCells( SCTAB nTab, SCCOL nCol, std::vector<SCROW>& rRows );
2468  void RegroupFormulaCells( SCTAB nTab, SCCOL nCol );
2469  void RegroupFormulaCells( const ScRange& range );
2477  bool HandleRefArrayForParallelism( const ScAddress& rPos, SCROW nLength, const ScFormulaCellGroupRef& mxGroup );
2478 #ifdef DBG_UTIL
2479  void AssertNoInterpretNeeded( const ScAddress& rPos, SCROW nLength );
2480 #endif
2486  void PrepareFormulaCalc();
2502  SC_DLLPUBLIC bool EnsureFormulaCellResults( const ScRange& rRange, bool bSkipRunning = false );
2504  SvtBroadcaster* GetBroadcaster( const ScAddress& rPos );
2505  const SvtBroadcaster* GetBroadcaster( const ScAddress& rPos ) const;
2506  void DeleteBroadcasters( sc::ColumnBlockPosition& rBlockPos, const ScAddress& rTopPos, SCROW nLength );
2508  std::unique_ptr<sc::ColumnIterator> GetColumnIterator( SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2 ) const;
2509  void CreateColumnIfNotExists( SCTAB nTab, SCCOL nCol );
2511  SC_DLLPUBLIC void StoreTabToCache(SCTAB nTab, SvStream& rStrm) const;
2512  SC_DLLPUBLIC void RestoreTabFromCache(SCTAB nTab, SvStream& rStream);
2515  SC_DLLPUBLIC void DumpColumnStorage( SCTAB nTab, SCCOL nCol ) const;
2516 #endif
2519  SC_DLLPUBLIC void DumpAreaBroadcasters() const;
2520 #endif
2522  SC_DLLPUBLIC void SetCalcConfig( const ScCalcConfig& rConfig );
2523  const ScCalcConfig& GetCalcConfig() const { return maCalcConfig; }
2524  void ConvertFormulaToValue( const ScRange& rRange, sc::TableValues* pUndo );
2525  void SwapNonEmpty( sc::TableValues& rValues );
2526  void finalizeOutlineImport();
2527  bool TableExists( SCTAB nTab ) const;
2529  SC_DLLPUBLIC ScColumnsRange GetColumnsRange(SCTAB nTab, SCCOL nColBegin, SCCOL nColEnd) const;
2531  bool IsInDocShellRecalc() const { return mbDocShellRecalc; }
2532  void SetDocShellRecalc(bool bSet) { mbDocShellRecalc = bSet; }
2542  OString dumpSheetGeomData(SCTAB nTab, bool bColumns, SheetGeomType eGeomType);
2544  SCCOL GetLOKFreezeCol(SCTAB nTab) const;
2545  SCROW GetLOKFreezeRow(SCTAB nTab) const;
2546  bool SetLOKFreezeCol(SCCOL nFreezeCol, SCTAB nTab);
2547  bool SetLOKFreezeRow(SCROW nFreezeRow, SCTAB nTab);
2549 private:
2557  {
2558  public:
2559  explicit NumFmtMergeHandler(ScDocument& rDoc, const ScDocument& rSrcDoc);
2562  private:
2564  };
2566  ScTable* FetchTable( SCTAB nTab );
2567  const ScTable* FetchTable( SCTAB nTab ) const;
2569  void MergeNumberFormatter(const ScDocument& rSrcDoc);
2571  void ImplCreateOptions(); // Suggestion: switch to on-demand?
2572  void ImplDeleteOptions();
2574  void DeleteDrawLayer();
2575  SC_DLLPUBLIC bool DrawGetPrintArea( ScRange& rRange, bool bSetHor, bool bSetVer ) const;
2577  void UpdateDrawPrinter();
2578  void UpdateDrawLanguages();
2579  SC_DLLPUBLIC void InitClipPtrs( ScDocument* pSourceDoc );
2581  void LoadDdeLinks(SvStream& rStream);
2582  void SaveDdeLinks(SvStream& rStream) const;
2584  void DeleteAreaLinksOnTab( SCTAB nTab );
2585  void UpdateRefAreaLinks( UpdateRefMode eUpdateRefMode,
2586  const ScRange& r, SCCOL nDx, SCROW nDy, SCTAB nDz );
2588  void CopyRangeNamesToClip(ScDocument* pClipDoc, const ScRange& rClipRange, const ScMarkData* pMarks);
2590  bool HasPartOfMerged( const ScRange& rRange );
2592  ScRefCellValue GetRefCellValue( const ScAddress& rPos );
2595  std::map< SCTAB, ScSortParam > mSheetSortParams;
2597  SCSIZE GetPatternCount( SCTAB nTab, SCCOL nCol ) const;
2598  SCSIZE GetPatternCount( SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2 ) const;
2599  void ReservePatternCount( SCTAB nTab, SCCOL nCol, SCSIZE nReserve );
2601  void SharePooledResources( const ScDocument* pSrcDoc );
2604  sc::EndListeningContext& rCxt, const ScAddress& rPos, std::vector<ScAddress>* pGroupPos );
2607  sc::EndListeningContext& rCxt, const ScRange& rRange, std::vector<ScAddress>* pGroupPos );
2609  void EndListeningGroups( const std::vector<ScAddress>& rPosArray );
2610  void SetNeedsListeningGroups( const std::vector<ScAddress>& rPosArray );
2611 };
2613 typedef std::unique_ptr<ScDocument, o3tl::default_delete<ScDocument>> ScDocumentUniquePtr;
2621 {
2622 #ifndef NDEBUG
2624  : mnFlagRestore(rDocument.mnMutationGuardFlags)
2625  , mrDocument(rDocument)
2626  {
2627  assert((mnFlagRestore & nFlags) == 0);
2628  mrDocument.mnMutationGuardFlags |= static_cast<size_t>(nFlags);
2629  }
2631  {
2633  }
2636 #else
2638  {
2639  (void)rDocument; (void)nFlags;
2640  }
2641 #endif
2642 };
2654 {
2655 #ifndef NDEBUG
2657  : mnFlags(static_cast<size_t>(nFlags))
2658  , mrDocument(rDocument)
2659  {
2661  }
2664  {
2666  }
2667  size_t mnFlags;
2669 #else
2670  ScMutationGuard(ScDocument& rDocument, ScMutationGuardFlags nFlags)
2671  {
2672  (void)rDocument; (void)nFlags;
2673  }
2674 #endif
2675 };
2678 {
2681 public:
2683  : mrDoc(rDoc)
2684  {
2685  assert(!mrDoc.IsInDocShellRecalc());
2686  mrDoc.SetDocShellRecalc(true);
2687  }
2690  {
2691  mrDoc.SetDocShellRecalc(false);
2692  }
2693 };
2695 #endif
2697 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SC_DLLPUBLIC void UpdateTranspose(const ScAddress &rDestPos, ScDocument *pClipDoc, const ScMarkData &rMark, ScDocument *pUndoDoc)
Definition: documen3.cxx:1104
exports util
void FillTabMarked(SCTAB nSrcTab, const ScMarkData &rMark, InsertDeleteFlags nFlags, ScPasteFunc nFunction, bool bSkipEmpty, bool bAsLink)
Definition: document.cxx:3296
SC_DLLPUBLIC OUString GetLinkDoc(SCTAB nTab) const
Definition: documen3.cxx:506
SC_DLLPUBLIC bool IsDocProtected() const
Definition: documen3.cxx:1879
void AddDelayedFormulaGroupingCell(const ScFormulaCell *cell)
To be used only by SharedFormulaUtil::joinFormulaCells().
Definition: document10.cxx:392
SC_DLLPUBLIC bool GetPrintArea(SCTAB nTab, SCCOL &rEndCol, SCROW &rEndRow, bool bNotes=true) const
Definition: documen2.cxx:573
void SetThreadedGroupCalcInProgress(bool set)
Definition: document.hxx:624
Matrix data type that can store values of mixed types.
Definition: scmatrix.hxx:113
bool IsInFormulaTree(const ScFormulaCell *pCell) const
Definition: documen7.cxx:321
bool GetNextMarkedCell(SCCOL &rCol, SCROW &rRow, SCTAB nTab, const ScMarkData &rMark)
Definition: documen4.cxx:539
OUString GetLinkOpt(SCTAB nTab) const
Definition: documen3.cxx:520
SC_DLLPUBLIC const ScPatternAttr * GetMostUsedPattern(SCCOL nCol, SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const
Definition: document.cxx:4750
bool mbEmbedFontScriptComplex
Definition: document.hxx:566
SC_DLLPUBLIC const css::uno::Reference< css::i18n::XBreakIterator > & GetBreakIterator()
Definition: documen6.cxx:40
void BeginDrawUndo()
Definition: documen9.cxx:58
bool IsInDocShellRecalc() const
Definition: document.hxx:2531
void ClearDetectiveOperations()
Definition: documen4.cxx:898
void RemoveMerge(SCCOL nCol, SCROW nRow, SCTAB nTab)
Definition: documen3.cxx:2069
ScCalcConfig maCalcConfig
Definition: document.hxx:371
bool IsBlockEditable(SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool *pOnlyNotBecauseOfMatrix=nullptr, bool bNoMatrixAtAll=false) const
Definition: document.cxx:5327
ScMutationGuard(ScDocument &rDocument, ScMutationGuardFlags nFlags)
Definition: document.hxx:2656
void AssertNoInterpretNeeded(const ScAddress &rPos, SCROW nLength)
Definition: document.cxx:1807
SC_DLLPUBLIC ScDPObject * GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const
Definition: documen3.cxx:372
SC_DLLPUBLIC void ShowCol(SCCOL nCol, SCTAB nTab, bool bShow)
Definition: document.cxx:4298
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)
Definition: fillinfo.cxx:346
bool IsValidAsianKerning() const
Definition: documen9.cxx:647
bool CanFitBlock(const ScRange &rOld, const ScRange &rNew)
Definition: document.cxx:1831
std::shared_ptr< SvxForbiddenCharactersTable > xForbiddenCharacters
Definition: document.hxx:406
constexpr double nPPTY
void DeleteCol(SCROW nStartRow, SCTAB nStartTab, SCROW nEndRow, SCTAB nEndTab, SCCOL nStartCol, SCSIZE nSize, ScDocument *pRefUndoDoc=nullptr, bool *pUndoOutline=nullptr, const ScMarkData *pTabMark=nullptr)
Definition: document.cxx:1586
void IncInDdeLinkUpdate()
Definition: document.hxx:1018
std::unique_ptr< ScFieldEditEngine > mpEditEngine
Definition: document.hxx:374
void EnableIdle(bool bDo)
Definition: document.hxx:2118
void ClearLookupCaches()
Zap all caches.
Definition: documen2.cxx:1193
void UpdatePageBreaks(SCTAB nTab, const ScRange *pUserArea=nullptr)
Definition: document.cxx:6221
static SC_DLLPUBLIC bool bThreadedGroupCalcInProgress
Calc's threaded group calculation is in progress.
Definition: global.hxx:813
SC_DLLPUBLIC void ApplySelectionStyle(const ScStyleSheet &rStyle, const ScMarkData &rMark)
Definition: document.cxx:4859
VclPtr< SfxPrinter > mpPrinter
Definition: document.hxx:377
bool HasExternalRefManager() const
Definition: document.hxx:1003
bool bIsUndo
Definition: document.hxx:499
void ApplyStyle(SCCOL nCol, SCROW nRow, SCTAB nTab, const ScStyleSheet &rStyle)
Definition: document.cxx:4829
void DeleteRow(SCCOL nStartCol, SCTAB nStartTab, SCCOL nEndCol, SCTAB nEndTab, SCROW nStartRow, SCSIZE nSize, ScDocument *pRefUndoDoc=nullptr, bool *pUndoOutline=nullptr, const ScMarkData *pTabMark=nullptr)
Definition: document.cxx:1367
bool RefreshAutoFilter(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab)
Definition: document.cxx:5672
bool bStyleSheetUsageInvalid
Definition: document.hxx:549
void ExtendHidden(SCCOL &rX1, SCROW &rY1, SCCOL &rX2, SCROW &rY2, SCTAB nTab)
Definition: document.cxx:4706
void StripHidden(SCCOL &rX1, SCROW &rY1, SCCOL &rX2, SCROW &rY2, SCTAB nTab)
Definition: document.cxx:4700
void ClearSelectionItems(const sal_uInt16 *pWhich, const ScMarkData &rMark)
Definition: document.cxx:5920
sal_uLong GetXMLImportedFormulaCount() const
Definition: document.hxx:2357
::boost::intrusive_ptr< ScFormulaCellGroup > ScFormulaCellGroupRef
Definition: types.hxx:44
SCCOL SanitizeCol(SCCOL nCol) const
Definition: document.hxx:881
SC_DLLPUBLIC void ApplyStyleAreaTab(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, const ScStyleSheet &rStyle)
Definition: document.cxx:4851
ScFormulaCell * pFormulaTree
Definition: document.hxx:391
SC_DLLPUBLIC bool HasColHeader(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab)
Definition: documen3.cxx:1508
void FitBlock(const ScRange &rOld, const ScRange &rNew, bool bClear=true)
Definition: document.cxx:1862
SC_DLLPUBLIC const ScRange * GetRepeatColRange(SCTAB nTab)
Definition: document.cxx:6287
SC_DLLPUBLIC ScDBCollection * GetDBCollection() const
Definition: document.hxx:816
void DeleteConditionalFormat(sal_uLong nIndex, SCTAB nTab)
Definition: documen4.cxx:879
SC_DLLPUBLIC void ShowRows(SCROW nRow1, SCROW nRow2, SCTAB nTab, bool bShow)
Definition: document.cxx:4310
SfxItemSet * GetPreviewFont()
Definition: document.hxx:1340
void GetClipStart(SCCOL &nClipX, SCROW &nClipY)
Definition: document.cxx:3170
void IncXMLImportedFormulaCount(sal_uLong nVal)
Definition: document.hxx:2358
bool HasScenarioRange(SCTAB nTab, const ScRange &rRange) const
Definition: documen3.cxx:859
bool HasUnoRefUndo() const
Definition: document.hxx:1065
void EndChangeTracking()
Definition: documen2.cxx:267
SC_DLLPUBLIC void ApplyPatternIfNumberformatIncompatible(const ScRange &rRange, const ScMarkData &rMark, const ScPatternAttr &rPattern, SvNumFormatType nNewType)
Definition: document.cxx:4794
SC_DLLPUBLIC void SetScenario(SCTAB nTab, bool bFlag)
Definition: documen3.cxx:421
SC_DLLPUBLIC bool GetDataStart(SCTAB nTab, SCCOL &rStartCol, SCROW &rStartRow) const
Definition: documen2.cxx:641
std::unique_ptr< ScChangeTrack > pChangeTrack
Definition: document.hxx:399
SC_DLLPUBLIC svl::SharedStringPool & GetSharedStringPool()
Definition: documen2.cxx:563
void SetForcedFormulas(bool bVal)
Definition: document.hxx:2307
sal_uLong nFormulaCount
Definition: document.hxx:279
void SetConsolidateDlgData(std::unique_ptr< ScConsolidateParam > pData)
Definition: documen2.cxx:1104
SC_DLLPUBLIC bool IsTabProtected(SCTAB nTab) const
Definition: documen3.cxx:1890
SC_DLLPUBLIC void GetInputString(SCCOL nCol, SCROW nRow, SCTAB nTab, OUString &rString)
Definition: document.cxx:3540
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:43
void InvalidateTextWidth(const OUString &rStyleName)
Definition: documen8.cxx:295
std::unique_ptr< ScPatternAttr > CreateSelectionPattern(const ScMarkData &rMark, bool bDeep=true)
Definition: document.cxx:5056
Store parameters used in the ScDocument::SetString() method.
Definition: stringutil.hxx:35
SC_DLLPUBLIC bool HasPrintRange()
Definition: document.cxx:6250
sal_uInt16 nInterpretLevel
Definition: document.hxx:468
void HandleStuffAfterParallelCalculation(SCCOL nColStart, SCCOL nColEnd, SCROW nRow, size_t nLen, SCTAB nTab, ScInterpreter *pInterpreter)
Definition: documen8.cxx:429
SC_DLLPUBLIC CRFlags GetColFlags(SCCOL nCol, SCTAB nTab) const
Definition: document.cxx:4328
VclPtr< VirtualDevice > mpVirtualDevice_100th_mm
Definition: document.hxx:378
void SetEmbedUsedFontsOnly(bool bUse)
Definition: document.hxx:588
bool IsInInterpreter() const
Definition: document.hxx:2310
bool bChartListenerCollectionNeedsUpdate
Definition: document.hxx:515
void LoadDdeLinks(SvStream &rStream)
Definition: documen8.cxx:745
void SetCutMode(bool bCut)
Definition: document.cxx:2055
Definition: global.hxx:193
SC_DLLPUBLIC bool IsNegativePage(SCTAB nTab) const
Definition: document.cxx:1002
Use this to lock all charts in the calc for a little time.
Definition: chartlock.hxx:53
ScUnoListenerCalls stores notifications to XModifyListener that can't be processed during BroadcastUn...
bool IsEnabledDelayStartListeningFormulaCells(ScColumn *column) const
Definition: document10.cxx:422
bool mbUndoEnabled
Definition: document.hxx:551
bool bInDtorClear
Definition: document.hxx:519
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. ...
Definition: documen8.cxx:402
ScValidationDataList * GetValidationList()
Definition: document.hxx:1793
SC_DLLPUBLIC ScRangeName * GetRangeName() const
Definition: documen3.cxx:176
ScInterpreterContext & GetThreadedContext() const
Definition: document.hxx:618
SCTAB nVisibleTab
Definition: document.hxx:485
OUString maFileURL
Definition: document.hxx:424
void SetEmbedFontScriptComplex(bool bUse)
Definition: document.hxx:591
std::unique_ptr< ScRefreshTimerControl > const & GetRefreshTimerControlAddress() const
Definition: document.hxx:2418
bool UpdateOutlineCol(SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab, bool bShow)
Adapt Outline.
Definition: documen3.cxx:1403
SC_DLLPUBLIC void SetChangeViewSettings(const ScChangeViewSettings &rNew)
Definition: documen2.cxx:1109
void SetPreviewSelection(const ScMarkData &rSel)
Definition: documen2.cxx:1357
SCSIZE Query(SCTAB nTab, const ScQueryParam &rQueryParam, bool bKeepSub)
Definition: documen3.cxx:1446
SC_DLLPUBLIC void SetTabProtection(SCTAB nTab, const ScTableProtection *pProtect)
Definition: documen3.cxx:1907
const OUString & GetFileURL() const
Definition: document.hxx:606
void CopyCellToDocument(const ScAddress &rSrcPos, const ScAddress &rDestPos, ScDocument &rDestDoc)
Copy only cell, nothing but cell to another document.
Definition: document.cxx:2263
SC_DLLPUBLIC void DoMergeContents(SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow)
Definition: documen3.cxx:2015
Definition: global.hxx:318
void SetSheetEvents(SCTAB nTab, std::unique_ptr< ScSheetEvents > pNew)
Definition: documen3.cxx:661
const css::uno::Reference< css::script::vba::XVBAEventProcessor > & GetVbaEventProcessor() const
Definition: document.hxx:2435
SC_DLLPUBLIC void CopyFromClip(const ScRange &rDestRange, const ScMarkData &rMark, InsertDeleteFlags nInsFlag, ScDocument *pRefUndoDoc, ScDocument *pClipDoc, bool bResetCut=true, bool bAsLink=false, bool bIncludeFiltered=true, bool bSkipAttrForEmpty=false, const ScRangeList *pDestRanges=nullptr)
If pDestRanges is given it overrides rDestRange, rDestRange in this case is the overall encompassing ...
Definition: document.cxx:2798
SCROW FirstNonFilteredRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const
Definition: document.cxx:4531
ScTable * FetchTable(SCTAB nTab)
Definition: document.cxx:2505
void SetAsianKerning(bool bNew)
Definition: documen9.cxx:660
void RegroupFormulaCells(SCTAB nTab, SCCOL nCol)
Definition: document10.cxx:361
void SetRepeatArea(SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCROW nEndRow)
Definition: document.cxx:6209
Provides methods to allow direct shifting of document content without broadcasting or shifting of bro...
void ReservePatternCount(SCTAB nTab, SCCOL nCol, SCSIZE nReserve)
Definition: documen3.cxx:2108
void LimitChartIfAll(ScRangeListRef &rRangeList)
Definition: document.cxx:1123
SC_DLLPUBLIC bool IsActiveScenario(SCTAB nTab) const
Definition: documen3.cxx:872
SC_DLLPUBLIC void SetAnonymousDBData(SCTAB nTab, std::unique_ptr< ScDBData > pDBData)
Definition: document.cxx:319
std::unique_ptr< ScClipParam > mpClipParam
Definition: document.hxx:413
void SetInLinkUpdate(bool bSet)
Definition: documen8.cxx:774
sheet protection state container
std::unique_ptr< ScFieldEditEngine > pCacheFieldEditEngine
Definition: document.hxx:410
SC_DLLPUBLIC void SetTabBgColor(SCTAB nTab, const Color &rColor)
Definition: documen3.cxx:450
SfxObjectShell * mpShell
Definition: document.hxx:376
ScRangePairList * GetColNameRanges()
Definition: document.hxx:808
SC_DLLPUBLIC void SetDrawPageSize(SCTAB nTab)
Definition: documen9.cxx:193
SC_DLLPUBLIC bool InsertTabs(SCTAB nPos, const std::vector< OUString > &rNames, bool bNamesValid=false)
Definition: document.cxx:592
ScInterpreterContext maInterpreterContext
Definition: document.hxx:478
SC_DLLPUBLIC const ScFormulaCell * GetFormulaCell(const ScAddress &rPos) const
Definition: document.cxx:3723
Think of this as a mini-ScColumn like storage that only stores cell values in a column.
Definition: cellvalues.hxx:42
Definition: global.hxx:236
bool IsAddressInRangeName(RangeNameScope eScope, const ScAddress &rAddress)
Definition: documen3.cxx:196
void CopyScenario(SCTAB nSrcTab, SCTAB nDestTab, bool bNewScenario=false)
Definition: documen3.cxx:803
SC_DLLPUBLIC sal_uLong GetFormulaGroupCount() const
Definition: document.cxx:6148
bool IsExpandRefs() const
Definition: document.hxx:2355
SC_DLLPUBLIC void CopyStdStylesFrom(const ScDocument &rSrcDoc)
Definition: documen8.cxx:288
bool IsEmbedFontScriptLatin() const
Definition: document.hxx:583
void FillMatrix(ScMatrix &rMat, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, svl::SharedStringPool *pPool=nullptr) const
Definition: documen8.cxx:384
void CompileColRowNameFormula()
Definition: documen4.cxx:566
SC_DLLPUBLIC void TransposeClip(ScDocument *pTransClip, InsertDeleteFlags nFlags, bool bAsLink)
Definition: document.cxx:2328
ScDetOpList * GetDetOpList() const
Definition: document.hxx:1765
SC_DLLPUBLIC bool IsUserInteractionEnabled() const
Definition: document.hxx:1542
SCROW GetLOKFreezeRow(SCTAB nTab) const
sc::IconSetBitmapMap & GetIconSetBitmapMap()
Definition: documen2.cxx:1383
SC_DLLPUBLIC bool HasTabNotes(SCTAB nTab) const
Definition: document.cxx:6566
sal_uIntPtr sal_uLong
SC_DLLPUBLIC void CompileHybridFormula()
Call this immediately after updating named ranges.
Definition: document10.cxx:316
bool ValidRange(const ScRange &rRange) const
Definition: document.hxx:879
bool mbUserInteractionEnabled
Definition: document.hxx:555
Context for reference update during shifting, moving or copying of cell ranges.
SC_DLLPUBLIC std::vector< OUString > GetAllTableNames() const
Definition: document.cxx:287
SC_DLLPUBLIC bool ValidNewTabName(const OUString &rName) const
Definition: document.cxx:374
const sal_uInt8 SC_DDE_DEFAULT
Definition: document.hxx:291
SC_DLLPUBLIC void ClearPrintRanges(SCTAB nTab)
Removes all print ranges.
Definition: document.cxx:6303
void SetName(const OUString &r)
Definition: document.hxx:603
SC_DLLPUBLIC bool ApplyFlagsTab(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, ScMF nFlags)
Definition: document.cxx:5012
Enumeration to determine which pieces of the code should not be mutated when set. ...
Definition: document.hxx:313
SC_DLLPUBLIC bool InitColumnBlockPosition(sc::ColumnBlockPosition &rBlockPos, SCTAB nTab, SCCOL nCol)
Definition: document.cxx:2611
bool mbStreamValidLocked
Definition: document.hxx:554
exports embed
std::shared_ptr< sc::FormulaGroupContext > & GetFormulaGroupContext()
Definition: document.cxx:3524
SC_DLLPUBLIC ScDPCollection * GetDPCollection()
Definition: documen3.cxx:360
bool IsUndo() const
Definition: document.hxx:1529
List of RefUpdate changes made to UNO objects during ScUpdateRefHint broadcast.
Definition: unoreflist.hxx:42
sal_Int16 mnNamedRangesLockCount
Definition: document.hxx:557
ScInterpreterContext * pContext
Definition: document.hxx:300
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.
Definition: documen8.cxx:991
void ApplySelectionLineStyle(const ScMarkData &rMark, const ::editeng::SvxBorderLine *pLine, bool bColorOnly)
Definition: document.cxx:4882
static const sal_uInt16 nSrcVer
Definition: document.hxx:482
SC_DLLPUBLIC void InitUndo(const ScDocument &rSrcDoc, SCTAB nTab1, SCTAB nTab2, bool bColInfo=false, bool bRowInfo=false)
Definition: document.cxx:2010
bool IsInDdeLinkUpdate() const
Definition: document.hxx:1020
SC_DLLPUBLIC void SetColHidden(SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab, bool bHidden)
Definition: document.cxx:4467
rtl::Reference< XColorList > pColorList
Definition: document.hxx:380
void BlockFormulaGroupContextDiscard(bool block)
Definition: document.hxx:1190
normal calculation of dependencies
void ModifyStyleSheet(SfxStyleSheetBase &rPageStyle, const SfxItemSet &rChanges)
Definition: documen8.cxx:209
void SetDirtyFromClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, InsertDeleteFlags nInsFlag, sc::ColumnSpanSet &rBroadcastSpans)
Definition: document.cxx:2594
const ScMarkData & GetPreviewSelection() const
Definition: document.hxx:1342
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)
Definition: document.cxx:4253
void SetPendingRowHeights(SCTAB nTab, bool bSet)
Definition: document.cxx:944
rtl_TextEncoding eSrcSet
Definition: document.hxx:460
bool IsTrackFormulasPending() const
Definition: document.hxx:2295
sal_uLong GetCodeCount() const
Definition: document.cxx:6161
sal_uInt16 nFormulaTrackCount
Definition: document.hxx:483
Store position data for column array storage.
ScDocumentThreadSpecific maNonThreaded
Definition: document.hxx:472
bool HasPartOfMerged(const ScRange &rRange)
Definition: document.cxx:1738
void DecInterpreterTableOpLevel()
Definition: document.hxx:2343
void CopyMultiRangeFromClip(const ScAddress &rDestPos, const ScMarkData &rMark, InsertDeleteFlags nInsFlag, ScDocument *pClipDoc, bool bResetCut=true, bool bAsLink=false, bool bIncludeFiltered=true, bool bSkipAttrForEmpty=false)
Definition: document.cxx:3015
SC_DLLPUBLIC const ScDBData * GetDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const
Definition: documen3.cxx:333
Cache for faster lookup of automatic names during CompileXML (during CompileXML, no document content ...
bool IsClipOrUndo() const
Definition: document.hxx:1528
void EndListeningIntersectedGroup(sc::EndListeningContext &rCxt, const ScAddress &rPos, std::vector< ScAddress > *pGroupPos)
Definition: document10.cxx:464
void SC_DLLPUBLIC SetSortParam(const ScSortParam &rParam, SCTAB nTab)
Definition: documen3.cxx:2119
Stores cell values for multiple tables.
Definition: cellvalues.hxx:87
SC_DLLPUBLIC void SetRepeatColRange(SCTAB nTab, std::unique_ptr< ScRange > pNew)
Definition: document.cxx:6321
SC_DLLPUBLIC SCROW FirstVisibleRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const
Definition: document.cxx:4475
SC_DLLPUBLIC void GetNumberFormat(SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt32 &rFormat) const
Definition: document.cxx:3641
OString dumpSheetGeomData(SCTAB nTab, bool bColumns, SheetGeomType eGeomType)
Serializes the specified sheet's geometry data.
SvtBroadcaster * GetBroadcaster(const ScAddress &rPos)
Definition: document.cxx:2454
SC_DLLPUBLIC sal_uLong AddCondFormat(std::unique_ptr< ScConditionalFormat > pNew, SCTAB nTab)
Definition: documen4.cxx:705
SC_DLLPUBLIC bool DeleteTabs(SCTAB nTab, SCTAB nSheets)
Definition: document.cxx:761
Extended options held by an ScDocument containing additional settings for filters.
Definition: scextopt.hxx:77
SC_DLLPUBLIC SCROW LastVisibleRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const
Definition: document.cxx:4483
bool bLoadingMedium
Definition: document.hxx:508
SC_DLLPUBLIC void SetLayoutRTL(SCTAB nTab, bool bRTL)
Definition: document.cxx:950
bool InsertCol(SCROW nStartRow, SCTAB nStartTab, SCROW nEndRow, SCTAB nEndTab, SCCOL nStartCol, SCSIZE nSize, ScDocument *pRefUndoDoc=nullptr, const ScMarkData *pTabMark=nullptr)
Definition: document.cxx:1499
bool bCalcingAfterLoad
Definition: document.hxx:510
HardRecalcState eHardRecalcState
Definition: document.hxx:484
VirtualDevice * GetVirtualDevice_100th_mm()
Definition: documen8.cxx:181
SC_DLLPUBLIC double * GetValueCell(const ScAddress &rPos)
Return a pointer to the double value stored in value cell.
Definition: document.cxx:3508
Stores options which are only relevant for clipboard documents.
Definition: clipoptions.hxx:19
ScDocShellRecalcGuard(ScDocument &rDoc)
Definition: document.hxx:2682
SC_DLLPUBLIC void SetValue(SCCOL nCol, SCROW nRow, SCTAB nTab, const double &rVal)
Definition: document.cxx:3458
SC_DLLPUBLIC void InsertTableOp(const ScTabOpParam &rParam, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark)
Definition: documen4.cxx:355
sal_Int64 GetNewUnoId()
Definition: document.hxx:1068
This is very similar to ScCellValue, except that it references the original value instead of copying ...
Definition: cellvalue.hxx:104
SC_DLLPUBLIC formula::FormulaGrammar::Grammar GetGrammar() const
Definition: document.hxx:985
sal_uInt16 nInterpreterTableOpLevel
Definition: document.hxx:470
bool IsHorOverlapped(SCCOL nCol, SCROW nRow, SCTAB nTab) const
Definition: document.cxx:5729
void GetEmbedded(ScRange &rRange) const
Definition: documen3.cxx:1685
bool InsertNewRangeName(const OUString &rName, const ScAddress &rPos, const OUString &rExpr)
Insert a new named expression to the global scope.
Definition: documen3.cxx:218
SC_DLLPUBLIC bool CreateQueryParam(const ScRange &rRange, ScQueryParam &rQueryParam)
Definition: documen3.cxx:1463
SC_DLLPUBLIC ScDBData * GetAnonymousDBData()
Definition: document.cxx:330
std::unique_ptr< ScExtDocOptions > pExtDocOptions
Definition: document.hxx:430
SC_DLLPUBLIC ScRange GetRange(SCTAB nTab, const tools::Rectangle &rMMRect, bool bHiddenAsZero=true) const
Definition: documen3.cxx:1782
std::unique_ptr< ScValidationDataList > pValidationList
Definition: document.hxx:381
void AppendToFormulaTrack(ScFormulaCell *pCell)
Definition: documen7.cxx:451
const sal_uInt8 SC_DDE_TEXT
Definition: document.hxx:293
SC_DLLPUBLIC void ApplyAttr(SCCOL nCol, SCROW nRow, SCTAB nTab, const SfxPoolItem &rAttr)
Definition: document.cxx:4757
Accessor class to ScDocument.
bool bImportingXML
Definition: document.hxx:509
ScFormulaVectorState GetFormulaVectorState(const ScAddress &rPos) const
Definition: document.cxx:1769
void SetPreviewFont(std::unique_ptr< SfxItemSet > pFontSet)
Definition: documen2.cxx:1352
Lookup cache for one range used with interpreter functions such as VLOOKUP and MATCH.
Definition: lookupcache.hxx:40
void ApplyAsianEditSettings(ScEditEngineDefaulter &rEngine)
Definition: documen9.cxx:669
sc::DocumentLinkManager & GetDocLinkManager()
Definition: documen2.cxx:225
void SetClipOptions(std::unique_ptr< ScClipOptions > pClipOptions)
Definition: documen3.cxx:2010
bool IsLinked(SCTAB nTab) const
Definition: documen3.cxx:480
SC_DLLPUBLIC SfxUndoManager * GetUndoManager()
Definition: document.cxx:6376
SC_DLLPUBLIC void SetRowBreak(SCROW nRow, SCTAB nTab, bool bPage, bool bManual)
Definition: document.cxx:4389
void SetPrinter(VclPtr< SfxPrinter > const &pNewPrinter)
Definition: documen8.cxx:141
bool HasStringWeakCharacters(const OUString &rString)
Definition: documen6.cxx:51
css::uno::Sequence< css::sheet::TablePageBreakData > GetRowBreakData(SCTAB nTab) const
Definition: document.cxx:4421
ScFormulaCell * pEOFormulaTrack
Definition: document.hxx:394
void SetHardRecalcState(HardRecalcState eVal)
Definition: document.hxx:2301
SCSIZE GetPatternCount(SCTAB nTab, SCCOL nCol) const
Definition: documen3.cxx:2092
void GetClipArea(SCCOL &nClipX, SCROW &nClipY, bool bIncludeFiltered)
Definition: document.cxx:3118
bool DoSubTotals(SCTAB nTab, ScSubTotalParam &rParam)
Definition: documen3.cxx:772
SC_DLLPUBLIC void Fill(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, ScProgress *pProgress, const ScMarkData &rMark, sal_uLong nFillCount, FillDir eFillDir=FILL_TO_BOTTOM, FillCmd eFillCmd=FILL_LINEAR, FillDateCmd eFillDateCmd=FILL_DAY, double nStepValue=1.0, double nMaxValue=1E307)
Definition: documen3.cxx:1148
std::map< SCTAB, ScSortParam > mSheetSortParams
Definition: document.hxx:2595
SC_DLLPUBLIC void SetVisible(SCTAB nTab, bool bVisible)
Definition: document.cxx:901
SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention GetAddressConvention() const
Definition: documen3.cxx:489
bool ValidColRowTab(SCCOL nCol, SCROW nRow, SCTAB nTab) const
Definition: document.hxx:878
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)
Definition: documen4.cxx:69
sal_uLong nXMLImportedFormulaCount
Definition: document.hxx:467
SC_DLLPUBLIC bool HasAttrib(SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2, HasAttrFlags nMask) const
Definition: document.cxx:5179
bool HasAutoFilter(SCCOL nCol, SCROW nRow, SCTAB nTab)
Definition: documen3.cxx:1476
std::unique_ptr< ScPrintRangeSaver > CreatePrintRangeSaver() const
Definition: document.cxx:6333
void UpdateChartArea(const OUString &rChartName, const ScRange &rNewArea, bool bColHeaders, bool bRowHeaders, bool bAdd)
Definition: documen5.cxx:129
::std::map< SCTAB, const ScRangeName * > TabNameCopyMap
Map that stores non-managed pointers to ScRangeName instances.
Definition: rangenam.hxx:194
void GetNotesInRange(const ScRangeList &rRange, std::vector< sc::NoteEntry > &rNotes) const
Definition: document.cxx:6766
void EndListeningGroups(const std::vector< ScAddress > &rPosArray)
Definition: document10.cxx:489
bool TableExists(SCTAB nTab) const
Definition: document.cxx:2500
void UpdateChart(const OUString &rName)
Definition: documen5.cxx:335
SC_DLLPUBLIC SvtScriptType GetStringScriptType(const OUString &rString)
Definition: documen6.cxx:76
SvNumberFormatterIndexTable * pFormatExchangeList
Definition: document.hxx:382
SC_DLLPUBLIC void GetFormula(SCCOL nCol, SCROW nRow, SCTAB nTab, OUString &rFormula) const
Definition: document.cxx:3715
bool IsAdjustHeightLocked() const
Definition: document.hxx:1535
SC_DLLPUBLIC ScBreakType HasRowBreak(SCROW nRow, SCTAB nTab) const
Definition: document.cxx:4359
SC_DLLPUBLIC sal_uInt16 GetRowHeight(SCROW nRow, SCTAB nTab, bool bHiddenAsZero=true) const
Definition: document.cxx:4161
void StartAnimations(SCTAB nTab)
Definition: documen9.cxx:317
SC_DLLPUBLIC ScNoteEditEngine & GetNoteEngine()
Definition: documen2.cxx:467
void SetClipParam(const ScClipParam &rParam)
Definition: document.cxx:2557
bool mbChangeReadOnlyEnabled
Definition: document.hxx:553
ScAddress aCurTextWidthCalcPos
Definition: document.hxx:444
void AddUnoRefChange(sal_Int64 nId, const ScRangeList &rOldRanges)
Definition: documen3.cxx:994
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.
Definition: document.cxx:3431
exports sheet
void MixDocument(const ScRange &rRange, ScPasteFunc nFunction, bool bSkipEmpty, ScDocument &rSrcDoc)
Definition: document.cxx:3208
void RemoveFromFormulaTrack(ScFormulaCell *pCell)
Definition: documen7.cxx:467
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
Definition: document.cxx:5247
bool GetNextSpellingCell(SCCOL &nCol, SCROW &nRow, SCTAB nTab, bool bInSel, const ScMarkData &rMark) const
Definition: documen4.cxx:530
std::unique_ptr< SfxBroadcaster > pUnoBroadcaster
Definition: document.hxx:400
Row-wise value iterator.
Definition: dociter.hxx:479
std::map< sal_uInt16, sal_uInt32 > SvNumberFormatterIndexTable
SC_DLLPUBLIC void CopyStaticToDocument(const ScRange &rSrcRange, SCTAB nDestTab, ScDocument &rDestDoc)
Copy only raw cell values to another document.
Definition: document.cxx:2247
void UnlockTable(SCTAB nTab)
Definition: document.cxx:5317
bool HasAnySheetEventScript(ScSheetEventId nEvent, bool bWithVbaEvents=false) const
Definition: documen3.cxx:691
bool IsExecuteLinkEnabled() const
Definition: document.hxx:1538
SC_DLLPUBLIC ScDocumentPool * GetPool()
Definition: document.cxx:6061
void Sort(SCTAB nTab, const ScSortParam &rSortParam, bool bKeepQuery, bool bUpdateRefs, ScProgress *pProgress, sc::ReorderParam *pUndo)
Sort a range of data.
Definition: documen3.cxx:1421
void TransliterateText(const ScMarkData &rMultiMark, TransliterationFlags nType)
Definition: documen8.cxx:1208
SC_DLLPUBLIC const ScValidationData * GetValidationEntry(sal_uLong nIndex) const
Definition: documen4.cxx:871
LanguageType eCjkLanguage
Definition: document.hxx:458
void InvalidateTableArea()
Definition: documen4.cxx:576
ScLkUpdMode eLinkMode
Definition: document.hxx:489
SC_DLLPUBLIC bool IsManualRowHeight(SCROW nRow, SCTAB nTab) const
Definition: document.cxx:4555
void CopyNonFilteredFromClip(sc::CopyFromClipContext &rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, SCCOL nDx, SCROW &rClipStartRow)
Definition: document.cxx:2722
SfxPrinter * GetPrinter(bool bCreateIfNotExist=true)
Definition: documen8.cxx:113
void DeleteDrawLayer()
Definition: documen9.cxx:227
SC_DLLPUBLIC void SetImportingXML(bool bVal)
Definition: documen9.cxx:590
size_t GetFormulaHash(const ScAddress &rPos) const
Definition: document.cxx:1760
void SetAllFormulasDirty(const sc::SetFormulaDirtyContext &rCxt)
Definition: document.cxx:3835
SC_DLLPUBLIC void SetGrammar(formula::FormulaGrammar::Grammar eGram)
Definition: documen3.cxx:494
const ScStyleSheet * GetStyle(SCCOL nCol, SCROW nRow, SCTAB nTab) const
Definition: document.cxx:4898
SC_DLLPUBLIC bool GetPrintAreaVer(SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol, SCROW &rEndRow, bool bNotes) const
Definition: documen2.cxx:619
void RepaintRange(const ScRange &rRange)
Definition: documen8.cxx:687
static void SetupFromNonThreadedData(const ScDocumentThreadSpecific &rNonThreadedData)
Definition: document.cxx:6822
bool IsPendingRowHeights(SCTAB nTab) const
Definition: document.cxx:936
SC_DLLPUBLIC ScPostIt * GetNote(const ScAddress &rPos)
Definition: document.cxx:6508
void SetEmbedFontScriptLatin(bool bUse)
Definition: document.hxx:589
SC_DLLPUBLIC bool LinkExternalTab(SCTAB &nTab, const OUString &aDocTab, const OUString &aFileName, const OUString &aTabName)
Definition: documen3.cxx:563
SC_DLLPUBLIC ScConditionalFormatList * GetCondFormList(SCTAB nTab) const
Definition: documen4.cxx:857
CommentCaptionState GetAllNoteCaptionsState(const ScRangeList &rRanges)
Definition: document.cxx:6649
SC_DLLPUBLIC void CheckLinkFormulaNeedingCheck(const ScTokenArray &rCode)
Check token array and set link check if ocDde/ocWebservice is contained.
Definition: documen8.cxx:1152
bool ValidColRowTab(SCCOL nCol, SCROW nRow, SCTAB nTab, SCCOL nMaxCol, SCROW nMaxRow)
Definition: address.hxx:121
bool HandleRefArrayForParallelism(const ScAddress &rPos, SCROW nLength, const ScFormulaCellGroupRef &mxGroup)
Definition: document.cxx:1822
bool bForcedFormulaPending
Definition: document.hxx:496
std::unordered_map< ScColumn *, std::pair< SCROW, SCROW > > pDelayedStartListeningFormulaCells
Definition: document.hxx:533
const std::shared_ptr< SvxForbiddenCharactersTable > & GetForbiddenCharacters() const
Definition: documen9.cxx:611
void SetChartListenerCollectionNeedsUpdate(bool bFlg)
Definition: document.hxx:2150
void DoAutoOutline(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab)
Definition: documen3.cxx:754
SC_DLLPUBLIC bool RenameTab(SCTAB nTab, const OUString &rName, bool bExternalDocument=false)
Definition: document.cxx:853
formula::FormulaGrammar::Grammar eGrammar
Definition: document.hxx:547
ScClipParam & GetClipParam()
Definition: document.cxx:2549
SC_DLLPUBLIC sal_uInt16 GetOriginalWidth(SCCOL nCol, SCTAB nTab) const
Definition: document.cxx:4137
void InvalidateStyleSheetUsage()
Definition: document.hxx:2429
void UpdateReference(sc::RefUpdateContext &rCxt, ScDocument *pUndoDoc=nullptr, bool bIncludeDraw=true, bool bUpdateNoteCaptionPos=true)
Definition: documen3.cxx:1000
ScDocument & mrDocument
Definition: document.hxx:2635
Definition: document.hxx:873
size_t SCSIZE
size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to ...
Definition: address.hxx:45
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW
Definition: types.hxx:24
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
void SetNamedRangesLockCount(sal_Int16 nCount)
Definition: document.hxx:1545
void SetCodeName(const OUString &r)
Definition: document.hxx:605
SC_DLLPUBLIC SCTAB GetTableCount() const
Definition: document.cxx:314
SC_DLLPUBLIC SCROW GetLastFlaggedRow(SCTAB nTab) const
Definition: document.cxx:4572
SvtScriptType GetRangeScriptType(sc::ColumnBlockPosition &rBlockPos, const ScAddress &rPos, SCROW nLength)
Definition: documen6.cxx:183
Additional class containing cell annotation data.
Definition: postit.hxx:160
bool CanDelayStartListeningFormulaCells(ScColumn *column, SCROW row1, SCROW row2)
If true is returned, ScColumn::StartListeningFormulaCells() for the given cells will be performed lat...
Definition: document10.cxx:427
ScFormulaCell * pEOFormulaTree
Definition: document.hxx:392
SC_DLLPUBLIC void PreprocessAllRangeNamesUpdate(const std::map< OUString, std::unique_ptr< ScRangeName >> &rRangeMap)
Call this immediately before updating all named ranges.
Definition: document10.cxx:246
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...
Definition: documen3.cxx:795
SC_DLLPUBLIC void SetColWidth(SCCOL nCol, SCTAB nTab, sal_uInt16 nNewWidth)
Definition: document.cxx:4083
void SetExpandRefs(bool bVal)
Definition: documen2.cxx:305
const ScPatternAttr * GetSelectionPattern(const ScMarkData &rMark)
Definition: document.cxx:5100
bool HasChartAtPoint(SCTAB nTab, const Point &rPos, OUString &rName)
Definition: documen5.cxx:99
bool HasAnyDraw(SCTAB nTab, const tools::Rectangle &rMMRect) const
Definition: documen9.cxx:366
sal_uLong GetFormulaCodeInTree() const
Definition: document.hxx:2308
TableContainer maTabs
Definition: document.hxx:383
bool SetDdeLinkResultMatrix(size_t nDdePos, const ScMatrixRef &pResults)
Sets a result matrix for the specified DDE link.
Definition: documen8.cxx:1022
void SetEmbedFontScriptAsian(bool bUse)
Definition: document.hxx:590
Definition: global.hxx:418
const ScValidationDataList * GetValidationList() const
Definition: document.hxx:1792
Definition: global.hxx:343
std::unique_ptr< ScRefreshTimerControl > pRefreshTimerControl
Definition: document.hxx:405
void DecInDdeLinkUpdate()
Definition: document.hxx:1019
SC_DLLPUBLIC sc::ExternalDataMapper & GetExternalDataMapper()
SC_DLLPUBLIC OUString GetString(SCCOL nCol, SCROW nRow, SCTAB nTab, const ScInterpreterContext *pContext=nullptr) const
Definition: document.cxx:3486
void DecInterpretLevel()
Definition: document.hxx:2318
std::unique_ptr< ScBroadcastAreaSlotMachine > pBASM
Definition: document.hxx:395
bool IsFinalTrackFormulas() const
Definition: document.hxx:2297
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)
Definition: document.cxx:2076
std::unique_ptr< ScConsolidateParam > pConsolidateDlgData
Definition: document.hxx:432
void SetChartListenerCollection(std::unique_ptr< ScChartListenerCollection >, bool bSetChartRangeLists)
Definition: documen3.cxx:407
void SetNoListening(bool bVal)
Definition: document.hxx:2139
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)
Definition: document.cxx:4240
bool bInsertingFromOtherDoc
Definition: document.hxx:507
bool ValidRange(const ScRange &rRange, SCCOL nMaxCol=MAXCOL, SCROW nMaxRow=MAXROW)
Definition: address.hxx:793
SC_DLLPUBLIC void TransferDrawPage(const ScDocument &rSrcDoc, SCTAB nSrcPos, SCTAB nDestPos)
Definition: documen9.cxx:64
SC_DLLPUBLIC bool GetTable(const OUString &rName, SCTAB &rTab) const
Definition: document.cxx:260
SC_DLLPUBLIC ScExternalRefManager * GetExternalRefManager() const
Definition: documen3.cxx:618
SC_DLLPUBLIC bool IsDocVisible() const
Definition: document.hxx:1552
void UpdateScriptTypes(const ScAddress &rPos, SCCOL nColSize, SCROW nRowSize)
Definition: document10.cxx:334
const ScDocumentThreadSpecific & CalculateInColumnInThread(ScInterpreterContext &rContext, const ScRange &rCalcRange, unsigned nThisThread, unsigned nThreadsTotal)
Definition: documen8.cxx:411
bool IsAutoCalcShellDisabled() const
Definition: document.hxx:1363
std::unique_ptr< ScDocProtection > pDocProtection
Definition: document.hxx:412
::boost::intrusive_ptr< ScMatrix > ScMatrixRef
Definition: types.hxx:26
std::map< OUString, BitmapEx > IconSetBitmapMap
Definition: document.hxx:207
OUString aDocCodeName
Definition: document.hxx:423
Walk through all cells in an area.
Definition: dociter.hxx:208
tools::Rectangle GetEmbeddedRect() const
Definition: documen3.cxx:1690
SC_DLLPUBLIC bool HasTable(SCTAB nTab) const
Definition: document.cxx:191
Definition: global.hxx:225
void EndListeningIntersectedGroups(sc::EndListeningContext &rCxt, const ScRange &rRange, std::vector< ScAddress > *pGroupPos)
Definition: document10.cxx:474
bool mbIdleEnabled
Definition: document.hxx:513
void DiscardFormulaGroupContext()
Definition: document.cxx:3533
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
Definition: document.cxx:6094
formula::VectorRefArray FetchVectorRefArray(const ScAddress &rPos, SCROW nLength)
Definition: document.cxx:1797
SC_DLLPUBLIC const ScRange * GetPrintRange(SCTAB nTab, sal_uInt16 nPos)
Definition: document.cxx:6279
std::set< ScFormulaCell * > maSubTotalCells
Definition: document.hxx:559
void SetError(SCCOL nCol, SCROW nRow, SCTAB nTab, const FormulaError nError)
Definition: documen2.cxx:1056
bool RenamePageStyleInUse(const OUString &rOld, const OUString &rNew)
Definition: documen8.cxx:340
bool HasSheetEventScript(SCTAB nTab, ScSheetEventId nEvent, bool bWithVbaEvents=false) const
Definition: documen3.cxx:667
const sal_uInt8 SC_DDE_IGNOREMODE
Definition: document.hxx:294
void RestoreChartListener(const OUString &rName)
Definition: documen5.cxx:363
void CopyTabProtection(SCTAB nTabSrc, SCTAB nTabDest)
Definition: documen3.cxx:1915
void Clear(bool bFromDestructor=false)
Definition: documen9.cxx:498
SCTAB GetMaxTableNumber() const
Definition: document.hxx:806
void EndListeningArea(const ScRange &rRange, bool bGroupListening, SvtListener *pListener)
Definition: documen7.cxx:61
void EndListeningFormulaCells(std::vector< ScFormulaCell * > &rCells)
Definition: documen7.cxx:246
SC_DLLPUBLIC ~ScDocument()
Definition: documen2.cxx:324
Optimized ColumnSpanSet version that operates on a single ScRange.
bool IsEmbedUsedFontsOnly() const
Definition: document.hxx:582
std::unique_ptr< ScDBData > mpAnonymousDBData
Definition: document.hxx:407
sal_uInt16 ColDifferences(SCCOL nThisCol, SCTAB nThisTab, ScDocument &rOtherDoc, SCCOL nOtherCol, SCTAB nOtherTab, SCROW nMaxRow, const SCCOLROW *pOtherRows)
Definition: documen4.cxx:954
bool SetOutlineTable(SCTAB nTab, const ScOutlineTable *pNewOutline)
Definition: documen3.cxx:749
SCROW SanitizeRow(SCROW nRow, SCROW nMaxRow)
Definition: address.hxx:133
void PrepareFormulaCalc()
Call this before any operations that might trigger one or more formula cells to get calculated...
Definition: document.cxx:2448
void PageStyleModified(SCTAB nTab, const OUString &rNewName)
Definition: document.cxx:6174
SC_DLLPUBLIC void SetColWidthOnly(SCCOL nCol, SCTAB nTab, sal_uInt16 nNewWidth)
Definition: document.cxx:4089
SC_DLLPUBLIC void ResetClip(ScDocument *pSourceDoc, const ScMarkData *pMarks)
Definition: documen2.cxx:485
ScBroadcastAreaSlotMachine * GetBASM() const
Definition: document.hxx:2141
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)
Definition: document.cxx:4769
SC_DLLPUBLIC void SetRowHeightOnly(SCROW nStartRow, SCROW nEndRow, SCTAB nTab, sal_uInt16 nNewHeight)
Definition: document.cxx:4108
bool mbTrackFormulasPending
Definition: document.hxx:570
SC_DLLPUBLIC const ScPatternAttr * GetPattern(SCCOL nCol, SCROW nRow, SCTAB nTab) const
Definition: document.cxx:4735
void ReplaceStyle(const SvxSearchItem &rSearchItem, SCCOL nCol, SCROW nRow, SCTAB nTab, const ScMarkData &rMark)
Definition: documen4.cxx:548
SfxUndoManager * mpUndoManager
Definition: document.hxx:373
bool CopyOneCellFromClip(sc::CopyFromClipContext &rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
Definition: document10.cxx:82
void MarkUsedExternalReferences()
Definition: documen3.cxx:632
bool IsPrintEntireSheet(SCTAB nTab) const
Returns true, if the specified sheet is always printed.
Definition: document.cxx:6266
bool bHasForcedFormulas
Definition: document.hxx:517
void FinalTrackFormulas(SfxHintId nHintId)
Definition: documen7.cxx:506
ScChangeTrack * GetChangeTrack() const
Definition: document.hxx:2392
std::unique_ptr< ScDrawLayer > mpDrawLayer
Definition: document.hxx:379
void CopyTabToClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCTAB nTab, ScDocument *pClipDoc)
Definition: document.cxx:2274
bool ColFiltered(SCCOL nCol, SCTAB nTab) const
Definition: document.cxx:4515
bool mbFinalTrackFormulas
Definition: document.hxx:571
void GetFilterEntries(SCCOL nCol, SCROW nRow, SCTAB nTab, ScFilterEntries &rFilterEntries)
Get a list of unique strings to use in filtering criteria.
Definition: documen3.cxx:1535
Stores the used instances of the FilterFormulaParser service implementations, mapped by the formula n...
SC_DLLPUBLIC const SfxPoolItem * GetAttr(SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich) const
Definition: document.cxx:4714
SC_DLLPUBLIC void SetAllRangeNames(const std::map< OUString, std::unique_ptr< ScRangeName >> &rRangeMap)
Definition: documen3.cxx:121
void PutInFormulaTree(ScFormulaCell *pCell)
Definition: documen7.cxx:258
SC_DLLPUBLIC SCCOL GetAllocatedColumnsCount(SCTAB nTab) const
Definition: documen3.cxx:2129
void StylesToNames()
Definition: document.cxx:6122
void StartListeningCell(const ScAddress &rAddress, SvtListener *pListener)
Definition: documen7.cxx:208
void ImplCreateOptions()
Definition: documen8.cxx:100
void SetInsertingFromOtherDoc(bool bVal)
Definition: document.hxx:2133
void SetSrcCharSet(rtl_TextEncoding eNew)
Definition: document.hxx:2050
void ResetEmbedded()
Definition: documen3.cxx:1729
bool GetNoListening() const
Definition: document.hxx:2140
bool IsStreamValid(SCTAB nTab) const
Definition: document.cxx:917
ScStyleSheet * GetPreviewCellStyle()
Definition: document.hxx:1344
bool HasValidationData(SCCOL nCol, SCROW nRow, SCTAB nTab) const
Definition: document.cxx:3809
SC_DLLPUBLIC bool GetCellArea(SCTAB nTab, SCCOL &rEndCol, SCROW &rEndRow) const
Definition: document.cxx:1018
ScRangePairListRef xColNameRanges
Definition: document.hxx:425
bool IsClipboard() const
Definition: document.hxx:1530
SC_DLLPUBLIC bool HasRowHeader(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab)
Definition: documen3.cxx:1514
SC_DLLPUBLIC double GetValue(const ScAddress &rPos) const
Definition: document.cxx:3628
ScMutationDisable(ScDocument &rDocument, ScMutationGuardFlags nFlags)
Definition: document.hxx:2623
SC_DLLPUBLIC const ScDocOptions & GetDocOptions() const
Definition: documen3.cxx:1923
SCCOL SanitizeCol(SCCOL nCol, SCCOL nMaxCol)
Definition: address.hxx:127
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)
Definition: documen4.cxx:257
constexpr double nPPTX
void SetTabNameOnLoad(SCTAB nTab, const OUString &rName)
Definition: document.cxx:484
bool IsPrintEmpty(SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool bLeftIsEmpty=false, ScRange *pLastRange=nullptr, tools::Rectangle *pLastMM=nullptr) const
Definition: documen9.cxx:433
bool HasCalcNotification(SCTAB nTab) const
Definition: documen3.cxx:709
A pretty assertion that checks that the relevant bits in the are not set on the document at entry an...
Definition: document.hxx:2653
bool bInUnoBroadcast
Definition: document.hxx:544
size_t mnMutationGuardFlags
Definition: document.hxx:575
void AddOLEObjectToCollection(const OUString &rName)
Definition: documen5.cxx:645
SC_DLLPUBLIC bool SetEditText(const ScAddress &rPos, std::unique_ptr< EditTextObject > pEditText)
This method manages the lifecycle of the passed edit text object.
Definition: document.cxx:3394
SC_DLLPUBLIC void DumpColumnStorage(SCTAB nTab, SCCOL nCol) const
void AddDetectiveOperation(const ScDetOpData &rData)
Definition: documen4.cxx:890
void InvalidateStreamOnSave()
Definition: document.cxx:495
bool HasDetectiveObjects(SCTAB nTab) const
Definition: documen9.cxx:513
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.
Definition: document.cxx:1096
SC_DLLPUBLIC void SetAutoNameCache(std::unique_ptr< ScAutoNameCache > pCache)
Definition: document.cxx:6799
void SwapNonEmpty(sc::TableValues &rValues)
Definition: document10.cxx:224
bool ValidCol(SCCOL nCol, SCCOL nMaxCol)
Definition: address.hxx:93
ScRefCellValue GetRefCellValue(const ScAddress &rPos)
Definition: documen2.cxx:547
SC_DLLPUBLIC void SetVisibleTab(SCTAB nTab)
Definition: document.hxx:860
Enum used to indicate which portion of the DBArea is to be considered.
Definition: dbdata.hxx:41
Definition: global.hxx:189
SC_DLLPUBLIC bool SetString(SCCOL nCol, SCROW nRow, SCTAB nTab, const OUString &rString, const ScSetStringParam *pParam=nullptr)
Definition: document.cxx:3363
std::unique_ptr< ScViewOptions > pViewOptions
Definition: document.hxx:428
SC_DLLPUBLIC ScDocProtection * GetDocProtection() const
Definition: documen3.cxx:1866
static void MergeBackIntoNonThreadedData(ScDocumentThreadSpecific &rNonThreadedData)
Definition: document.cxx:6828
bool HasOLEObjectsInArea(const ScRange &rRange, const ScMarkData *pTabMark=nullptr)
Definition: documen9.cxx:274
bool IsCellInChangeTrack(const ScAddress &cell, Color *pColCellBorder)
Definition: documen2.cxx:1201
bool HasAnyCalcNotification() const
Definition: documen3.cxx:700
bool HasClipFilteredRows()
Definition: document.cxx:3187
bool bExpandRefs
Definition: document.hxx:524
formula::FormulaGrammar::Grammar eStorageGrammar
The compiler grammar used in document storage.
Definition: document.hxx:464
SC_DLLPUBLIC ScPostIt * GetOrCreateNote(const ScAddress &rPos)
Definition: document.cxx:6599
SC_DLLPUBLIC void SetScenarioData(SCTAB nTab, const OUString &rComment, const Color &rColor, ScScenarioFlags nFlags)
Definition: documen3.cxx:432
SC_DLLPUBLIC ScDrawLayer * GetDrawLayer()
Definition: document.hxx:1059
void SetClipArea(const ScRange &rArea, bool bCut=false)
Definition: document.cxx:3103
Definition: document.hxx:872
T * get() const
sal_uInt16 char * pName
Definition: callform.cxx:58
bool ShrinkToUsedDataArea(bool &o_bShrunk, SCTAB nTab, SCCOL &rStartCol, SCROW &rStartRow, SCCOL &rEndCol, SCROW &rEndRow, bool bColumnsOnly, bool bStickyTopRow=false, bool bStickyLeftCol=false, bool bConsiderCellNotes=false, bool bConsiderCellDrawObjects=false) const
Shrink a range to only include used data area.
Definition: document.cxx:1071
std::unique_ptr< ScUnoRefList > EndUnoRefUndo()
Definition: documen3.cxx:988
const ScStyleSheet * GetSelectionStyle(const ScMarkData &rMark) const
Definition: document.cxx:4906
SC_DLLPUBLIC SvNumberFormatter * GetFormatTable() const
Definition: documen2.cxx:438
SC_DLLPUBLIC bool ColHidden(SCCOL nCol, SCTAB nTab, SCCOL *pFirstCol=nullptr, SCCOL *pLastCol=nullptr) const
Definition: document.cxx:4445
SC_DLLPUBLIC void SetPattern(const ScAddress &, const ScPatternAttr &rAttr)
Definition: document.cxx:5049
bool IsChartListenerCollectionNeedsUpdate() const
Definition: document.hxx:2149
bool IsInsertingFromOtherDoc() const
Definition: document.hxx:2134
void ApplyFrameAreaTab(const ScRange &rRange, const SvxBoxItem &rLineOuter, const SvxBoxInfoItem &rLineInner)
Definition: document.cxx:5861
bool CopyTab(SCTAB nOldPos, SCTAB nNewPos, const ScMarkData *pOnlyMarked=nullptr)
Definition: documen2.cxx:765
SC_DLLPUBLIC void InitDrawLayer(SfxObjectShell *pDocShell=nullptr)
Definition: documen9.cxx:96
Parameter for data table aka multiple operations.
Definition: paramisc.hxx:46
bool PastingDrawFromOtherDoc() const
Definition: document.hxx:2423
void GetScenarioFlags(SCTAB nTab, ScScenarioFlags &rFlags) const
Definition: documen3.cxx:474
bool bIsFunctionAccess
Definition: document.hxx:500
void Reorder(const sc::ReorderParam &rParam)
Definition: documen3.cxx:1434
Definition: global.hxx:326
void DelayFormulaGrouping(bool delay)
If set, joining cells into shared formula groups will be delayed until reset again (RegroupFormulaCel...
Definition: document10.cxx:377
void SetStorageGrammar(formula::FormulaGrammar::Grammar eGrammar)
Should only be GRAM_PODF or GRAM_ODFF.
Definition: documen2.cxx:235
ScRecursionHelper & GetRecursionHelper()
Definition: document.cxx:6806
SC_DLLPUBLIC sal_uInt16 GetPrintRangeCount(SCTAB nTab)
Definition: document.cxx:6271
SCROW CountNonFilteredRows(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const
Definition: document.cxx:4547
Set of column block positions only for one table.
void UpdateBroadcastAreas(UpdateRefMode eUpdateRefMode, const ScRange &rRange, SCCOL nDx, SCROW nDy, SCTAB nDz)
Definition: documen7.cxx:590
void InvalidatePageBreaks(SCTAB nTab)
Definition: document.cxx:6215
void SetDBCollection(std::unique_ptr< ScDBCollection > pNewDBCollection, bool bRemoveAutoFilter=false)
Definition: documen3.cxx:270
std::unique_ptr< ScDPCollection > pDPCollection
Definition: document.hxx:388
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.
Definition: documen7.cxx:326
bool IsImportingXML() const
Definition: document.hxx:2137
Keep track of all named expressions that have been updated during reference update.
SCCOL nPosLeft
Definition: document.hxx:486
void EnableExecuteLink(bool bVal)
Definition: document.hxx:1539
sal_uInt16 RowDifferences(SCROW nThisRow, SCTAB nThisTab, ScDocument &rOtherDoc, SCROW nOtherRow, SCTAB nOtherTab, SCCOL nMaxCol, const SCCOLROW *pOtherCols)
Definition: documen4.cxx:916
bool bIsEmbedded
Definition: document.hxx:503
void GetCellChangeTrackNote(const ScAddress &cell, OUString &strTrackText, bool &pbLeftEdge)
Definition: documen2.cxx:1264
SCROW GetNextDifferentChangedRow(SCTAB nTab, SCROW nStart) const
Definition: document.cxx:4611
SC_DLLPUBLIC bool HasPivotTable() const
Definition: documen3.cxx:355
LanguageType eCtlLanguage
Definition: document.hxx:459
SC_DLLPUBLIC const ScRangeList * GetScenarioRanges(SCTAB nTab) const
Definition: documen3.cxx:864
SC_DLLPUBLIC bool IsDefaultTabBgColor(SCTAB nTab) const
Definition: documen3.cxx:456
SC_DLLPUBLIC void GetRangeNameMap(std::map< OUString, ScRangeName * > &rRangeName)
Definition: documen3.cxx:146
bool HasUniformRowHeight(SCTAB nTab, SCROW nRow1, SCROW nRow2) const
Definition: document10.cxx:343
void GetColDefault(SCTAB nTab, SCCOL nCol, SCROW nLastRow, SCROW &nDefault)
Definition: document.cxx:4653
rtl::Reference< ScSheetLimits > mxSheetLimits
Definition: document.hxx:384
void DeleteBroadcasters(sc::ColumnBlockPosition &rBlockPos, const ScAddress &rTopPos, SCROW nLength)
Definition: document.cxx:2472
void UpdateAllRowHeights(sc::RowHeightContext &rCxt, const ScMarkData *pTabMark)
Definition: document.cxx:4275
SC_DLLPUBLIC void SetActiveScenario(SCTAB nTab, bool bActive)
Definition: documen3.cxx:877
void DelBroadcastAreasInRange(const ScRange &rRange)
Definition: documen7.cxx:202
void GetOldChartParameters(const OUString &rName, ScRangeList &rRanges, bool &rColHeaders, bool &rRowHeaders)
Definition: documen5.cxx:202
SC_DLLPUBLIC void CreateValidTabNames(std::vector< OUString > &aNames, SCTAB nCount) const
Definition: document.cxx:439
void GetFormulaEntries(ScTypedCaseStrSet &rStrings)
Entries for Formula auto input.
Definition: documen3.cxx:1641
void FillTab(const ScRange &rSrcArea, const ScMarkData &rMark, InsertDeleteFlags nFlags, ScPasteFunc nFunction, bool bSkipEmpty, bool bAsLink)
Definition: document.cxx:3228
void CompileXML()
Definition: document.cxx:3970
bool RowFiltered(SCROW nRow, SCTAB nTab, SCROW *pFirstRow=nullptr, SCROW *pLastRow=nullptr) const
Definition: document.cxx:4499
bool bDetectiveDirty
Definition: document.hxx:526
std::shared_ptr< sc::FormulaGroupContext > mpFormulaGroupCxt
Definition: document.hxx:368
Definition: global.hxx:335
ScAddress GetNotePosition(size_t nIndex) const
Definition: document.cxx:6682
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
Definition: document.hxx:2613
SC_DLLPUBLIC void GetAllColBreaks(std::set< SCCOL > &rBreaks, SCTAB nTab, bool bPage, bool bManual) const
Definition: document.cxx:4351
void IncMacroInterpretLevel()
Definition: document.hxx:2325
SC_DLLPUBLIC void RestoreTabFromCache(SCTAB nTab, SvStream &rStream)
sal_Int16 SCCOL
Definition: types.hxx:22
void DeleteSelection(InsertDeleteFlags nDelFlag, const ScMarkData &rMark, bool bBroadcast=true)
Definition: document.cxx:5932
std::unique_ptr< sc::ExternalDataMapper > mpDataMapper
Definition: document.hxx:408
void GetAutoFormatData(SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, ScAutoFormatData &rData)
Definition: documen3.cxx:1195
Definition: global.hxx:158
SC_DLLPUBLIC const ScMatrix * GetDdeLinkResultMatrix(size_t nDdePos) const
Returns the result matrix of the specified DDE link.
Definition: documen8.cxx:985
SCCOL GetNextDifferentChangedCol(SCTAB nTab, SCCOL nStart) const
Definition: document.cxx:4593
bool ValidCol(SCCOL nCol) const
Definition: document.hxx:875
void SetVbaEventProcessor(const css::uno::Reference< css::script::vba::XVBAEventProcessor > &rxVbaEvents)
Definition: document.hxx:2433
NumFmtMergeHandler(ScDocument &rDoc, const ScDocument &rSrcDoc)
Definition: document.cxx:2436
sal_uLong nCellCount
Definition: document.hxx:278
bool GetDdeLinkData(size_t nDdePos, OUString &rAppl, OUString &rTopic, OUString &rItem) const
Returns the connection data of the specified DDE link.
Definition: documen8.cxx:963
LanguageType eLanguage
Definition: document.hxx:457
bool HasBackgroundDraw(SCTAB nTab, const tools::Rectangle &rMMRect) const
Definition: documen9.cxx:341
sal_uLong GetScaledRowHeight(SCROW nStartRow, SCROW nEndRow, SCTAB nTab, double fScale, const sal_uLong *pnMaxHeight=nullptr) const
Definition: document.cxx:4198
void RestorePrintRanges(const ScPrintRangeSaver &rSaver)
Definition: document.cxx:6343
SC_DLLPUBLIC void SetAutoCalc(bool bNewAutoCalc)
Definition: documen7.cxx:602
void EnableChangeReadOnly(bool bVal)
Definition: document.hxx:1541
bool HasAreaLinks() const
Definition: documen8.cxx:1032
void LimitChartArea(SCTAB nTab, SCCOL &rStartCol, SCROW &rStartRow, SCCOL &rEndCol, SCROW &rEndRow)
Definition: document.cxx:1115
ScMarkData maPreviewSelection
Definition: document.hxx:438
SC_DLLPUBLIC bool SetOptimalHeight(sc::RowHeightContext &rCxt, SCROW nStartRow, SCROW nEndRow, SCTAB nTab)
Definition: document.cxx:4266
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.
Definition: documen2.cxx:664
bool IsForcedFormulaPending() const
Definition: document.hxx:1366
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...
Definition: documen3.cxx:2085
SC_DLLPUBLIC void SetViewOptions(const ScViewOptions &rOpt)
Definition: documen3.cxx:1943
ScSheetLimits & GetSheetLimits() const
Definition: document.hxx:874
bool HasRangeOverflow() const
Definition: document.hxx:2129
void RemoveEditTextCharAttribs(const ScAddress &rPos, const ScPatternAttr &rAttr)
Definition: document.cxx:3620
void GetUnprotectedCells(ScRangeList &rRange, SCTAB nTab) const
Definition: document.cxx:6778
bool IsFunctionAccess() const
Definition: document.hxx:1533
bool InsertRow(SCCOL nStartCol, SCTAB nStartTab, SCCOL nEndCol, SCTAB nEndTab, SCROW nStartRow, SCSIZE nSize, ScDocument *pRefUndoDoc=nullptr, const ScMarkData *pTabMark=nullptr)
Definition: document.cxx:1248
bool GetDdeLinkMode(size_t nDdePos, sal_uInt8 &rnMode) const
Returns the link mode of the specified DDE link.
Definition: documen8.cxx:975
SC_DLLPUBLIC void CreateValidTabName(OUString &rName) const
Definition: document.cxx:392
ScFormulaParserPool & GetFormulaParserPool() const
Returns the pool containing external formula parsers.
Definition: documen3.cxx:647
void DeleteBeforeCopyFromClip(sc::CopyFromClipContext &rCxt, const ScMarkData &rMark, sc::ColumnSpanSet &rBroadcastSpans)
Definition: document10.cxx:57
SC_DLLPUBLIC SfxItemPool * GetEnginePool() const
Definition: documen2.cxx:449
SC_DLLPUBLIC void ApplyPattern(SCCOL nCol, SCROW nRow, SCTAB nTab, const ScPatternAttr &rAttr)
Definition: document.cxx:4763
ScRange aEmbedRange
Definition: document.hxx:443
SC_DLLPUBLIC sal_uLong TransferTab(ScDocument &rSrcDoc, SCTAB nSrcPos, SCTAB nDestPos, bool bInsertNew=true, bool bResultsOnly=false)
Definition: documen2.cxx:906
OUString GetAutoFillPreview(const ScRange &rSource, SCCOL nEndX, SCROW nEndY)
Definition: documen3.cxx:1171
sal_uInt16 GetMacroInterpretLevel() const
Definition: document.hxx:2324
SC_DLLPUBLIC void UnlockAdjustHeight()
Definition: document.cxx:1815
SC_DLLPUBLIC SCCOL ClampToAllocatedColumns(SCTAB nTab, SCCOL nCol) const
Definition: documen3.cxx:2124
::boost::intrusive_ptr< FormulaToken > FormulaTokenRef
bool IsInInterpreterTableOp() const
Definition: document.hxx:2337
void SetLinkFormulaNeedingCheck(bool bSet)
Definition: document.hxx:2124
void EndListeningCell(const ScAddress &rAddress, SvtListener *pListener)
Definition: documen7.cxx:217
void SharePooledResources(const ScDocument *pSrcDoc)
Definition: document10.cxx:327
void MarkScenario(SCTAB nSrcTab, SCTAB nDestTab, ScMarkData &rDestMark, bool bResetMark=true, ScScenarioFlags nNeededBits=ScScenarioFlags::NONE) const
Definition: documen3.cxx:847
bool HasManualBreaks(SCTAB nTab) const
Definition: document.cxx:6233
Structure that stores segments of boolean flags per column, and perform custom action on those segmen...
bool IsDetectiveDirty() const
Definition: document.hxx:2120
exports i18n
ScDPObject * GetDPAtBlock(const ScRange &rBlock) const
Definition: documen3.cxx:386
void SetLink(SCTAB nTab, ScLinkMode nMode, const OUString &rDoc, const OUString &rFilter, const OUString &rOptions, const OUString &rTabName, sal_uLong nRefreshDelay)
Definition: documen3.cxx:541
bool IsCutMode()
Definition: document.cxx:2065
SC_DLLPUBLIC void SetRowHeight(SCROW nRow, SCTAB nTab, sal_uInt16 nNewHeight)
Definition: document.cxx:4095
void SetNote(const ScAddress &rPos, std::unique_ptr< ScPostIt > pNote)
Definition: document.cxx:6523
bool mbEmbedFontScriptAsian
Definition: document.hxx:565
SC_DLLPUBLIC bool InsertTab(SCTAB nPos, const OUString &rName, bool bExternalDocument=false, bool bUndoDeleteTab=false)
Definition: document.cxx:504
void CopyCellValuesFrom(const ScAddress &rTopPos, const sc::CellValues &rSrc)
Definition: document10.cxx:173
bool ShrinkToDataArea(SCTAB nTab, SCCOL &rStartCol, SCROW &rStartRow, SCCOL &rEndCol, SCROW &rEndRow) const
Shrink a range to only include data area.
Definition: document.cxx:1040
SC_DLLPUBLIC ScDocument(ScDocumentMode eMode=SCDOCMODE_DOCUMENT, SfxObjectShell *pDocShell=nullptr)
Definition: documen2.cxx:103
HardRecalcState GetHardRecalcState() const
Definition: document.hxx:2300
bool GetDataAreaSubrange(ScRange &rRange) const
Returns true if there is a non-empty subrange in the range given as input.
Definition: document.cxx:1103
SC_DLLPUBLIC void ApplyPatternAreaTab(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, const ScPatternAttr &rAttr)
Definition: document.cxx:4786
SdrObject * GetObjectAtPoint(SCTAB nTab, const Point &rPos)
Definition: documen9.cxx:397
void TrackFormulas(SfxHintId nHintId=SfxHintId::ScDataChanged)
Definition: documen7.cxx:527
SC_DLLPUBLIC OUString GetPageStyle(SCTAB nTab) const
Definition: document.cxx:6186
BroadcastAreaSlots and their management, once per document.
Definition: bcaslot.hxx:246
SC_DLLPUBLIC void SetRowHeightRange(SCROW nStartRow, SCROW nEndRow, SCTAB nTab, sal_uInt16 nNewHeight)
Definition: document.cxx:4101
void CreateColumnIfNotExists(SCTAB nTab, SCCOL nCol)
Definition: document10.cxx:976
void DecXMLImportedFormulaCount(sal_uLong nVal)
Definition: document.hxx:2363
SC_DLLPUBLIC SCROW GetFirstEditTextRow(const ScRange &rRange) const
Definition: document.cxx:3422
css::uno::Reference< css::chart2::XChartDocument > GetChartByName(const OUString &rChartName)
Definition: documen5.cxx:137
Instantiate this to ensure that subsequent modification of the document will cause an assertion failu...
Definition: document.hxx:2620
void BroadcastUno(const SfxHint &rHint)
Definition: documen3.cxx:944
const T * GetEffItem(SCCOL nCol, SCROW nRow, SCTAB nTab, TypedWhichId< T > nWhich) const
Definition: document.hxx:1745
OUString GetLinkFlt(SCTAB nTab) const
Definition: documen3.cxx:513
void SetSubTotalCellsDirty(const ScRange &rDirtyRange)
Definition: document.cxx:6424
void RemoveSubTotalCell(ScFormulaCell *pCell)
Definition: document.cxx:6403
SC_DLLPUBLIC const EditTextObject * GetEditText(const ScAddress &rPos) const
Definition: document.cxx:3611
bool IsInExternalReferenceMarking() const
Definition: documen3.cxx:627
void SaveDdeLinks(SvStream &rStream) const
Definition: documen8.cxx:707
formula::FormulaGrammar::Grammar GetStorageGrammar() const
Definition: document.hxx:2439
sal_uLong nFormulaCodeInTree
Definition: document.hxx:466
SCTAB nTableCount
Definition: document.hxx:277
SC_DLLPUBLIC tools::Rectangle GetMMRect(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, bool bHiddenAsZero=true) const
Definition: documen3.cxx:1972
bool IsBlockEmpty(SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool bIgnoreNotes=false) const
Definition: document.cxx:5296
void IncInterpreterTableOpLevel()
Definition: document.hxx:2338
void DeleteObjectsInArea(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, bool bAnchored=false)
Definition: documen9.cxx:250
sal_uInt16 GetCommonWidth(SCCOL nEndCol, SCTAB nTab) const
Definition: document.cxx:4145
void ResetChanged(const ScRange &rRange)
Definition: document.cxx:4071
SCROW GetRowForHeight(SCTAB nTab, sal_uLong nHeight) const
Given the height i.e.
Definition: document.cxx:4193
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.
Definition: documen4.cxx:597
std::set< ScTypedStrData, ScTypedStrData::LessCaseSensitive > ScTypedCaseStrSet
Definition: document.hxx:259
void SetLoadingMedium(bool bVal)
Definition: documen9.cxx:578
void GetSearchAndReplaceStart(const SvxSearchItem &rSearchItem, SCCOL &rCol, SCROW &rRow)
Definition: documen3.cxx:1209
SC_DLLPUBLIC void DoMerge(SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool bDeleteCaptions=true)
Definition: documen3.cxx:2052
SC_DLLPUBLIC void AddPrintRange(SCTAB nTab, const ScRange &rNew)
Adds a new print ranges.
Definition: document.cxx:6309
bool CompileErrorCells(FormulaError nErrCode)
Re-compile formula cells with error.
Definition: document.cxx:4010
Definition: document.hxx:252
std::unique_ptr< ScScriptTypeData > pScriptTypeData
Definition: document.hxx:404
Definition: document.hxx:864
void RemoveManualBreaks(SCTAB nTab)
Definition: document.cxx:6227
SC_DLLPUBLIC bool HasValueData(SCCOL nCol, SCROW nRow, SCTAB nTab) const
Definition: document.cxx:3765
SC_DLLPUBLIC ScPostIt * CreateNote(const ScAddress &rPos)
Definition: document.cxx:6606
bool HasSelectedBlockMatrixFragment(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScMarkData &rMark) const
Definition: document.cxx:5407
std::unique_ptr< sc::DocumentLinkManager > mpDocLinkMgr
Definition: document.hxx:366
SC_DLLPUBLIC const SfxItemSet * GetCondResult(SCCOL nCol, SCROW nRow, SCTAB nTab, ScRefCellValue *pCell=nullptr) const
Definition: documen4.cxx:788
bool HasLinkFormulaNeedingCheck() const
Definition: document.hxx:2123
void GetNumberFormatInfo(const ScInterpreterContext &rContext, SvNumFormatType &nType, sal_uInt32 &nIndex, const ScAddress &rPos) const
Definition: document.cxx:3699
bool CanInsertCol(const ScRange &rRange) const
Definition: document.cxx:1478
Use this class as a locale variable to merge number formatter from another document, and set NULL pointer to pFormatExchangeList when done.
Definition: document.hxx:2556
std::unique_ptr< ScNoteEditEngine > mpNoteEngine
Definition: document.hxx:375
SC_DLLPUBLIC void StoreTabToCache(SCTAB nTab, SvStream &rStrm) const
void UpdateChartRef(UpdateRefMode eUpdateRefMode, SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2, SCCOL nDx, SCROW nDy, SCTAB nDz)
Definition: documen5.cxx:391
void Broadcast(const ScHint &rHint)
Broadcast wrapper, calls rHint.GetCell()->Broadcast() and AreaBroadcast() and TrackFormulas() Preferr...
Definition: documen7.cxx:117
void UpdStlShtPtrsFrmNms()
Definition: document.cxx:6109
bool CanInsertRow(const ScRange &rRange) const
Definition: document.cxx:1192
SC_DLLPUBLIC void GetChartRanges(const OUString &rChartName, std::vector< ScRangeList > &rRanges, const ScDocument &rSheetNameDoc)
Definition: documen5.cxx:167
void CheckVectorizationState()
Definition: document.cxx:3821
SC_DLLPUBLIC bool ExtendMerge(SCCOL nStartCol, SCROW nStartRow, SCCOL &rEndCol, SCROW &rEndRow, SCTAB nTab, bool bRefresh=false)
Definition: document.cxx:5568
SC_DLLPUBLIC bool HasNote(const ScAddress &rPos) const
Definition: document.cxx:6533
void CompileDBFormula()
Definition: documen4.cxx:556
void ForgetNoteCaptions(const ScRangeList &rRanges, bool bPreserveData)
Definition: document.cxx:6631
sal_Int32 GetMaxStringLen(SCTAB nTab, SCCOL nCol, SCROW nRowStart, SCROW nRowEnd, rtl_TextEncoding eCharSet) const
Maximum string length of a column, e.g.
Definition: documen4.cxx:588
bool ValidAddress(const ScAddress &rAddress) const
Definition: document.hxx:880
ScAutoNameCache * GetAutoNameCache()
Definition: document.hxx:1338
void UpdateRefAreaLinks(UpdateRefMode eUpdateRefMode, const ScRange &r, SCCOL nDx, SCROW nDy, SCTAB nDz)
Definition: documen8.cxx:1081
sal_uInt16 nPageCount
Definition: document.hxx:280
void LockStreamValid(bool bLock)
Definition: document.cxx:931
sal_uInt32 GetDocumentID() const
an ID unique to each document instance
Definition: documen2.cxx:252
css::uno::Reference< css::script::vba::XVBAEventProcessor > mxVbaEvents
Definition: document.hxx:449
bool HasFilteredRows(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const
Definition: document.cxx:4507
bool mbExecuteLinkEnabled
Definition: document.hxx:552
void GetDataEntries(SCCOL nCol, SCROW nRow, SCTAB nTab, std::vector< ScTypedStrData > &rStrings, bool bLimit=false)
Entries for selection list listbox (no numbers/formulas)
Definition: documen3.cxx:1601
void BroadcastCells(const ScRange &rRange, SfxHintId nHint, bool bBroadcastSingleBroadcasters=true)
Definition: documen7.cxx:143
bool bCalculatingFormulaTree
Definition: document.hxx:497
static void SetupFromNonThreadedContext(ScInterpreterContext &threadedContext, int threadNumber)
Definition: document.cxx:6839
SC_DLLPUBLIC bool HasStringData(SCCOL nCol, SCROW nRow, SCTAB nTab) const
Definition: document.cxx:3756
bool HasLink(const OUString &rDoc, const OUString &rFilter, const OUString &rOptions) const
Definition: documen3.cxx:549
SC_DLLPUBLIC void SetRepeatRowRange(SCTAB nTab, std::unique_ptr< ScRange > pNew)
Definition: document.cxx:6327
SC_DLLPUBLIC void EnsureTable(SCTAB nTab)
Definition: documen2.cxx:537
Iterate through all edit text cells in a given sheet.
SC_DLLPUBLIC void GetFilterEntriesArea(SCCOL nCol, SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bCaseSens, ScFilterEntries &rFilterEntries)
Entries for Filter dialog.
Definition: documen3.cxx:1587
void SetCalcNotification(SCTAB nTab)
Definition: documen3.cxx:716
ScDocument & mrDoc
Definition: document.hxx:2679
SC_DLLPUBLIC void SetColBreak(SCCOL nCol, SCTAB nTab, bool bPage, bool bManual)
Definition: document.cxx:4397
SC_DLLPUBLIC ScMacroManager * GetMacroManager()
Definition: documen8.cxx:377
FormulaError GetErrCode(const ScAddress &) const
Definition: document.cxx:4063
bool bInLinkUpdate
Definition: document.hxx:514
void SetChartRangeList(const OUString &rChartName, const ScRangeListRef &rNewRangeListRef)
only assigns the new RangeList, no ChartListener or the like
Definition: documen5.cxx:482
SC_DLLPUBLIC const ScViewOptions & GetViewOptions() const
Definition: documen3.cxx:1937
Definition: document.hxx:487
Represents the type of sheet geometry data.
Definition: document.hxx:266
void RemoveSubTotals(SCTAB nTab, ScSubTotalParam &rParam)
Definition: documen3.cxx:766
void AddUnoObject(SfxListener &rObject)
Definition: documen3.cxx:893
std::unique_ptr< ScUnoRefList > pUnoRefUndoList
Definition: document.hxx:402
std::unique_ptr< SvMemoryStream > pClipData
Definition: document.hxx:397
bool bIsVisible
Definition: document.hxx:501
SC_DLLPUBLIC void CalcAfterLoad(bool bStartListening=true)
Definition: document.cxx:4026
OUString GetCopyTabName(SCTAB nTab) const
Definition: document.cxx:227
void CopyBlockFromClip(sc::CopyFromClipContext &rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData &rMark, SCCOL nDx, SCROW nDy)
Definition: document.cxx:2619
void SetRangeOverflowType(ErrCode nType)
Definition: document.hxx:2128
bool IsEditActionAllowed(sc::ColRowEditAction eAction, SCTAB nTab, SCCOLROW nStart, SCCOLROW nEnd) const
Definition: document10.cxx:950
Configuration options for formula interpreter.
Definition: calcconfig.hxx:43
bool IsDelayedFormulaGrouping() const
Definition: document.hxx:1372
bool IsCalculatingFormulaTree() const
Definition: document.hxx:1368
Definition: global.hxx:149
void GetUpperCellString(SCCOL nCol, SCROW nRow, SCTAB nTab, OUString &rStr)
Definition: documen3.cxx:1455
SCROW SanitizeRow(SCROW nRow) const
Definition: document.hxx:882
SC_DLLPUBLIC void DoEmptyBlock(SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow)
Definition: documen3.cxx:2039
SC_DLLPUBLIC ScLkUpdMode GetLinkMode() const
Definition: document.hxx:2170
SC_DLLPUBLIC void GetScenarioData(SCTAB nTab, OUString &rComment, Color &rColor, ScScenarioFlags &rFlags) const
Definition: documen3.cxx:463
void LockTable(SCTAB nTab)
Definition: document.cxx:5307
bool IdleCalcTextWidth()
Definition: documen8.cxx:530
SC_DLLPUBLIC double RoundValueAsShown(double fVal, sal_uInt32 nFormat, const ScInterpreterContext *pContext=nullptr) const
Definition: documen4.cxx:633
void CreateAllNoteCaptions()
Ensure that all note objects have an associated sdr object.
Definition: document.cxx:6622
void finalizeOutlineImport()
Definition: document10.cxx:569
void SetDetOpList(std::unique_ptr< ScDetOpList > pNew)
Definition: documen4.cxx:903
bool ValidColRow(SCCOL nCol, SCROW nRow) const
Definition: document.hxx:877
void SyncColRowFlags()
Write all column row flags to table's flag data, because not all column row attributes are stored in ...
Definition: document.cxx:4563
bool IsStyleSheetUsed(const ScStyleSheet &rStyle) const
Definition: document.cxx:4980
static thread_local ScDocumentThreadSpecific maThreadSpecific
Definition: document.hxx:476
void FindMaxRotCol(SCTAB nTab, RowInfo *pRowInfo, SCSIZE nArrCount, SCCOL nX1, SCCOL nX2) const
Definition: document.cxx:5236
bool IsInDtorClear() const
Definition: document.hxx:2353
o3tl::sorted_vector< sal_uInt32 > ScCondFor