diff options
27 files changed, 56 insertions, 56 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 7ff9ed357616..4e19792f2a2e 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -911,7 +911,7 @@ public: SC_DLLPUBLIC sal_uLong TransferTab(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos, bool bInsertNew = true, bool bResultsOnly = false ); - SC_DLLPUBLIC void TransferDrawPage(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos); + SC_DLLPUBLIC void TransferDrawPage(const ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos); SC_DLLPUBLIC void SetVisible( SCTAB nTab, bool bVisible ); SC_DLLPUBLIC bool IsVisible( SCTAB nTab ) const; bool IsStreamValid( SCTAB nTab ) const; @@ -1325,7 +1325,7 @@ public: void DelayFormulaGrouping( bool delay ); bool IsDelayedFormulaGrouping() const { return pDelayedFormulaGrouping.get() != nullptr; } /// To be used only by SharedFormulaUtil::joinFormulaCells(). - void AddDelayedFormulaGroupingCell( ScFormulaCell* cell ); + void AddDelayedFormulaGroupingCell( const ScFormulaCell* cell ); FormulaError GetErrCode( const ScAddress& ) const; diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx index 2538ac2d4c27..3856eef9aaef 100644 --- a/sc/inc/scmatrix.hxx +++ b/sc/inc/scmatrix.hxx @@ -350,8 +350,8 @@ public: /// @return <TRUE/> if entire matrix is numeric, including booleans, with no strings or empties bool IsNumeric() const ; - void MatTrans( ScMatrix& mRes) const ; - void MatCopy ( ScMatrix& mRes) const ; + void MatTrans( const ScMatrix& mRes) const ; + void MatCopy ( const ScMatrix& mRes) const ; // Convert ScInterpreter::CompareMat values (-1,0,1) to boolean values void CompareEqual() ; @@ -391,13 +391,13 @@ public: void GetDoubleArray( std::vector<double>& rArray, bool bEmptyAsZero = true ) const ; void MergeDoubleArrayMultiply( std::vector<double>& rArray ) const ; - void NotOp(ScMatrix& rMat) ; - void NegOp(ScMatrix& rMat) ; - void AddOp(double fVal, ScMatrix& rMat) ; - void SubOp(bool bFlag, double fVal, ScMatrix& rMat) ; - void MulOp(double fVal, ScMatrix& rMat) ; - void DivOp(bool bFlag, double fVal, ScMatrix& rMat) ; - void PowOp(bool bFlag, double fVal, ScMatrix& rMat) ; + void NotOp(const ScMatrix& rMat) ; + void NegOp(const ScMatrix& rMat) ; + void AddOp(double fVal, const ScMatrix& rMat) ; + void SubOp(bool bFlag, double fVal, const ScMatrix& rMat) ; + void MulOp(double fVal, const ScMatrix& rMat) ; + void DivOp(bool bFlag, double fVal, const ScMatrix& rMat) ; + void PowOp(bool bFlag, double fVal, const ScMatrix& rMat) ; std::vector<ScMatrix::IterateResult> Collect(const std::vector<sc::op::Op>& aOp) ; diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index 24be3958dc2c..d747edcbd7a2 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -435,7 +435,7 @@ void ScFiltersTest::testSheetNamesXLSX() xDocSh->DoClose(); } -static void impl_testLegacyCellAnchoredRotatedShape( ScDocument& rDoc, tools::Rectangle& aRect, const ScDrawObjData& aAnchor, long TOLERANCE = 30 /* 30 hmm */ ) +static void impl_testLegacyCellAnchoredRotatedShape( ScDocument& rDoc, const tools::Rectangle& aRect, const ScDrawObjData& aAnchor, long TOLERANCE = 30 /* 30 hmm */ ) { ScDrawLayer* pDrawLayer = rDoc.GetDrawLayer(); CPPUNIT_ASSERT_MESSAGE("No drawing layer.", pDrawLayer); diff --git a/sc/qa/unit/mark_test.cxx b/sc/qa/unit/mark_test.cxx index 722d07ea75a5..f8d041caf340 100644 --- a/sc/qa/unit/mark_test.cxx +++ b/sc/qa/unit/mark_test.cxx @@ -115,7 +115,7 @@ public: CPPUNIT_TEST_SUITE_END(); private: - void testScMarkArraySearch_check(ScMarkArray & ar, SCROW nRow, bool expectStatus, SCSIZE nIndexExpect); + void testScMarkArraySearch_check(const ScMarkArray & ar, SCROW nRow, bool expectStatus, SCSIZE nIndexExpect); }; static void lcl_GetSortedRanges( const ScRangeList& rRangeList, ScRangeList& rRangeListOut ) @@ -851,7 +851,7 @@ void Test::testDeleteTabAfterSelected() CPPUNIT_ASSERT_EQUAL(SCTAB(0), aMark.GetFirstSelected()); } -void Test::testScMarkArraySearch_check(ScMarkArray & ar, SCROW nRow, bool expectStatus, SCSIZE nIndexExpect) +void Test::testScMarkArraySearch_check(const ScMarkArray & ar, SCROW nRow, bool expectStatus, SCSIZE nIndexExpect) { SCSIZE nIndex = 0; bool status = ar.Search(nRow, nIndex); diff --git a/sc/qa/unit/ucalc_pivottable.cxx b/sc/qa/unit/ucalc_pivottable.cxx index f455152da133..3d200f1d4b16 100644 --- a/sc/qa/unit/ucalc_pivottable.cxx +++ b/sc/qa/unit/ucalc_pivottable.cxx @@ -79,7 +79,7 @@ ScRange insertDPSourceData(ScDocument* pDoc, DPFieldDef const aFields[], size_t } bool checkDPTableOutput( - ScDocument* pDoc, const ScRange& aOutRange, + const ScDocument* pDoc, const ScRange& aOutRange, const std::vector<std::vector<const char*>>& aOutputCheck, const char* pCaption ) { return checkOutput(pDoc, aOutRange, aOutputCheck, pCaption); diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx index 720bd573b0d0..38b583fb02cf 100644 --- a/sc/source/core/data/dociter.cxx +++ b/sc/source/core/data/dociter.cxx @@ -77,7 +77,7 @@ void decBlock(std::pair<Iter, size_t>& rPos) static void ScAttrArray_IterGetNumberFormat( sal_uInt32& nFormat, const ScAttrArray*& rpArr, SCROW& nAttrEndRow, const ScAttrArray* pNewArr, SCROW nRow, - const ScDocument* pDoc, ScInterpreterContext* pContext = nullptr ) + const ScDocument* pDoc, const ScInterpreterContext* pContext = nullptr ) { if ( rpArr != pNewArr || nAttrEndRow < nRow ) { diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx index 2b57c2d71dbd..72204133dc6a 100644 --- a/sc/source/core/data/documen9.cxx +++ b/sc/source/core/data/documen9.cxx @@ -62,7 +62,7 @@ void ScDocument::BeginDrawUndo() mpDrawLayer->BeginCalcUndo(false); } -void ScDocument::TransferDrawPage(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos) +void ScDocument::TransferDrawPage(const ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos) { if (mpDrawLayer && pSrcDoc->mpDrawLayer) { diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 8be9c6665e21..6b933019f4f8 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -1212,7 +1212,7 @@ namespace { struct SetDirtyIfPostponedHandler { - void operator() (ScTableUniquePtr & p) + void operator() (const ScTableUniquePtr & p) { if (p) p->SetDirtyIfPostponed(); @@ -1221,7 +1221,7 @@ struct SetDirtyIfPostponedHandler struct BroadcastRecalcOnRefMoveHandler { - void operator() (ScTableUniquePtr & p) + void operator() (const ScTableUniquePtr & p) { if (p) p->BroadcastRecalcOnRefMove(); diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx index b688c1db80e5..c495ff133db6 100644 --- a/sc/source/core/data/document10.cxx +++ b/sc/source/core/data/document10.cxx @@ -396,7 +396,7 @@ void ScDocument::DelayFormulaGrouping( bool delay ) } } -void ScDocument::AddDelayedFormulaGroupingCell( ScFormulaCell* cell ) +void ScDocument::AddDelayedFormulaGroupingCell( const ScFormulaCell* cell ) { if( !pDelayedFormulaGrouping->In( cell->aPos )) pDelayedFormulaGrouping->ExtendTo( cell->aPos ); @@ -501,7 +501,7 @@ public: mpCxt->setColumnSet( rpColSet); } - void operator() (ScTableUniquePtr & p) + void operator() (const ScTableUniquePtr & p) { if (p) p->StartListeners(*mpCxt, false); diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx index bb760bda8c57..4dd4cf713746 100644 --- a/sc/source/core/data/fillinfo.cxx +++ b/sc/source/core/data/fillinfo.cxx @@ -151,8 +151,8 @@ class RowInfoFiller } public: - RowInfoFiller(ScDocument& rDoc, SCTAB nTab, RowInfo* pRowInfo, SCCOL nArrX, SCSIZE& rArrY) : - mrDoc(rDoc), mnTab(nTab), mpRowInfo(pRowInfo), mnArrX(nArrX), mnArrY(rArrY), + RowInfoFiller(ScDocument& rDoc, SCTAB nTab, RowInfo* pRowInfo, SCCOL nArrX, SCSIZE nArrY) : + mrDoc(rDoc), mnTab(nTab), mpRowInfo(pRowInfo), mnArrX(nArrX), mnArrY(nArrY), mnHiddenEndRow(-1), mbHiddenRow(false) {} void operator() (size_t nRow, double fVal) diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index 48952234341d..3e0e2eb085a5 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -2488,7 +2488,7 @@ public: // Called from compareByString() method, where different sources of strings are checked. // The value is placed inside one parameter: [pValueSource1] or [pValueSource2] but never in both. std::pair<bool,bool> compareByStringComparator(const ScQueryEntry& rEntry, const ScQueryEntry::Item& rItem, - const svl::SharedString* pValueSource1, OUString * pValueSource2) + const svl::SharedString* pValueSource1, const OUString * pValueSource2) { bool bOk = false; bool bTestEqual = false; diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index 1846770996ef..60b4ef6e7d3b 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -1035,7 +1035,7 @@ class DynamicKernelSlidingArgument : public Base public: DynamicKernelSlidingArgument(const ScCalcConfig& config, const std::string& s, const FormulaTreeNodeRef& ft, - std::shared_ptr<SlidingFunctionBase>& CodeGen, int index) + const std::shared_ptr<SlidingFunctionBase>& CodeGen, int index) : Base(config, s, ft, index) , mpCodeGen(CodeGen) { @@ -1217,7 +1217,7 @@ class DynamicKernelMixedSlidingArgument : public VectorRef { public: DynamicKernelMixedSlidingArgument( const ScCalcConfig& config, const std::string& s, - const FormulaTreeNodeRef& ft, std::shared_ptr<SlidingFunctionBase>& CodeGen, + const FormulaTreeNodeRef& ft, const std::shared_ptr<SlidingFunctionBase>& CodeGen, int index ) : VectorRef(config, s, ft), mDoubleArgument(mCalcConfig, s, ft, CodeGen, index), @@ -1321,7 +1321,7 @@ class ParallelReductionVectorRef : public Base public: ParallelReductionVectorRef(const ScCalcConfig& config, const std::string& s, const FormulaTreeNodeRef& ft, - std::shared_ptr<SlidingFunctionBase>& CodeGen, int index) + const std::shared_ptr<SlidingFunctionBase>& CodeGen, int index) : Base(config, s, ft, index) , mpCodeGen(CodeGen) , mpClmem2(nullptr) diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index f7cb87d8f21f..d2d73f37c56f 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -3133,12 +3133,12 @@ bool ScMatrix::IsNumeric() const return pImpl->IsNumeric(); } -void ScMatrix::MatCopy(ScMatrix& mRes) const +void ScMatrix::MatCopy(const ScMatrix& mRes) const { pImpl->MatCopy(*mRes.pImpl); } -void ScMatrix::MatTrans(ScMatrix& mRes) const +void ScMatrix::MatTrans(const ScMatrix& mRes) const { pImpl->MatTrans(*mRes.pImpl); } @@ -3377,28 +3377,28 @@ public: } -void ScMatrix::NotOp( ScMatrix& rMat) +void ScMatrix::NotOp( const ScMatrix& rMat) { auto not_ = [](double a, double){return double(a == 0.0);}; matop::MatOp<decltype(not_), double> aOp(not_, pImpl->GetErrorInterpreter()); pImpl->ApplyOperation(aOp, *rMat.pImpl); } -void ScMatrix::NegOp( ScMatrix& rMat) +void ScMatrix::NegOp( const ScMatrix& rMat) { auto neg_ = [](double a, double){return -a;}; matop::MatOp<decltype(neg_), double> aOp(neg_, pImpl->GetErrorInterpreter()); pImpl->ApplyOperation(aOp, *rMat.pImpl); } -void ScMatrix::AddOp( double fVal, ScMatrix& rMat) +void ScMatrix::AddOp( double fVal, const ScMatrix& rMat) { auto add_ = [](double a, double b){return a + b;}; matop::MatOp<decltype(add_)> aOp(add_, pImpl->GetErrorInterpreter(), fVal); pImpl->ApplyOperation(aOp, *rMat.pImpl); } -void ScMatrix::SubOp( bool bFlag, double fVal, ScMatrix& rMat) +void ScMatrix::SubOp( bool bFlag, double fVal, const ScMatrix& rMat) { if (bFlag) { @@ -3414,14 +3414,14 @@ void ScMatrix::SubOp( bool bFlag, double fVal, ScMatrix& rMat) } } -void ScMatrix::MulOp( double fVal, ScMatrix& rMat) +void ScMatrix::MulOp( double fVal, const ScMatrix& rMat) { auto mul_ = [](double a, double b){return a * b;}; matop::MatOp<decltype(mul_)> aOp(mul_, pImpl->GetErrorInterpreter(), fVal); pImpl->ApplyOperation(aOp, *rMat.pImpl); } -void ScMatrix::DivOp( bool bFlag, double fVal, ScMatrix& rMat) +void ScMatrix::DivOp( bool bFlag, double fVal, const ScMatrix& rMat) { if (bFlag) { @@ -3437,7 +3437,7 @@ void ScMatrix::DivOp( bool bFlag, double fVal, ScMatrix& rMat) } } -void ScMatrix::PowOp( bool bFlag, double fVal, ScMatrix& rMat) +void ScMatrix::PowOp( bool bFlag, double fVal, const ScMatrix& rMat) { if (bFlag) { diff --git a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx index 5cc45f1cee4a..f61f6f11a531 100644 --- a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx @@ -679,10 +679,10 @@ void ScRegressionDialog::WritePredictionsWithResiduals(AddressWalkerWriter& rOut } // Generic table writer -void ScRegressionDialog::WriteTable(std::function<CellValueGetter>& rCellGetter, +void ScRegressionDialog::WriteTable(const std::function<CellValueGetter>& rCellGetter, size_t nRowsInTable, size_t nColsInTable, AddressWalkerWriter& rOutput, - std::function<CellWriter>& rFunc) + const std::function<CellWriter>& rFunc) { for (size_t nRowIdx = 0; nRowIdx < nRowsInTable; ++nRowIdx) { diff --git a/sc/source/ui/dataprovider/datatransformation.cxx b/sc/source/ui/dataprovider/datatransformation.cxx index e3b526a588a9..1c67d8d9ee45 100644 --- a/sc/source/ui/dataprovider/datatransformation.cxx +++ b/sc/source/ui/dataprovider/datatransformation.cxx @@ -19,7 +19,7 @@ namespace { -Date getDate(double nDateTime, SvNumberFormatter* pFormatter) +Date getDate(double nDateTime, const SvNumberFormatter* pFormatter) { Date aDate = pFormatter->GetNullDate(); aDate.AddDays(static_cast<sal_Int32>(::rtl::math::approxFloor(nDateTime))); diff --git a/sc/source/ui/inc/ChildWindowWrapper.hxx b/sc/source/ui/inc/ChildWindowWrapper.hxx index 89bf560499d2..08301fb3a22d 100644 --- a/sc/source/ui/inc/ChildWindowWrapper.hxx +++ b/sc/source/ui/inc/ChildWindowWrapper.hxx @@ -23,7 +23,7 @@ class ChildWindowWrapper : public SfxChildWindow { public: ChildWindowWrapper( vcl::Window* pParentP, sal_uInt16 nId, - SfxBindings* pBindings, SfxChildWinInfo* pInfo ) : + SfxBindings* pBindings, const SfxChildWinInfo* pInfo ) : SfxChildWindow(pParentP, nId) { ScTabViewShell* pViewShell = getTabViewShell( pBindings ); @@ -71,7 +71,7 @@ public: } private: - static ScTabViewShell* getTabViewShell( SfxBindings *pBindings ) + static ScTabViewShell* getTabViewShell( const SfxBindings *pBindings ) { if( !pBindings ) return nullptr; diff --git a/sc/source/ui/inc/RegressionDialog.hxx b/sc/source/ui/inc/RegressionDialog.hxx index 7503e07c382d..f02fcb472f21 100644 --- a/sc/source/ui/inc/RegressionDialog.hxx +++ b/sc/source/ui/inc/RegressionDialog.hxx @@ -71,9 +71,9 @@ private: FormulaTemplate& rTemplate, size_t nRegressionIndex); // Generic table writer - static void WriteTable(std::function<CellValueGetter>& rCellGetter, size_t nRowsInTable, + static void WriteTable(const std::function<CellValueGetter>& rCellGetter, size_t nRowsInTable, size_t nColsInTable, AddressWalkerWriter& rOutput, - std::function<CellWriter>& rFunc); + const std::function<CellWriter>& rFunc); DECL_LINK( CheckBoxHdl, CheckBox&, void ); DECL_LINK( NumericFieldHdl, Edit&, void ); diff --git a/sc/source/ui/inc/dataproviderdlg.hxx b/sc/source/ui/inc/dataproviderdlg.hxx index ed590a7634bc..7a3a98bfed55 100644 --- a/sc/source/ui/inc/dataproviderdlg.hxx +++ b/sc/source/ui/inc/dataproviderdlg.hxx @@ -46,7 +46,7 @@ private: public: - ScDataProviderDlg(vcl::Window* pWindow, std::shared_ptr<ScDocument> pDoc, ScDocument* pDocument); + ScDataProviderDlg(vcl::Window* pWindow, std::shared_ptr<ScDocument> pDoc, const ScDocument* pDocument); virtual ~ScDataProviderDlg() override; virtual void dispose() override; diff --git a/sc/source/ui/inc/sharedocdlg.hxx b/sc/source/ui/inc/sharedocdlg.hxx index ae1d28c9aafc..1eaf9bb5dc1f 100644 --- a/sc/source/ui/inc/sharedocdlg.hxx +++ b/sc/source/ui/inc/sharedocdlg.hxx @@ -46,7 +46,7 @@ private: DECL_LINK(SizeAllocated, const Size&, void); public: - SC_DLLPUBLIC ScShareDocumentDlg(weld::Window* pParent, ScViewData* pViewData); + SC_DLLPUBLIC ScShareDocumentDlg(weld::Window* pParent, const ScViewData* pViewData); virtual ~ScShareDocumentDlg() override; bool IsShareDocumentChecked() const; diff --git a/sc/source/ui/inc/tptable.hxx b/sc/source/ui/inc/tptable.hxx index 61e5317fc8b0..52b2a36628a0 100644 --- a/sc/source/ui/inc/tptable.hxx +++ b/sc/source/ui/inc/tptable.hxx @@ -76,7 +76,7 @@ private: // Handler: DECL_LINK(PageDirHdl, weld::ToggleButton&, void); DECL_LINK(PageNoHdl, weld::ToggleButton&, void); - void PageNoHdl(weld::ToggleButton* pBtn); + void PageNoHdl(const weld::ToggleButton* pBtn); DECL_LINK(ScaleHdl, weld::ComboBox&, void); DECL_LINK(ToggleHdl, weld::ToggleButton&, void); }; diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx index 85857d5065d7..3d2627e3b15a 100644 --- a/sc/source/ui/inc/viewfunc.hxx +++ b/sc/source/ui/inc/viewfunc.hxx @@ -104,7 +104,7 @@ public: bool bApi = false, bool bIncludeObjects = false, bool bStopEdit = true ); bool CopyToClipSingleRange( ScDocument* pClipDoc, const ScRangeList& rRanges, bool bCut, bool bIncludeObjects ); - bool CopyToClipMultiRange( ScDocument* pClipDoc, const ScRangeList& rRanges, bool bCut, + bool CopyToClipMultiRange( const ScDocument* pClipDoc, const ScRangeList& rRanges, bool bCut, bool bApi, bool bIncludeObjects ); ScTransferObj* CopyToTransferable(); SC_DLLPUBLIC bool PasteFromClip( InsertDeleteFlags nFlags, ScDocument* pClipDoc, diff --git a/sc/source/ui/miscdlgs/dataproviderdlg.cxx b/sc/source/ui/miscdlgs/dataproviderdlg.cxx index f273eebafd40..d55babb13174 100644 --- a/sc/source/ui/miscdlgs/dataproviderdlg.cxx +++ b/sc/source/ui/miscdlgs/dataproviderdlg.cxx @@ -951,7 +951,7 @@ std::shared_ptr<sc::DataTransformation> ScDateTimeTransformation::getTransformat } ScDataProviderDlg::ScDataProviderDlg(vcl::Window* pParent, std::shared_ptr<ScDocument> pDoc, - ScDocument* pDocument) + const ScDocument* pDocument) : ModalDialog(pParent, "dataproviderdlg", "modules/scalc/ui/dataproviderdlg.ui", true) , mpDoc(std::move(pDoc)) , mpBar(VclPtr<MenuBar>::Create()) diff --git a/sc/source/ui/miscdlgs/sharedocdlg.cxx b/sc/source/ui/miscdlgs/sharedocdlg.cxx index c6b22b2f757d..261cd5505550 100644 --- a/sc/source/ui/miscdlgs/sharedocdlg.cxx +++ b/sc/source/ui/miscdlgs/sharedocdlg.cxx @@ -46,7 +46,7 @@ IMPL_LINK(ScShareDocumentDlg, SizeAllocated, const Size&, rSize, void) // class ScShareDocumentDlg -ScShareDocumentDlg::ScShareDocumentDlg(weld::Window* pParent, ScViewData* pViewData) +ScShareDocumentDlg::ScShareDocumentDlg(weld::Window* pParent, const ScViewData* pViewData) : GenericDialogController(pParent, "modules/scalc/ui/sharedocumentdlg.ui", "ShareDocumentDialog") , m_aStrNoUserData(ScResId(STR_NO_USER_DATA_AVAILABLE)) diff --git a/sc/source/ui/pagedlg/tptable.cxx b/sc/source/ui/pagedlg/tptable.cxx index 109a56453728..3030ee27ea5b 100644 --- a/sc/source/ui/pagedlg/tptable.cxx +++ b/sc/source/ui/pagedlg/tptable.cxx @@ -374,7 +374,7 @@ IMPL_LINK(ScTablePage, PageNoHdl, weld::ToggleButton&, rBtn, void) PageNoHdl(&rBtn); } -void ScTablePage::PageNoHdl(weld::ToggleButton* pBtn) +void ScTablePage::PageNoHdl(const weld::ToggleButton* pBtn) { if (m_xBtnPageNo->get_active()) { diff --git a/sc/source/ui/vba/vbapagebreak.cxx b/sc/source/ui/vba/vbapagebreak.cxx index ba8f7549d8bd..ec3c14ce8ee6 100644 --- a/sc/source/ui/vba/vbapagebreak.cxx +++ b/sc/source/ui/vba/vbapagebreak.cxx @@ -29,7 +29,7 @@ using namespace ::ooo::vba; template< typename... Ifc > ScVbaPageBreak< Ifc... >::ScVbaPageBreak( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, - uno::Reference< beans::XPropertySet >& xProps, + const uno::Reference< beans::XPropertySet >& xProps, sheet::TablePageBreakData aTablePageBreakData): ScVbaPageBreak_BASE( xParent, xContext ), mxRowColPropertySet( xProps ), @@ -113,7 +113,7 @@ template class ScVbaPageBreak< excel::XVPageBreak >; /* class ScVbaVPageBreak */ ScVbaVPageBreak::ScVbaVPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, - css::uno::Reference< css::beans::XPropertySet >& xProps, + const css::uno::Reference< css::beans::XPropertySet >& xProps, css::sheet::TablePageBreakData aTablePageBreakData ) : ScVbaVPageBreak_BASE( xParent, xContext, xProps, aTablePageBreakData ) { diff --git a/sc/source/ui/vba/vbapagebreak.hxx b/sc/source/ui/vba/vbapagebreak.hxx index a5958e66e420..1f7b296bc1c1 100644 --- a/sc/source/ui/vba/vbapagebreak.hxx +++ b/sc/source/ui/vba/vbapagebreak.hxx @@ -39,7 +39,7 @@ public: /// @throws css::uno::RuntimeException ScVbaPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, - css::uno::Reference< css::beans::XPropertySet >& xProps, + const css::uno::Reference< css::beans::XPropertySet >& xProps, css::sheet::TablePageBreakData aTablePageBreakData); virtual sal_Int32 SAL_CALL getType( ) override; @@ -57,7 +57,7 @@ public: /// @throws css::uno::RuntimeException ScVbaHPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, - css::uno::Reference< css::beans::XPropertySet >& xProps, + const css::uno::Reference< css::beans::XPropertySet >& xProps, css::sheet::TablePageBreakData aTablePageBreakData): ScVbaHPageBreak_BASE( xParent,xContext,xProps,aTablePageBreakData ){} @@ -75,7 +75,7 @@ public: /// @throws css::uno::RuntimeException ScVbaVPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, - css::uno::Reference< css::beans::XPropertySet >& xProps, + const css::uno::Reference< css::beans::XPropertySet >& xProps, css::sheet::TablePageBreakData aTablePageBreakData); virtual ~ScVbaVPageBreak() override; diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx index 719b3d555991..c50c9086339e 100644 --- a/sc/source/ui/view/viewfun3.cxx +++ b/sc/source/ui/view/viewfun3.cxx @@ -289,7 +289,7 @@ bool ScViewFunc::CopyToClipSingleRange( ScDocument* pClipDoc, const ScRangeList& return true; } -bool ScViewFunc::CopyToClipMultiRange( ScDocument* pInputClipDoc, const ScRangeList& rRanges, bool bCut, bool bApi, bool bIncludeObjects ) +bool ScViewFunc::CopyToClipMultiRange( const ScDocument* pInputClipDoc, const ScRangeList& rRanges, bool bCut, bool bApi, bool bIncludeObjects ) { if (bCut) { |