summaryrefslogtreecommitdiff
path: root/sc/inc/document.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r--sc/inc/document.hxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index e23148c11420..9ac4bca15288 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -562,11 +562,11 @@ public:
bool IsCellInChangeTrack(const ScAddress &cell,Color *pColCellBorder);
void GetCellChangeTrackNote(const ScAddress &cell, OUString &strTrackText, bool &pbLeftEdge);
- bool IsEmbedFonts() { return mbEmbedFonts; }
- bool IsEmbedUsedFontsOnly() { return mbEmbedUsedFontsOnly; }
- bool IsEmbedFontScriptLatin() { return mbEmbedFontScriptLatin; }
- bool IsEmbedFontScriptAsian() { return mbEmbedFontScriptAsian; }
- bool IsEmbedFontScriptComplex() { return mbEmbedFontScriptComplex; }
+ bool IsEmbedFonts() const { return mbEmbedFonts; }
+ bool IsEmbedUsedFontsOnly() const { return mbEmbedUsedFontsOnly; }
+ bool IsEmbedFontScriptLatin() const { return mbEmbedFontScriptLatin; }
+ bool IsEmbedFontScriptAsian() const { return mbEmbedFontScriptAsian; }
+ bool IsEmbedFontScriptComplex() const { return mbEmbedFontScriptComplex; }
void SetEmbedFonts(bool bUse) { mbEmbedFonts = bUse; }
void SetEmbedUsedFontsOnly(bool bUse) { mbEmbedUsedFontsOnly = bUse; }
@@ -787,7 +787,7 @@ public:
*/
bool InsertNewRangeName( SCTAB nTab, const OUString& rName, const ScAddress& rPos, const OUString& rExpr );
- SCTAB GetMaxTableNumber() { return static_cast<SCTAB>(maTabs.size()) - 1; }
+ SCTAB GetMaxTableNumber() const { return static_cast<SCTAB>(maTabs.size()) - 1; }
ScRangePairList* GetColNameRanges() { return xColNameRanges.get(); }
ScRangePairList* GetRowNameRanges() { return xRowNameRanges.get(); }
@@ -1337,7 +1337,7 @@ public:
void SetForcedFormulaPending( bool bNew ) { bForcedFormulaPending = bNew; }
bool IsForcedFormulaPending() const { return bForcedFormulaPending; }
// if CalcFormulaTree() is currently running
- bool IsCalculatingFormulaTree() { return bCalculatingFormulaTree; }
+ bool IsCalculatingFormulaTree() const { return bCalculatingFormulaTree; }
/// If set, joining cells into shared formula groups will be delayed until reset again
/// (RegroupFormulaCells() will be called as needed).
void DelayFormulaGrouping( bool delay );
@@ -1715,10 +1715,10 @@ public:
SC_DLLPUBLIC SvtScriptType GetStringScriptType( const OUString& rString );
// pCell is an optimization, must point to rPos
SC_DLLPUBLIC SvtScriptType GetCellScriptType( const ScAddress& rPos, sal_uInt32 nNumberFormat,
- ScRefCellValue* pCell = nullptr );
+ const ScRefCellValue* pCell = nullptr );
// pCell is an optimization, must point to nCol,nRow,nTab
SC_DLLPUBLIC SvtScriptType GetScriptType( SCCOL nCol, SCROW nRow, SCTAB nTab,
- ScRefCellValue* pCell = nullptr );
+ const ScRefCellValue* pCell = nullptr );
SvtScriptType GetRangeScriptType( sc::ColumnBlockPosition& rBlockPos, const ScAddress& rPos, SCROW nLength );
SvtScriptType GetRangeScriptType( const ScRangeList& rRanges );
@@ -2115,7 +2115,7 @@ public:
ScChangeViewSettings* GetChangeViewSettings() const { return pChangeViewSettings.get(); }
SC_DLLPUBLIC void SetChangeViewSettings(const ScChangeViewSettings& rNew);
- const std::shared_ptr<SvxForbiddenCharactersTable>& GetForbiddenCharacters();
+ const std::shared_ptr<SvxForbiddenCharactersTable>& GetForbiddenCharacters() const;
void SetForbiddenCharacters(const std::shared_ptr<SvxForbiddenCharactersTable>& rNew);
CharCompressType GetAsianCompression() const;
@@ -2261,7 +2261,7 @@ public:
bool IsFinalTrackFormulas() const { return mbFinalTrackFormulas; }
bool IsInFormulaTree( const ScFormulaCell* pCell ) const;
bool IsInFormulaTrack( const ScFormulaCell* pCell ) const;
- HardRecalcState GetHardRecalcState() { return eHardRecalcState; }
+ HardRecalcState GetHardRecalcState() const { return eHardRecalcState; }
void SetHardRecalcState( HardRecalcState eVal ) { eHardRecalcState = eVal; }
void StartAllListeners();
void StartNeededListeners();
@@ -2285,7 +2285,7 @@ public:
if ( nInterpretLevel )
nInterpretLevel--;
}
- sal_uInt16 GetMacroInterpretLevel() { return nMacroInterpretLevel; }
+ sal_uInt16 GetMacroInterpretLevel() const { return nMacroInterpretLevel; }
void IncMacroInterpretLevel()
{
assert(!IsThreadedGroupCalcInProgress());