diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-11-14 17:24:47 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-11-24 07:43:02 +0100 |
commit | 5166efaa646fdb53345009529ba2005abf9fb6c2 (patch) | |
tree | 5f7906730d65e8c1205b15fe7321fd6304eb6085 /sc/source/ui/Accessibility | |
parent | a1e7302a65554efdc339f0e0808965a7ab11fe0d (diff) |
Turn SC_MOD macro to a function
Change-Id: I5fc11037902bc6200fdaf4749260efe8e658bdce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177070
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui/Accessibility')
5 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx index 47c15602f174..af0fb44c256a 100644 --- a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx +++ b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx @@ -787,7 +787,7 @@ sal_Int32 SAL_CALL ScAccessibleCsvGrid::getBackground( ) { SolarMutexGuard aGuard; ensureAlive(); - return sal_Int32(SC_MOD()->GetColorConfig().GetColorValue( ::svtools::DOCCOLOR ).nColor); + return sal_Int32(ScModule::get()->GetColorConfig().GetColorValue(::svtools::DOCCOLOR).nColor); } // XAccessibleContext --------------------------------------------------------- @@ -1271,7 +1271,7 @@ sal_Int32 SAL_CALL ScAccessibleCsvCell::getBackground( ) { SolarMutexGuard aGuard; ensureAlive(); - return sal_Int32(SC_MOD()->GetColorConfig().GetColorValue( ::svtools::DOCCOLOR ).nColor); + return sal_Int32(ScModule::get()->GetColorConfig().GetColorValue(::svtools::DOCCOLOR).nColor); } // XAccessibleContext ----------------------------------------------------- diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx index 0d5639e8de29..e6f474a606df 100644 --- a/sc/source/ui/Accessibility/AccessibleDocument.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx @@ -2218,7 +2218,7 @@ sal_Int32 SAL_CALL ScAccessibleDocument::getBackground( ) { SolarMutexGuard aGuard; IsObjectValid(); - return sal_Int32(SC_MOD()->GetColorConfig().GetColorValue( ::svtools::DOCCOLOR ).nColor); + return sal_Int32(ScModule::get()->GetColorConfig().GetColorValue(::svtools::DOCCOLOR).nColor); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/Accessibility/AccessibleEditObject.cxx b/sc/source/ui/Accessibility/AccessibleEditObject.cxx index 9a7d2e6809af..d903b9d43218 100644 --- a/sc/source/ui/Accessibility/AccessibleEditObject.cxx +++ b/sc/source/ui/Accessibility/AccessibleEditObject.cxx @@ -375,7 +375,7 @@ void ScAccessibleEditObject::CreateTextHelper() mpTextHelper = std::make_unique<::accessibility::AccessibleTextHelper>(std::move(pEditSrc)); mpTextHelper->SetEventSource(this); - const ScInputHandler* pInputHdl = SC_MOD()->GetInputHdl(); + const ScInputHandler* pInputHdl = ScModule::get()->GetInputHdl(); if ( pInputHdl && pInputHdl->IsEditMode() ) { mpTextHelper->SetFocus(); diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx index 9023902a4106..838ac9393cd7 100644 --- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx +++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx @@ -495,7 +495,7 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint { ScViewData& rViewData = mpViewShell->GetViewData(); - m_bFormulaMode = rViewData.IsRefMode() || SC_MOD()->IsFormulaMode(); + m_bFormulaMode = rViewData.IsRefMode() || ScModule::get()->IsFormulaMode(); if ( m_bFormulaMode ) { NotifyRefMode(); @@ -1088,7 +1088,7 @@ sal_Int32 SAL_CALL ScAccessibleSpreadsheet::getBackground( ) { SolarMutexGuard aGuard; IsObjectValid(); - return sal_Int32(SC_MOD()->GetColorConfig().GetColorValue( ::svtools::DOCCOLOR ).nColor); + return sal_Int32(ScModule::get()->GetColorConfig().GetColorValue(::svtools::DOCCOLOR).nColor); } //===== XAccessibleContext ============================================== @@ -1706,7 +1706,7 @@ sal_Int64 ScAccessibleSpreadsheet::GetAccessibleIndexFormula( sal_Int32 nRow, sa bool ScAccessibleSpreadsheet::IsFormulaMode() { ScViewData& rViewData = mpViewShell->GetViewData(); - m_bFormulaMode = rViewData.IsRefMode() || SC_MOD()->IsFormulaMode(); + m_bFormulaMode = rViewData.IsRefMode() || ScModule::get()->IsFormulaMode(); return m_bFormulaMode ; } diff --git a/sc/source/ui/Accessibility/AccessibleText.cxx b/sc/source/ui/Accessibility/AccessibleText.cxx index 98a69698f5fe..cea5fd635b7a 100644 --- a/sc/source/ui/Accessibility/AccessibleText.cxx +++ b/sc/source/ui/Accessibility/AccessibleText.cxx @@ -1139,7 +1139,7 @@ SvxTextForwarder* ScAccessibleHeaderTextData::GetTextForwarder() { // no access to ScDocument, use temporary CellAttributeHelper. // also see ScHeaderFooterTextData::GetTextForwarder for more comments - pTmp.reset(new CellAttributeHelper(SC_MOD()->GetPool())); + pTmp.reset(new CellAttributeHelper(ScModule::get()->GetPool())); pCellAttributeDefault = &pTmp->getDefaultCellAttribute(); } |