summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/inc/Outliner.hxx4
-rw-r--r--sd/inc/sddll.hxx2
-rw-r--r--sd/source/filter/sdpptwrp.cxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx4
-rw-r--r--sd/source/ui/app/sddll.cxx2
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx2
-rw-r--r--sd/source/ui/inc/GraphicObjectBar.hxx2
-rw-r--r--sd/source/ui/inc/MediaObjectBar.hxx2
-rw-r--r--sd/source/ui/inc/registerinterfaces.hxx2
-rw-r--r--sd/source/ui/table/tablefunction.cxx2
-rw-r--r--sd/source/ui/table/tableobjectbar.cxx2
-rw-r--r--sd/source/ui/view/GraphicObjectBar.cxx2
-rw-r--r--sd/source/ui/view/MediaObjectBar.cxx2
-rw-r--r--sd/source/ui/view/Outliner.cxx8
-rw-r--r--sd/source/ui/view/drtxtob1.cxx2
-rw-r--r--sd/source/ui/view/drviews2.cxx2
16 files changed, 21 insertions, 21 deletions
diff --git a/sd/inc/Outliner.hxx b/sd/inc/Outliner.hxx
index d49140a6ea3f..adee254359e1 100644
--- a/sd/inc/Outliner.hxx
+++ b/sd/inc/Outliner.hxx
@@ -360,8 +360,8 @@ private:
*/
bool SearchAndReplaceOnce(std::vector<::sd::SearchSelection>* pSelections = nullptr);
- void sendLOKSearchResultCallback(std::shared_ptr<sd::ViewShell>& pViewShell,
- OutlinerView* pOutlinerView,
+ void sendLOKSearchResultCallback(const std::shared_ptr<sd::ViewShell>& pViewShell,
+ const OutlinerView* pOutlinerView,
std::vector<sd::SearchSelection>* pSelections);
/** Detect changes of the document or view and react accordingly. Such
diff --git a/sd/inc/sddll.hxx b/sd/inc/sddll.hxx
index 5c3b876d6c66..082445e2ca28 100644
--- a/sd/inc/sddll.hxx
+++ b/sd/inc/sddll.hxx
@@ -40,7 +40,7 @@ class SD_DLLPUBLIC SdDLL final
static void RegisterRemotes();
#endif
static void RegisterFactorys();
- static void RegisterInterfaces(SdModule* pMod);
+ static void RegisterInterfaces(const SdModule* pMod);
static void RegisterControllers(SdModule* pMod);
public:
diff --git a/sd/source/filter/sdpptwrp.cxx b/sd/source/filter/sdpptwrp.cxx
index 7b6876af7535..bf76d1c6df49 100644
--- a/sd/source/filter/sdpptwrp.cxx
+++ b/sd/source/filter/sdpptwrp.cxx
@@ -103,7 +103,7 @@ static void lcl_getListOfStreams(SotStorage * pStorage, comphelper::SequenceAsHa
}
}
-static tools::SvRef<SotStorage> lcl_DRMDecrypt(SfxMedium& rMedium, tools::SvRef<SotStorage>& rStorage, std::shared_ptr<SvStream>& rNewStorageStrm)
+static tools::SvRef<SotStorage> lcl_DRMDecrypt(const SfxMedium& rMedium, const tools::SvRef<SotStorage>& rStorage, std::shared_ptr<SvStream>& rNewStorageStrm)
{
tools::SvRef<SotStorage> aNewStorage;
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 16788bfc9045..123582bf791d 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -220,7 +220,7 @@ public:
const CustomAnimationEffectPtr& pEffect);
const CustomAnimationEffectPtr& getEffect() const { return mpEffect; }
- Size GetSize(vcl::RenderContext& rRenderContext);
+ Size GetSize(const vcl::RenderContext& rRenderContext);
void Paint(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& rRect, bool bSelected);
void PaintEffect(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& rRect, bool bSelected);
void PaintTrigger(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& rRect);
@@ -281,7 +281,7 @@ IMPL_STATIC_LINK(CustomAnimationList, CustomGetSizeHdl, weld::TreeView::get_size
return pItem->GetSize(rRenderContext);
}
-Size CustomAnimationListEntryItem::GetSize(vcl::RenderContext& rRenderContext)
+Size CustomAnimationListEntryItem::GetSize(const vcl::RenderContext& rRenderContext)
{
auto width = rRenderContext.GetTextWidth( msDescription ) + nIconWidth;
if (width < (rRenderContext.GetTextWidth( msEffectName ) + 2*nIconWidth))
diff --git a/sd/source/ui/app/sddll.cxx b/sd/source/ui/app/sddll.cxx
index bb52a9722dbd..63ab45f8b6cd 100644
--- a/sd/source/ui/app/sddll.cxx
+++ b/sd/source/ui/app/sddll.cxx
@@ -113,7 +113,7 @@ void SdDLL::RegisterFactorys()
// Register all Interfaces
-void SdDLL::RegisterInterfaces(SdModule* pMod)
+void SdDLL::RegisterInterfaces(const SdModule* pMod)
{
// Module
SdModule::RegisterInterface(pMod);
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 7d7f6a26ec5b..780f8a6ce35b 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -349,7 +349,7 @@ IMPL_LINK(SdPageObjsTLV, DragBeginHdl, bool&, rUnsetDragIcon, bool)
namespace
{
- bool CanDragSource(weld::TreeView& rTreeView)
+ bool CanDragSource(const weld::TreeView& rTreeView)
{
std::unique_ptr<weld::TreeIter> xSource(rTreeView.make_iterator());
if (!rTreeView.get_selected(xSource.get()))
diff --git a/sd/source/ui/inc/GraphicObjectBar.hxx b/sd/source/ui/inc/GraphicObjectBar.hxx
index 528dfd7c8c46..6d4906fc3de9 100644
--- a/sd/source/ui/inc/GraphicObjectBar.hxx
+++ b/sd/source/ui/inc/GraphicObjectBar.hxx
@@ -34,7 +34,7 @@ class GraphicObjectBar final
public:
SFX_DECL_INTERFACE( SD_IF_SDDRAWGRAFOBJECTBAR )
- GraphicObjectBar (ViewShell* pSdViewShell, ::sd::View* pSdView);
+ GraphicObjectBar (const ViewShell* pSdViewShell, ::sd::View* pSdView);
virtual ~GraphicObjectBar() override;
void GetAttrState( SfxItemSet& rSet );
diff --git a/sd/source/ui/inc/MediaObjectBar.hxx b/sd/source/ui/inc/MediaObjectBar.hxx
index 7c70f340226b..ef0b12964a53 100644
--- a/sd/source/ui/inc/MediaObjectBar.hxx
+++ b/sd/source/ui/inc/MediaObjectBar.hxx
@@ -39,7 +39,7 @@ class MediaObjectBar final
public:
SFX_DECL_INTERFACE( SD_IF_SDDRAWMEDIAOBJECTBAR )
- MediaObjectBar (ViewShell* pSdViewShell, ::sd::View* pSdView);
+ MediaObjectBar (const ViewShell* pSdViewShell, ::sd::View* pSdView);
virtual ~MediaObjectBar() override;
void GetState( SfxItemSet& rSet );
diff --git a/sd/source/ui/inc/registerinterfaces.hxx b/sd/source/ui/inc/registerinterfaces.hxx
index d8ebb726ee35..15120cd03e4b 100644
--- a/sd/source/ui/inc/registerinterfaces.hxx
+++ b/sd/source/ui/inc/registerinterfaces.hxx
@@ -25,7 +25,7 @@
namespace sd::ui::table {
-void RegisterInterfaces( SfxModule* pMod );
+void RegisterInterfaces( const SfxModule* pMod );
}
diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx
index 1f49f5fc2fff..c420397e1621 100644
--- a/sd/source/ui/table/tablefunction.cxx
+++ b/sd/source/ui/table/tablefunction.cxx
@@ -84,7 +84,7 @@ static void apply_table_style( SdrTableObj* pObj, SdrModel const * pModel, const
}
}
-static void InsertTableImpl(DrawViewShell* pShell,
+static void InsertTableImpl(const DrawViewShell* pShell,
::sd::View* pView,
sal_Int32 nColumns,
sal_Int32 nRows,
diff --git a/sd/source/ui/table/tableobjectbar.cxx b/sd/source/ui/table/tableobjectbar.cxx
index 846d5fb6bbfc..d351094eae9b 100644
--- a/sd/source/ui/table/tableobjectbar.cxx
+++ b/sd/source/ui/table/tableobjectbar.cxx
@@ -55,7 +55,7 @@ SfxShell* CreateTableObjectBar( ViewShell& rShell, ::sd::View* pView )
}
/** registers the interfaces from the table ui */
-void RegisterInterfaces(SfxModule* pMod)
+void RegisterInterfaces(const SfxModule* pMod)
{
TableObjectBar::RegisterInterface(pMod);
}
diff --git a/sd/source/ui/view/GraphicObjectBar.cxx b/sd/source/ui/view/GraphicObjectBar.cxx
index 0324088fb123..cba43660e629 100644
--- a/sd/source/ui/view/GraphicObjectBar.cxx
+++ b/sd/source/ui/view/GraphicObjectBar.cxx
@@ -48,7 +48,7 @@ void GraphicObjectBar::InitInterface_Impl()
GraphicObjectBar::GraphicObjectBar (
- ViewShell* pSdViewShell,
+ const ViewShell* pSdViewShell,
::sd::View* pSdView )
: SfxShell (pSdViewShell->GetViewShell()),
mpView ( pSdView )
diff --git a/sd/source/ui/view/MediaObjectBar.cxx b/sd/source/ui/view/MediaObjectBar.cxx
index 7d7549885656..b6ee505f98a5 100644
--- a/sd/source/ui/view/MediaObjectBar.cxx
+++ b/sd/source/ui/view/MediaObjectBar.cxx
@@ -48,7 +48,7 @@ void MediaObjectBar::InitInterface_Impl()
{
}
-MediaObjectBar::MediaObjectBar( ViewShell* pSdViewShell, ::sd::View* pSdView ) :
+MediaObjectBar::MediaObjectBar( const ViewShell* pSdViewShell, ::sd::View* pSdView ) :
SfxShell( pSdViewShell->GetViewShell() ),
mpView( pSdView )
{
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index b1e44ca3630b..6f8e5b76d10f 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -686,8 +686,8 @@ bool SdOutliner::SearchAndReplaceAll()
namespace
{
-basegfx::B2DRectangle getPDFSelection(std::unique_ptr<VectorGraphicSearch> & rVectorGraphicSearch,
- SdrObject* pObject)
+basegfx::B2DRectangle getPDFSelection(const std::unique_ptr<VectorGraphicSearch> & rVectorGraphicSearch,
+ const SdrObject* pObject)
{
basegfx::B2DRectangle aSelection;
@@ -725,8 +725,8 @@ basegfx::B2DRectangle getPDFSelection(std::unique_ptr<VectorGraphicSearch> & rVe
} // end namespace
-void SdOutliner::sendLOKSearchResultCallback(std::shared_ptr<sd::ViewShell> & pViewShell,
- OutlinerView* pOutlinerView,
+void SdOutliner::sendLOKSearchResultCallback(const std::shared_ptr<sd::ViewShell> & pViewShell,
+ const OutlinerView* pOutlinerView,
std::vector<sd::SearchSelection>* pSelections)
{
std::vector<::tools::Rectangle> aLogicRects;
diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx
index 1f7148b46fee..7b7b70624583 100644
--- a/sd/source/ui/view/drtxtob1.cxx
+++ b/sd/source/ui/view/drtxtob1.cxx
@@ -69,7 +69,7 @@
namespace
{
- void lcl_convertStringArguments(sal_uInt16 nSlot, std::unique_ptr<SfxItemSet>& pArgs)
+ void lcl_convertStringArguments(sal_uInt16 nSlot, const std::unique_ptr<SfxItemSet>& pArgs)
{
Color aColor;
OUString sColor;
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index dd9eb1f75b19..8f511aab3922 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -546,7 +546,7 @@ public:
}
};
- void lcl_convertStringArguments(sal_uInt16 nSlot, std::unique_ptr<SfxItemSet>& pArgs)
+ void lcl_convertStringArguments(sal_uInt16 nSlot, const std::unique_ptr<SfxItemSet>& pArgs)
{
Color aColor;
const SfxPoolItem* pItem = nullptr;