diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-08 14:20:31 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-09-09 06:43:43 +0000 |
commit | 8bfcb53c3d1389632fc7f1eca53d73187a489dfa (patch) | |
tree | efb8d68fc4600ea7585290757f78866c061234bf /svx/source | |
parent | 976a4803e4cca4c5104c0ed60544a91a50ada012 (diff) |
loplugin:constantparam in svx
Change-Id: Id08850b90a0e286ff837dd6b0c1691fa7dc793fa
Reviewed-on: https://gerrit.libreoffice.org/28746
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source')
33 files changed, 100 insertions, 175 deletions
diff --git a/svx/source/accessibility/GraphCtlAccessibleContext.cxx b/svx/source/accessibility/GraphCtlAccessibleContext.cxx index 46b6c313d248..47eca9687a46 100644 --- a/svx/source/accessibility/GraphCtlAccessibleContext.cxx +++ b/svx/source/accessibility/GraphCtlAccessibleContext.cxx @@ -63,9 +63,7 @@ using namespace ::com::sun::star::accessibility; /** initialize this component and set default values */ SvxGraphCtrlAccessibleContext::SvxGraphCtrlAccessibleContext( const Reference< XAccessible >& rxParent, - GraphCtrl& rRepr, - const OUString* pName, - const OUString* pDesc ) : + GraphCtrl& rRepr ) : SvxGraphCtrlAccessibleContext_Base( m_aMutex ), mxParent( rxParent ), @@ -94,23 +92,9 @@ SvxGraphCtrlAccessibleContext::SvxGraphCtrlAccessibleContext( } } - if( pName ) - { - msName = *pName; - } - else { ::SolarMutexGuard aSolarGuard; msName = SVX_RESSTR( RID_SVXSTR_GRAPHCTRL_ACC_NAME ); - } - - if( pDesc ) - { - msDescription = *pDesc; - } - else - { - ::SolarMutexGuard aSolarGuard; msDescription = SVX_RESSTR( RID_SVXSTR_GRAPHCTRL_ACC_DESCRIPTION ); } diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx index d43ab2c53801..828166bf767f 100644 --- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx +++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx @@ -133,9 +133,7 @@ static long PointToIndex( RectPoint ePoint, bool bAngleControl ) SvxRectCtlAccessibleContext::SvxRectCtlAccessibleContext( const Reference< XAccessible >& rxParent, - SvxRectCtl& rRepr, - const OUString* pName, - const OUString* pDesc ) : + SvxRectCtl& rRepr ) : SvxRectCtlAccessibleContext_Base( m_aMutex ), mxParent( rxParent ), @@ -145,20 +143,9 @@ SvxRectCtlAccessibleContext::SvxRectCtlAccessibleContext( mnSelectedChild( NOCHILDSELECTED ), mbAngleMode( rRepr.GetNumOfChildren() == 8 ) { - - if( pName ) - msName = *pName; - else { ::SolarMutexGuard aSolarGuard; msName = SVX_RESSTR( mbAngleMode? RID_SVXSTR_RECTCTL_ACC_ANGL_NAME : RID_SVXSTR_RECTCTL_ACC_CORN_NAME ); - } - - if( pDesc ) - msDescription = *pDesc; - else - { - ::SolarMutexGuard aSolarGuard; msDescription = SVX_RESSTR( mbAngleMode? RID_SVXSTR_RECTCTL_ACC_ANGL_DESCR : RID_SVXSTR_RECTCTL_ACC_CORN_DESCR ); } diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx index e3147f45fbf3..0edba8f589a2 100644 --- a/svx/source/dialog/_bmpmask.cxx +++ b/svx/source/dialog/_bmpmask.cxx @@ -318,9 +318,9 @@ void ColorWindow::Paint( vcl::RenderContext& rRenderContext, const Rectangle& /* rRenderContext.Pop(); } -SvxBmpMaskSelectItem::SvxBmpMaskSelectItem( sal_uInt16 nId_, SvxBmpMask& rMask, +SvxBmpMaskSelectItem::SvxBmpMaskSelectItem( SvxBmpMask& rMask, SfxBindings& rBindings ) : - SfxControllerItem ( nId_, rBindings ), + SfxControllerItem ( SID_BMPMASK_EXEC, rBindings ), rBmpMask ( rMask) { } @@ -354,7 +354,7 @@ SvxBmpMask::SvxBmpMask(SfxBindings *pBindinx, SfxChildWindow *pCW, vcl::Window* "svx/ui/dockingcolorreplace.ui" ) , pData(new MaskData(this, *pBindinx)) , aPipetteColor(COL_WHITE) - , aSelItem(SID_BMPMASK_EXEC, *this, *pBindinx) + , aSelItem(*this, *pBindinx) { get(m_pTbxPipette, "toolbar"); m_pTbxPipette->SetItemBits(m_pTbxPipette->GetItemId(0), diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx index 438b37f617ca..05d3a4c44860 100644 --- a/svx/source/dialog/framelink.cxx +++ b/svx/source/dialog/framelink.cxx @@ -1145,11 +1145,11 @@ Style::Style( const Color& rColorPrim, const Color& rColorSecn, const Color& rCo Set( rColorPrim, rColorSecn, rColorGap, bUseGapColor, nP, nD, nS ); } -Style::Style( const editeng::SvxBorderLine* pBorder, double fScale, sal_uInt16 nMaxWidth ) : +Style::Style( const editeng::SvxBorderLine* pBorder, double fScale ) : meRefMode(RefMode::Centered), mfPatternScale(fScale) { - Set( pBorder, fScale, nMaxWidth ); + Set( pBorder, fScale ); } diff --git a/svx/source/dialog/grfflt.cxx b/svx/source/dialog/grfflt.cxx index 53a98cd07a65..c0623678000c 100644 --- a/svx/source/dialog/grfflt.cxx +++ b/svx/source/dialog/grfflt.cxx @@ -162,7 +162,7 @@ sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest& rReq, GraphicObj SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if(pFact) { - std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterMosaic(pWindow, rGraphic, 4, 4)); + std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterMosaic(pWindow, rGraphic)); DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); @@ -175,7 +175,7 @@ sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest& rReq, GraphicObj SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if(pFact) { - std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterEmboss(pWindow, rGraphic, RectPoint::MM)); + std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterEmboss(pWindow, rGraphic)); DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); @@ -188,7 +188,7 @@ sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest& rReq, GraphicObj SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if(pFact) { - std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterPoster(pWindow, rGraphic, 16)); + std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterPoster(pWindow, rGraphic)); DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); @@ -226,7 +226,7 @@ sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest& rReq, GraphicObj SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if(pFact) { - std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterSepia(pWindow, rGraphic, 10)); + std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterSepia(pWindow, rGraphic)); DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); @@ -239,7 +239,7 @@ sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest& rReq, GraphicObj SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if(pFact) { - std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterSolarize(pWindow, rGraphic, 128)); + std::unique_ptr<AbstractGraphicFilterDialog> aDlg(pFact->CreateGraphicFilterSolarize(pWindow, rGraphic)); DBG_ASSERT(aDlg, "Dialog creation failed!"); if( aDlg->Execute() == RET_OK ) aGraphic = aDlg->GetFilteredGraphic( rGraphic, 1.0, 1.0 ); diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx index 0c5549f77eb1..c3f46e621f08 100644 --- a/svx/source/dialog/imapdlg.cxx +++ b/svx/source/dialog/imapdlg.cxx @@ -70,8 +70,8 @@ SFX_IMPL_MODELESSDIALOG_WITHID( SvxIMapDlgChildWindow, SID_IMAP ); // ControllerItem -SvxIMapDlgItem::SvxIMapDlgItem( sal_uInt16 _nId, SvxIMapDlg& rIMapDlg, SfxBindings& rBindings ) : - SfxControllerItem ( _nId, rBindings ), +SvxIMapDlgItem::SvxIMapDlgItem( SvxIMapDlg& rIMapDlg, SfxBindings& rBindings ) : + SfxControllerItem ( SID_IMAP_EXEC, rBindings ), rIMap ( rIMapDlg ) { } @@ -118,7 +118,7 @@ VCL_BUILDER_FACTORY(StatusBar) SvxIMapDlg::SvxIMapDlg(SfxBindings *_pBindings, SfxChildWindow *pCW, vcl::Window* _pParent) : SfxModelessDialog(_pBindings, pCW, _pParent, "ImapDialog", "svx/ui/imapdialog.ui") , pCheckObj(nullptr) - , aIMapItem(SID_IMAP_EXEC, *this, *_pBindings) + , aIMapItem(*this, *_pBindings) { get(m_pTbxIMapDlg1, "toolbar"); m_pTbxIMapDlg1->InsertSeparator(3, 5); diff --git a/svx/source/dialog/pagenumberlistbox.cxx b/svx/source/dialog/pagenumberlistbox.cxx index dd2162d74886..830139ba988d 100644 --- a/svx/source/dialog/pagenumberlistbox.cxx +++ b/svx/source/dialog/pagenumberlistbox.cxx @@ -22,8 +22,8 @@ #include <tools/resary.hxx> #include <vcl/builderfactory.hxx> -PageNumberListBox::PageNumberListBox(vcl::Window* pParent, WinBits nStyle) - : ListBox( pParent, nStyle) +PageNumberListBox::PageNumberListBox(vcl::Window* pParent) + : ListBox( pParent, WB_BORDER | WB_DROPDOWN) { ResStringArray aPaperAry( SVX_RES( RID_SVXSTRARY_PAGE_NUMBERING ) ); sal_uInt32 nCnt = aPaperAry.Count(); diff --git a/svx/source/dialog/papersizelistbox.cxx b/svx/source/dialog/papersizelistbox.cxx index 67401cfb3b50..57cc63fe3acd 100644 --- a/svx/source/dialog/papersizelistbox.cxx +++ b/svx/source/dialog/papersizelistbox.cxx @@ -24,8 +24,8 @@ #include <vcl/builderfactory.hxx> -PaperSizeListBox::PaperSizeListBox(vcl::Window* pParent, WinBits nStyle) - : ListBox( pParent, nStyle) +PaperSizeListBox::PaperSizeListBox(vcl::Window* pParent) + : ListBox( pParent, WB_BORDER | WB_DROPDOWN) { SetDropDownLineCount(6); } diff --git a/svx/source/dialog/samecontentlistbox.cxx b/svx/source/dialog/samecontentlistbox.cxx index 83f42b2cd08b..4fe85739e909 100644 --- a/svx/source/dialog/samecontentlistbox.cxx +++ b/svx/source/dialog/samecontentlistbox.cxx @@ -22,8 +22,8 @@ #include <tools/resary.hxx> #include <vcl/builderfactory.hxx> -SameContentListBox::SameContentListBox(vcl::Window* pParent, WinBits nStyle) - : ListBox( pParent, nStyle) +SameContentListBox::SameContentListBox(vcl::Window* pParent) + : ListBox( pParent, WB_BORDER | WB_DROPDOWN) { ResStringArray aSameContentAry( SVX_RES( RID_SVXSTRARY_SAMECONTENT ) ); sal_uInt32 nCnt = aSameContentAry.Count(); diff --git a/svx/source/dialog/spacinglistbox.cxx b/svx/source/dialog/spacinglistbox.cxx index 363385f2a030..b30a3c69adcc 100644 --- a/svx/source/dialog/spacinglistbox.cxx +++ b/svx/source/dialog/spacinglistbox.cxx @@ -22,8 +22,8 @@ #include <tools/resary.hxx> #include <vcl/builderfactory.hxx> -SpacingListBox::SpacingListBox(vcl::Window* pParent, WinBits nStyle) - : ListBox( pParent, nStyle) +SpacingListBox::SpacingListBox(vcl::Window* pParent) + : ListBox( pParent, WB_BORDER | WB_DROPDOWN) { ResStringArray aSpacingAry( SVX_RES( RID_SVXSTRARY_SPACING ) ); sal_uInt32 nCnt = aSpacingAry.Count(); diff --git a/svx/source/dialog/svxgrahicitem.cxx b/svx/source/dialog/svxgrahicitem.cxx index 331b835a1d38..d7bbd8a328f4 100644 --- a/svx/source/dialog/svxgrahicitem.cxx +++ b/svx/source/dialog/svxgrahicitem.cxx @@ -18,8 +18,10 @@ */ #include "svx/svxgrahicitem.hxx" -SvxGraphicItem::SvxGraphicItem( sal_uInt16 _nWhich, const Graphic& rGraphic ) - : SfxPoolItem( _nWhich ), aGraphic( rGraphic ) +#include "svx/svxids.hrc" + +SvxGraphicItem::SvxGraphicItem( const Graphic& rGraphic ) + : SfxPoolItem( SID_GRAPHIC ), aGraphic( rGraphic ) { } diff --git a/svx/source/engine3d/camera3d.cxx b/svx/source/engine3d/camera3d.cxx index 5d3383032604..f5c394614e44 100644 --- a/svx/source/engine3d/camera3d.cxx +++ b/svx/source/engine3d/camera3d.cxx @@ -21,12 +21,12 @@ #include <tools/stream.hxx> Camera3D::Camera3D(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLookAt, - double fFocalLen, double fBankAng) : + double fFocalLen) : aResetPos(rPos), aResetLookAt(rLookAt), fResetFocalLength(fFocalLen), - fResetBankAngle(fBankAng), - fBankAngle(fBankAng), + fResetBankAngle(0), + fBankAngle(0), bAutoAdjustProjection(true) { SetVPD(0); @@ -48,12 +48,12 @@ Camera3D::Camera3D() // Set default values for reset void Camera3D::SetDefaults(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLookAt, - double fFocalLen, double fBankAng) + double fFocalLen) { aResetPos = rPos; aResetLookAt = rLookAt; fResetFocalLength = fFocalLen; - fResetBankAngle = fBankAng; + fResetBankAngle = 0; } // Set ViewWindow and adjust PRP diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx index 4699cc7344ac..c7a7d93e4f10 100644 --- a/svx/source/engine3d/obj3d.cxx +++ b/svx/source/engine3d/obj3d.cxx @@ -84,8 +84,8 @@ using namespace com::sun::star; // List for 3D-Objects -E3dObjList::E3dObjList(SdrModel* pNewModel, SdrPage* pNewPage, E3dObjList* pNewUpList) -: SdrObjList(pNewModel, pNewPage, pNewUpList) +E3dObjList::E3dObjList() +: SdrObjList(nullptr, nullptr, nullptr) { } diff --git a/svx/source/inc/GraphCtlAccessibleContext.hxx b/svx/source/inc/GraphCtlAccessibleContext.hxx index c8c5c439245b..63d802ca0644 100644 --- a/svx/source/inc/GraphCtlAccessibleContext.hxx +++ b/svx/source/inc/GraphCtlAccessibleContext.hxx @@ -87,9 +87,7 @@ public: // internal SvxGraphCtrlAccessibleContext( const css::uno::Reference< css::accessibility::XAccessible>& rxParent, - GraphCtrl& rRepresentation, - const OUString* pName = nullptr, - const OUString* pDescription = nullptr ); + GraphCtrl& rRepresentation ); void Notify( SfxBroadcaster& aBC, const SfxHint& aHint ) override; diff --git a/svx/source/inc/svxrectctaccessiblecontext.hxx b/svx/source/inc/svxrectctaccessiblecontext.hxx index 25a28165c5b7..9f67fa3a46cd 100644 --- a/svx/source/inc/svxrectctaccessiblecontext.hxx +++ b/svx/source/inc/svxrectctaccessiblecontext.hxx @@ -74,9 +74,7 @@ public: // internal SvxRectCtlAccessibleContext( const css::uno::Reference< css::accessibility::XAccessible>& rxParent, - SvxRectCtl& rRepresentation, - const OUString* pName = nullptr, - const OUString* pDescription = nullptr ); + SvxRectCtl& rRepresentation ); protected: virtual ~SvxRectCtlAccessibleContext(); public: diff --git a/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx b/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx index a55607e65f56..0857542c3733 100644 --- a/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx +++ b/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx @@ -164,11 +164,10 @@ ViewContact& ObjectContactOfPagePainter::GetPaintObjectViewContact(sal_uInt32 /* } ObjectContactOfPagePainter::ObjectContactOfPagePainter( - const SdrPage* pPage, ObjectContact& rOriginalObjectContact) : ObjectContactPainter(), mrOriginalObjectContact(rOriginalObjectContact), - mxStartPage(const_cast< SdrPage* >(pPage)) // no SdrPageWeakRef available to hold a const SdrPage* + mxStartPage() { } diff --git a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx index 43c860ed53a1..09ea52169dcb 100644 --- a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx @@ -77,7 +77,7 @@ public: PagePrimitiveExtractor::PagePrimitiveExtractor( ViewObjectContactOfPageObj& rVOC) -: ObjectContactOfPagePainter(nullptr, rVOC.GetObjectContact()), +: ObjectContactOfPagePainter(rVOC.GetObjectContact()), mrViewObjectContactOfPageObj(rVOC) { // make this renderer a preview renderer diff --git a/svx/source/sdr/overlay/overlayrectangle.cxx b/svx/source/sdr/overlay/overlayrectangle.cxx index 1fbfff195446..016343405f53 100644 --- a/svx/source/sdr/overlay/overlayrectangle.cxx +++ b/svx/source/sdr/overlay/overlayrectangle.cxx @@ -70,7 +70,6 @@ namespace sdr double fDiscreteGrow, double fDiscreteShrink, double fRotation, - sal_uInt64 nBlinkTime, bool bAnimate) : OverlayObjectWithBasePosition(rBasePosition, rHatchColor), maSecondPosition(rSecondPosition), @@ -78,7 +77,7 @@ namespace sdr mfDiscreteGrow(fDiscreteGrow), mfDiscreteShrink(fDiscreteShrink), mfRotation(fRotation), - mnBlinkTime(impCheckBlinkTimeValueRange(nBlinkTime)), + mnBlinkTime(impCheckBlinkTimeValueRange(500)), mbOverlayState(false) { if(Application::GetSettings().GetStyleSettings().GetHighContrastMode()) diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx index 258466fcdec9..52ca6ca087c1 100644 --- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx +++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx @@ -43,7 +43,6 @@ ValueSetWithTextControl::ValueSetWithTextControl( void ValueSetWithTextControl::AddItem( const Image& rItemImage, - const Image* pSelectedItemImage, const OUString& rItemText, const OUString* pItemHelpText ) { @@ -54,22 +53,13 @@ void ValueSetWithTextControl::AddItem( ValueSetWithTextItem aItem; aItem.maItemImage = rItemImage; - aItem.maSelectedItemImage = (pSelectedItemImage != nullptr) - ? *pSelectedItemImage - : rItemImage; + aItem.maSelectedItemImage = rItemImage; if ( GetDPIScaleFactor() > 1 ) { BitmapEx b = aItem.maItemImage.GetBitmapEx(); b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); aItem.maItemImage = Image(b); - - if ( pSelectedItemImage != nullptr ) - { - b = aItem.maSelectedItemImage.GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); - aItem.maSelectedItemImage = Image(b); - } } aItem.maItemText = rItemText; @@ -84,8 +74,7 @@ void ValueSetWithTextControl::AddItem( void ValueSetWithTextControl::AddItem( const OUString& rItemText, - const OUString& rItemText2, - const OUString* pItemHelpText ) + const OUString& rItemText2 ) { if ( meControlType != ControlType::TextText ) { @@ -99,8 +88,7 @@ void ValueSetWithTextControl::AddItem( maItems.push_back( aItem ); InsertItem( maItems.size() ); - SetItemText( maItems.size(), - (pItemHelpText != nullptr) ? *pItemHelpText : rItemText ); + SetItemText( maItems.size(), rItemText ); } diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index 492d84a94054..83779ac5c2b4 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -106,7 +106,7 @@ using namespace ::com::sun::star; SdrItemPool::SdrItemPool( SfxItemPool* _pMaster, bool bLoadRefCounts) -: XOutdevItemPool(_pMaster, SDRATTR_START, SDRATTR_END, bLoadRefCounts) +: XOutdevItemPool(_pMaster, bLoadRefCounts) { // prepare some constants const Color aNullCol(RGB_Color(COL_BLACK)); diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx index b5098b7ff444..8243f49ea47c 100644 --- a/svx/source/svdraw/svdcrtv.cxx +++ b/svx/source/svdraw/svdcrtv.cxx @@ -517,9 +517,9 @@ bool SdrCreateView::ImpBegCreateObj(sal_uInt32 nInvent, sal_uInt16 nIdent, const return bRet; } -bool SdrCreateView::BegCreateObj(const Point& rPnt, OutputDevice* pOut, short nMinMov, SdrPageView* pPV) +bool SdrCreateView::BegCreateObj(const Point& rPnt, OutputDevice* pOut, short nMinMov) { - return ImpBegCreateObj(nAktInvent,nAktIdent,rPnt,pOut,nMinMov,pPV,Rectangle(), nullptr); + return ImpBegCreateObj(nAktInvent,nAktIdent,rPnt,pOut,nMinMov,nullptr,Rectangle(), nullptr); } bool SdrCreateView::BegCreatePreparedObject(const Point& rPnt, sal_Int16 nMinMov, SdrObject* pPreparedFactoryObject) @@ -537,9 +537,9 @@ bool SdrCreateView::BegCreatePreparedObject(const Point& rPnt, sal_Int16 nMinMov } bool SdrCreateView::BegCreateCaptionObj(const Point& rPnt, const Size& rObjSiz, - OutputDevice* pOut, short nMinMov, SdrPageView* pPV) + OutputDevice* pOut, short nMinMov) { - return ImpBegCreateObj(SdrInventor,OBJ_CAPTION,rPnt,pOut,nMinMov,pPV, + return ImpBegCreateObj(SdrInventor,OBJ_CAPTION,rPnt,pOut,nMinMov,nullptr, Rectangle(rPnt,Size(rObjSiz.Width()+1,rObjSiz.Height()+1)), nullptr); } diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 15c9a573e99a..6dde7207ca34 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -1010,8 +1010,8 @@ void SdrDragMovHdl::MoveSdrDrag(const Point& rNoSnapPnt) bool bXSnapped=false; bool bYSnapped=false; Point aDif(aPnt-DragStat().GetStart()); - getSdrDragView().CheckSnap(Ref1()+aDif,nullptr,nBestXSnap,nBestYSnap,bXSnapped,bYSnapped); - getSdrDragView().CheckSnap(Ref2()+aDif,nullptr,nBestXSnap,nBestYSnap,bXSnapped,bYSnapped); + getSdrDragView().CheckSnap(Ref1()+aDif,nBestXSnap,nBestYSnap,bXSnapped,bYSnapped); + getSdrDragView().CheckSnap(Ref2()+aDif,nBestXSnap,nBestYSnap,bXSnapped,bYSnapped); aPnt.X()+=nBestXSnap; aPnt.Y()+=nBestYSnap; } diff --git a/svx/source/svdraw/svdglev.cxx b/svx/source/svdraw/svdglev.cxx index 9f547e12bd0b..a5978c1e6873 100644 --- a/svx/source/svdraw/svdglev.cxx +++ b/svx/source/svdraw/svdglev.cxx @@ -40,7 +40,7 @@ SdrGlueEditView::~SdrGlueEditView() } -void SdrGlueEditView::ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, bool bConst, const void* p1, const void* p2, const void* p3, const void* p4, const void* p5) +void SdrGlueEditView::ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, bool bConst, const void* p1, const void* p2, const void* p3, const void* p4) { const size_t nMarkCount=GetMarkedObjectCount(); for (size_t nm=0; nm<nMarkCount; ++nm) { @@ -68,7 +68,7 @@ void SdrGlueEditView::ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, bool bConst, co if (nGlueIdx!=SDRGLUEPOINT_NOTFOUND) { SdrGluePoint& rGP=(*pGPL)[nGlueIdx]; - (*pDoFunc)(rGP,pObj,p1,p2,p3,p4,p5); + (*pDoFunc)(rGP,pObj,p1,p2,p3,p4); } } if (!bConst) @@ -83,7 +83,7 @@ void SdrGlueEditView::ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, bool bConst, co } -static void ImpGetEscDir(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pbFirst, const void* pnThisEsc, const void* pnRet, const void*, const void*) +static void ImpGetEscDir(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pbFirst, const void* pnThisEsc, const void* pnRet, const void*) { sal_uInt16& nRet=*const_cast<sal_uInt16 *>(static_cast<sal_uInt16 const *>(pnRet)); if (nRet!=FUZZY) { @@ -107,7 +107,7 @@ SDR_TRISTATE SdrGlueEditView::IsMarkedGluePointsEscDir(SdrEscapeDirection nThisE return (SDR_TRISTATE)nRet; } -static void ImpSetEscDir(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pnThisEsc, const void* pbOn, const void*, const void*, const void*) +static void ImpSetEscDir(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pnThisEsc, const void* pbOn, const void*, const void*) { SdrEscapeDirection nEsc=rGP.GetEscDir(); if (*static_cast<bool const *>(pbOn)) @@ -126,7 +126,7 @@ void SdrGlueEditView::SetMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc, boo } -static void ImpGetPercent(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pbFirst, const void* pnRet, const void*, const void*, const void*) +static void ImpGetPercent(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pbFirst, const void* pnRet, const void*, const void*) { sal_uInt16& nRet=*const_cast<sal_uInt16 *>(static_cast<sal_uInt16 const *>(pnRet)); if (nRet!=FUZZY) { @@ -146,7 +146,7 @@ SDR_TRISTATE SdrGlueEditView::IsMarkedGluePointsPercent() const return (SDR_TRISTATE)nRet; } -static void ImpSetPercent(SdrGluePoint& rGP, const SdrObject* pObj, const void* pbOn, const void*, const void*, const void*, const void*) +static void ImpSetPercent(SdrGluePoint& rGP, const SdrObject* pObj, const void* pbOn, const void*, const void*, const void*) { Point aPos(rGP.GetAbsolutePos(*pObj)); rGP.SetPercent(*static_cast<bool const *>(pbOn)); @@ -162,7 +162,7 @@ void SdrGlueEditView::SetMarkedGluePointsPercent(bool bOn) } -static void ImpGetAlign(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pbFirst, const void* pbDontCare, const void* pbVert, const void* pnRet, const void*) +static void ImpGetAlign(SdrGluePoint& rGP, const SdrObject* /*pObj*/, const void* pbFirst, const void* pbDontCare, const void* pbVert, const void* pnRet) { SdrAlign& nRet=*const_cast<SdrAlign *>(static_cast<SdrAlign const *>(pnRet)); bool& bDontCare=*const_cast<bool *>(static_cast<bool const *>(pbDontCare)); @@ -197,7 +197,7 @@ SdrAlign SdrGlueEditView::GetMarkedGluePointsAlign(bool bVert) const return nRet; } -static void ImpSetAlign(SdrGluePoint& rGP, const SdrObject* pObj, const void* pbVert, const void* pnAlign, const void*, const void*, const void*) +static void ImpSetAlign(SdrGluePoint& rGP, const SdrObject* pObj, const void* pbVert, const void* pnAlign, const void*, const void*) { Point aPos(rGP.GetAbsolutePos(*pObj)); if (*static_cast<bool const *>(pbVert)) { // bVert? @@ -310,7 +310,7 @@ void SdrGlueEditView::ImpCopyMarkedGluePoints() } -void SdrGlueEditView::ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const void* p1, const void* p2, const void* p3, const void* p4, const void* p5) +void SdrGlueEditView::ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const void* p1, const void* p2, const void* p3, const void* p4) { const size_t nMarkCount=GetMarkedObjectCount(); for (size_t nm=0; nm<nMarkCount; ++nm) { @@ -332,7 +332,7 @@ void SdrGlueEditView::ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const vo if (nGlueIdx!=SDRGLUEPOINT_NOTFOUND) { SdrGluePoint& rGP=(*pGPL)[nGlueIdx]; Point aPos(rGP.GetAbsolutePos(*pObj)); - (*pTrFunc)(aPos,p1,p2,p3,p4,p5); + (*pTrFunc)(aPos,p1,p2,p3,p4); rGP.SetAbsolutePos(aPos,*pObj); } } @@ -345,7 +345,7 @@ void SdrGlueEditView::ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const vo } -static void ImpMove(Point& rPt, const void* p1, const void* /*p2*/, const void* /*p3*/, const void* /*p4*/, const void* /*p5*/) +static void ImpMove(Point& rPt, const void* p1, const void* /*p2*/, const void* /*p3*/, const void* /*p4*/) { rPt.X()+=static_cast<const Size*>(p1)->Width(); rPt.Y()+=static_cast<const Size*>(p1)->Height(); @@ -364,7 +364,7 @@ void SdrGlueEditView::MoveMarkedGluePoints(const Size& rSiz, bool bCopy) } -static void ImpResize(Point& rPt, const void* p1, const void* p2, const void* p3, const void* /*p4*/, const void* /*p5*/) +static void ImpResize(Point& rPt, const void* p1, const void* p2, const void* p3, const void* /*p4*/) { ResizePoint(rPt,*static_cast<const Point*>(p1),*static_cast<const Fraction*>(p2),*static_cast<const Fraction*>(p3)); } @@ -382,7 +382,7 @@ void SdrGlueEditView::ResizeMarkedGluePoints(const Point& rRef, const Fraction& } -static void ImpRotate(Point& rPt, const void* p1, const void* /*p2*/, const void* p3, const void* p4, const void* /*p5*/) +static void ImpRotate(Point& rPt, const void* p1, const void* /*p2*/, const void* p3, const void* p4) { RotatePoint(rPt,*static_cast<const Point*>(p1),*static_cast<const double*>(p3),*static_cast<const double*>(p4)); } diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx index b4c3beeab5ac..3216a7ff64de 100644 --- a/svx/source/svdraw/svdhdl.cxx +++ b/svx/source/svdraw/svdhdl.cxx @@ -88,7 +88,7 @@ class SdrHdlBitmapSet BitmapEx& impGetOrCreateTargetBitmap(sal_uInt16 nIndex, const Rectangle& rRectangle); public: - explicit SdrHdlBitmapSet(sal_uInt16 nResId); + explicit SdrHdlBitmapSet(); ~SdrHdlBitmapSet(); const BitmapEx& GetBitmapEx(BitmapMarkerKind eKindOfMarker, sal_uInt16 nInd); @@ -99,8 +99,8 @@ public: #define INDEX_COUNT (6) #define INDIVIDUAL_COUNT (5) -SdrHdlBitmapSet::SdrHdlBitmapSet(sal_uInt16 nResId) - : maMarkersBitmap(ResId(nResId, *ImpGetResMgr())), +SdrHdlBitmapSet::SdrHdlBitmapSet() + : maMarkersBitmap(ResId(SIP_SA_MARKERS, *ImpGetResMgr())), // 15 kinds (BitmapMarkerKind) use index [0..5] + 5 extra maRealMarkers((KIND_COUNT * INDEX_COUNT) + INDIVIDUAL_COUNT) { @@ -675,7 +675,7 @@ BitmapMarkerKind SdrHdl::GetNextBigger(BitmapMarkerKind eKnd) BitmapEx SdrHdl::ImpGetBitmapEx( BitmapMarkerKind eKindOfMarker, sal_uInt16 nInd) { - static vcl::DeleteOnDeinit< SdrHdlBitmapSet > aModernSet(new SdrHdlBitmapSet(SIP_SA_MARKERS)); + static vcl::DeleteOnDeinit< SdrHdlBitmapSet > aModernSet(new SdrHdlBitmapSet); return aModernSet.get()->GetBitmapEx(eKindOfMarker, nInd); } @@ -1706,7 +1706,6 @@ void ImpTextframeHdl::CreateB2dIAObject() 3.0, 3.0, nRotationAngle * -F_PI18000, - 500, true); // allow animation; the Handle is not shown at text edit time // OVERLAYMANAGER diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx index 0c4e458f5ee8..3a989743838a 100644 --- a/svx/source/svdraw/svdibrow.cxx +++ b/svx/source/svdraw/svdibrow.cxx @@ -205,8 +205,8 @@ void ImpItemEdit::KeyInput(const KeyEvent& rKEvt) #define MYBROWSEMODE (BrowserMode::THUMBDRAGGING|BrowserMode::KEEPHIGHLIGHT|BrowserMode::NO_HSCROLL|BrowserMode::HIDECURSOR) -SdrItemBrowserControl::SdrItemBrowserControl(vcl::Window* pParent, WinBits nBits): - BrowseBox(pParent,nBits,MYBROWSEMODE), +SdrItemBrowserControl::SdrItemBrowserControl(vcl::Window* pParent): + BrowseBox(pParent, WB_3DLOOK | WB_BORDER | WB_TABSTOP, MYBROWSEMODE), aList() { ImpCtor(); diff --git a/svx/source/svdraw/svdpoev.cxx b/svx/source/svdraw/svdpoev.cxx index d4c2e2a528e5..8a1644a44c6c 100644 --- a/svx/source/svdraw/svdpoev.cxx +++ b/svx/source/svdraw/svdpoev.cxx @@ -537,7 +537,7 @@ SdrObjClosedKind SdrPolyEditView::GetMarkedObjectsClosedState() const } } -void SdrPolyEditView::ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* p1, const void* p2, const void* p3, const void* p4, const void* p5) +void SdrPolyEditView::ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* p1, const void* p2, const void* p3, const void* p4) { const bool bUndo = IsUndoEnabled(); @@ -588,7 +588,7 @@ void SdrPolyEditView::ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* bC2 = true; } - (*pTrFunc)(aPos,&aC1,&aC2,p1,p2,p3,p4,p5); + (*pTrFunc)(aPos,&aC1,&aC2,p1,p2,p3,p4); aNewXP.setB2DPoint(nPointNum, basegfx::B2DPoint(aPos.X(), aPos.Y())); if (bC1) @@ -611,7 +611,7 @@ void SdrPolyEditView::ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* } -static void ImpMove(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* /*p2*/, const void* /*p3*/, const void* /*p4*/, const void* /*p5*/) +static void ImpMove(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* /*p2*/, const void* /*p3*/, const void* /*p4*/) { MovePoint(rPt,*static_cast<const Size*>(p1)); if (pC1!=nullptr) MovePoint(*pC1,*static_cast<const Size*>(p1)); @@ -628,7 +628,7 @@ void SdrPolyEditView::MoveMarkedPoints(const Size& rSiz) AdjustMarkHdl(); } -static void ImpResize(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* p2, const void* p3, const void* /*p4*/, const void* /*p5*/) +static void ImpResize(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* p2, const void* p3, const void* /*p4*/) { ResizePoint(rPt,*static_cast<const Point*>(p1),*static_cast<const Fraction*>(p2),*static_cast<const Fraction*>(p3)); if (pC1!=nullptr) ResizePoint(*pC1,*static_cast<const Point*>(p1),*static_cast<const Fraction*>(p2),*static_cast<const Fraction*>(p3)); @@ -645,7 +645,7 @@ void SdrPolyEditView::ResizeMarkedPoints(const Point& rRef, const Fraction& xFac AdjustMarkHdl(); } -static void ImpRotate(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* /*p2*/, const void* p3, const void* p4, const void* /*p5*/) +static void ImpRotate(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* /*p2*/, const void* p3, const void* p4) { RotatePoint(rPt,*static_cast<const Point*>(p1),*static_cast<const double*>(p3),*static_cast<const double*>(p4)); if (pC1!=nullptr) RotatePoint(*pC1,*static_cast<const Point*>(p1),*static_cast<const double*>(p3),*static_cast<const double*>(p4)); diff --git a/svx/source/svdraw/svdsnpv.cxx b/svx/source/svdraw/svdsnpv.cxx index 20466bbd5da0..2129b24a1a3c 100644 --- a/svx/source/svdraw/svdsnpv.cxx +++ b/svx/source/svdraw/svdsnpv.cxx @@ -416,10 +416,10 @@ SdrSnap SdrSnapView::SnapPos(Point& rPnt, const SdrPageView* pPV) const return bRet; } -void SdrSnapView::CheckSnap(const Point& rPt, const SdrPageView* pPV, long& nBestXSnap, long& nBestYSnap, bool& bXSnapped, bool& bYSnapped) const +void SdrSnapView::CheckSnap(const Point& rPt, long& nBestXSnap, long& nBestYSnap, bool& bXSnapped, bool& bYSnapped) const { Point aPt(rPt); - SdrSnap nRet=SnapPos(aPt,pPV); + SdrSnap nRet=SnapPos(aPt,nullptr); aPt-=rPt; if (nRet & SdrSnap::XSNAPPED) { if (bXSnapped) { diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index f5899a615bc5..51204522fd9d 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -1246,7 +1246,7 @@ void SvxTableController::SplitMarkedCells() getSelectedCells( aStart, aEnd ); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); - std::unique_ptr< SvxAbstractSplittTableDialog > xDlg( pFact ? pFact->CreateSvxSplittTableDialog( nullptr, false, 99, 99 ) : nullptr ); + std::unique_ptr< SvxAbstractSplittTableDialog > xDlg( pFact ? pFact->CreateSvxSplittTableDialog( nullptr, false, 99 ) : nullptr ); if( xDlg.get() && xDlg->Execute() ) { const sal_Int32 nCount = xDlg->GetCount() - 1; @@ -1709,7 +1709,7 @@ bool SvxTableController::executeAction( sal_uInt16 nAction, bool bSelect, vcl::W } case ACTION_EDIT_CELL: - EditCell( getSelectionStart(), pWindow, nullptr, nAction ); + EditCell( getSelectionStart(), pWindow, nAction ); break; case ACTION_STOP_TEXT_EDIT: @@ -1770,7 +1770,7 @@ void SvxTableController::gotoCell( const CellPos& rPos, bool bSelect, vcl::Windo else { RemoveSelection(); - EditCell( rPos, pWindow, nullptr, nAction ); + EditCell( rPos, pWindow, nAction ); } } @@ -1856,7 +1856,7 @@ void SvxTableController::findMergeOrigin( CellPos& rPos ) } -void SvxTableController::EditCell( const CellPos& rPos, vcl::Window* pWindow, const awt::MouseEvent* pMouseEvent /*= 0*/, sal_uInt16 nAction /*= ACTION_NONE */ ) +void SvxTableController::EditCell( const CellPos& rPos, vcl::Window* pWindow, sal_uInt16 nAction /*= ACTION_NONE */ ) { SdrPageView* pPV = mpView->GetSdrPageView(); @@ -1902,46 +1902,19 @@ void SvxTableController::EditCell( const CellPos& rPos, vcl::Window* pWindow, co OutlinerView* pOLV = mpView->GetTextEditOutlinerView(); - bool bNoSel = true; + // Move cursor to end of text + ESelection aNewSelection; - if( pMouseEvent ) + const WritingMode eMode = pTableObj->GetWritingMode(); + if( ((nAction == ACTION_GOTO_LEFT_CELL) || (nAction == ACTION_GOTO_RIGHT_CELL)) && (eMode != WritingMode_TB_RL) ) { - ::MouseEvent aMEvt( *pMouseEvent ); + const bool bLast = ((nAction == ACTION_GOTO_LEFT_CELL) && (eMode == WritingMode_LR_TB)) || + ((nAction == ACTION_GOTO_RIGHT_CELL) && (eMode == WritingMode_RL_TB)); - SdrViewEvent aVEvt; - SdrHitKind eHit = mpView->PickAnything(aMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt); - - if (eHit == SdrHitKind::TextEdit) - { - // Text getroffen - pOLV->MouseButtonDown(aMEvt); - pOLV->MouseMove(aMEvt); - pOLV->MouseButtonUp(aMEvt); -// pOLV->MouseButtonDown(aMEvt); - bNoSel = false; - } - else - { - nAction = ACTION_GOTO_LEFT_CELL; - } - } - - if( bNoSel ) - { - // Move cursor to end of text - ESelection aNewSelection; - - const WritingMode eMode = pTableObj->GetWritingMode(); - if( ((nAction == ACTION_GOTO_LEFT_CELL) || (nAction == ACTION_GOTO_RIGHT_CELL)) && (eMode != WritingMode_TB_RL) ) - { - const bool bLast = ((nAction == ACTION_GOTO_LEFT_CELL) && (eMode == WritingMode_LR_TB)) || - ((nAction == ACTION_GOTO_RIGHT_CELL) && (eMode == WritingMode_RL_TB)); - - if( bLast ) - aNewSelection = ESelection(EE_PARA_NOT_FOUND, EE_INDEX_NOT_FOUND, EE_PARA_NOT_FOUND, EE_INDEX_NOT_FOUND); - } - pOLV->SetSelection(aNewSelection); + if( bLast ) + aNewSelection = ESelection(EE_PARA_NOT_FOUND, EE_INDEX_NOT_FOUND, EE_PARA_NOT_FOUND, EE_INDEX_NOT_FOUND); } + pOLV->SetSelection(aNewSelection); } } } diff --git a/svx/source/table/tablehandles.cxx b/svx/source/table/tablehandles.cxx index 8c8e11f44519..d369ed866380 100644 --- a/svx/source/table/tablehandles.cxx +++ b/svx/source/table/tablehandles.cxx @@ -296,7 +296,7 @@ void TableBorderHdl::CreateB2dIAObject() sdr::overlay::OverlayObject* pOverlayObject = new sdr::overlay::OverlayRectangle(aRange.getMinimum(), aRange.getMaximum(), aHilightColor, fTransparence, - fWidth, 0.0, 0.0, 500, bAnimate); + fWidth, 0.0, 0.0, bAnimate); xManager->add(*pOverlayObject); maOverlayGroup.append(*pOverlayObject); } diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx index 3832b9e279e3..6db593cd3d39 100644 --- a/svx/source/tbxctrls/colrctrl.cxx +++ b/svx/source/tbxctrls/colrctrl.cxx @@ -85,8 +85,8 @@ bool SvxColorValueSetData::WriteObject( tools::SvRef<SotStorageStream>& rxOStm, return( rxOStm->GetError() == ERRCODE_NONE ); } -SvxColorValueSet_docking::SvxColorValueSet_docking( vcl::Window* _pParent, WinBits nWinStyle ) : - SvxColorValueSet( _pParent, nWinStyle ), +SvxColorValueSet_docking::SvxColorValueSet_docking( vcl::Window* _pParent ) : + SvxColorValueSet( _pParent, WB_ITEMBORDER ), DragSourceHelper( this ), mbLeftButton(true) { diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx index 7d26b8f2a880..858c0ed533fc 100644 --- a/svx/source/tbxctrls/itemwin.cxx +++ b/svx/source/tbxctrls/itemwin.cxx @@ -52,8 +52,8 @@ using namespace ::com::sun::star::util; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::beans; -SvxLineBox::SvxLineBox( vcl::Window* pParent, const Reference< XFrame >& rFrame, WinBits nBits ) : - LineLB( pParent, nBits ), +SvxLineBox::SvxLineBox( vcl::Window* pParent, const Reference< XFrame >& rFrame ) : + LineLB( pParent, WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL ), nCurPos ( 0 ), aLogicalSize(40,140), bRelease ( true ), @@ -382,8 +382,8 @@ void SvxMetricField::DataChanged( const DataChangedEvent& rDCEvt ) MetricField::DataChanged( rDCEvt ); } -SvxFillTypeBox::SvxFillTypeBox( vcl::Window* pParent, WinBits nBits ) : - FillTypeLB( pParent, nBits | WB_TABSTOP ), +SvxFillTypeBox::SvxFillTypeBox( vcl::Window* pParent ) : + FillTypeLB( pParent, WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL | WB_TABSTOP ), nCurPos ( 0 ), bSelect ( false ), bRelease( true ) @@ -463,8 +463,8 @@ void SvxFillTypeBox::ReleaseFocus_Impl() } } -SvxFillAttrBox::SvxFillAttrBox( vcl::Window* pParent, WinBits nBits ) : - FillAttrLB( pParent, nBits | WB_TABSTOP ), +SvxFillAttrBox::SvxFillAttrBox( vcl::Window* pParent ) : + FillAttrLB( pParent, WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL | WB_TABSTOP ), nCurPos( 0 ), bRelease( true ) diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx index d2410a49acd9..711a57c8724b 100644 --- a/svx/source/xoutdev/_xpoly.cxx +++ b/svx/source/xoutdev/_xpoly.cxx @@ -202,8 +202,8 @@ void ImpXPolygon::CheckPointDelete() const } } -XPolygon::XPolygon( sal_uInt16 nSize, sal_uInt16 nResize ) - : pImpXPolygon( ImpXPolygon( nSize, nResize ) ) +XPolygon::XPolygon( sal_uInt16 nSize ) + : pImpXPolygon( ImpXPolygon( nSize, 16 ) ) { } diff --git a/svx/source/xoutdev/xpool.cxx b/svx/source/xoutdev/xpool.cxx index 476e2ab8832b..d427aa07e164 100644 --- a/svx/source/xoutdev/xpool.cxx +++ b/svx/source/xoutdev/xpool.cxx @@ -26,10 +26,8 @@ XOutdevItemPool::XOutdevItemPool( SfxItemPool* _pMaster, - sal_uInt16 nAttrStart, - sal_uInt16 nAttrEnd, bool bLoadRefCounts) -: SfxItemPool("XOutdevItemPool", nAttrStart, nAttrEnd, nullptr, nullptr, bLoadRefCounts) +: SfxItemPool("XOutdevItemPool", SDRATTR_START, SDRATTR_END, nullptr, nullptr, bLoadRefCounts) { // prepare some defaults const OUString aNullStr; |