summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/factory/dlgfact.cxx5
-rw-r--r--cui/source/factory/dlgfact.hxx3
-rw-r--r--include/svx/framelinkarray.hxx15
-rw-r--r--include/svx/galmisc.hxx3
-rw-r--r--include/svx/langbox.hxx6
-rw-r--r--include/svx/svdedtv.hxx6
-rw-r--r--include/svx/svdmrkv.hxx3
-rw-r--r--include/svx/svdoashp.hxx2
-rw-r--r--include/svx/svdobj.hxx2
-rw-r--r--include/svx/svdotable.hxx2
-rw-r--r--include/svx/svdotext.hxx2
-rw-r--r--include/svx/svxdlg.hxx3
-rw-r--r--include/svx/txencbox.hxx3
-rw-r--r--include/svx/view3d.hxx4
-rw-r--r--svx/source/accessibility/svxrectctaccessiblecontext.cxx6
-rw-r--r--svx/source/dialog/framelinkarray.cxx35
-rw-r--r--svx/source/dialog/langbox.cxx8
-rw-r--r--svx/source/dialog/txencbox.cxx4
-rw-r--r--svx/source/engine3d/view3d1.cxx64
-rw-r--r--svx/source/form/fmvwimp.cxx7
-rw-r--r--svx/source/gallery2/galmisc.cxx5
-rw-r--r--svx/source/inc/fmexch.hxx4
-rw-r--r--svx/source/inc/fmvwimp.hxx2
-rw-r--r--svx/source/inc/svxrectctaccessiblecontext.hxx2
-rw-r--r--svx/source/svdraw/svdedtv1.cxx15
-rw-r--r--svx/source/svdraw/svdmrkv.cxx6
-rw-r--r--svx/source/svdraw/svdoashp.cxx4
-rw-r--r--svx/source/svdraw/svdobj.cxx2
-rw-r--r--svx/source/svdraw/svdotxat.cxx4
-rw-r--r--svx/source/table/svdotable.cxx4
30 files changed, 96 insertions, 135 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index 01b4143b01d9..12db20ab7fb9 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -943,10 +943,9 @@ AbstractSvxCaptionDialog* AbstractDialogFactory_Impl::CreateCaptionDialog(
}
AbstractSvxDistributeDialog* AbstractDialogFactory_Impl::CreateSvxDistributeDialog(vcl::Window* pParent,
- const SfxItemSet& rAttr,
- SvxDistributeHorizontal eHor)
+ const SfxItemSet& rAttr)
{
- VclPtrInstance<SvxDistributeDialog> pDlg( pParent, rAttr, eHor, SvxDistributeVerticalNone);
+ VclPtrInstance<SvxDistributeDialog> pDlg( pParent, rAttr, SvxDistributeHorizontalNone, SvxDistributeVerticalNone);
return new AbstractSvxDistributeDialog_Impl( pDlg );
}
diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx
index 27eec401049c..d3d909253911 100644
--- a/cui/source/factory/dlgfact.hxx
+++ b/cui/source/factory/dlgfact.hxx
@@ -508,8 +508,7 @@ public:
const SdrView* pView,
sal_uInt16 nAnchorTypes = 0 ) override;
virtual AbstractSvxDistributeDialog* CreateSvxDistributeDialog(vcl::Window* pParent,
- const SfxItemSet& rAttr,
- SvxDistributeHorizontal eHor = SvxDistributeHorizontalNone) override;
+ const SfxItemSet& rAttr) override;
virtual SfxAbstractInsertObjectDialog* CreateInsertObjectDialog( vcl::Window* pParent, const OUString& rCommmand,
const css::uno::Reference < css::embed::XStorage >& xStor,
const SvObjectServerList* pList = nullptr ) override;
diff --git a/include/svx/framelinkarray.hxx b/include/svx/framelinkarray.hxx
index e83b9db99c3e..774b55036cb8 100644
--- a/include/svx/framelinkarray.hxx
+++ b/include/svx/framelinkarray.hxx
@@ -296,16 +296,12 @@ public:
long GetHeight() const;
/** Returns the top-left output position of the cell (nCol,nRow).
- @param bSimple
- true = Ignores merged ranges;
- false = Returns output position of top-left corner of merged ranges. */
- Point GetCellPosition( size_t nCol, size_t nRow, bool bSimple = false ) const;
+ Returns output position of top-left corner of merged ranges. */
+ Point GetCellPosition( size_t nCol, size_t nRow ) const;
/** Returns the output size of the cell (nCol,nRow).
- @param bSimple
- true = Ignores merged ranges;
- false = Returns total output size of merged ranges. */
- Size GetCellSize( size_t nCol, size_t nRow, bool bSimple = false ) const;
+ Returns total output size of merged ranges. */
+ Size GetCellSize( size_t nCol, size_t nRow ) const;
/** Returns the output rectangle of the cell (nCol,nRow).
Returns total output rectangle of merged ranges. */
@@ -353,8 +349,7 @@ public:
If not NULL, only this color will be used to draw all frame borders. */
void DrawRange( OutputDevice& rDev,
size_t nFirstCol, size_t nFirstRow,
- size_t nLastCol, size_t nLastRow,
- const Color* pForceColor = nullptr ) const;
+ size_t nLastCol, size_t nLastRow ) const;
/** Draws the part of the array, that is inside the clipping range. */
void DrawArray( OutputDevice& rDev ) const;
diff --git a/include/svx/galmisc.hxx b/include/svx/galmisc.hxx
index da32313f1cfb..8f535d556784 100644
--- a/include/svx/galmisc.hxx
+++ b/include/svx/galmisc.hxx
@@ -182,8 +182,7 @@ protected:
virtual void ObjectReleased() override;
void CopyToClipboard( vcl::Window* pWindow );
- void StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions,
- sal_Int32 nDragPointer = DND_POINTER_NONE );
+ void StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions );
};
enum class GalleryHintType
diff --git a/include/svx/langbox.hxx b/include/svx/langbox.hxx
index 22a74992b884..5366f81f88a8 100644
--- a/include/svx/langbox.hxx
+++ b/include/svx/langbox.hxx
@@ -106,7 +106,7 @@ protected:
SVX_DLLPRIVATE virtual void ImplClear() = 0;
SVX_DLLPRIVATE virtual sal_Int32 ImplInsertEntry( const OUString& rEntry, sal_Int32 nPos ) = 0;
SVX_DLLPRIVATE virtual void ImplSetEntryData( sal_Int32 nPos, void* pData ) = 0;
- SVX_DLLPRIVATE virtual sal_Int32 ImplGetSelectEntryPos( sal_Int32 nSelIndex = 0 ) const = 0;
+ SVX_DLLPRIVATE virtual sal_Int32 ImplGetSelectEntryPos() const = 0;
SVX_DLLPRIVATE virtual void* ImplGetEntryData( sal_Int32 nPos ) const = 0;
SVX_DLLPRIVATE virtual void ImplSelectEntryPos( sal_Int32 nPos, bool bSelect ) = 0;
SVX_DLLPRIVATE virtual bool ImplIsEntryPosSelected( sal_Int32 nPos ) const = 0;
@@ -131,7 +131,7 @@ private:
SVX_DLLPRIVATE virtual void ImplClear() override;
SVX_DLLPRIVATE virtual sal_Int32 ImplInsertEntry( const OUString& rEntry, sal_Int32 nPos ) override;
SVX_DLLPRIVATE virtual void ImplSetEntryData( sal_Int32 nPos, void* pData ) override;
- SVX_DLLPRIVATE virtual sal_Int32 ImplGetSelectEntryPos( sal_Int32 nSelIndex = 0 ) const override;
+ SVX_DLLPRIVATE virtual sal_Int32 ImplGetSelectEntryPos() const override;
SVX_DLLPRIVATE virtual void* ImplGetEntryData( sal_Int32 nPos ) const override;
SVX_DLLPRIVATE virtual void ImplSelectEntryPos( sal_Int32 nPos, bool bSelect ) override;
SVX_DLLPRIVATE virtual bool ImplIsEntryPosSelected( sal_Int32 nPos ) const override;
@@ -170,7 +170,7 @@ private:
SVX_DLLPRIVATE virtual void ImplClear() override;
SVX_DLLPRIVATE virtual sal_Int32 ImplInsertEntry( const OUString& rEntry, sal_Int32 nPos ) override;
SVX_DLLPRIVATE virtual void ImplSetEntryData( sal_Int32 nPos, void* pData ) override;
- SVX_DLLPRIVATE virtual sal_Int32 ImplGetSelectEntryPos( sal_Int32 nSelIndex = 0 ) const override;
+ SVX_DLLPRIVATE virtual sal_Int32 ImplGetSelectEntryPos() const override;
SVX_DLLPRIVATE virtual void* ImplGetEntryData( sal_Int32 nPos ) const override;
SVX_DLLPRIVATE virtual void ImplSelectEntryPos( sal_Int32 nPos, bool bSelect ) override;
SVX_DLLPRIVATE virtual bool ImplIsEntryPosSelected( sal_Int32 nPos ) const override;
diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx
index 2beb9164c3ea..0b4511cecb92 100644
--- a/include/svx/svdedtv.hxx
+++ b/include/svx/svdedtv.hxx
@@ -209,15 +209,15 @@ public:
// Set a logical enclosing rectangle for all marked objects.
// It is not guaranteed if this succeeds, as a horizontal
// line has always a height of 0
- void SetMarkedObjRect(const Rectangle& rRect, bool bCopy=false);
+ void SetMarkedObjRect(const Rectangle& rRect);
void MoveMarkedObj(const Size& rSiz, bool bCopy=false);
void ResizeMarkedObj(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy=false);
void ResizeMultMarkedObj(const Point& rRef, const Fraction& xFact, const Fraction& yFact, const bool bCopy, const bool bWdh, const bool bHgt);
long GetMarkedObjRotate() const;
void RotateMarkedObj(const Point& rRef, long nAngle, bool bCopy=false);
void MirrorMarkedObj(const Point& rRef1, const Point& rRef2, bool bCopy=false);
- void MirrorMarkedObjHorizontal(bool bCopy=false);
- void MirrorMarkedObjVertical(bool bCopy=false);
+ void MirrorMarkedObjHorizontal();
+ void MirrorMarkedObjVertical();
long GetMarkedObjShear() const;
void ShearMarkedObj(const Point& rRef, long nAngle, bool bVShear=false, bool bCopy=false);
void CrookMarkedObj(const Point& rRef, const Point& rRad, SdrCrookMode eMode, bool bVertical=false, bool bNoContortion=false, bool bCopy=false);
diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx
index d72df2944555..7ed149cb4744 100644
--- a/include/svx/svdmrkv.hxx
+++ b/include/svx/svdmrkv.hxx
@@ -272,8 +272,7 @@ public:
bool IsMarkedHit(const Point& rPnt, short nTol=-2) const { return IsMarkedObjHit(rPnt,nTol); }
bool IsMarkedObjHit(const Point& rPnt, short nTol=-2) const;
- // Pick: Supported options for nOptions are SEARCH_NEXT, SEARCH_BACKWARD (ni)
- SdrHdl* PickHandle(const Point& rPnt, SdrSearchOptions nOptions=SdrSearchOptions::NONE) const;
+ SdrHdl* PickHandle(const Point& rPnt) const;
// Pick: Supported options for nOptions are:
// SdrSearchOptions::DEEP SdrSearchOptions::ALSOONMASTER SdrSearchOptions::TESTMARKABLE SdrSearchOptions::TESTTEXTEDIT
diff --git a/include/svx/svdoashp.hxx b/include/svx/svdoashp.hxx
index 4187119513ff..b31d9bfe92ee 100644
--- a/include/svx/svdoashp.hxx
+++ b/include/svx/svdoashp.hxx
@@ -230,7 +230,7 @@ public:
void SuggestTextFrameSize(Size aSuggestedTextFrameSize);
virtual bool AdjustTextFrameWidthAndHeight(Rectangle& rR, bool bHgt = true, bool bWdt = true) const override;
virtual bool NbcAdjustTextFrameWidthAndHeight(bool bHgt = true, bool bWdt = true) override;
- virtual bool AdjustTextFrameWidthAndHeight(bool bHgt = true) override;
+ virtual bool AdjustTextFrameWidthAndHeight() override;
virtual bool IsAutoGrowHeight() const override;
virtual bool IsAutoGrowWidth() const override;
virtual void SetVerticalWriting( bool bVertical ) override;
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx
index 9b0d57da6f10..68a3d8553886 100644
--- a/include/svx/svdobj.hxx
+++ b/include/svx/svdobj.hxx
@@ -380,7 +380,7 @@ protected:
void ImpForcePlusData();
OUString GetAngleStr(long nAngle) const;
- OUString GetMetrStr(long nVal, MapUnit eWantMap=MAP_MM) const;
+ OUString GetMetrStr(long nVal) const;
/// @param bNotMyself = true: set only ObjList to dirty, don't mark this object as dirty.
///
diff --git a/include/svx/svdotable.hxx b/include/svx/svdotable.hxx
index 74f5f3cf65da..f3162ed258ef 100644
--- a/include/svx/svdotable.hxx
+++ b/include/svx/svdotable.hxx
@@ -190,7 +190,7 @@ public:
virtual void SetChanged() override;
virtual bool AdjustTextFrameWidthAndHeight(Rectangle& rR, bool bHgt = true, bool bWdt = true) const override;
- virtual bool AdjustTextFrameWidthAndHeight(bool bHgt = true) override;
+ virtual bool AdjustTextFrameWidthAndHeight() override;
virtual OUString TakeObjNameSingul() const override;
virtual OUString TakeObjNamePlural() const override;
virtual SdrTableObj* Clone() const override;
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx
index a794b856df6e..2adf9949ed1c 100644
--- a/include/svx/svdotext.hxx
+++ b/include/svx/svdotext.hxx
@@ -347,7 +347,7 @@ public:
virtual bool AdjustTextFrameWidthAndHeight(Rectangle& rR, bool bHgt = true, bool bWdt = true) const;
virtual bool NbcAdjustTextFrameWidthAndHeight(bool bHgt = true, bool bWdt = true);
- virtual bool AdjustTextFrameWidthAndHeight(bool bHgt = true);
+ virtual bool AdjustTextFrameWidthAndHeight();
bool IsTextFrame() const { return bTextFrame; }
bool IsOutlText() const { return bTextFrame && (eTextKind==OBJ_OUTLINETEXT || eTextKind==OBJ_TITLETEXT); }
/// returns true if the PPT autofit of text into shape bounds is enabled. implies IsFitToSize()==false!
diff --git a/include/svx/svxdlg.hxx b/include/svx/svxdlg.hxx
index 02bc055b84b0..c6617dd4c565 100644
--- a/include/svx/svxdlg.hxx
+++ b/include/svx/svxdlg.hxx
@@ -284,8 +284,7 @@ public:
sal_uInt16 nAnchorTypes = 0 ) = 0;
virtual AbstractSvxDistributeDialog* CreateSvxDistributeDialog(vcl::Window* pParent,
- const SfxItemSet& rAttr,
- SvxDistributeHorizontal eHor = SvxDistributeHorizontalNone)= 0;
+ const SfxItemSet& rAttr)= 0;
virtual AbstractFmShowColsDialog * CreateFmShowColsDialog( vcl::Window* pParent ) = 0;
diff --git a/include/svx/txencbox.hxx b/include/svx/txencbox.hxx
index 41a5c329b56b..aaf95753b715 100644
--- a/include/svx/txencbox.hxx
+++ b/include/svx/txencbox.hxx
@@ -87,8 +87,7 @@ public:
void InsertTextEncoding( const rtl_TextEncoding nEnc );
void InsertTextEncoding( const rtl_TextEncoding nEnc,
- const OUString& rEntry,
- sal_Int32 nPos = LISTBOX_APPEND );
+ const OUString& rEntry );
void SelectTextEncoding( const rtl_TextEncoding nEnc );
diff --git a/include/svx/view3d.hxx b/include/svx/view3d.hxx
index 0a58ab0cfbd7..cf2cc0530ba0 100644
--- a/include/svx/view3d.hxx
+++ b/include/svx/view3d.hxx
@@ -126,8 +126,8 @@ public:
bool IsBreak3DObjPossible() const;
void Break3DObj();
- SfxItemSet Get3DAttributes(E3dScene* pInScene = nullptr) const;
- void Set3DAttributes(const SfxItemSet& rAttr, E3dScene* pInScene = nullptr);
+ SfxItemSet Get3DAttributes() const;
+ void Set3DAttributes(const SfxItemSet& rAttr);
};
#endif // INCLUDED_SVX_VIEW3D_HXX
diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx
index 358265234673..611aa1b50986 100644
--- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx
+++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx
@@ -599,7 +599,7 @@ void SvxRectCtlAccessibleContext::FireChildFocus( RECT_POINT eButton )
else
mnSelectedChild = NOCHILDSELECTED;
}
-void SvxRectCtlAccessibleContext::selectChild( long nNew, bool bFireFocus )
+void SvxRectCtlAccessibleContext::selectChild( long nNew )
{
::osl::MutexGuard aGuard( m_aMutex );
if( nNew != mnSelectedChild )
@@ -612,7 +612,7 @@ void SvxRectCtlAccessibleContext::selectChild( long nNew, bool bFireFocus )
{ // deselect old selected child if one is selected
pChild = mpChildren[ mnSelectedChild ];
if( pChild )
- pChild->setStateChecked( false, bFireFocus );
+ pChild->setStateChecked( false );
}
// select new child
@@ -622,7 +622,7 @@ void SvxRectCtlAccessibleContext::selectChild( long nNew, bool bFireFocus )
{
pChild = mpChildren[ nNew ];
if( pChild )
- pChild->setStateChecked( true, bFireFocus );
+ pChild->setStateChecked( true );
}
}
else
diff --git a/svx/source/dialog/framelinkarray.cxx b/svx/source/dialog/framelinkarray.cxx
index e2d91902ff14..b194717cd7ee 100644
--- a/svx/source/dialog/framelinkarray.cxx
+++ b/svx/source/dialog/framelinkarray.cxx
@@ -167,7 +167,7 @@ struct ArrayImpl
long GetRowHeight( size_t nFirstRow, size_t nLastRow ) const;
double GetHorDiagAngle( size_t nCol, size_t nRow, bool bSimple = false ) const;
- double GetVerDiagAngle( size_t nCol, size_t nRow, bool bSimple = false ) const;
+ double GetVerDiagAngle( size_t nCol, size_t nRow ) const;
};
ArrayImpl::ArrayImpl( size_t nWidth, size_t nHeight, bool bDiagDblClip ) :
@@ -323,9 +323,9 @@ double ArrayImpl::GetHorDiagAngle( size_t nCol, size_t nRow, bool bSimple ) cons
return fAngle;
}
-double ArrayImpl::GetVerDiagAngle( size_t nCol, size_t nRow, bool bSimple ) const
+double ArrayImpl::GetVerDiagAngle( size_t nCol, size_t nRow ) const
{
- double fAngle = GetHorDiagAngle( nCol, nRow, bSimple );
+ double fAngle = GetHorDiagAngle( nCol, nRow );
return (fAngle > 0.0) ? (F_PI2 - fAngle) : 0.0;
}
@@ -806,19 +806,19 @@ long Array::GetHeight() const
return GetRowPosition( mxImpl->mnHeight ) - GetRowPosition( 0 );
}
-Point Array::GetCellPosition( size_t nCol, size_t nRow, bool bSimple ) const
+Point Array::GetCellPosition( size_t nCol, size_t nRow ) const
{
- size_t nFirstCol = bSimple ? nCol : mxImpl->GetMergedFirstCol( nCol, nRow );
- size_t nFirstRow = bSimple ? nRow : mxImpl->GetMergedFirstRow( nCol, nRow );
+ size_t nFirstCol = mxImpl->GetMergedFirstCol( nCol, nRow );
+ size_t nFirstRow = mxImpl->GetMergedFirstRow( nCol, nRow );
return Point( GetColPosition( nFirstCol ), GetRowPosition( nFirstRow ) );
}
-Size Array::GetCellSize( size_t nCol, size_t nRow, bool bSimple ) const
+Size Array::GetCellSize( size_t nCol, size_t nRow ) const
{
- size_t nFirstCol = bSimple ? nCol : mxImpl->GetMergedFirstCol( nCol, nRow );
- size_t nFirstRow = bSimple ? nRow : mxImpl->GetMergedFirstRow( nCol, nRow );
- size_t nLastCol = bSimple ? nCol : mxImpl->GetMergedLastCol( nCol, nRow );
- size_t nLastRow = bSimple ? nRow : mxImpl->GetMergedLastRow( nCol, nRow );
+ size_t nFirstCol = mxImpl->GetMergedFirstCol( nCol, nRow );
+ size_t nFirstRow = mxImpl->GetMergedFirstRow( nCol, nRow );
+ size_t nLastCol = mxImpl->GetMergedLastCol( nCol, nRow );
+ size_t nLastRow = mxImpl->GetMergedLastRow( nCol, nRow );
return Size( GetColWidth( nFirstCol, nLastCol ) + 1, GetRowHeight( nFirstRow, nLastRow ) + 1 );
}
@@ -1095,8 +1095,7 @@ void Array::DrawRange( drawinglayer::processor2d::BaseProcessor2D* pProcessor,
}
void Array::DrawRange( OutputDevice& rDev,
- size_t nFirstCol, size_t nFirstRow, size_t nLastCol, size_t nLastRow,
- const Color* pForceColor ) const
+ size_t nFirstCol, size_t nFirstRow, size_t nLastCol, size_t nLastRow ) const
{
DBG_FRAME_CHECK_COLROW( nFirstCol, nFirstRow, "DrawRange" );
DBG_FRAME_CHECK_COLROW( nLastCol, nLastRow, "DrawRange" );
@@ -1134,7 +1133,7 @@ void Array::DrawRange( OutputDevice& rDev,
GetCellStyleRight( _nLastCol, _nLastRow ), GetCellStyleBottom( _nLastCol, _nLastRow ),
GetCellStyleLeft( _nFirstCol, _nLastRow ), GetCellStyleBottom( _nFirstCol, _nLastRow ),
GetCellStyleRight( _nLastCol, _nFirstRow ), GetCellStyleTop( _nLastCol, _nFirstRow ),
- pForceColor, mxImpl->mbDiagDblClip );
+ nullptr, mxImpl->mbDiagDblClip );
}
}
}
@@ -1192,7 +1191,7 @@ void Array::DrawRange( OutputDevice& rDev,
if( pStart->Prim() && (aStartPos.X() <= aEndPos.X()) )
DrawHorFrameBorder( rDev, aStartPos, aEndPos, *pStart,
aStartLFromTR, *pStartLFromT, *pStartLFromL, *pStartLFromB, aStartLFromBR,
- aEndRFromTL, *pEndRFromT, *pEndRFromR, *pEndRFromB, aEndRFromBL, pForceColor );
+ aEndRFromTL, *pEndRFromT, *pEndRFromR, *pEndRFromB, aEndRFromBL );
// re-init "*Start***" variables
aStartPos = aEndPos;
@@ -1217,7 +1216,7 @@ void Array::DrawRange( OutputDevice& rDev,
if( pStart->Prim() && (aStartPos.X() <= aEndPos.X()) )
DrawHorFrameBorder( rDev, aStartPos, aEndPos, *pStart,
aStartLFromTR, *pStartLFromT, *pStartLFromL, *pStartLFromB, aStartLFromBR,
- aEndRFromTL, *pEndRFromT, *pEndRFromR, *pEndRFromB, aEndRFromBL, pForceColor );
+ aEndRFromTL, *pEndRFromT, *pEndRFromR, *pEndRFromB, aEndRFromBL );
}
// *** vertical frame borders ***
@@ -1271,7 +1270,7 @@ void Array::DrawRange( OutputDevice& rDev,
if( pStart->Prim() && (aStartPos.Y() <= aEndPos.Y()) )
DrawVerFrameBorder( rDev, aStartPos, aEndPos, *pStart,
aStartTFromBL, *pStartTFromL, *pStartTFromT, *pStartTFromR, aStartTFromBR,
- aEndBFromTL, *pEndBFromL, *pEndBFromB, *pEndBFromR, aEndBFromTR, pForceColor );
+ aEndBFromTL, *pEndBFromL, *pEndBFromB, *pEndBFromR, aEndBFromTR );
// re-init "*Start***" variables
aStartPos = aEndPos;
@@ -1296,7 +1295,7 @@ void Array::DrawRange( OutputDevice& rDev,
if( pStart->Prim() && (aStartPos.Y() <= aEndPos.Y()) )
DrawVerFrameBorder( rDev, aStartPos, aEndPos, *pStart,
aStartTFromBL, *pStartTFromL, *pStartTFromT, *pStartTFromR, aStartTFromBR,
- aEndBFromTL, *pEndBFromL, *pEndBFromB, *pEndBFromR, aEndBFromTR, pForceColor );
+ aEndBFromTL, *pEndBFromL, *pEndBFromB, *pEndBFromR, aEndBFromTR );
}
}
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx
index 6f2a77c662c0..cf4dca6a5301 100644
--- a/svx/source/dialog/langbox.cxx
+++ b/svx/source/dialog/langbox.cxx
@@ -566,14 +566,14 @@ void SvxLanguageComboBox::ImplSetEntryData( sal_Int32 nPos, void* pData )
}
-sal_Int32 SvxLanguageBox::ImplGetSelectEntryPos( sal_Int32 nSelIndex ) const
+sal_Int32 SvxLanguageBox::ImplGetSelectEntryPos() const
{
- return GetSelectEntryPos( nSelIndex);
+ return GetSelectEntryPos();
}
-sal_Int32 SvxLanguageComboBox::ImplGetSelectEntryPos( sal_Int32 nSelIndex ) const
+sal_Int32 SvxLanguageComboBox::ImplGetSelectEntryPos() const
{
- return GetSelectEntryPos( nSelIndex);
+ return GetSelectEntryPos();
}
diff --git a/svx/source/dialog/txencbox.cxx b/svx/source/dialog/txencbox.cxx
index f167a134e2ed..71868ecfe3a8 100644
--- a/svx/source/dialog/txencbox.cxx
+++ b/svx/source/dialog/txencbox.cxx
@@ -194,9 +194,9 @@ void SvxTextEncodingBox::FillWithMimeAndSelectBest()
void SvxTextEncodingBox::InsertTextEncoding( const rtl_TextEncoding nEnc,
- const OUString& rEntry, sal_Int32 nPos )
+ const OUString& rEntry )
{
- sal_Int32 nAt = InsertEntry( rEntry, nPos );
+ sal_Int32 nAt = InsertEntry( rEntry );
SetEntryData( nAt, reinterpret_cast<void*>(nEnc) );
}
diff --git a/svx/source/engine3d/view3d1.cxx b/svx/source/engine3d/view3d1.cxx
index 9da8e3ff6a61..b99ff181680f 100644
--- a/svx/source/engine3d/view3d1.cxx
+++ b/svx/source/engine3d/view3d1.cxx
@@ -96,7 +96,7 @@ void Imp_E3dView_InorderRun3DObjects(const SdrObject* pObj, sal_uInt32& rMask)
}
}
-SfxItemSet E3dView::Get3DAttributes(E3dScene* pInScene) const
+SfxItemSet E3dView::Get3DAttributes() const
{
// Creating itemset with corresponding field
SfxItemSet aSet(
@@ -107,32 +107,24 @@ SfxItemSet E3dView::Get3DAttributes(E3dScene* pInScene) const
sal_uInt32 nSelectedItems(0L);
- if(pInScene)
- {
- // special scene
- aSet.Put(pInScene->GetMergedItemSet());
- }
- else
- {
- // get attributes from all selected objects
- MergeAttrFromMarked(aSet, false);
+ // get attributes from all selected objects
+ MergeAttrFromMarked(aSet, false);
- // calc flags for SID_ATTR_3D_INTERN
- const SdrMarkList& rMarkList = GetMarkedObjectList();
- const size_t nMarkCnt(rMarkList.GetMarkCount());
+ // calc flags for SID_ATTR_3D_INTERN
+ const SdrMarkList& rMarkList = GetMarkedObjectList();
+ const size_t nMarkCnt(rMarkList.GetMarkCount());
- for(size_t a = 0; a < nMarkCnt; ++a)
- {
- SdrObject* pObj = GetMarkedObjectByIndex(a);
- Imp_E3dView_InorderRun3DObjects(pObj, nSelectedItems);
- }
+ for(size_t a = 0; a < nMarkCnt; ++a)
+ {
+ SdrObject* pObj = GetMarkedObjectByIndex(a);
+ Imp_E3dView_InorderRun3DObjects(pObj, nSelectedItems);
}
// Set SID_ATTR_3D_INTERN on the status of the selected objects
aSet.Put(SfxUInt32Item(SID_ATTR_3D_INTERN, nSelectedItems));
// maintain default values
- if(!nSelectedItems && !pInScene)
+ if(!nSelectedItems)
{
// Get defaults and apply
SfxItemSet aDefaultSet(mpModel->GetItemPool(), SDRATTR_3D_FIRST, SDRATTR_3D_LAST);
@@ -151,41 +143,33 @@ SfxItemSet E3dView::Get3DAttributes(E3dScene* pInScene) const
return aSet;
}
-void E3dView::Set3DAttributes( const SfxItemSet& rAttr, E3dScene* pInScene)
+void E3dView::Set3DAttributes( const SfxItemSet& rAttr)
{
sal_uInt32 nSelectedItems(0L);
- if(pInScene)
- {
- pInScene->SetMergedItemSetAndBroadcast(rAttr);
- }
- else
- {
- // #i94832# removed usage of E3DModifySceneSnapRectUpdater here.
- // They are not needed here, they are already handled in SetAttrToMarked
+ // #i94832# removed usage of E3DModifySceneSnapRectUpdater here.
+ // They are not needed here, they are already handled in SetAttrToMarked
- // set at selected objects
- SetAttrToMarked(rAttr, false/*bReplaceAll*/);
+ // set at selected objects
+ SetAttrToMarked(rAttr, false/*bReplaceAll*/);
- // old run
- const SdrMarkList& rMarkList = GetMarkedObjectList();
- const size_t nMarkCnt(rMarkList.GetMarkCount());
+ // old run
+ const SdrMarkList& rMarkList = GetMarkedObjectList();
+ const size_t nMarkCnt(rMarkList.GetMarkCount());
- for(size_t a = 0; a < nMarkCnt; ++a)
- {
- SdrObject* pObj = GetMarkedObjectByIndex(a);
- Imp_E3dView_InorderRun3DObjects(pObj, nSelectedItems);
- }
+ for(size_t a = 0; a < nMarkCnt; ++a)
+ {
+ SdrObject* pObj = GetMarkedObjectByIndex(a);
+ Imp_E3dView_InorderRun3DObjects(pObj, nSelectedItems);
}
// Maintain default values
- if(!nSelectedItems && !pInScene)
+ if(!nSelectedItems)
{
// Set defaults
SfxItemSet aDefaultSet(mpModel->GetItemPool(), SDRATTR_3D_FIRST, SDRATTR_3D_LAST);
aDefaultSet.Put(rAttr);
SetAttributes(aDefaultSet);
-
}
}
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx
index 00f9e1687f25..6fb1a9b21257 100644
--- a/svx/source/form/fmvwimp.cxx
+++ b/svx/source/form/fmvwimp.cxx
@@ -813,15 +813,12 @@ FmFormShell* FmXFormView::GetFormShell() const
return m_pView ? m_pView->GetFormShell() : nullptr;
}
-void FmXFormView::AutoFocus( bool _bSync )
+void FmXFormView::AutoFocus()
{
if (m_nAutoFocusEvent)
Application::RemoveUserEvent(m_nAutoFocusEvent);
- if ( _bSync )
- OnAutoFocus( nullptr );
- else
- m_nAutoFocusEvent = Application::PostUserEvent(LINK(this, FmXFormView, OnAutoFocus));
+ m_nAutoFocusEvent = Application::PostUserEvent(LINK(this, FmXFormView, OnAutoFocus));
}
diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx
index 85bad9efefa1..c7b16d64eb67 100644
--- a/svx/source/gallery2/galmisc.cxx
+++ b/svx/source/gallery2/galmisc.cxx
@@ -586,8 +586,7 @@ void GalleryTransferable::CopyToClipboard( vcl::Window* pWindow )
TransferableHelper::CopyToClipboard( pWindow );
}
-void GalleryTransferable::StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions,
- sal_Int32 nDragPointer )
+void GalleryTransferable::StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions )
{
INetURLObject aURL;
@@ -595,7 +594,7 @@ void GalleryTransferable::StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceA
{
mpTheme->SetDragging( true );
mpTheme->SetDragPos( mnObjectPos );
- TransferableHelper::StartDrag( pWindow, nDragSourceActions, nDragPointer );
+ TransferableHelper::StartDrag( pWindow, nDragSourceActions );
}
}
diff --git a/svx/source/inc/fmexch.hxx b/svx/source/inc/fmexch.hxx
index 6bdad805813d..182d5a7a85c2 100644
--- a/svx/source/inc/fmexch.hxx
+++ b/svx/source/inc/fmexch.hxx
@@ -81,9 +81,9 @@ namespace svxform
virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override;
private:
- void StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions, sal_Int32 nDragPointer = DND_POINTER_NONE, sal_Int32 nDragImage = DND_IMAGE_NONE )
+ void StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions, sal_Int32 nDragPointer = DND_POINTER_NONE )
{ // don't allow this base class method to be called from outside
- TransferableHelper::StartDrag(pWindow, nDragSourceActions, nDragPointer, nDragImage);
+ TransferableHelper::StartDrag(pWindow, nDragSourceActions, nDragPointer);
}
};
diff --git a/svx/source/inc/fmvwimp.hxx b/svx/source/inc/fmvwimp.hxx
index cb6c7e21e424..475a47651d4a 100644
--- a/svx/source/inc/fmvwimp.hxx
+++ b/svx/source/inc/fmvwimp.hxx
@@ -292,7 +292,7 @@ private:
void cancelEvents();
/// the auto focus to the first (in terms of the tab order) control
- void AutoFocus( bool _bSync = false );
+ void AutoFocus();
DECL_LINK_TYPED( OnActivate, void*, void );
DECL_LINK_TYPED( OnAutoFocus, void*, void );
DECL_LINK_TYPED( OnDelayedErrorMessage, void*, void );
diff --git a/svx/source/inc/svxrectctaccessiblecontext.hxx b/svx/source/inc/svxrectctaccessiblecontext.hxx
index acac415799ef..f27191e6026c 100644
--- a/svx/source/inc/svxrectctaccessiblecontext.hxx
+++ b/svx/source/inc/svxrectctaccessiblecontext.hxx
@@ -214,7 +214,7 @@ protected:
@param nIndexOfChild
Index of the new child which should be selected.
*/
- void selectChild( long nIndexOfChild, bool bFireFocus = true);
+ void selectChild( long nIndexOfChild );
public:
/** Selects a new child by point.
diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx
index ec09febd39e4..47544bb0d3fd 100644
--- a/svx/source/svdraw/svdedtv1.cxx
+++ b/svx/source/svdraw/svdedtv1.cxx
@@ -66,7 +66,7 @@
// EditView
-void SdrEditView::SetMarkedObjRect(const Rectangle& rRect, bool bCopy)
+void SdrEditView::SetMarkedObjRect(const Rectangle& rRect)
{
DBG_ASSERT(!rRect.IsEmpty(),"SetMarkedObjRect() with an empty Rect does not make sense.");
if (rRect.IsEmpty()) return;
@@ -85,16 +85,11 @@ void SdrEditView::SetMarkedObjRect(const Rectangle& rRect, bool bCopy)
long h1=rRect.Bottom()-y1;
OUString aStr;
ImpTakeDescriptionStr(STR_EditPosSize,aStr);
- if (bCopy)
- aStr+=ImpGetResStr(STR_EditWithCopy);
const bool bUndo = IsUndoEnabled();
if( bUndo )
BegUndo(aStr);
- if (bCopy)
- CopyMarkedObj();
-
for (size_t nm=0; nm<nCount; ++nm)
{
SdrMark* pM=GetSdrMarkByIndex(nm);
@@ -433,20 +428,20 @@ void SdrEditView::MirrorMarkedObj(const Point& rRef1, const Point& rRef2, bool b
EndUndo();
}
-void SdrEditView::MirrorMarkedObjHorizontal(bool bCopy)
+void SdrEditView::MirrorMarkedObjHorizontal()
{
Point aCenter(GetMarkedObjRect().Center());
Point aPt2(aCenter);
aPt2.Y()++;
- MirrorMarkedObj(aCenter,aPt2,bCopy);
+ MirrorMarkedObj(aCenter,aPt2);
}
-void SdrEditView::MirrorMarkedObjVertical(bool bCopy)
+void SdrEditView::MirrorMarkedObjVertical()
{
Point aCenter(GetMarkedObjRect().Center());
Point aPt2(aCenter);
aPt2.X()++;
- MirrorMarkedObj(aCenter,aPt2,bCopy);
+ MirrorMarkedObj(aCenter,aPt2);
}
long SdrEditView::GetMarkedObjShear() const
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index b01c62131c4c..1fcd76375f4f 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1338,15 +1338,13 @@ bool SdrMarkView::IsMarkedObjHit(const Point& rPnt, short nTol) const
return bRet;
}
-SdrHdl* SdrMarkView::PickHandle(const Point& rPnt, SdrSearchOptions nOptions) const
+SdrHdl* SdrMarkView::PickHandle(const Point& rPnt) const
{
if (mbSomeObjChgdFlag) { // recalculate handles, if necessary
FlushComeBackTimer();
}
- bool bBack(nOptions & SdrSearchOptions::BACKWARD);
- bool bNext(nOptions & SdrSearchOptions::NEXT);
Point aPt(rPnt);
- return maHdlList.IsHdlListHit(aPt,bBack,bNext);
+ return maHdlList.IsHdlListHit(aPt);
}
bool SdrMarkView::MarkObj(const Point& rPnt, short nTol, bool bToggle, bool bDeep)
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index cac8a5291e4e..8b6bd6492246 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -2513,9 +2513,9 @@ bool SdrObjCustomShape::NbcAdjustTextFrameWidthAndHeight(bool bHgt, bool bWdt)
}
return bRet;
}
-bool SdrObjCustomShape::AdjustTextFrameWidthAndHeight(bool bHgt)
+bool SdrObjCustomShape::AdjustTextFrameWidthAndHeight()
{
- Rectangle aNewTextRect = ImpCalculateTextFrame( bHgt, true/*bWdt*/ );
+ Rectangle aNewTextRect = ImpCalculateTextFrame( true/*bHgt*/, true/*bWdt*/ );
bool bRet = !aNewTextRect.IsEmpty() && ( aNewTextRect != maRect );
if ( bRet )
{
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 43ceb636d9cd..e8ee5c3c1d16 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -1050,7 +1050,7 @@ OUString SdrObject::GetAngleStr(long nAngle) const
return aStr;
}
-OUString SdrObject::GetMetrStr(long nVal, MapUnit /*eWantMap*/) const
+OUString SdrObject::GetMetrStr(long nVal) const
{
OUString aStr;
if (pModel!=nullptr) {
diff --git a/svx/source/svdraw/svdotxat.cxx b/svx/source/svdraw/svdotxat.cxx
index c587c4411017..f78499f84818 100644
--- a/svx/source/svdraw/svdotxat.cxx
+++ b/svx/source/svdraw/svdotxat.cxx
@@ -274,10 +274,10 @@ bool SdrTextObj::NbcAdjustTextFrameWidthAndHeight(bool bHgt, bool bWdt)
return bRet;
}
-bool SdrTextObj::AdjustTextFrameWidthAndHeight(bool bHgt)
+bool SdrTextObj::AdjustTextFrameWidthAndHeight()
{
Rectangle aNeuRect(maRect);
- bool bRet=AdjustTextFrameWidthAndHeight(aNeuRect,bHgt);
+ bool bRet=AdjustTextFrameWidthAndHeight(aNeuRect);
if (bRet) {
Rectangle aBoundRect0; if (pUserCall!=nullptr) aBoundRect0=GetLastBoundRect();
maRect = aNeuRect;
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index bd961faacdea..08d4e7237ea3 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -1894,10 +1894,10 @@ void SdrTableObj::NbcResize(const Point& rRef, const Fraction& xFact, const Frac
}
-bool SdrTableObj::AdjustTextFrameWidthAndHeight(bool bHgt)
+bool SdrTableObj::AdjustTextFrameWidthAndHeight()
{
Rectangle aNeuRect(maLogicRect);
- bool bRet=AdjustTextFrameWidthAndHeight(aNeuRect,bHgt);
+ bool bRet=AdjustTextFrameWidthAndHeight(aNeuRect);
if (bRet)
{
Rectangle aBoundRect0;