[Libreoffice-commits] core.git: connectivity/source emfio/inc emfio/source extensions/source include/sfx2 include/svx include/vcl oox/source opencl/source sc/inc sc/source sdext/source sd/source sfx2/inc sfx2/source svx/source sw/inc sw/source toolkit/source vcl/backendtest vcl/inc vcl/source vcl/unx writerfilter/source xmloff/source xmlsecurity/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 18 19:19:32 UTC 2021
connectivity/source/drivers/postgresql/pq_statement.cxx | 2
emfio/inc/mtftools.hxx | 2
emfio/source/reader/mtftools.cxx | 2
extensions/source/bibliography/general.cxx | 8
include/sfx2/LokControlHandler.hxx | 13 -
include/sfx2/childwin.hxx | 2
include/sfx2/devtools/ObjectInspectorWidgets.hxx | 2
include/sfx2/sidebar/SidebarController.hxx | 2
include/svx/MediaShellHelpers.hxx | 5
include/svx/fmshell.hxx | 2
include/svx/fontworkbar.hxx | 2
include/svx/svdpntv.hxx | 4
include/vcl/filter/SvmReader.hxx | 8
include/vcl/filter/SvmWriter.hxx | 110 +++++------
include/vcl/metaact.hxx | 148 ++++++++--------
include/vcl/toolkit/spinfld.hxx | 2
include/vcl/wall.hxx | 2
oox/source/export/drawingml.cxx | 2
oox/source/vml/vmlshape.cxx | 4
opencl/source/opencl_device.cxx | 2
sc/inc/postit.hxx | 2
sc/source/core/data/column3.cxx | 2
sc/source/core/data/drwlayer.cxx | 6
sc/source/core/data/postit.cxx | 2
sc/source/core/data/table3.cxx | 2
sc/source/filter/excel/xestyle.cxx | 4
sc/source/filter/inc/xestyle.hxx | 4
sc/source/ui/cctrl/checklistmenu.cxx | 2
sc/source/ui/docshell/docsh4.cxx | 2
sc/source/ui/drawfunc/chartsh.cxx | 2
sc/source/ui/drawfunc/drawsh2.cxx | 2
sc/source/ui/inc/checklistmenu.hxx | 2
sc/source/ui/inc/docsh.hxx | 2
sc/source/ui/inc/gridwin.hxx | 2
sc/source/ui/inc/viewutil.hxx | 2
sc/source/ui/view/cellsh1.cxx | 2
sc/source/ui/view/gridwin4.cxx | 2
sc/source/ui/view/tabvwsh4.cxx | 2
sc/source/ui/view/viewutil.cxx | 2
sd/source/filter/eppt/pptx-epptooxml.cxx | 4
sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx | 2
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 2
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 2
sfx2/inc/commandpopup/CommandPopup.hxx | 2
sfx2/inc/sidebar/DeckLayouter.hxx | 2
sfx2/source/appl/childwin.cxx | 4
sfx2/source/commandpopup/CommandPopup.cxx | 6
sfx2/source/devtools/DocumentModelTreeHandler.cxx | 6
sfx2/source/devtools/ObjectInspectorTreeHandler.cxx | 16 -
sfx2/source/dialog/templdlg.cxx | 2
sfx2/source/inc/templdgi.hxx | 2
sfx2/source/sidebar/DeckLayouter.cxx | 8
sfx2/source/sidebar/SidebarController.cxx | 2
svx/source/form/fmshell.cxx | 2
svx/source/inc/StylesPreviewWindow.hxx | 4
svx/source/svdraw/MediaShellHelpers.cxx | 4
svx/source/svdraw/svdpntv.cxx | 4
svx/source/tbxctrls/StylesPreviewWindow.cxx | 4
svx/source/toolbars/fontworkbar.cxx | 2
sw/inc/charformats.hxx | 2
sw/inc/textboxhelper.hxx | 4
sw/source/core/crsr/bookmrk.cxx | 4
sw/source/core/doc/DocumentContentOperationsManager.cxx | 4
sw/source/core/doc/DocumentRedlineManager.cxx | 2
sw/source/core/doc/docbm.cxx | 2
sw/source/core/doc/textboxhelper.cxx | 4
sw/source/core/inc/MarkManager.hxx | 2
sw/source/core/inc/bookmrk.hxx | 4
sw/source/core/txtnode/chrfmt.cxx | 2
sw/source/filter/indexing/IndexingExport.cxx | 6
sw/source/ui/dbui/dbtablepreviewdialog.cxx | 2
sw/source/uibase/shells/textsh1.cxx | 2
toolkit/source/controls/animatedimages.cxx | 2
vcl/backendtest/GraphicsRenderTests.cxx | 2
vcl/backendtest/outputdevice/common.cxx | 2
vcl/inc/filter/BmpWriter.hxx | 2
vcl/inc/filter/EpsWriter.hxx | 2
vcl/inc/filter/GifWriter.hxx | 2
vcl/inc/filter/TiffWriter.hxx | 4
vcl/inc/impgraph.hxx | 2
vcl/inc/test/outputdevice.hxx | 2
vcl/source/bitmap/bitmap.cxx | 2
vcl/source/control/spinfld.cxx | 2
vcl/source/filter/bmp/BmpWriter.cxx | 2
vcl/source/filter/egif/egif.cxx | 2
vcl/source/filter/eps/eps.cxx | 2
vcl/source/filter/etiff/etiff.cxx | 2
vcl/source/filter/svm/SvmReader.cxx | 8
vcl/source/filter/svm/SvmWriter.cxx | 109 +++++------
vcl/source/gdi/impgraph.cxx | 2
vcl/source/gdi/pdfwriter_impl.cxx | 6
vcl/source/gdi/pdfwriter_impl.hxx | 6
vcl/source/gdi/wall.cxx | 2
vcl/source/treelist/iconview.cxx | 2
vcl/unx/gtk3/gtkinst.cxx | 6
writerfilter/source/dmapper/DomainMapper_Impl.cxx | 2
xmloff/source/xforms/xformsapi.hxx | 4
xmlsecurity/source/helper/pdfsignaturehelper.cxx | 2
98 files changed, 338 insertions(+), 333 deletions(-)
New commits:
commit 18f202011661397d10ca4c2fa28fcf57b62221b0
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Aug 18 18:31:05 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Aug 18 21:18:29 2021 +0200
loplugin:constparams
Change-Id: Ic7410f836e584df45101e78e345c8b3c8d355e09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120680
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx
index 946d25b0c91e..48fd7b062c8b 100644
--- a/connectivity/source/drivers/postgresql/pq_statement.cxx
+++ b/connectivity/source/drivers/postgresql/pq_statement.cxx
@@ -559,7 +559,7 @@ static void getAutoValues(
const Reference< XConnection > & connection,
const OUString &schemaName,
const OUString & tableName,
- ConnectionSettings *pConnectionSettings )
+ const ConnectionSettings *pConnectionSettings )
{
OUString strDefaultValue = getColExprForDefaultSettingVal(pConnectionSettings);
Reference< XPreparedStatement > stmt = connection->prepareStatement(
diff --git a/emfio/inc/mtftools.hxx b/emfio/inc/mtftools.hxx
index 456f2349cbf9..1ee6efd68f26 100644
--- a/emfio/inc/mtftools.hxx
+++ b/emfio/inc/mtftools.hxx
@@ -495,7 +495,7 @@ namespace emfio
public:
ScaledFontDetectCorrectHelper();
void endCurrentMetaFontAction();
- void newCurrentMetaFontAction(rtl::Reference<MetaFontAction>& rNewMetaFontAction);
+ void newCurrentMetaFontAction(const rtl::Reference<MetaFontAction>& rNewMetaFontAction);
void evaluateAlternativeFontScale(OUString const & rText, tools::Long nImportedTextLength);
void applyAlternativeFontScale();
};
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx
index e4d2ed462bdb..ebc849430adc 100644
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -350,7 +350,7 @@ namespace emfio
maAlternativeFontScales.clear();
}
- void ScaledFontDetectCorrectHelper::newCurrentMetaFontAction(rtl::Reference<MetaFontAction>& rNewMetaFontAction)
+ void ScaledFontDetectCorrectHelper::newCurrentMetaFontAction(const rtl::Reference<MetaFontAction>& rNewMetaFontAction)
{
maCurrentMetaFontAction.clear();
maAlternativeFontScales.clear();
diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx
index 08880534eea6..daa32e562343 100644
--- a/extensions/source/bibliography/general.cxx
+++ b/extensions/source/bibliography/general.cxx
@@ -85,7 +85,7 @@ bool SplitUrlAndPage(const OUString& rText, OUString& rUrl, int& nPageNumber)
}
/// Merges rUrl and rPageSB to a URL string.
-OUString MergeUrlAndPage(const OUString& rUrl, weld::SpinButton& rPageSB)
+OUString MergeUrlAndPage(const OUString& rUrl, const weld::SpinButton& rPageSB)
{
if (!rPageSB.get_sensitive())
{
@@ -484,7 +484,7 @@ BibGeneralPage::~BibGeneralPage()
class ChangeListener : public cppu::WeakImplHelper<css::beans::XPropertyChangeListener>
{
public:
- explicit ChangeListener(css::uno::Reference<css::beans::XPropertySet>& rPropSet)
+ explicit ChangeListener(const css::uno::Reference<css::beans::XPropertySet>& rPropSet)
: m_xPropSet(rPropSet)
, m_bSelfChanging(false)
{
@@ -512,7 +512,7 @@ namespace
class EntryChangeListener : public ChangeListener
{
public:
- explicit EntryChangeListener(weld::Entry& rEntry, css::uno::Reference<css::beans::XPropertySet>& rPropSet,
+ explicit EntryChangeListener(weld::Entry& rEntry, const css::uno::Reference<css::beans::XPropertySet>& rPropSet,
BibGeneralPage& rPage)
: ChangeListener(rPropSet)
, m_rEntry(rEntry)
@@ -625,7 +625,7 @@ namespace
class ComboBoxChangeListener : public ChangeListener
{
public:
- explicit ComboBoxChangeListener(weld::ComboBox& rComboBox, css::uno::Reference<css::beans::XPropertySet>& rPropSet)
+ explicit ComboBoxChangeListener(weld::ComboBox& rComboBox, const css::uno::Reference<css::beans::XPropertySet>& rPropSet)
: ChangeListener(rPropSet)
, m_rComboBox(rComboBox)
{
diff --git a/include/sfx2/LokControlHandler.hxx b/include/sfx2/LokControlHandler.hxx
index 5a6d87529fb4..b32be1b70593 100644
--- a/include/sfx2/LokControlHandler.hxx
+++ b/include/sfx2/LokControlHandler.hxx
@@ -23,8 +23,9 @@
class LokControlHandler
{
public:
- static bool postMouseEvent(SdrPage* pPage, SdrView* pDrawView, vcl::Window const& rMainWindow,
- int nType, Point aPointHmm, int nCount, int nButtons, int nModifier)
+ static bool postMouseEvent(const SdrPage* pPage, const SdrView* pDrawView,
+ vcl::Window const& rMainWindow, int nType, Point aPointHmm,
+ int nCount, int nButtons, int nModifier)
{
SdrObjListIter aIterator(pPage, SdrIterMode::Flat);
while (aIterator.IsMore())
@@ -68,7 +69,7 @@ public:
return false;
}
- static void drawUnoControl(SdrView* pDrawView, SdrUnoObj* pUnoObect,
+ static void drawUnoControl(const SdrView* pDrawView, const SdrUnoObj* pUnoObect,
vcl::Window const& rMainWindow, VirtualDevice& rDevice,
tools::Rectangle const& rTileRectHMM, double scaleX, double scaleY)
{
@@ -104,9 +105,9 @@ public:
xControlView->draw(aRectanglePx.Left() * scaleX, aRectanglePx.Top() * scaleY);
}
- static void paintControlTile(SdrPage* pPage, SdrView* pDrawView, vcl::Window const& rMainWindow,
- VirtualDevice& rDevice, Size aOutputSize,
- tools::Rectangle const& rTileRect)
+ static void paintControlTile(const SdrPage* pPage, const SdrView* pDrawView,
+ vcl::Window const& rMainWindow, VirtualDevice& rDevice,
+ Size aOutputSize, tools::Rectangle const& rTileRect)
{
tools::Rectangle aTileRectHMM
= o3tl::convert(rTileRect, o3tl::Length::twip, o3tl::Length::mm100);
diff --git a/include/sfx2/childwin.hxx b/include/sfx2/childwin.hxx
index 3788c006cf36..e21832b575c4 100644
--- a/include/sfx2/childwin.hxx
+++ b/include/sfx2/childwin.hxx
@@ -94,7 +94,7 @@ struct SFX2_DLLPUBLIC SfxChildWinFactory
struct SfxChildWindow_Impl;
-extern SFX2_DLLPUBLIC bool ParentIsFloatingWindow(vcl::Window *pParent);
+extern SFX2_DLLPUBLIC bool ParentIsFloatingWindow(const vcl::Window *pParent);
class SFX2_DLLPUBLIC SfxChildWindow
{
diff --git a/include/sfx2/devtools/ObjectInspectorWidgets.hxx b/include/sfx2/devtools/ObjectInspectorWidgets.hxx
index 6481d786a222..9c719d2aabef 100644
--- a/include/sfx2/devtools/ObjectInspectorWidgets.hxx
+++ b/include/sfx2/devtools/ObjectInspectorWidgets.hxx
@@ -14,7 +14,7 @@
struct ObjectInspectorWidgets
{
- ObjectInspectorWidgets(std::unique_ptr<weld::Builder>& rxBuilder)
+ ObjectInspectorWidgets(const std::unique_ptr<weld::Builder>& rxBuilder)
: mpClassNameLabel(rxBuilder->weld_label("class_name_value_id"))
, mpInterfacesTreeView(rxBuilder->weld_tree_view("interfaces_treeview_id"))
, mpServicesTreeView(rxBuilder->weld_tree_view("services_treeview_id"))
diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx
index 3df8d8fb2e45..f65d260402ea 100644
--- a/include/sfx2/sidebar/SidebarController.hxx
+++ b/include/sfx2/sidebar/SidebarController.hxx
@@ -175,7 +175,7 @@ public:
bool hasChartContextCurrently() const;
- static SidebarController* GetSidebarControllerForView(SfxViewShell* pViewShell);
+ static SidebarController* GetSidebarControllerForView(const SfxViewShell* pViewShell);
private:
SidebarController(SidebarDockingWindow* pParentWindow, const SfxViewFrame* pViewFrame);
diff --git a/include/svx/MediaShellHelpers.hxx b/include/svx/MediaShellHelpers.hxx
index 5cfecaedf1a1..c0d27e37b60c 100644
--- a/include/svx/MediaShellHelpers.hxx
+++ b/include/svx/MediaShellHelpers.hxx
@@ -32,8 +32,9 @@ class MediaItem;
namespace svx::MediaShellHelpers
{
-SVX_DLLPUBLIC void GetState(SdrMarkView* pSdrView, SfxItemSet& rSet);
-SVX_DLLPUBLIC const ::avmedia::MediaItem* Execute(SdrMarkView* pSdrView, SfxRequest const& rReq);
+SVX_DLLPUBLIC void GetState(const SdrMarkView* pSdrView, SfxItemSet& rSet);
+SVX_DLLPUBLIC const ::avmedia::MediaItem* Execute(const SdrMarkView* pSdrView,
+ SfxRequest const& rReq);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/fmshell.hxx b/include/svx/fmshell.hxx
index 809f26e291c6..765f4eabcd2c 100644
--- a/include/svx/fmshell.hxx
+++ b/include/svx/fmshell.hxx
@@ -146,7 +146,7 @@ public:
void ToggleControlFocus(
const SdrUnoObj& i_rNextCandidate,
const SdrView& i_rView,
- OutputDevice& i_rDevice
+ const OutputDevice& i_rDevice
) const;
static ::std::unique_ptr< svx::ISdrObjectFilter >
diff --git a/include/svx/fontworkbar.hxx b/include/svx/fontworkbar.hxx
index 67c34c05e560..3b60c7b89a6b 100644
--- a/include/svx/fontworkbar.hxx
+++ b/include/svx/fontworkbar.hxx
@@ -33,7 +33,7 @@ class SdrObject;
namespace svx
{
bool SVXCORE_DLLPUBLIC checkForSelectedFontWork(SdrView const* pSdrView);
-bool SVXCORE_DLLPUBLIC checkForFontWork(SdrObject* pObj);
+bool SVXCORE_DLLPUBLIC checkForFontWork(const SdrObject* pObj);
class SAL_WARN_UNUSED SVXCORE_DLLPUBLIC FontworkBar final : public SfxShell
{
diff --git a/include/svx/svdpntv.hxx b/include/svx/svdpntv.hxx
index 83e080fbdc3a..15ae50d9222a 100644
--- a/include/svx/svdpntv.hxx
+++ b/include/svx/svdpntv.hxx
@@ -339,7 +339,7 @@ public:
SdrPaintWindow* BeginDrawLayers(OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect = false);
// Used when the region passed to BeginDrawLayers needs to be changed
- void UpdateDrawLayersRegion(OutputDevice* pOut, const vcl::Region& rReg);
+ void UpdateDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg);
void EndDrawLayers(SdrPaintWindow& rPaintWindow, bool bPaintFormLayer);
protected:
@@ -347,7 +347,7 @@ protected:
// Used to paint the form layer after the PreRender device is flushed (painted) to the window.
void ImpFormLayerDrawing( SdrPaintWindow& rPaintWindow );
- static vcl::Region OptimizeDrawLayersRegion(OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect);
+ static vcl::Region OptimizeDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect);
public:
/// Draw Page as a white area or not
diff --git a/include/vcl/filter/SvmReader.hxx b/include/vcl/filter/SvmReader.hxx
index 9ff9eda61e75..3cabcd9c66b4 100644
--- a/include/vcl/filter/SvmReader.hxx
+++ b/include/vcl/filter/SvmReader.hxx
@@ -51,10 +51,10 @@ public:
rtl::Reference<MetaAction> PolyLineHandler();
rtl::Reference<MetaAction> PolygonHandler();
rtl::Reference<MetaAction> PolyPolygonHandler();
- rtl::Reference<MetaAction> TextHandler(ImplMetaReadData* pData);
- rtl::Reference<MetaAction> TextArrayHandler(ImplMetaReadData* pData);
- rtl::Reference<MetaAction> StretchTextHandler(ImplMetaReadData* pData);
- rtl::Reference<MetaAction> TextRectHandler(ImplMetaReadData* pData);
+ rtl::Reference<MetaAction> TextHandler(const ImplMetaReadData* pData);
+ rtl::Reference<MetaAction> TextArrayHandler(const ImplMetaReadData* pData);
+ rtl::Reference<MetaAction> StretchTextHandler(const ImplMetaReadData* pData);
+ rtl::Reference<MetaAction> TextRectHandler(const ImplMetaReadData* pData);
rtl::Reference<MetaAction> TextLineHandler();
rtl::Reference<MetaAction> BmpHandler();
rtl::Reference<MetaAction> BmpScaleHandler();
diff --git a/include/vcl/filter/SvmWriter.hxx b/include/vcl/filter/SvmWriter.hxx
index 9237f62b2884..ea58db938d3f 100644
--- a/include/vcl/filter/SvmWriter.hxx
+++ b/include/vcl/filter/SvmWriter.hxx
@@ -39,58 +39,58 @@ public:
SvStream& Write(const GDIMetaFile& rMetaFile);
static BitmapChecksum GetChecksum(const GDIMetaFile& rMetaFile);
void MetaActionHandler(MetaAction* pAction, ImplMetaWriteData* pData);
- void ActionHandler(MetaAction* pAction);
- void PixelHandler(MetaPixelAction* pAction);
- void PointHandler(MetaPointAction* pAction);
- void LineHandler(MetaLineAction* pAction);
- void RectHandler(MetaRectAction* pAction);
- void RoundRectHandler(MetaRoundRectAction* pAction);
- void EllipseHandler(MetaEllipseAction* pAction);
- void ArcHandler(MetaArcAction* pAction);
- void PieHandler(MetaPieAction* pAction);
- void ChordHandler(MetaChordAction* pAction);
- void PolyLineHandler(MetaPolyLineAction* pAction);
- void PolygonHandler(MetaPolygonAction* pAction);
- void PolyPolygonHandler(MetaPolyPolygonAction* pAction);
- void TextHandler(MetaTextAction* pAction, ImplMetaWriteData* pData);
- void TextArrayHandler(MetaTextArrayAction* pAction, ImplMetaWriteData* pData);
- void StretchTextHandler(MetaStretchTextAction* pAction, ImplMetaWriteData* pData);
- void TextRectHandler(MetaTextRectAction* pAction, ImplMetaWriteData* pData);
- void TextLineHandler(MetaTextLineAction* pAction);
- void BmpHandler(MetaBmpAction* pAction);
- void BmpScaleHandler(MetaBmpScaleAction* pAction);
- void BmpScalePartHandler(MetaBmpScalePartAction* pAction);
- void BmpExHandler(MetaBmpExAction* pAction);
- void BmpExScaleHandler(MetaBmpExScaleAction* pAction);
- void BmpExScalePartHandler(MetaBmpExScalePartAction* pAction);
- void MaskHandler(MetaMaskAction* pAction);
- void MaskScaleHandler(MetaMaskScaleAction* pAction);
- void MaskScalePartHandler(MetaMaskScalePartAction* pAction);
- void GradientHandler(MetaGradientAction* pAction);
- void GradientExHandler(MetaGradientExAction* pAction);
- void HatchHandler(MetaHatchAction* pAction);
- void WallpaperHandler(MetaWallpaperAction* pAction);
- void ClipRegionHandler(MetaClipRegionAction* pAction);
- void ISectRectClipRegionHandler(MetaISectRectClipRegionAction* pAction);
- void ISectRegionClipRegionHandler(MetaISectRegionClipRegionAction* pAction);
- void MoveClipRegionHandler(MetaMoveClipRegionAction* pAction);
- void LineColorHandler(MetaLineColorAction* pAction);
- void FillColorHandler(MetaFillColorAction* pAction);
- void TextColorHandler(MetaTextColorAction* pAction);
- void TextFillColorHandler(MetaTextFillColorAction* pAction);
- void TextLineColorHandler(MetaTextLineColorAction* pAction);
- void OverlineColorHandler(MetaOverlineColorAction* pAction);
- void TextAlignHandler(MetaTextAlignAction* pAction);
- void MapModeHandler(MetaMapModeAction* pAction);
- void FontHandler(MetaFontAction* pAction, ImplMetaWriteData* pData);
- void PushHandler(MetaPushAction* pAction);
- void PopHandler(MetaPopAction* pAction);
- void RasterOpHandler(MetaRasterOpAction* pAction);
- void TransparentHandler(MetaTransparentAction* pAction);
- void FloatTransparentHandler(MetaFloatTransparentAction* pAction);
- void EPSHandler(MetaEPSAction* pAction);
- void RefPointHandler(MetaRefPointAction* pAction);
- void CommentHandler(MetaCommentAction* pAction);
- void LayoutModeHandler(MetaLayoutModeAction* pAction);
- void TextLanguageHandler(MetaTextLanguageAction* pAction);
-};
\ No newline at end of file
+ void ActionHandler(const MetaAction* pAction);
+ void PixelHandler(const MetaPixelAction* pAction);
+ void PointHandler(const MetaPointAction* pAction);
+ void LineHandler(const MetaLineAction* pAction);
+ void RectHandler(const MetaRectAction* pAction);
+ void RoundRectHandler(const MetaRoundRectAction* pAction);
+ void EllipseHandler(const MetaEllipseAction* pAction);
+ void ArcHandler(const MetaArcAction* pAction);
+ void PieHandler(const MetaPieAction* pAction);
+ void ChordHandler(const MetaChordAction* pAction);
+ void PolyLineHandler(const MetaPolyLineAction* pAction);
+ void PolygonHandler(const MetaPolygonAction* pAction);
+ void PolyPolygonHandler(const MetaPolyPolygonAction* pAction);
+ void TextHandler(const MetaTextAction* pAction, const ImplMetaWriteData* pData);
+ void TextArrayHandler(const MetaTextArrayAction* pAction, const ImplMetaWriteData* pData);
+ void StretchTextHandler(const MetaStretchTextAction* pAction, const ImplMetaWriteData* pData);
+ void TextRectHandler(const MetaTextRectAction* pAction, const ImplMetaWriteData* pData);
+ void TextLineHandler(const MetaTextLineAction* pAction);
+ void BmpHandler(const MetaBmpAction* pAction);
+ void BmpScaleHandler(const MetaBmpScaleAction* pAction);
+ void BmpScalePartHandler(const MetaBmpScalePartAction* pAction);
+ void BmpExHandler(const MetaBmpExAction* pAction);
+ void BmpExScaleHandler(const MetaBmpExScaleAction* pAction);
+ void BmpExScalePartHandler(const MetaBmpExScalePartAction* pAction);
+ void MaskHandler(const MetaMaskAction* pAction);
+ void MaskScaleHandler(const MetaMaskScaleAction* pAction);
+ void MaskScalePartHandler(const MetaMaskScalePartAction* pAction);
+ void GradientHandler(const MetaGradientAction* pAction);
+ void GradientExHandler(const MetaGradientExAction* pAction);
+ void HatchHandler(const MetaHatchAction* pAction);
+ void WallpaperHandler(const MetaWallpaperAction* pAction);
+ void ClipRegionHandler(const MetaClipRegionAction* pAction);
+ void ISectRectClipRegionHandler(const MetaISectRectClipRegionAction* pAction);
+ void ISectRegionClipRegionHandler(const MetaISectRegionClipRegionAction* pAction);
+ void MoveClipRegionHandler(const MetaMoveClipRegionAction* pAction);
+ void LineColorHandler(const MetaLineColorAction* pAction);
+ void FillColorHandler(const MetaFillColorAction* pAction);
+ void TextColorHandler(const MetaTextColorAction* pAction);
+ void TextFillColorHandler(const MetaTextFillColorAction* pAction);
+ void TextLineColorHandler(const MetaTextLineColorAction* pAction);
+ void OverlineColorHandler(const MetaOverlineColorAction* pAction);
+ void TextAlignHandler(const MetaTextAlignAction* pAction);
+ void MapModeHandler(const MetaMapModeAction* pAction);
+ void FontHandler(const MetaFontAction* pAction, ImplMetaWriteData* pData);
+ void PushHandler(const MetaPushAction* pAction);
+ void PopHandler(const MetaPopAction* pAction);
+ void RasterOpHandler(const MetaRasterOpAction* pAction);
+ void TransparentHandler(const MetaTransparentAction* pAction);
+ void FloatTransparentHandler(const MetaFloatTransparentAction* pAction);
+ void EPSHandler(const MetaEPSAction* pAction);
+ void RefPointHandler(const MetaRefPointAction* pAction);
+ void CommentHandler(const MetaCommentAction* pAction);
+ void LayoutModeHandler(const MetaLayoutModeAction* pAction);
+ void TextLanguageHandler(const MetaTextLanguageAction* pAction);
+};
diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx
index 45908e85ed8a..4cb1036edd4d 100644
--- a/include/vcl/metaact.hxx
+++ b/include/vcl/metaact.hxx
@@ -120,8 +120,8 @@ public:
const Point& GetPoint() const { return maPt; }
const Color& GetColor() const { return maColor; }
- void SetPoint(Point& rPt) { maPt = rPt; }
- void SetColor(Color& rColor) { maColor = rColor; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
+ void SetColor(Color rColor) { maColor = rColor; }
};
class SAL_DLLPUBLIC_RTTI MetaPointAction final : public MetaAction
@@ -147,7 +147,7 @@ public:
virtual void Scale( double fScaleX, double fScaleY ) override;
const Point& GetPoint() const { return maPt; }
- void SetPoint(Point& rPt) { maPt = rPt; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
};
class VCL_DLLPUBLIC MetaLineAction final : public MetaAction
@@ -180,9 +180,9 @@ public:
const Point& GetStartPoint() const { return maStartPt; }
const Point& GetEndPoint() const { return maEndPt; }
const LineInfo& GetLineInfo() const { return maLineInfo; }
- void SetStartPoint(Point& rPoint) { maStartPt = rPoint; }
- void SetEndPoint(Point& rPoint) { maEndPt = rPoint; }
- void SetLineInfo(LineInfo& rLineInfo) { maLineInfo = rLineInfo; }
+ void SetStartPoint(const Point& rPoint) { maStartPt = rPoint; }
+ void SetEndPoint(const Point& rPoint) { maEndPt = rPoint; }
+ void SetLineInfo(const LineInfo& rLineInfo) { maLineInfo = rLineInfo; }
};
class VCL_DLLPUBLIC MetaRectAction final : public MetaAction
@@ -209,7 +209,7 @@ public:
virtual void Scale( double fScaleX, double fScaleY ) override;
const tools::Rectangle& GetRect() const { return maRect; }
- void SetRect(tools::Rectangle& rRect) { maRect = rRect; }
+ void SetRect(const tools::Rectangle& rRect) { maRect = rRect; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaRoundRectAction final : public MetaAction
@@ -270,7 +270,7 @@ public:
virtual void Scale( double fScaleX, double fScaleY ) override;
const tools::Rectangle& GetRect() const { return maRect; }
- void SetRect(tools::Rectangle& rRect) { maRect = rRect; }
+ void SetRect(const tools::Rectangle& rRect) { maRect = rRect; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaArcAction final : public MetaAction
@@ -302,9 +302,9 @@ public:
const tools::Rectangle& GetRect() const { return maRect; }
const Point& GetStartPoint() const { return maStartPt; }
const Point& GetEndPoint() const { return maEndPt; }
- void SetRect(tools::Rectangle& rRect) { maRect = rRect; }
- void SetStartPoint(Point& rPoint) { maStartPt = rPoint; }
- void SetEndPoint(Point& rPoint) { maEndPt = rPoint; }
+ void SetRect(const tools::Rectangle& rRect) { maRect = rRect; }
+ void SetStartPoint(const Point& rPoint) { maStartPt = rPoint; }
+ void SetEndPoint(const Point& rPoint) { maEndPt = rPoint; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaPieAction final : public MetaAction
@@ -336,9 +336,9 @@ public:
const tools::Rectangle& GetRect() const { return maRect; }
const Point& GetStartPoint() const { return maStartPt; }
const Point& GetEndPoint() const { return maEndPt; }
- void SetRect(tools::Rectangle& rRect) { maRect = rRect; }
- void SetStartPoint(Point& rPoint) { maStartPt = rPoint; }
- void SetEndPoint(Point& rPoint) { maEndPt = rPoint; }
+ void SetRect(const tools::Rectangle& rRect) { maRect = rRect; }
+ void SetStartPoint(const Point& rPoint) { maStartPt = rPoint; }
+ void SetEndPoint(const Point& rPoint) { maEndPt = rPoint; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaChordAction final : public MetaAction
@@ -370,9 +370,9 @@ public:
const tools::Rectangle& GetRect() const { return maRect; }
const Point& GetStartPoint() const { return maStartPt; }
const Point& GetEndPoint() const { return maEndPt; }
- void SetRect(tools::Rectangle& rRect) { maRect = rRect; }
- void SetStartPoint(Point& rPoint) { maStartPt = rPoint; }
- void SetEndPoint(Point& rPoint) { maEndPt = rPoint; }
+ void SetRect(const tools::Rectangle& rRect) { maRect = rRect; }
+ void SetStartPoint(const Point& rPoint) { maStartPt = rPoint; }
+ void SetEndPoint(const Point& rPoint) { maEndPt = rPoint; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaPolyLineAction final : public MetaAction
@@ -402,8 +402,8 @@ public:
const tools::Polygon& GetPolygon() const { return maPoly; }
const LineInfo& GetLineInfo() const { return maLineInfo; }
- void SetLineInfo(LineInfo& rLineInfo) { maLineInfo = rLineInfo; }
- void SetPolygon(tools::Polygon& rPoly) { maPoly = rPoly; }
+ void SetLineInfo(const LineInfo& rLineInfo) { maLineInfo = rLineInfo; }
+ void SetPolygon(const tools::Polygon& rPoly) { maPoly = rPoly; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaPolygonAction final : public MetaAction
@@ -430,7 +430,7 @@ public:
virtual void Scale( double fScaleX, double fScaleY ) override;
const tools::Polygon& GetPolygon() const { return maPoly; }
- void SetPolygon(tools::Polygon& rPoly) { maPoly = rPoly; }
+ void SetPolygon(const tools::Polygon& rPoly) { maPoly = rPoly; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaPolyPolygonAction final : public MetaAction
@@ -457,7 +457,7 @@ public:
virtual void Scale( double fScaleX, double fScaleY ) override;
const tools::PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
- void SetPolyPolygon(tools::PolyPolygon& rPolyPoly) { maPolyPoly = rPolyPoly; }
+ void SetPolyPolygon(const tools::PolyPolygon& rPolyPoly) { maPolyPoly = rPolyPoly; }
};
class SAL_DLLPUBLIC_RTTI MetaTextAction final : public MetaAction
@@ -491,8 +491,8 @@ public:
const OUString& GetText() const { return maStr; }
sal_Int32 GetIndex() const { return mnIndex; }
sal_Int32 GetLen() const { return mnLen; }
- void SetPoint(Point& rPt) { maPt = rPt; }
- void SetText(OUString& rStr) { maStr = rStr; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
+ void SetText(const OUString& rStr) { maStr = rStr; }
void SetIndex(sal_Int32 rIndex) { mnIndex = rIndex; }
void SetLen(sal_Int32 rLen) { mnLen = rLen; }
};
@@ -529,8 +529,8 @@ public:
sal_Int32 GetIndex() const { return mnIndex; }
sal_Int32 GetLen() const { return mnLen; }
tools::Long* GetDXArray() const { return mpDXAry.get(); }
- void SetPoint(Point& rPt) { maStartPt = rPt; }
- void SetText(OUString& rStr) { maStr = rStr; }
+ void SetPoint(const Point& rPt) { maStartPt = rPt; }
+ void SetText(const OUString& rStr) { maStr = rStr; }
void SetIndex(sal_Int32 rIndex) { mnIndex = rIndex; }
void SetLen(sal_Int32 rLen) { mnLen = rLen; }
void SetDXArray(std::unique_ptr<tools::Long[]> aArray);
@@ -570,8 +570,8 @@ public:
sal_uInt32 GetWidth() const { return mnWidth; }
sal_Int32 GetIndex() const { return mnIndex; }
sal_Int32 GetLen() const { return mnLen; }
- void SetPoint(Point& rPt) { maPt = rPt; }
- void SetText(OUString& rStr) { maStr = rStr; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
+ void SetText(const OUString& rStr) { maStr = rStr; }
void SetWidth(sal_uInt32 rWidth) { mnWidth = rWidth; }
void SetIndex(sal_uInt32 rIndex) { mnIndex = rIndex; }
void SetLen(sal_uInt32 rLen) { mnLen = rLen; }
@@ -606,8 +606,8 @@ public:
const tools::Rectangle& GetRect() const { return maRect; }
const OUString& GetText() const { return maStr; }
DrawTextFlags GetStyle() const { return mnStyle; }
- void SetRect(tools::Rectangle& rRect) { maRect = rRect; }
- void SetText(OUString& rStr) { maStr = rStr; }
+ void SetRect(const tools::Rectangle& rRect) { maRect = rRect; }
+ void SetText(const OUString& rStr) { maStr = rStr; }
void SetStyle(DrawTextFlags rStyle) { mnStyle = rStyle; }
};
@@ -645,7 +645,7 @@ public:
FontStrikeout GetStrikeout() const { return meStrikeout; }
FontLineStyle GetUnderline() const { return meUnderline; }
FontLineStyle GetOverline() const { return meOverline; }
- void SetStartPoint(Point& rPos) { maPos = rPos; }
+ void SetStartPoint(const Point& rPos) { maPos = rPos; }
void SetWidth(tools::Long rWidth) { mnWidth = rWidth; }
void SetStrikeout(FontStrikeout eStrikeout) { meStrikeout = eStrikeout; }
void SetUnderline(FontLineStyle eUnderline) { meUnderline = eUnderline; }
@@ -678,8 +678,8 @@ public:
const Bitmap& GetBitmap() const { return maBmp; }
const Point& GetPoint() const { return maPt; }
- void SetBitmap(Bitmap& rBmp) { maBmp = rBmp; }
- void SetPoint(Point& rPt) { maPt = rPt; }
+ void SetBitmap(const Bitmap& rBmp) { maBmp = rBmp; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
};
class VCL_DLLPUBLIC MetaBmpScaleAction final : public MetaAction
@@ -711,9 +711,9 @@ public:
const Bitmap& GetBitmap() const { return maBmp; }
const Point& GetPoint() const { return maPt; }
const Size& GetSize() const { return maSz; }
- void SetBitmap(Bitmap& rBmp) { maBmp = rBmp; }
- void SetPoint(Point& rPt) { maPt = rPt; }
- void SetSize(Size& rSz) { maSz = rSz; }
+ void SetBitmap(const Bitmap& rBmp) { maBmp = rBmp; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
+ void SetSize(const Size& rSz) { maSz = rSz; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaBmpScalePartAction final : public MetaAction
@@ -750,11 +750,11 @@ public:
const Size& GetDestSize() const { return maDstSz; }
const Point& GetSrcPoint() const { return maSrcPt; }
const Size& GetSrcSize() const { return maSrcSz; }
- void SetBitmap(Bitmap& rBmp) { maBmp = rBmp; }
- void SetDestPoint(Point& rPt) { maDstPt = rPt; }
- void SetDestSize(Size& rSz) { maDstSz = rSz; }
- void SetSrcPoint(Point& rPt) { maSrcPt = rPt; }
- void SetSrcSize(Size& rSz) { maSrcSz = rSz; }
+ void SetBitmap(const Bitmap& rBmp) { maBmp = rBmp; }
+ void SetDestPoint(const Point& rPt) { maDstPt = rPt; }
+ void SetDestSize(const Size& rSz) { maDstSz = rSz; }
+ void SetSrcPoint(const Point& rPt) { maSrcPt = rPt; }
+ void SetSrcSize(const Size& rSz) { maSrcSz = rSz; }
};
class VCL_DLLPUBLIC MetaBmpExAction final : public MetaAction
@@ -784,7 +784,7 @@ public:
const BitmapEx& GetBitmapEx() const { return maBmpEx; }
const Point& GetPoint() const { return maPt; }
void SetBitmapEx(BitmapEx rBmpEx) { maBmpEx = rBmpEx; }
- void SetPoint(Point& rPt) { maPt = rPt; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
bool IsTransparent() const override { return GetBitmapEx().IsAlpha(); }
};
@@ -817,9 +817,9 @@ public:
const BitmapEx& GetBitmapEx() const { return maBmpEx; }
const Point& GetPoint() const { return maPt; }
const Size& GetSize() const { return maSz; }
- void SetBitmapEx(BitmapEx& rBmpEx) { maBmpEx = rBmpEx; }
- void SetPoint(Point& rPt) { maPt = rPt; }
- void SetSize(Size& rSz) { maSz = rSz; }
+ void SetBitmapEx(const BitmapEx& rBmpEx) { maBmpEx = rBmpEx; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
+ void SetSize(const Size& rSz) { maSz = rSz; }
bool IsTransparent() const override { return GetBitmapEx().IsAlpha(); }
};
@@ -857,11 +857,11 @@ public:
const Size& GetDestSize() const { return maDstSz; }
const Point& GetSrcPoint() const { return maSrcPt; }
const Size& GetSrcSize() const { return maSrcSz; }
- void SetBitmapEx(BitmapEx& rBmpEx) { maBmpEx = rBmpEx; }
- void SetDestPoint(Point& rDstPt) { maDstPt = rDstPt; }
- void SetDestSize(Size& rDstSz) { maDstSz = rDstSz; }
- void SetSrcPoint(Point& rSrcPt) { maSrcPt = rSrcPt; }
- void SetSrcSize(Size& rSrcSz) { maSrcSz = rSrcSz; }
+ void SetBitmapEx(const BitmapEx& rBmpEx) { maBmpEx = rBmpEx; }
+ void SetDestPoint(const Point& rDstPt) { maDstPt = rDstPt; }
+ void SetDestSize(const Size& rDstSz) { maDstSz = rDstSz; }
+ void SetSrcPoint(const Point& rSrcPt) { maSrcPt = rSrcPt; }
+ void SetSrcSize(const Size& rSrcSz) { maSrcSz = rSrcSz; }
bool IsTransparent() const override { return GetBitmapEx().IsAlpha(); }
};
@@ -895,8 +895,8 @@ public:
const Bitmap& GetBitmap() const { return maBmp; }
const Color& GetColor() const { return maColor; }
const Point& GetPoint() const { return maPt; }
- void SetBitmap(Bitmap& rBmp) { maBmp = rBmp; }
- void SetPoint(Point& rPt) { maPt = rPt; }
+ void SetBitmap(const Bitmap& rBmp) { maBmp = rBmp; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
};
class SAL_DLLPUBLIC_RTTI MetaMaskScaleAction final : public MetaAction
@@ -931,9 +931,9 @@ public:
const Color& GetColor() const { return maColor; }
const Point& GetPoint() const { return maPt; }
const Size& GetSize() const { return maSz; }
- void SetBitmap(Bitmap& rBmp) { maBmp = rBmp; }
- void SetPoint(Point& rPt) { maPt = rPt; }
- void SetSize(Size& rSz) { maSz = rSz; }
+ void SetBitmap(const Bitmap& rBmp) { maBmp = rBmp; }
+ void SetPoint(const Point& rPt) { maPt = rPt; }
+ void SetSize(const Size& rSz) { maSz = rSz; }
};
class SAL_DLLPUBLIC_RTTI MetaMaskScalePartAction final : public MetaAction
@@ -973,12 +973,12 @@ public:
const Size& GetDestSize() const { return maDstSz; }
const Point& GetSrcPoint() const { return maSrcPt; }
const Size& GetSrcSize() const { return maSrcSz; }
- void SetBitmap(Bitmap& rBmp) { maBmp = rBmp; }
- void SetColor(Color& rColor) { maColor = rColor; }
- void SetDestPoint(Point& rPt) { maDstPt = rPt; }
- void SetDestSize(Size& rSz) { maDstSz = rSz; }
- void SetSrcPoint(Point& rPt) { maSrcPt = rPt; }
- void SetSrcSize(Size& rSz) { maSrcSz = rSz; }
+ void SetBitmap(const Bitmap& rBmp) { maBmp = rBmp; }
+ void SetColor(Color rColor) { maColor = rColor; }
+ void SetDestPoint(const Point& rPt) { maDstPt = rPt; }
+ void SetDestSize(const Size& rSz) { maDstSz = rSz; }
+ void SetSrcPoint(const Point& rPt) { maSrcPt = rPt; }
+ void SetSrcSize(const Size& rSz) { maSrcSz = rSz; }
};
class SAL_DLLPUBLIC_RTTI MetaGradientAction final : public MetaAction
@@ -1007,8 +1007,8 @@ public:
const tools::Rectangle& GetRect() const { return maRect; }
const Gradient& GetGradient() const { return maGradient; }
- void SetGradient(Gradient& rGradient) { maGradient = rGradient; }
- void SetRect(tools::Rectangle& rRect) { maRect = rRect; }
+ void SetGradient(const Gradient& rGradient) { maGradient = rGradient; }
+ void SetRect(const tools::Rectangle& rRect) { maRect = rRect; }
};
class VCL_DLLPUBLIC MetaGradientExAction final : public MetaAction
@@ -1037,8 +1037,8 @@ public:
const tools::PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
const Gradient& GetGradient() const { return maGradient; }
- void SetPolyPolygon(tools::PolyPolygon& rPolyPoly) { maPolyPoly = rPolyPoly; }
- void SetGradient(Gradient& rGradient) { maGradient = rGradient; }
+ void SetPolyPolygon(const tools::PolyPolygon& rPolyPoly) { maPolyPoly = rPolyPoly; }
+ void SetGradient(const Gradient& rGradient) { maGradient = rGradient; }
};
class SAL_DLLPUBLIC_RTTI MetaHatchAction final : public MetaAction
@@ -1067,8 +1067,8 @@ public:
const tools::PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
const Hatch& GetHatch() const { return maHatch; }
- void SetPolyPolygon(tools::PolyPolygon& rPolyPoly) { maPolyPoly = rPolyPoly; }
- void SetHatch(Hatch& rHatch) { maHatch = rHatch; }
+ void SetPolyPolygon(const tools::PolyPolygon& rPolyPoly) { maPolyPoly = rPolyPoly; }
+ void SetHatch(const Hatch& rHatch) { maHatch = rHatch; }
};
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaWallpaperAction final : public MetaAction
@@ -1098,7 +1098,7 @@ public:
const tools::Rectangle& GetRect() const { return maRect; }
const Wallpaper& GetWallpaper() const { return maWallpaper; }
- void SetWallpaper(Wallpaper& rWallpaper) { maWallpaper = rWallpaper; }
+ void SetWallpaper(const Wallpaper& rWallpaper) { maWallpaper = rWallpaper; }
};
class VCL_DLLPUBLIC MetaClipRegionAction final : public MetaAction
@@ -1127,7 +1127,7 @@ public:
const vcl::Region& GetRegion() const { return maRegion; }
bool IsClipping() const { return mbClip; }
- void SetRegion(vcl::Region& rRegion) { maRegion = rRegion; }
+ void SetRegion(const vcl::Region& rRegion) { maRegion = rRegion; }
void SetClipping(bool bClip) { mbClip = bClip; }
};
@@ -1155,7 +1155,7 @@ public:
virtual void Scale( double fScaleX, double fScaleY ) override;
const tools::Rectangle& GetRect() const { return maRect; }
- void SetRect(tools::Rectangle& rRect) { maRect = rRect; }
+ void SetRect(const tools::Rectangle& rRect) { maRect = rRect; }
};
class VCL_DLLPUBLIC MetaISectRegionClipRegionAction final : public MetaAction
@@ -1182,7 +1182,7 @@ public:
virtual void Scale( double fScaleX, double fScaleY ) override;
const vcl::Region& GetRegion() const { return maRegion; }
- void SetRegion(vcl::Region& rRegion) { maRegion = rRegion; }
+ void SetRegion(const vcl::Region& rRegion) { maRegion = rRegion; }
};
class VCL_DLLPUBLIC MetaMoveClipRegionAction final : public MetaAction
@@ -1237,7 +1237,7 @@ public:
const Color& GetColor() const { return maColor; }
bool IsSetting() const { return mbSet; }
- void SetColor(Color& rColor) { maColor = rColor; }
+ void SetColor(const Color& rColor) { maColor = rColor; }
void SetSetting(bool rSet) { mbSet = rSet; }
};
@@ -1265,7 +1265,7 @@ public:
const Color& GetColor() const { return maColor; }
bool IsSetting() const { return mbSet; }
void SetSetting(bool rSet) { mbSet = rSet; }
- void SetColor(Color& rColor) { maColor = rColor; }
+ void SetColor(Color rColor) { maColor = rColor; }
};
@@ -1290,7 +1290,7 @@ public:
explicit MetaTextColorAction( const Color& );
const Color& GetColor() const { return maColor; }
- void SetColor(Color& rColor) { maColor = rColor; }
+ void SetColor(Color rColor) { maColor = rColor; }
};
class VCL_DLLPUBLIC MetaTextFillColorAction final : public MetaAction
@@ -1315,7 +1315,7 @@ public:
MetaTextFillColorAction( const Color& rColor, bool bSet );
const Color& GetColor() const { return maColor; }
- void SetColor(Color& rColor) { maColor = rColor; }
+ void SetColor(Color rColor) { maColor = rColor; }
void SetSetting(bool bSet) { mbSet = bSet; }
bool IsSetting() const { return mbSet; }
diff --git a/include/vcl/toolkit/spinfld.hxx b/include/vcl/toolkit/spinfld.hxx
index 2c81bd6140e8..78a52883cb16 100644
--- a/include/vcl/toolkit/spinfld.hxx
+++ b/include/vcl/toolkit/spinfld.hxx
@@ -79,7 +79,7 @@ protected:
private:
DECL_DLLPRIVATE_LINK( ImplTimeout, Timer*, void );
SAL_DLLPRIVATE void ImplInitSpinFieldData();
- SAL_DLLPRIVATE void ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, tools::Rectangle& rDDArea, tools::Rectangle& rSpinUpArea, tools::Rectangle& rSpinDownArea );
+ SAL_DLLPRIVATE void ImplCalcButtonAreas( const OutputDevice* pDev, const Size& rOutSz, tools::Rectangle& rDDArea, tools::Rectangle& rSpinUpArea, tools::Rectangle& rSpinDownArea );
VclPtr<Edit> mpEdit;
AutoTimer maRepeatTimer;
diff --git a/include/vcl/wall.hxx b/include/vcl/wall.hxx
index 53c8efb7080c..474d2afe500c 100644
--- a/include/vcl/wall.hxx
+++ b/include/vcl/wall.hxx
@@ -52,7 +52,7 @@ enum class WallpaperStyle
class VCL_DLLPUBLIC Wallpaper
{
public:
- SAL_DLLPRIVATE void ImplSetCachedBitmap( BitmapEx& rBmp ) const;
+ SAL_DLLPRIVATE void ImplSetCachedBitmap( const BitmapEx& rBmp ) const;
SAL_DLLPRIVATE const BitmapEx* ImplGetCachedBitmap() const;
SAL_DLLPRIVATE void ImplReleaseCachedBitmap() const;
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 196f6a8ae125..ebcc11ceae3a 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1863,7 +1863,7 @@ void DrawingML::WriteShapeTransformation( const Reference< XShape >& rXShape, sa
bFlipHWrite, bFlipVWrite, ExportRotateClockwisify(nRotation + nCameraRotation), IsGroupShape( rXShape ));
}
-static OUString lcl_GetTarget(const css::uno::Reference<css::frame::XModel>& xModel, OUString& rURL)
+static OUString lcl_GetTarget(const css::uno::Reference<css::frame::XModel>& xModel, std::u16string_view rURL)
{
Reference<drawing::XDrawPagesSupplier> xDPS(xModel, uno::UNO_QUERY_THROW);
Reference<drawing::XDrawPages> xDrawPages(xDPS->getDrawPages(), uno::UNO_SET_THROW);
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 4e4b848db941..8da6af119df1 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -1070,7 +1070,7 @@ namespace
pShape->NbcMirror(aCenter, aPoint2);
}
- void handleMirroring(const ShapeTypeModel& rTypeModel, Reference<XShape>& rxShape)
+ void handleMirroring(const ShapeTypeModel& rTypeModel, const Reference<XShape>& rxShape)
{
if (!rTypeModel.maFlip.isEmpty())
{
@@ -1084,7 +1084,7 @@ namespace
}
}
- void handleRotation(const ShapeTypeModel& rTypeModel, Reference<XShape>& rxShape)
+ void handleRotation(const ShapeTypeModel& rTypeModel, const Reference<XShape>& rxShape)
{
if (!rTypeModel.maRotation.isEmpty())
{
diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx
index 69ba12cbf21a..3444caf74930 100644
--- a/opencl/source/opencl_device.cxx
+++ b/opencl/source/opencl_device.cxx
@@ -407,7 +407,7 @@ int pickBestDevice(std::unique_ptr<ds_profile> const & profile)
}
/* Return device ID for matching device name */
-int matchDevice(std::unique_ptr<ds_profile> const & profile, char* deviceName)
+int matchDevice(std::unique_ptr<ds_profile> const & profile, const char* deviceName)
{
int deviceMatch = -1;
for (size_t d = 0; d < profile->devices.size() - 1; d++)
diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx
index 56db01401cfe..02a69edd1832 100644
--- a/sc/inc/postit.hxx
+++ b/sc/inc/postit.hxx
@@ -332,7 +332,7 @@ public:
*/
static ScPostIt* CreateNoteFromObjectData(
ScDocument& rDoc, const ScAddress& rPos,
- std::unique_ptr<SfxItemSet> pItemSet, OutlinerParaObject* pOutlinerObj,
+ std::unique_ptr<SfxItemSet> pItemSet, const OutlinerParaObject* pOutlinerObj,
const tools::Rectangle& rCaptionRect, bool bShown );
/** Creates a cell note based on the passed string and inserts it into the
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 1fee310edffa..b236eff858c7 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -2423,7 +2423,7 @@ class FilterEntriesHandler
ScColumn& mrColumn;
ScFilterEntries& mrFilterEntries;
- void processCell(ScColumn& rColumn, SCROW nRow, ScRefCellValue& rCell)
+ void processCell(const ScColumn& rColumn, SCROW nRow, ScRefCellValue& rCell)
{
SvNumberFormatter* pFormatter = mrColumn.GetDoc().GetFormatTable();
OUString aStr;
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 59eddd4690ef..0e1f55f4d7c8 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -679,13 +679,13 @@ bool lcl_AreRectanglesApproxEqual(const tools::Rectangle& rRectA, const tools::R
return true;
}
-bool lcl_NeedsMirrorYCorrection(SdrObject* pObj)
+bool lcl_NeedsMirrorYCorrection(const SdrObject* pObj)
{
return pObj->GetObjIdentifier() == OBJ_CUSTOMSHAPE
- && static_cast<SdrObjCustomShape*>(pObj)->IsMirroredY();
+ && static_cast<const SdrObjCustomShape*>(pObj)->IsMirroredY();
}
-void lcl_SetLogicRectFromAnchor(SdrObject* pObj, ScDrawObjData& rAnchor, ScDocument* pDoc)
+void lcl_SetLogicRectFromAnchor(SdrObject* pObj, const ScDrawObjData& rAnchor, const ScDocument* pDoc)
{
// This is only used during initialization. At that time, shape handling is always LTR. No need
// to consider negative page.
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index c1e13308d455..8f1e2d3710f7 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -1241,7 +1241,7 @@ ScPostIt* ScNoteUtil::CreateNoteFromCaption(
ScPostIt* ScNoteUtil::CreateNoteFromObjectData(
ScDocument& rDoc, const ScAddress& rPos, std::unique_ptr<SfxItemSet> pItemSet,
- OutlinerParaObject* pOutlinerObj, const tools::Rectangle& rCaptionRect,
+ const OutlinerParaObject* pOutlinerObj, const tools::Rectangle& rCaptionRect,
bool bShown )
{
OSL_ENSURE( pItemSet && pOutlinerObj, "ScNoteUtil::CreateNoteFromObjectData - item set and outliner object expected" );
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 7db5edad1662..d6b5c1999788 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -3023,7 +3023,7 @@ void ScTable::TopTenQuery( ScQueryParam& rParam )
namespace {
-bool CanOptimizeQueryStringToNumber( SvNumberFormatter* pFormatter, sal_uInt32 nFormatIndex, bool& bDateFormat )
+bool CanOptimizeQueryStringToNumber( const SvNumberFormatter* pFormatter, sal_uInt32 nFormatIndex, bool& bDateFormat )
{
// tdf#105629: ScQueryEntry::ByValue queries are faster than ScQueryEntry::ByString.
// The problem with this optimization is that the autofilter dialog apparently converts
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 1382fa444ff4..0b6d5ae95277 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -3180,7 +3180,7 @@ sal_Int32 XclExpDxfs::GetDxfId( const OUString& rStyleName )
return -1;
}
-sal_Int32 XclExpDxfs::GetDxfByBackColor(Color& aColor)
+sal_Int32 XclExpDxfs::GetDxfByBackColor(Color aColor)
{
std::map<Color, sal_Int32>::iterator itr = maBackColorToDxfId.find(aColor);
if (itr != maBackColorToDxfId.end())
@@ -3188,7 +3188,7 @@ sal_Int32 XclExpDxfs::GetDxfByBackColor(Color& aColor)
return -1;
}
-sal_Int32 XclExpDxfs::GetDxfByForeColor(Color& aColor)
+sal_Int32 XclExpDxfs::GetDxfByForeColor(Color aColor)
{
std::map<Color, sal_Int32>::iterator itr = maForeColorToDxfId.find(aColor);
if (itr != maForeColorToDxfId.end())
diff --git a/sc/source/filter/inc/xestyle.hxx b/sc/source/filter/inc/xestyle.hxx
index 70bd9b7fa0b2..d7588c72067a 100644
--- a/sc/source/filter/inc/xestyle.hxx
+++ b/sc/source/filter/inc/xestyle.hxx
@@ -749,8 +749,8 @@ public:
XclExpDxfs( const XclExpRoot& rRoot );
sal_Int32 GetDxfId(const OUString& rName);
- sal_Int32 GetDxfByBackColor(Color& aColor);
- sal_Int32 GetDxfByForeColor(Color& aColor);
+ sal_Int32 GetDxfByBackColor(Color aColor);
+ sal_Int32 GetDxfByForeColor(Color aColor);
virtual void SaveXml( XclExpXmlStream& rStrm) override;
private:
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index b5dfc71cf24b..60e57b59f72e 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -570,7 +570,7 @@ ScCheckListMenuControl::~ScCheckListMenuControl()
ScCheckListMenuWindow::ScCheckListMenuWindow(vcl::Window* pParent, ScDocument* pDoc, bool bCanHaveSubMenu,
bool bTreeMode, int nWidth, ScCheckListMenuWindow* pParentMenu,
- vcl::ILibreOfficeKitNotifier* pNotifier)
+ const vcl::ILibreOfficeKitNotifier* pNotifier)
: DropdownDockingWindow(pParent)
, mxParentMenu(pParentMenu)
{
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index e188d5e58423..8be67a6e0461 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -110,7 +110,7 @@ using namespace ::com::sun::star;
#include <svx/xdef.hxx>
-void ScDocShell::SetInitialLinkUpdate( SfxMedium* pMed )
+void ScDocShell::SetInitialLinkUpdate( const SfxMedium* pMed )
{
if (pMed)
{
diff --git a/sc/source/ui/drawfunc/chartsh.cxx b/sc/source/ui/drawfunc/chartsh.cxx
index 95b06385335e..d93b4a4d4249 100644
--- a/sc/source/ui/drawfunc/chartsh.cxx
+++ b/sc/source/ui/drawfunc/chartsh.cxx
@@ -42,7 +42,7 @@ namespace drawing = com::sun::star::drawing;
namespace {
-bool inChartContext(ScTabViewShell* pViewShell)
+bool inChartContext(const ScTabViewShell* pViewShell)
{
SidebarController* pSidebar = SidebarController::GetSidebarControllerForView(pViewShell);
if (pSidebar)
diff --git a/sc/source/ui/drawfunc/drawsh2.cxx b/sc/source/ui/drawfunc/drawsh2.cxx
index cdcb9211450f..7a288ecbd100 100644
--- a/sc/source/ui/drawfunc/drawsh2.cxx
+++ b/sc/source/ui/drawfunc/drawsh2.cxx
@@ -311,7 +311,7 @@ void ScDrawShell::GetDrawFuncState( SfxItemSet& rSet ) // disable functions
svx::FontworkBar::getState( pView, rSet );
}
-static void setupFillColorForChart(SfxViewShell* pShell, SfxItemSet& rSet)
+static void setupFillColorForChart(const SfxViewShell* pShell, SfxItemSet& rSet)
{
if (!pShell)
return;
diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx
index 4f6cfca68b92..465a259d5463 100644
--- a/sc/source/ui/inc/checklistmenu.hxx
+++ b/sc/source/ui/inc/checklistmenu.hxx
@@ -308,7 +308,7 @@ public:
explicit ScCheckListMenuWindow(vcl::Window* pParent, ScDocument* pDoc,
bool bCanHaveSubMenu, bool bTreeMode, int nWidth = -1,
ScCheckListMenuWindow* pParentMenu = nullptr,
- vcl::ILibreOfficeKitNotifier* pNotifier = nullptr);
+ const vcl::ILibreOfficeKitNotifier* pNotifier = nullptr);
virtual void dispose() override;
virtual ~ScCheckListMenuWindow() override;
diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx
index 83cd3a20857e..c8267ef02222 100644
--- a/sc/source/ui/inc/docsh.hxx
+++ b/sc/source/ui/inc/docsh.hxx
@@ -294,7 +294,7 @@ public:
virtual void ReconnectDdeLink(SfxObjectShell& rServer) override;
void UpdateLinks() override;
- void SetInitialLinkUpdate( SfxMedium* pMedium );
+ void SetInitialLinkUpdate( const SfxMedium* pMedium );
void AllowLinkUpdate();
void ReloadAllLinks();
void ReloadTabLinks();
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index daf6c35b652c..10d9fc68557a 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -311,7 +311,7 @@ class SAL_DLLPUBLIC_RTTI ScGridWindow : public vcl::Window, public DropTargetHel
Timer maShowPageBreaksTimer;
bool bInitialPageBreaks;
- void SetupInitialPageBreaks(ScDocument& rDoc, SCTAB nTab, bool bSetup);
+ void SetupInitialPageBreaks(const ScDocument& rDoc, SCTAB nTab, bool bSetup);
DECL_LINK(InitiatePageBreaksTimer, Timer*, void);
protected:
virtual void PrePaint(vcl::RenderContext& rRenderContext) override;
diff --git a/sc/source/ui/inc/viewutil.hxx b/sc/source/ui/inc/viewutil.hxx
index 228590b6aca4..c05b201c4ba0 100644
--- a/sc/source/ui/inc/viewutil.hxx
+++ b/sc/source/ui/inc/viewutil.hxx
@@ -41,7 +41,7 @@ enum class ScUpdateMode { All, Marks };
class SC_DLLPUBLIC ScViewUtil
{
public:
- static void ExecuteCharMap(const SvxFontItem& rOldFont, ScTabViewShell& rShell);
+ static void ExecuteCharMap(const SvxFontItem& rOldFont, const ScTabViewShell& rShell);
static bool IsActionShown( const ScChangeAction& rAction,
const ScChangeViewSettings& rSettings,
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 98ef8b4cbab0..505113ba9fdb 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -3037,7 +3037,7 @@ void SetupRangeForPivotTableDialog(const ScRange& rRange,
}
void ErrorOrRunPivotLayoutDialog(TranslateId pSrcErrorId,
- ScAddress& rDestPos,
+ const ScAddress& rDestPos,
ScModule* pScMod,
ScTabViewShell* pTabViewShell,
std::unique_ptr<ScDPObject>& pNewDPObject)
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 885ccfd104d3..eecf6a4d814b 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1275,7 +1275,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
}
-void ScGridWindow::SetupInitialPageBreaks(ScDocument& rDoc, SCTAB nTab, bool bSetup)
+void ScGridWindow::SetupInitialPageBreaks(const ScDocument& rDoc, SCTAB nTab, bool bSetup)
{
// tdf#124983, if option LibreOfficeDev Calc/View/Visual Aids/Page breaks
// is enabled, breaks should be visible. If the document is opened the first
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index f8f22b49b7ae..169b5e9b1348 100644
--- a/sc/source/ui/view/tabvwsh4.cxx
+++ b/sc/source/ui/view/tabvwsh4.cxx
@@ -90,7 +90,7 @@ using namespace sfx2::sidebar;
namespace {
-bool inChartContext(ScTabViewShell* pViewShell)
+bool inChartContext(const ScTabViewShell* pViewShell)
{
SidebarController* pSidebar = SidebarController::GetSidebarControllerForView(pViewShell);
if (pSidebar)
diff --git a/sc/source/ui/view/viewutil.cxx b/sc/source/ui/view/viewutil.cxx
index 5bb739cca971..cb4d8190ef7e 100644
--- a/sc/source/ui/view/viewutil.cxx
+++ b/sc/source/ui/view/viewutil.cxx
@@ -317,7 +317,7 @@ void ScViewUtil::HideDisabledSlot( SfxItemSet& rSet, SfxBindings& rBindings, sal
}
void ScViewUtil::ExecuteCharMap(const SvxFontItem& rOldFont,
- ScTabViewShell& rShell)
+ const ScTabViewShell& rShell)
{
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
SfxViewFrame& rFrame = *rShell.GetViewFrame();
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index bacfc54dc583..74a5925f92d9 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -121,7 +121,7 @@ public:
ShapeExport& WriteUnknownShape(const Reference< XShape >& xShape) override;
ShapeExport& WritePlaceholderShape(const Reference< XShape >& xShape, PlaceholderType ePlaceholder);
/** Writes a placeholder shape that references the placeholder on the master slide */
- ShapeExport& WritePlaceholderReferenceShape(PlaceholderType ePlaceholder, sal_Int32 nReferencedPlaceholderIdx, PageType ePageType, Reference<XPropertySet>& rXPagePropSet);
+ ShapeExport& WritePlaceholderReferenceShape(PlaceholderType ePlaceholder, sal_Int32 nReferencedPlaceholderIdx, PageType ePageType, const Reference<XPropertySet>& rXPagePropSet);
ShapeExport& WritePageShape(const Reference< XShape >& xShape, PageType ePageType, bool bPresObj);
/** Writes textbody of a placeholder that references the placeholder on the master slide */
ShapeExport& WritePlaceholderReferenceTextBody(PlaceholderType ePlaceholder, PageType ePageType, const Reference<XPropertySet> xPagePropSet);
@@ -1667,7 +1667,7 @@ ShapeExport& PowerPointShapeExport::WritePlaceholderShape(const Reference< XShap
ShapeExport& PowerPointShapeExport::WritePlaceholderReferenceShape(
PlaceholderType ePlaceholder, sal_Int32 nReferencedPlaceholderIdx, PageType ePageType,
- Reference<XPropertySet>& rXPagePropSet)
+ const Reference<XPropertySet>& rXPagePropSet)
{
mpFS->startElementNS(XML_p, XML_sp);
diff --git a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
index dfa667984a12..5e7c9716a7e1 100644
--- a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
+++ b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
@@ -74,7 +74,7 @@ namespace sd::slidesorter {
namespace {
-bool inChartContext(sd::View* pView)
+bool inChartContext(const sd::View* pView)
{
if (!pView)
return false;
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
index 58fa1d61e969..54caf6728133 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
@@ -427,7 +427,7 @@ static void writeMaskLF( OutputBuffer& o_rOutputBuf,
bool bInvert ) { writeMask_(o_rOutputBuf,str,width,height,bInvert); }
-int PDFOutDev::parseFont( long long nNewId, GfxFont* gfxFont, GfxState* state ) const
+int PDFOutDev::parseFont( long long nNewId, GfxFont* gfxFont, const GfxState* state ) const
{
FontAttributes aNewFont;
int nSize = 0;
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
index 2e7d2186f9a1..41e4752dde61 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -147,7 +147,7 @@ namespace pdfi
std::unique_ptr<UnicodeMap> m_pUtf8Map;
bool m_bSkipImages;
- int parseFont( long long nNewId, GfxFont* pFont, GfxState* state ) const;
+ int parseFont( long long nNewId, GfxFont* pFont, const GfxState* state ) const;
void writeFontFile( GfxFont* gfxFont ) const;
#if POPPLER_CHECK_VERSION(0, 83, 0)
static void printPath( const GfxPath* pPath );
diff --git a/sfx2/inc/commandpopup/CommandPopup.hxx b/sfx2/inc/commandpopup/CommandPopup.hxx
index 143f0de25adb..5cea112609ad 100644
--- a/sfx2/inc/commandpopup/CommandPopup.hxx
+++ b/sfx2/inc/commandpopup/CommandPopup.hxx
@@ -77,7 +77,7 @@ private:
std::function<bool(MenuContent const&, OUString const&)> const& rSearchCriterium);
void addCommandIfPossible(MenuContent const& rMenuContent,
- std::unique_ptr<weld::TreeView>& rpCommandTreeView,
+ const std::unique_ptr<weld::TreeView>& rpCommandTreeView,
std::vector<CurrentEntry>& rCommandList);
};
diff --git a/sfx2/inc/sidebar/DeckLayouter.hxx b/sfx2/inc/sidebar/DeckLayouter.hxx
index c814abd98921..a40868f4501c 100644
--- a/sfx2/inc/sidebar/DeckLayouter.hxx
+++ b/sfx2/inc/sidebar/DeckLayouter.hxx
@@ -33,7 +33,7 @@ class SidebarDockingWindow;
namespace DeckLayouter
{
void LayoutDeck (
- SidebarDockingWindow* pDockingWindow,
+ const SidebarDockingWindow* pDockingWindow,
const tools::Rectangle& rContentArea,
sal_Int32& rMinimalWidth,
sal_Int32& rMinimalHeight,
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index eaf7f960a8bb..a608c919638b 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -427,12 +427,12 @@ void SfxChildWindow::InitializeChildWinFactory_Impl(sal_uInt16 nId, SfxChildWinI
rInfo.nFlags = static_cast<SfxChildWindowFlags>(static_cast<sal_uInt16>(aWinData.copy( nPos+1 ).toInt32()));
}
-bool ParentIsFloatingWindow(vcl::Window *pParent)
+bool ParentIsFloatingWindow(const vcl::Window *pParent)
{
if (!pParent)
return false;
if (pParent->GetType() == WindowType::DOCKINGWINDOW || pParent->GetType() == WindowType::TOOLBOX)
- return static_cast<DockingWindow*>(pParent)->GetFloatingWindow() != nullptr;
+ return static_cast<const DockingWindow*>(pParent)->GetFloatingWindow() != nullptr;
if (pParent->GetType() == WindowType::FLOATINGWINDOW)
return true;
return false;
diff --git a/sfx2/source/commandpopup/CommandPopup.cxx b/sfx2/source/commandpopup/CommandPopup.cxx
index 152e5b9959b4..b13d474b975b 100644
--- a/sfx2/source/commandpopup/CommandPopup.cxx
+++ b/sfx2/source/commandpopup/CommandPopup.cxx
@@ -141,9 +141,9 @@ void MenuContentHandler::findInMenuRecursive(
}
}
-void MenuContentHandler::addCommandIfPossible(MenuContent const& rMenuContent,
- std::unique_ptr<weld::TreeView>& rpCommandTreeView,
- std::vector<CurrentEntry>& rCommandList)
+void MenuContentHandler::addCommandIfPossible(
+ MenuContent const& rMenuContent, const std::unique_ptr<weld::TreeView>& rpCommandTreeView,
+ std::vector<CurrentEntry>& rCommandList)
{
if (m_aAdded.find(rMenuContent.m_aFullLabelWithPath) != m_aAdded.end())
return;
diff --git a/sfx2/source/devtools/DocumentModelTreeHandler.cxx b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
index 9b3dbb917812..2165efbf9c38 100644
--- a/sfx2/source/devtools/DocumentModelTreeHandler.cxx
+++ b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
@@ -90,8 +90,8 @@ public:
};
// append an entry to a input TreeView to a parent
-void lclAppendToParentEntry(std::unique_ptr<weld::TreeView>& rTree, weld::TreeIter const& rParent,
- DocumentModelTreeEntry* pEntry)
+void lclAppendToParentEntry(const std::unique_ptr<weld::TreeView>& rTree,
+ weld::TreeIter const& rParent, DocumentModelTreeEntry* pEntry)
{
OUString sId(OUString::number(reinterpret_cast<sal_Int64>(pEntry)));
OUString const& rString = pEntry->getString();
@@ -100,7 +100,7 @@ void lclAppendToParentEntry(std::unique_ptr<weld::TreeView>& rTree, weld::TreeIt
}
// append a root entry to a input TreeView
-OUString lclAppend(std::unique_ptr<weld::TreeView>& rTree, DocumentModelTreeEntry* pEntry)
+OUString lclAppend(const std::unique_ptr<weld::TreeView>& rTree, DocumentModelTreeEntry* pEntry)
{
OUString sId(OUString::number(reinterpret_cast<sal_Int64>(pEntry)));
OUString const& rString = pEntry->getString();
diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index 362907e92a4b..53f622554d62 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -347,7 +347,8 @@ public:
};
// appends the node to the root of the tree view
-OUString lclAppendNode(std::unique_ptr<weld::TreeView>& pTree, ObjectInspectorNodeInterface* pEntry)
+OUString lclAppendNode(const std::unique_ptr<weld::TreeView>& pTree,
+ ObjectInspectorNodeInterface* pEntry)
{
OUString sName = pEntry->getObjectName();
OUString sId(OUString::number(reinterpret_cast<sal_Int64>(pEntry)));
@@ -365,7 +366,7 @@ OUString lclAppendNode(std::unique_ptr<weld::TreeView>& pTree, ObjectInspectorNo
}
// appends the node to the parent
-OUString lclAppendNodeToParent(std::unique_ptr<weld::TreeView>& pTree,
+OUString lclAppendNodeToParent(const std::unique_ptr<weld::TreeView>& pTree,
const weld::TreeIter* pParent, ObjectInspectorNodeInterface* pEntry)
{
OUString sName = pEntry->getObjectName();
@@ -536,8 +537,8 @@ protected:
OUString mrInfo;
uno::Reference<uno::XComponentContext> mxContext;
- ObjectInspectorNodeInterface* createNodeObjectForAny(OUString const& rName, uno::Any& rAny,
- OUString const& mrInfo);
+ ObjectInspectorNodeInterface*
+ createNodeObjectForAny(OUString const& rName, const uno::Any& rAny, OUString const& mrInfo);
public:
BasicValueNode(OUString const& rName, uno::Any const& rAny, OUString const& rInfo,
@@ -869,8 +870,9 @@ void StructNode::fillChildren(std::unique_ptr<weld::TreeView>& pTree, const weld
}
}
-ObjectInspectorNodeInterface*
-BasicValueNode::createNodeObjectForAny(OUString const& rName, uno::Any& rAny, OUString const& rInfo)
+ObjectInspectorNodeInterface* BasicValueNode::createNodeObjectForAny(OUString const& rName,
+ const uno::Any& rAny,
+ OUString const& rInfo)
{
switch (rAny.getValueType().getTypeClass())
{
@@ -1049,7 +1051,7 @@ IMPL_LINK(ObjectInspectorTreeHandler, SelectionChanged, weld::TreeView&, rTreeVi
mpObjectInspectorWidgets->mpToolbar->set_item_sensitive("inspect", bHaveNodeWithObject);
}
-static void updateOrder(std::unique_ptr<weld::TreeView>& pTreeView, sal_Int32 nColumn)
+static void updateOrder(const std::unique_ptr<weld::TreeView>& pTreeView, sal_Int32 nColumn)
{
pTreeView->set_sort_column(nColumn);
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index cd2ab4840310..0d17a7cbd4e4 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -393,7 +393,7 @@ static OUString lcl_GetStyleFamilyName( SfxStyleFamily nFamily )
return OUString();
}
-OUString SfxCommonTemplateDialog_Impl::getDefaultStyleName( const SfxStyleFamily eFam, StyleList& rStyleList )
+OUString SfxCommonTemplateDialog_Impl::getDefaultStyleName( const SfxStyleFamily eFam, const StyleList& rStyleList )
{
OUString sDefaultStyle;
OUString aFamilyName = lcl_GetStyleFamilyName(eFam);
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx
index d555f7404277..7b1ff1b5d736 100644
--- a/sfx2/source/inc/templdgi.hxx
+++ b/sfx2/source/inc/templdgi.hxx
@@ -63,7 +63,7 @@ private:
friend class DeletionWatcher;
DeletionWatcher* impl_setDeletionWatcher(DeletionWatcher* pNewWatcher);
- static OUString getDefaultStyleName( const SfxStyleFamily eFam, StyleList& rStyleList );
+ static OUString getDefaultStyleName( const SfxStyleFamily eFam, const StyleList& rStyleList );
protected:
#define MAX_FAMILIES 6
diff --git a/sfx2/source/sidebar/DeckLayouter.cxx b/sfx2/source/sidebar/DeckLayouter.cxx
index 54f100cd71a8..0fc874c2e367 100644
--- a/sfx2/source/sidebar/DeckLayouter.cxx
+++ b/sfx2/source/sidebar/DeckLayouter.cxx
@@ -61,7 +61,7 @@ namespace {
sal_Int32 mnWeight;
bool mbShowTitleBar;
- LayoutItem(std::shared_ptr<Panel>& pPanel)
+ LayoutItem(const std::shared_ptr<Panel>& pPanel)
: mpPanel(pPanel)
, maLayoutSize(0, 0, 0)
, mnDistributedHeight(0)
@@ -91,7 +91,7 @@ namespace {
::std::vector<LayoutItem>& rLayoutItems,
const LayoutMode eMode_);
tools::Rectangle PlaceDeckTitle (
- SidebarDockingWindow* pDockingWindow,
+ const SidebarDockingWindow* pDockingWindow,
DeckTitleBar& rTitleBar,
const tools::Rectangle& rAvailableSpace);
tools::Rectangle PlaceVerticalScrollBar (
@@ -105,7 +105,7 @@ namespace {
}
void DeckLayouter::LayoutDeck (
- SidebarDockingWindow* pDockingWindow,
+ const SidebarDockingWindow* pDockingWindow,
const tools::Rectangle& rContentArea,
sal_Int32& rMinimalWidth,
sal_Int32& rMinimalHeight,
@@ -490,7 +490,7 @@ void DistributeHeights (
}
tools::Rectangle PlaceDeckTitle(
- SidebarDockingWindow* pDockingWindow,
+ const SidebarDockingWindow* pDockingWindow,
DeckTitleBar& rDeckTitleBar,
const tools::Rectangle& rAvailableSpace)
{
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index c03b2a96acdb..b399a1a415d1 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -1621,7 +1621,7 @@ bool SidebarController::hasChartContextCurrently() const
return GetCurrentContext().msApplication == "com.sun.star.chart2.ChartDocument";
}
-sfx2::sidebar::SidebarController* SidebarController::GetSidebarControllerForView(SfxViewShell* pViewShell)
+sfx2::sidebar::SidebarController* SidebarController::GetSidebarControllerForView(const SfxViewShell* pViewShell)
{
if (!pViewShell)
return nullptr;
diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx
index 9bbe292ffe90..6ef4d39549df 100644
--- a/svx/source/form/fmshell.cxx
+++ b/svx/source/form/fmshell.cxx
@@ -1265,7 +1265,7 @@ namespace
}
-void FmFormShell::ToggleControlFocus( const SdrUnoObj& i_rUnoObject, const SdrView& i_rView, OutputDevice& i_rDevice ) const
+void FmFormShell::ToggleControlFocus( const SdrUnoObj& i_rUnoObject, const SdrView& i_rView, const OutputDevice& i_rDevice ) const
{
try
{
diff --git a/svx/source/inc/StylesPreviewWindow.hxx b/svx/source/inc/StylesPreviewWindow.hxx
index c638f29d87e5..aaddd1ca3ea1 100644
--- a/svx/source/inc/StylesPreviewWindow.hxx
+++ b/svx/source/inc/StylesPreviewWindow.hxx
@@ -97,7 +97,7 @@ protected:
public:
StylesPreviewWindow_Base(
- weld::Builder& xBuilder, std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
+ weld::Builder& xBuilder, const std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider);
~StylesPreviewWindow_Base();
@@ -113,7 +113,7 @@ class StylesPreviewWindow_Impl final : public InterimItemWindow, public StylesPr
{
public:
StylesPreviewWindow_Impl(
- vcl::Window* pParent, std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
+ vcl::Window* pParent, const std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider);
~StylesPreviewWindow_Impl();
diff --git a/svx/source/svdraw/MediaShellHelpers.cxx b/svx/source/svdraw/MediaShellHelpers.cxx
index 4ea2f2325c2d..752a6882c038 100644
--- a/svx/source/svdraw/MediaShellHelpers.cxx
+++ b/svx/source/svdraw/MediaShellHelpers.cxx
@@ -29,7 +29,7 @@
namespace svx::MediaShellHelpers
{
-void GetState(SdrMarkView* pSdrView, SfxItemSet& rSet)
+void GetState(const SdrMarkView* pSdrView, SfxItemSet& rSet)
{
if (!pSdrView)
return;
@@ -64,7 +64,7 @@ void GetState(SdrMarkView* pSdrView, SfxItemSet& rSet)
}
}
-const ::avmedia::MediaItem* Execute(SdrMarkView* pSdrView, SfxRequest const& rReq)
+const ::avmedia::MediaItem* Execute(const SdrMarkView* pSdrView, SfxRequest const& rReq)
{
if (!pSdrView)
return nullptr;
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 3ae23ab2b478..3a9fa3970cb8 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -706,7 +706,7 @@ void SdrPaintView::EndDrawLayers(SdrPaintWindow& rPaintWindow, bool bPaintFormLa
}
}
-void SdrPaintView::UpdateDrawLayersRegion(OutputDevice* pOut, const vcl::Region& rReg)
+void SdrPaintView::UpdateDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg)
{
SdrPaintWindow* pPaintWindow = FindPaintWindow(*pOut);
OSL_ENSURE(pPaintWindow, "SdrPaintView::UpdateDrawLayersRegion: No SdrPaintWindow (!)");
@@ -724,7 +724,7 @@ void SdrPaintView::UpdateDrawLayersRegion(OutputDevice* pOut, const vcl::Region&
}
}
-vcl::Region SdrPaintView::OptimizeDrawLayersRegion(OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect)
+vcl::Region SdrPaintView::OptimizeDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect)
{
// #i74769# check if pOut is a win and has a ClipRegion. If Yes, the Region
// rReg may be made more granular (fine) with using it. Normally, rReg
diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx b/svx/source/tbxctrls/StylesPreviewWindow.cxx
index 2051e2479a84..4eed7e8352ba 100644
--- a/svx/source/tbxctrls/StylesPreviewWindow.cxx
+++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx
@@ -353,7 +353,7 @@ void StyleItemController::DrawText(vcl::RenderContext& rRenderContext)
}
StylesPreviewWindow_Base::StylesPreviewWindow_Base(
- weld::Builder& xBuilder, std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
+ weld::Builder& xBuilder, const std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider)
: m_xDispatchProvider(xDispatchProvider)
, m_xStylesView(xBuilder.weld_icon_view("stylesview"))
@@ -477,7 +477,7 @@ void StylesPreviewWindow_Base::UpdateStylesList()
}
StylesPreviewWindow_Impl::StylesPreviewWindow_Impl(
- vcl::Window* pParent, std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
+ vcl::Window* pParent, const std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider)
: InterimItemWindow(pParent, "svx/ui/stylespreview.ui", "ApplyStyleBox", true,
reinterpret_cast<sal_uInt64>(SfxViewShell::Current()))
diff --git a/svx/source/toolbars/fontworkbar.cxx b/svx/source/toolbars/fontworkbar.cxx
index 7ec966ab4f09..888e2d2f43a9 100644
--- a/svx/source/toolbars/fontworkbar.cxx
+++ b/svx/source/toolbars/fontworkbar.cxx
@@ -205,7 +205,7 @@ FontworkBar::~FontworkBar()
}
namespace svx {
-bool checkForFontWork( SdrObject* pObj )
+bool checkForFontWork( const SdrObject* pObj )
{
static constexpr OUStringLiteral sTextPath = u"TextPath";
bool bFound = false;
diff --git a/sw/inc/charformats.hxx b/sw/inc/charformats.hxx
index 5d0be8eaf4ab..6540b73e2947 100644
--- a/sw/inc/charformats.hxx
+++ b/sw/inc/charformats.hxx
@@ -96,7 +96,7 @@ public:
/// fast check if given format is contained here
/// @precond pFormat must not have been deleted
- bool ContainsFormat(SwCharFormat* pFormat) const;
+ bool ContainsFormat(const SwCharFormat* pFormat) const;
void DeleteAndDestroyAll(bool keepDefault = false);
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx
index 4e73188debee..3d1d4dce5827 100644
--- a/sw/inc/textboxhelper.hxx
+++ b/sw/inc/textboxhelper.hxx
@@ -102,10 +102,10 @@ public:
/// Note: In case of AS_CHAR anchor the anchor type must be different,
/// because if not, layout breaks, but this situation also handled by
/// this function, and returns true in that case too.
- static std::optional<bool> isAnchorTypeDifferent(SwFrameFormat* pShape);
+ static std::optional<bool> isAnchorTypeDifferent(const SwFrameFormat* pShape);
/// Returns true if the given shape has a valid textframe.
- static bool isTextBoxShapeHasValidTextFrame(SwFrameFormat* pShape);
+ static bool isTextBoxShapeHasValidTextFrame(const SwFrameFormat* pShape);
// Returns true on success. Synchronize z-order of the text frame of the given textbox
// by setting it one level higher than the z-order of the shape of the textbox.
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index be89d780671e..5f39798b767a 100644
--- a/sw/source/core/crsr/bookmrk.cxx
+++ b/sw/source/core/crsr/bookmrk.cxx
@@ -692,7 +692,7 @@ namespace sw::mark
}
}
- void DropDownFieldmark::SendLOKShowMessage(SfxViewShell* pViewShell)
+ void DropDownFieldmark::SendLOKShowMessage(const SfxViewShell* pViewShell)
{
if (!comphelper::LibreOfficeKit::isActive())
return;
@@ -737,7 +737,7 @@ namespace sw::mark
pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_FORM_FIELD_BUTTON, sPayload.toString().getStr());
}
- void DropDownFieldmark::SendLOKHideMessage(SfxViewShell* pViewShell)
+ void DropDownFieldmark::SendLOKHideMessage(const SfxViewShell* pViewShell)
{
OString sPayload = "{\"action\": \"hide\", \"type\": \"drop-down\"}";
pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_FORM_FIELD_BUTTON, sPayload.getStr());
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index a07360a3f80d..a3e13851130b 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -4587,8 +4587,8 @@ static void lcl_PushNumruleState(
}
static void lcl_PopNumruleState(
- std::shared_ptr<SwNumRuleItem>& aNumRuleItemHolderIfSet,
- std::shared_ptr<SfxStringItem>& aListIdItemHolderIfSet,
+ const std::shared_ptr<SwNumRuleItem>& aNumRuleItemHolderIfSet,
+ const std::shared_ptr<SfxStringItem>& aListIdItemHolderIfSet,
SwTextNode *pDestTextNd, const SwPaM& rPam )
{
/* If only a part of one paragraph is copied
diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx
index 7706ccb35cd3..4573959af9f6 100644
--- a/sw/source/core/doc/DocumentRedlineManager.cxx
+++ b/sw/source/core/doc/DocumentRedlineManager.cxx
@@ -436,7 +436,7 @@ namespace
}
// delete the empty tracked table row (i.e. if it's last tracked deletion was accepted)
- void lcl_DeleteTrackedTableRow ( SwPosition* pPos )
+ void lcl_DeleteTrackedTableRow ( const SwPosition* pPos )
{
if ( const SwTableBox* pBox = pPos->nNode.GetNode().GetTableBox() )
{
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index ae3c2784ba5d..008fb03e09e4 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -1532,7 +1532,7 @@ namespace sw::mark
m_pLastActiveFieldmark = nullptr;
}
- void MarkManager::LOKUpdateActiveField(SfxViewShell* pViewShell)
+ void MarkManager::LOKUpdateActiveField(const SfxViewShell* pViewShell)
{
if (!comphelper::LibreOfficeKit::isActive())
return;
diff --git a/sw/source/core/doc/textboxhelper.cxx b/sw/source/core/doc/textboxhelper.cxx
index e6d60c795f20..3d43325a20b3 100644
--- a/sw/source/core/doc/textboxhelper.cxx
+++ b/sw/source/core/doc/textboxhelper.cxx
@@ -1233,7 +1233,7 @@ bool SwTextBoxHelper::doTextBoxPositioning(SwFrameFormat* pShape)
return false;
}
-std::optional<bool> SwTextBoxHelper::isAnchorTypeDifferent(SwFrameFormat* pShape)
+std::optional<bool> SwTextBoxHelper::isAnchorTypeDifferent(const SwFrameFormat* pShape)
{
std::optional<bool> bRet;
if (isTextBoxShapeHasValidTextFrame(pShape))
@@ -1250,7 +1250,7 @@ std::optional<bool> SwTextBoxHelper::isAnchorTypeDifferent(SwFrameFormat* pShape
return bRet;
}
-bool SwTextBoxHelper::isTextBoxShapeHasValidTextFrame(SwFrameFormat* pShape)
+bool SwTextBoxHelper::isTextBoxShapeHasValidTextFrame(const SwFrameFormat* pShape)
{
if (pShape && pShape->Which() == RES_DRAWFRMFMT)
if (auto pFormat = getOtherTextBoxFormat(pShape, RES_DRAWFRMFMT))
diff --git a/sw/source/core/inc/MarkManager.hxx b/sw/source/core/inc/MarkManager.hxx
index 97e936771ad1..0e2ffa97bf33 100644
--- a/sw/source/core/inc/MarkManager.hxx
+++ b/sw/source/core/inc/MarkManager.hxx
@@ -101,7 +101,7 @@ namespace sw::mark {
virtual void NotifyCursorUpdate(const SwCursorShell& rCursorShell) override;
virtual void ClearFieldActivation() override;
- void LOKUpdateActiveField(SfxViewShell* pViewShell);
+ void LOKUpdateActiveField(const SfxViewShell* pViewShell);
void dumpAsXml(xmlTextWriterPtr pWriter) const;
diff --git a/sw/source/core/inc/bookmrk.hxx b/sw/source/core/inc/bookmrk.hxx
index 6a99309d3294..397a68ac3cca 100644
--- a/sw/source/core/inc/bookmrk.hxx
+++ b/sw/source/core/inc/bookmrk.hxx
@@ -294,8 +294,8 @@ namespace sw::mark {
// This method should be called only by the portion so we can now the portion's painting area
void SetPortionPaintArea(const SwRect& rPortionPaintArea);
- void SendLOKShowMessage(SfxViewShell* pViewShell);
- static void SendLOKHideMessage(SfxViewShell* pViewShell);
+ void SendLOKShowMessage(const SfxViewShell* pViewShell);
+ static void SendLOKHideMessage(const SfxViewShell* pViewShell);
private:
SwRect m_aPortionPaintArea;
diff --git a/sw/source/core/txtnode/chrfmt.cxx b/sw/source/core/txtnode/chrfmt.cxx
index 321e28c16e94..ddae28a9b3ab 100644
--- a/sw/source/core/txtnode/chrfmt.cxx
+++ b/sw/source/core/txtnode/chrfmt.cxx
@@ -95,7 +95,7 @@ void SwCharFormats::insert(SwCharFormat* x)
void SwCharFormats::erase(const_iterator const& position) { m_PosIndex.erase(position); }
-bool SwCharFormats::ContainsFormat(SwCharFormat* x) const { return find(x) != end(); }
+bool SwCharFormats::ContainsFormat(const SwCharFormat* x) const { return find(x) != end(); }
/** Need to call this when the format name changes */
void SwCharFormats::SetFormatNameAndReindex(SwCharFormat* v, const OUString& sNewName)
diff --git a/sw/source/filter/indexing/IndexingExport.cxx b/sw/source/filter/indexing/IndexingExport.cxx
index c7bf032ba83e..834111d88af7 100644
--- a/sw/source/filter/indexing/IndexingExport.cxx
+++ b/sw/source/filter/indexing/IndexingExport.cxx
@@ -66,7 +66,7 @@ public:
}
}
- void handleOLENode(SwOLENode* pOleNode)
+ void handleOLENode(const SwOLENode* pOleNode)
{
auto pFrameFormat = pOleNode->GetFlyFormat();
m_rXmlWriter.startElement("ole");
@@ -75,7 +75,7 @@ public:
m_rXmlWriter.endElement();
}
- void handleGraphicNode(SwGrfNode* pGraphicNode)
+ void handleGraphicNode(const SwGrfNode* pGraphicNode)
{
auto pFrameFormat = pGraphicNode->GetFlyFormat();
m_rXmlWriter.startElement("graphic");
@@ -84,7 +84,7 @@ public:
m_rXmlWriter.endElement();
}
- void handleTextNode(SwTextNode* pTextNode)
+ void handleTextNode(const SwTextNode* pTextNode)
{
sal_Int64 nParentIndex = -1;
if (!maNodeStack.empty() && maNodeStack.back())
diff --git a/sw/source/ui/dbui/dbtablepreviewdialog.cxx b/sw/source/ui/dbui/dbtablepreviewdialog.cxx
index 6a2f0e916a25..b85f169b4f45 100644
--- a/sw/source/ui/dbui/dbtablepreviewdialog.cxx
+++ b/sw/source/ui/dbui/dbtablepreviewdialog.cxx
@@ -42,7 +42,7 @@ private:
}
public:
- DBTablePreviewFrame(css::uno::Reference<css::frame::XFrame2>& rFrame)
+ DBTablePreviewFrame(const css::uno::Reference<css::frame::XFrame2>& rFrame)
: m_xFrame(rFrame)
{
}
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index 02b51f45b050..1be0df2da93f 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -352,7 +352,7 @@ void InsertBreak(SwWrtShell& rWrtSh,
}
}
-OUString GetLocalURL(SwWrtShell& rSh)
+OUString GetLocalURL(const SwWrtShell& rSh)
{
SwField* pField = rSh.GetCurField();
if (!pField)
diff --git a/toolkit/source/controls/animatedimages.cxx b/toolkit/source/controls/animatedimages.cxx
index 9ef3506d122c..6743f08f8fec 100644
--- a/toolkit/source/controls/animatedimages.cxx
+++ b/toolkit/source/controls/animatedimages.cxx
@@ -205,7 +205,7 @@ namespace toolkit {
namespace
{
- void lcl_checkIndex( std::vector< css::uno::Sequence< OUString > > & rImageSets, const sal_Int32 i_index, const Reference< XInterface >& i_context,
+ void lcl_checkIndex( const std::vector< css::uno::Sequence< OUString > > & rImageSets, const sal_Int32 i_index, const Reference< XInterface >& i_context,
const bool i_forInsert = false )
{
if ( ( i_index < 0 ) || ( o3tl::make_unsigned( i_index ) > rImageSets.size() + ( i_forInsert ? 1 : 0 ) ) )
diff --git a/vcl/backendtest/GraphicsRenderTests.cxx b/vcl/backendtest/GraphicsRenderTests.cxx
index ad690720bb7a..1ffc8d835cd6 100644
--- a/vcl/backendtest/GraphicsRenderTests.cxx
+++ b/vcl/backendtest/GraphicsRenderTests.cxx
@@ -25,7 +25,7 @@
namespace
{
-void exportBitmapExToImage(OUString const& rImageName, BitmapEx& rBitmapEx)
+void exportBitmapExToImage(OUString const& rImageName, const BitmapEx& rBitmapEx)
{
BitmapEx aBitmapEx(rBitmapEx);
aBitmapEx.Scale(Size(500, 500), BmpScaleFlag::Fast);
diff --git a/vcl/backendtest/outputdevice/common.cxx b/vcl/backendtest/outputdevice/common.cxx
index 065919f5b1c5..ccf78b1c2df2 100644
--- a/vcl/backendtest/outputdevice/common.cxx
+++ b/vcl/backendtest/outputdevice/common.cxx
@@ -617,7 +617,7 @@ basegfx::B2DPolygon OutputDeviceTestCommon::createHalfEllipsePolygon()
return aPolygon;
}
-tools::Polygon OutputDeviceTestCommon::createClosedBezierLoop(tools::Rectangle& rRect)
+tools::Polygon OutputDeviceTestCommon::createClosedBezierLoop(const tools::Rectangle& rRect)
{
tools::Long minX = rRect.Left();
tools::Long maxX = rRect.Right() - 2;
diff --git a/vcl/inc/filter/BmpWriter.hxx b/vcl/inc/filter/BmpWriter.hxx
index cc9f2a3547dd..745aeb6b695c 100644
--- a/vcl/inc/filter/BmpWriter.hxx
+++ b/vcl/inc/filter/BmpWriter.hxx
@@ -23,7 +23,7 @@
#include <vcl/graph.hxx>
#include <vcl/FilterConfigItem.hxx>
-VCL_DLLPUBLIC bool BmpWriter(SvStream& rStream, Graphic& rGraphic,
+VCL_DLLPUBLIC bool BmpWriter(SvStream& rStream, const Graphic& rGraphic,
FilterConfigItem* pFilterConfigItem);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/filter/EpsWriter.hxx b/vcl/inc/filter/EpsWriter.hxx
index 8cb002a57c66..104b5ff6bf61 100644
--- a/vcl/inc/filter/EpsWriter.hxx
+++ b/vcl/inc/filter/EpsWriter.hxx
@@ -22,7 +22,7 @@
#include <vcl/graph.hxx>
#include <vcl/FilterConfigItem.hxx>
-VCL_DLLPUBLIC bool ExportEpsGraphic(SvStream& rStream, Graphic& rGraphic,
+VCL_DLLPUBLIC bool ExportEpsGraphic(SvStream& rStream, const Graphic& rGraphic,
FilterConfigItem* pFilterConfigItem);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/filter/GifWriter.hxx b/vcl/inc/filter/GifWriter.hxx
index 6512c4bf6f2f..1b67039f7e71 100644
--- a/vcl/inc/filter/GifWriter.hxx
+++ b/vcl/inc/filter/GifWriter.hxx
@@ -22,7 +22,7 @@
#include <vcl/graph.hxx>
#include <vcl/FilterConfigItem.hxx>
-VCL_DLLPUBLIC bool ExportGifGraphic(SvStream& rStream, Graphic& rGraphic,
+VCL_DLLPUBLIC bool ExportGifGraphic(SvStream& rStream, const Graphic& rGraphic,
FilterConfigItem* pFilterConfigItem);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/filter/TiffWriter.hxx b/vcl/inc/filter/TiffWriter.hxx
index a2219a687915..71bad2554f19 100644
--- a/vcl/inc/filter/TiffWriter.hxx
+++ b/vcl/inc/filter/TiffWriter.hxx
@@ -22,7 +22,7 @@
#include <vcl/graph.hxx>
#include <vcl/FilterConfigItem.hxx>
-VCL_DLLPUBLIC bool ExportTiffGraphicImport(SvStream& rStream, Graphic& rGraphic,
- FilterConfigItem* pFilterConfigItem);
+VCL_DLLPUBLIC bool ExportTiffGraphicImport(SvStream& rStream, const Graphic& rGraphic,
+ const FilterConfigItem* pFilterConfigItem);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx
index b7697dbb7b9e..81db551e4f49 100644
--- a/vcl/inc/impgraph.hxx
+++ b/vcl/inc/impgraph.hxx
@@ -218,7 +218,7 @@ public:
bool isSwappedOut() const { return mbSwapOut; }
OUString getSwapFileURL() const;
// public only because of use in GraphicFilter
- void updateFromLoadedGraphic(ImpGraphic* graphic);
+ void updateFromLoadedGraphic(const ImpGraphic* graphic);
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/test/outputdevice.hxx b/vcl/inc/test/outputdevice.hxx
index cf10ce04b527..eceb3dd8f81e 100644
--- a/vcl/inc/test/outputdevice.hxx
+++ b/vcl/inc/test/outputdevice.hxx
@@ -69,7 +69,7 @@ public:
static tools::Polygon createDropShapePolygon();
static basegfx::B2DPolygon createHalfEllipsePolygon();
- static tools::Polygon createClosedBezierLoop(tools::Rectangle& rRect);
+ static tools::Polygon createClosedBezierLoop(const tools::Rectangle& rRect);
static void createHorizontalVerticalDiagonalLinePoints(tools::Rectangle rRect,
Point& rHorizontalLinePoint1, Point& rHorizontalLinePoint2,
diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx
index 1c50d35e649b..e688296aa606 100644
--- a/vcl/source/bitmap/bitmap.cxx
+++ b/vcl/source/bitmap/bitmap.cxx
@@ -1532,7 +1532,7 @@ static tools::Long* shiftColor(tools::Long* pColorArray, BitmapColor const& rCol
*pColorArray++ = static_cast<tools::Long>(rColor.GetRed()) << 12;
return pColorArray;
}
-static BitmapColor getColor(BitmapReadAccess *pReadAcc, tools::Long nZ)
+static BitmapColor getColor(const BitmapReadAccess *pReadAcc, tools::Long nZ)
{
Scanline pScanlineRead = pReadAcc->GetScanline(0);
if (pReadAcc->HasPalette())
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index 9cd3b545d841..7fef46a9e469 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -603,7 +603,7 @@ void SpinField::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle
Edit::Paint(rRenderContext, rRect);
}
-void SpinField::ImplCalcButtonAreas(OutputDevice* pDev, const Size& rOutSz, tools::Rectangle& rDDArea,
+void SpinField::ImplCalcButtonAreas(const OutputDevice* pDev, const Size& rOutSz, tools::Rectangle& rDDArea,
tools::Rectangle& rSpinUpArea, tools::Rectangle& rSpinDownArea)
{
const StyleSettings& rStyleSettings = pDev->GetSettings().GetStyleSettings();
diff --git a/vcl/source/filter/bmp/BmpWriter.cxx b/vcl/source/filter/bmp/BmpWriter.cxx
index e061124b89f3..a5fcedec231a 100644
--- a/vcl/source/filter/bmp/BmpWriter.cxx
+++ b/vcl/source/filter/bmp/BmpWriter.cxx
@@ -20,7 +20,7 @@
#include <filter/BmpWriter.hxx>
#include <vcl/dibtools.hxx>
-bool BmpWriter(SvStream& rStream, Graphic& rGraphic, FilterConfigItem* pFilterConfigItem)
+bool BmpWriter(SvStream& rStream, const Graphic& rGraphic, FilterConfigItem* pFilterConfigItem)
{
BitmapEx aBitmap = rGraphic.GetBitmapEx();
sal_Int32 nColor = pFilterConfigItem->ReadInt32("Color", 0);
diff --git a/vcl/source/filter/egif/egif.cxx b/vcl/source/filter/egif/egif.cxx
index 660ebf95333c..699b7f05d5a4 100644
--- a/vcl/source/filter/egif/egif.cxx
+++ b/vcl/source/filter/egif/egif.cxx
@@ -540,7 +540,7 @@ void GIFWriter::WriteTerminator()
}
-bool ExportGifGraphic(SvStream& rStream, Graphic& rGraphic, FilterConfigItem* pConfigItem)
+bool ExportGifGraphic(SvStream& rStream, const Graphic& rGraphic, FilterConfigItem* pConfigItem)
{
GIFWriter aWriter(rStream);
return aWriter.WriteGIF(rGraphic, pConfigItem);
diff --git a/vcl/source/filter/eps/eps.cxx b/vcl/source/filter/eps/eps.cxx
index 2da28338c97c..225857d88c0c 100644
--- a/vcl/source/filter/eps/eps.cxx
+++ b/vcl/source/filter/eps/eps.cxx
@@ -2662,7 +2662,7 @@ bool PSWriter::ImplGetBoundingBox( double* nNumb, sal_uInt8* pSource, sal_uInt32
//================== GraphicExport - the exported function ===================
-bool ExportEpsGraphic(SvStream & rStream, Graphic & rGraphic, FilterConfigItem* pFilterConfigItem)
+bool ExportEpsGraphic(SvStream & rStream, const Graphic & rGraphic, FilterConfigItem* pFilterConfigItem)
{
PSWriter aPSWriter;
return aPSWriter.WritePS(rGraphic, rStream, pFilterConfigItem);
diff --git a/vcl/source/filter/etiff/etiff.cxx b/vcl/source/filter/etiff/etiff.cxx
index ca5b7934ab84..b34accab889b 100644
--- a/vcl/source/filter/etiff/etiff.cxx
+++ b/vcl/source/filter/etiff/etiff.cxx
@@ -577,7 +577,7 @@ void TIFFWriter::EndCompression()
pTable.reset();
}
-bool ExportTiffGraphicImport(SvStream & rStream, Graphic & rGraphic, FilterConfigItem* pFilterConfigItem)
+bool ExportTiffGraphicImport(SvStream & rStream, const Graphic & rGraphic, const FilterConfigItem* pFilterConfigItem)
{
TIFFWriter aWriter(rStream);
return aWriter.WriteTIFF( rGraphic, pFilterConfigItem );
diff --git a/vcl/source/filter/svm/SvmReader.cxx b/vcl/source/filter/svm/SvmReader.cxx
index 55acc5bfd946..56b2f245cca1 100644
--- a/vcl/source/filter/svm/SvmReader.cxx
+++ b/vcl/source/filter/svm/SvmReader.cxx
@@ -638,7 +638,7 @@ rtl::Reference<MetaAction> SvmReader::PolyPolygonHandler()
return pAction;
}
-rtl::Reference<MetaAction> SvmReader::TextHandler(ImplMetaReadData* pData)
+rtl::Reference<MetaAction> SvmReader::TextHandler(const ImplMetaReadData* pData)
{
rtl::Reference<MetaTextAction> pAction(new MetaTextAction);
@@ -678,7 +678,7 @@ rtl::Reference<MetaAction> SvmReader::TextHandler(ImplMetaReadData* pData)
return pAction;
}
-rtl::Reference<MetaAction> SvmReader::TextArrayHandler(ImplMetaReadData* pData)
+rtl::Reference<MetaAction> SvmReader::TextArrayHandler(const ImplMetaReadData* pData)
{
rtl::Reference<MetaTextArrayAction> pAction(new MetaTextArrayAction);
@@ -758,7 +758,7 @@ rtl::Reference<MetaAction> SvmReader::TextArrayHandler(ImplMetaReadData* pData)
return pAction;
}
-rtl::Reference<MetaAction> SvmReader::StretchTextHandler(ImplMetaReadData* pData)
+rtl::Reference<MetaAction> SvmReader::StretchTextHandler(const ImplMetaReadData* pData)
{
rtl::Reference<MetaStretchTextAction> pAction(new MetaStretchTextAction);
@@ -788,7 +788,7 @@ rtl::Reference<MetaAction> SvmReader::StretchTextHandler(ImplMetaReadData* pData
return pAction;
}
-rtl::Reference<MetaAction> SvmReader::TextRectHandler(ImplMetaReadData* pData)
+rtl::Reference<MetaAction> SvmReader::TextRectHandler(const ImplMetaReadData* pData)
{
rtl::Reference<MetaTextRectAction> pAction(new MetaTextRectAction);
diff --git a/vcl/source/filter/svm/SvmWriter.cxx b/vcl/source/filter/svm/SvmWriter.cxx
index ddc47a892547..f18fc7d624a4 100644
--- a/vcl/source/filter/svm/SvmWriter.cxx
+++ b/vcl/source/filter/svm/SvmWriter.cxx
@@ -801,12 +801,12 @@ void SvmWriter::MetaActionHandler(MetaAction* pAction, ImplMetaWriteData* pData)
}
}
-void SvmWriter::ActionHandler(MetaAction* pAction)
+void SvmWriter::ActionHandler(const MetaAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
}
-void SvmWriter::PixelHandler(MetaPixelAction* pAction)
+void SvmWriter::PixelHandler(const MetaPixelAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
VersionCompatWrite aCompat(mrStream, 1);
@@ -815,7 +815,7 @@ void SvmWriter::PixelHandler(MetaPixelAction* pAction)
WriteColor(pAction->GetColor());
}
-void SvmWriter::PointHandler(MetaPointAction* pAction)
+void SvmWriter::PointHandler(const MetaPointAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
VersionCompatWrite aCompat(mrStream, 1);
@@ -823,7 +823,7 @@ void SvmWriter::PointHandler(MetaPointAction* pAction)
aSerializer.writePoint(pAction->GetPoint());
}
-void SvmWriter::LineHandler(MetaLineAction* pAction)
+void SvmWriter::LineHandler(const MetaLineAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
@@ -837,7 +837,7 @@ void SvmWriter::LineHandler(MetaLineAction* pAction)
WriteLineInfo(mrStream, pAction->GetLineInfo());
}
-void SvmWriter::RectHandler(MetaRectAction* pAction)
+void SvmWriter::RectHandler(const MetaRectAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
@@ -846,7 +846,7 @@ void SvmWriter::RectHandler(MetaRectAction* pAction)
aSerializer.writeRectangle(pAction->GetRect());
}
-void SvmWriter::RoundRectHandler(MetaRoundRectAction* pAction)
+void SvmWriter::RoundRectHandler(const MetaRoundRectAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
@@ -856,7 +856,7 @@ void SvmWriter::RoundRectHandler(MetaRoundRectAction* pAction)
mrStream.WriteUInt32(pAction->GetHorzRound()).WriteUInt32(pAction->GetVertRound());
}
-void SvmWriter::EllipseHandler(MetaEllipseAction* pAction)
+void SvmWriter::EllipseHandler(const MetaEllipseAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
@@ -865,7 +865,7 @@ void SvmWriter::EllipseHandler(MetaEllipseAction* pAction)
aSerializer.writeRectangle(pAction->GetRect());
}
-void SvmWriter::ArcHandler(MetaArcAction* pAction)
+void SvmWriter::ArcHandler(const MetaArcAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
@@ -876,7 +876,7 @@ void SvmWriter::ArcHandler(MetaArcAction* pAction)
aSerializer.writePoint(pAction->GetEndPoint());
}
-void SvmWriter::PieHandler(MetaPieAction* pAction)
+void SvmWriter::PieHandler(const MetaPieAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
@@ -887,7 +887,7 @@ void SvmWriter::PieHandler(MetaPieAction* pAction)
aSerializer.writePoint(pAction->GetEndPoint());
}
-void SvmWriter::ChordHandler(MetaChordAction* pAction)
+void SvmWriter::ChordHandler(const MetaChordAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
@@ -898,7 +898,7 @@ void SvmWriter::ChordHandler(MetaChordAction* pAction)
aSerializer.writePoint(pAction->GetEndPoint());
}
-void SvmWriter::PolyLineHandler(MetaPolyLineAction* pAction)
+void SvmWriter::PolyLineHandler(const MetaPolyLineAction* pAction)
{
mrStream.WriteUInt16(static_cast<sal_uInt16>(pAction->GetType()));
@@ -916,7 +916,7 @@ void SvmWriter::PolyLineHandler(MetaPolyLineAction* pAction)
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list