summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r--sc/source/ui/unoobj/ChartTools.cxx4
-rw-r--r--sc/source/ui/unoobj/PivotTableDataProvider.cxx2
-rw-r--r--sc/source/ui/unoobj/PivotTableDataSource.cxx2
-rw-r--r--sc/source/ui/unoobj/miscuno.cxx2
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx10
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx2
-rw-r--r--sc/source/ui/unoobj/viewuno.cxx2
7 files changed, 12 insertions, 12 deletions
diff --git a/sc/source/ui/unoobj/ChartTools.cxx b/sc/source/ui/unoobj/ChartTools.cxx
index 920c27541040..2bb896c1a148 100644
--- a/sc/source/ui/unoobj/ChartTools.cxx
+++ b/sc/source/ui/unoobj/ChartTools.cxx
@@ -32,7 +32,7 @@ namespace tools {
namespace {
uno::Reference<chart2::data::XPivotTableDataProvider>
-getPivotTableDataProvider(SdrOle2Obj* pOleObject)
+getPivotTableDataProvider(const SdrOle2Obj* pOleObject)
{
uno::Reference<chart2::data::XPivotTableDataProvider> xPivotTableDataProvider;
@@ -49,7 +49,7 @@ getPivotTableDataProvider(SdrOle2Obj* pOleObject)
return xPivotTableDataProvider;
}
-OUString getAssociatedPivotTableName(SdrOle2Obj* pOleObject)
+OUString getAssociatedPivotTableName(const SdrOle2Obj* pOleObject)
{
OUString aPivotTableName;
uno::Reference<chart2::data::XPivotTableDataProvider> xPivotTableDataProvider;
diff --git a/sc/source/ui/unoobj/PivotTableDataProvider.cxx b/sc/source/ui/unoobj/PivotTableDataProvider.cxx
index 90450c17c51d..971a46a8938c 100644
--- a/sc/source/ui/unoobj/PivotTableDataProvider.cxx
+++ b/sc/source/ui/unoobj/PivotTableDataProvider.cxx
@@ -66,7 +66,7 @@ const SfxItemPropertyMapEntry* lcl_GetDataProviderPropertyMap()
return aDataProviderPropertyMap_Impl;
}
-uno::Reference<frame::XModel> lcl_GetXModel(ScDocument * pDoc)
+uno::Reference<frame::XModel> lcl_GetXModel(const ScDocument * pDoc)
{
uno::Reference<frame::XModel> xModel;
SfxObjectShell* pObjSh(pDoc ? pDoc->GetDocumentShell() : nullptr);
diff --git a/sc/source/ui/unoobj/PivotTableDataSource.cxx b/sc/source/ui/unoobj/PivotTableDataSource.cxx
index 28f4d7a44085..395d5f577ac1 100644
--- a/sc/source/ui/unoobj/PivotTableDataSource.cxx
+++ b/sc/source/ui/unoobj/PivotTableDataSource.cxx
@@ -23,7 +23,7 @@ namespace sc
SC_SIMPLE_SERVICE_INFO(PivotTableDataSource, "PivotTableDataSource", "com.sun.star.chart2.data.DataSource")
-PivotTableDataSource::PivotTableDataSource(std::vector<css::uno::Reference<css::chart2::data::XLabeledDataSequence>>& xLabeledSequence)
+PivotTableDataSource::PivotTableDataSource(const std::vector<css::uno::Reference<css::chart2::data::XLabeledDataSequence>>& xLabeledSequence)
: m_xLabeledSequence(xLabeledSequence)
{
}
diff --git a/sc/source/ui/unoobj/miscuno.cxx b/sc/source/ui/unoobj/miscuno.cxx
index e66afe621623..991402e7a14e 100644
--- a/sc/source/ui/unoobj/miscuno.cxx
+++ b/sc/source/ui/unoobj/miscuno.cxx
@@ -177,7 +177,7 @@ sal_Int32 ScUnoHelpFunctions::GetEnumFromAny( const uno::Any& aAny )
}
void ScUnoHelpFunctions::SetOptionalPropertyValue(
- Reference<beans::XPropertySet>& rPropSet, const sal_Char* pPropName, const Any& rVal )
+ const Reference<beans::XPropertySet>& rPropSet, const sal_Char* pPropName, const Any& rVal )
{
try
{
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index 457d659c006c..c8656949b904 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -74,7 +74,7 @@ const SvEventDescription* ScShapeObj::GetSupportedMacroItems()
return aMacroDescriptionsImpl;
}
// #i66550 HLINK_FOR_SHAPES
-ScMacroInfo* ScShapeObj_getShapeHyperMacroInfo( ScShapeObj* pShape, bool bCreate = false )
+ScMacroInfo* ScShapeObj_getShapeHyperMacroInfo( const ScShapeObj* pShape, bool bCreate = false )
{
if( pShape )
if( SdrObject* pObj = pShape->GetSdrObject() )
@@ -244,7 +244,7 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScShapeObj::getPropertySetInfo(
return mxPropSetInfo;
}
-static bool lcl_GetPageNum( SdrPage* pPage, SdrModel& rModel, SCTAB& rNum )
+static bool lcl_GetPageNum( const SdrPage* pPage, SdrModel& rModel, SCTAB& rNum )
{
sal_uInt16 nCount = rModel.GetPageCount();
for (sal_uInt16 i=0; i<nCount; i++)
@@ -257,7 +257,7 @@ static bool lcl_GetPageNum( SdrPage* pPage, SdrModel& rModel, SCTAB& rNum )
return false;
}
-static bool lcl_GetCaptionPoint( uno::Reference< drawing::XShape >& xShape, awt::Point& rCaptionPoint )
+static bool lcl_GetCaptionPoint( const uno::Reference< drawing::XShape >& xShape, awt::Point& rCaptionPoint )
{
bool bReturn = false;
OUString sType(xShape->getShapeType());
@@ -274,7 +274,7 @@ static bool lcl_GetCaptionPoint( uno::Reference< drawing::XShape >& xShape, awt:
return bReturn;
}
-static ScRange lcl_GetAnchorCell( uno::Reference< drawing::XShape >& xShape, ScDocument* pDoc, SCTAB nTab,
+static ScRange lcl_GetAnchorCell( const uno::Reference< drawing::XShape >& xShape, const ScDocument* pDoc, SCTAB nTab,
awt::Point& rUnoPoint, awt::Size& rUnoSize, awt::Point& rCaptionPoint )
{
ScRange aReturn;
@@ -308,7 +308,7 @@ static ScRange lcl_GetAnchorCell( uno::Reference< drawing::XShape >& xShape, ScD
return aReturn;
}
-static awt::Point lcl_GetRelativePos( uno::Reference< drawing::XShape >& xShape, ScDocument* pDoc, SCTAB nTab, ScRange& rRange,
+static awt::Point lcl_GetRelativePos( const uno::Reference< drawing::XShape >& xShape, const ScDocument* pDoc, SCTAB nTab, ScRange& rRange,
awt::Size& rUnoSize, awt::Point& rCaptionPoint)
{
awt::Point aUnoPoint;
diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx
index e0df47d8e92c..96b90f69ac24 100644
--- a/sc/source/ui/unoobj/styleuno.cxx
+++ b/sc/source/ui/unoobj/styleuno.cxx
@@ -388,7 +388,7 @@ SC_SIMPLE_SERVICE_INFO( ScStyleFamilyObj, "ScStyleFamilyObj", "com.sun.star.styl
#define SC_PAPERBIN_DEFAULTNAME "[From printer settings]"
-static bool lcl_AnyTabProtected( ScDocument& rDoc )
+static bool lcl_AnyTabProtected( const ScDocument& rDoc )
{
SCTAB nTabCount = rDoc.GetTableCount();
for (SCTAB i=0; i<nTabCount; i++)
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx
index 5a9329e51c16..d0708935c440 100644
--- a/sc/source/ui/unoobj/viewuno.cxx
+++ b/sc/source/ui/unoobj/viewuno.cxx
@@ -633,7 +633,7 @@ static bool lcl_TabInRanges( SCTAB nTab, const ScRangeList& rRanges )
return false;
}
-static void lcl_ShowObject( ScTabViewShell& rViewSh, ScDrawView& rDrawView, SdrObject* pSelObj )
+static void lcl_ShowObject( ScTabViewShell& rViewSh, const ScDrawView& rDrawView, const SdrObject* pSelObj )
{
bool bFound = false;
SCTAB nObjectTab = 0;