diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-01 16:23:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-02 09:38:29 +0200 |
commit | e9cb5577f4c1be0f59863ec5ccb68e8794a2f117 (patch) | |
tree | 9a84237851499e829442ed322ba050189943ce21 /svx | |
parent | 1a18cafecb06a76e872f5f1a9434160ea8ffd881 (diff) |
loplugin:staticmethods
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/svxpixelctlaccessiblecontext.cxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 4 | ||||
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 2 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrprimitivetools.cxx | 4 | ||||
-rw-r--r-- | svx/source/sidebar/nbdtmg.cxx | 10 | ||||
-rw-r--r-- | svx/source/sidebar/possize/SidebarDialControl.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdetc.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 4 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbxcolorupdate.cxx | 4 | ||||
-rw-r--r-- | svx/source/xoutdev/_xoutbmp.cxx | 4 | ||||
-rw-r--r-- | svx/source/xoutdev/xattrbmp.cxx | 2 |
11 files changed, 20 insertions, 20 deletions
diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx index 60d0bae1bb0c..0498e6acac62 100644 --- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx +++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx @@ -484,7 +484,7 @@ uno::Reference<XAccessible> SvxPixelCtlAccessible::CreateChild (long nIndex,Poin { long nX = mPoint.X(); long nY = mPoint.Y(); - if( Application::GetSettings().GetLayoutRTL()) + if( AllSettings::GetLayoutRTL()) { nX = (sal_uInt16) mrPixelCtl.GetWidth() - 1 - nX; } diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 6606c6491a39..075cc89b29ae 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -550,7 +550,7 @@ Point SvxRectCtl::SetActualRPWithoutInvalidate( RECT_POINT eNewRP ) aPtNew.Y() = aPtMM.Y(); // fdo#74751 this fix reverse base point on RTL UI. - bool bRTL = Application::GetSettings().GetLayoutRTL(); + bool bRTL = AllSettings::GetLayoutRTL(); eNewRP = GetRPFromPoint( aPtNew, bRTL ); eDefRP = eNewRP; @@ -1087,7 +1087,7 @@ void SvxPixelCtl::SetXBitmap( const BitmapEx& rBitmapEx ) } } - aBitmap.ReleaseAccess(pRead); + Bitmap::ReleaseAccess(pRead); } } diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 6afcf3d33372..2ac5aaeb7234 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -983,7 +983,7 @@ void SvxRuler::UpdatePage() long lPos = 0; Point aOwnPos = GetPosPixel(); Point aEdtWinPos = pEditWin->GetPosPixel(); - if( Application::GetSettings().GetLayoutRTL() && bHorz ) + if( AllSettings::GetLayoutRTL() && bHorz ) { //#i73321# in RTL the window and the ruler is not mirrored but the // influence of the vertical ruler is inverted diff --git a/svx/source/sdr/primitive2d/sdrprimitivetools.cxx b/svx/source/sdr/primitive2d/sdrprimitivetools.cxx index 0ffbee0ec289..21cf0812545c 100644 --- a/svx/source/sdr/primitive2d/sdrprimitivetools.cxx +++ b/svx/source/sdr/primitive2d/sdrprimitivetools.cxx @@ -64,8 +64,8 @@ namespace drawinglayer pWMask->SetPixel(2, 0, aMaskColor); pWMask->SetPixel(2, 2, aMaskColor); - aContent.ReleaseAccess(pWContent); - aMask.ReleaseAccess(pWMask); + Bitmap::ReleaseAccess(pWContent); + Bitmap::ReleaseAccess(pWMask); // create and exchange at aRetVal delete aRetVal.set(new BitmapEx(aContent, aMask)); diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index 543dda1702dd..f0e2ed04a60e 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -298,7 +298,7 @@ sal_uInt16 BulletsTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLe sal_Unicode cChar = aFmt.GetBulletChar(); //const vcl::Font* pFont = aFmt.GetBulletFont(); //sal_uInt16 nLength = 0; - /*if( Application::GetSettings().GetLayoutRTL() ) + /*if( AllSettings::GetLayoutRTL() ) { nLength = sizeof(aDynamicRTLBulletTypes)/sizeof(sal_Unicode); for(sal_uInt16 i = 0; i < nLength; i++) @@ -354,7 +354,7 @@ bool BulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uI sal_Unicode cChar = aFmt.GetBulletChar(); const vcl::Font* pFont = aFmt.GetBulletFont(); //sal_uInt16 nLength = 0; - /*if( Application::GetSettings().GetLayoutRTL() ) + /*if( AllSettings::GetLayoutRTL() ) { nLength = sizeof(aDynamicRTLBulletTypes)/sizeof(sal_Unicode); @@ -396,7 +396,7 @@ bool BulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt1 sal_Unicode cChar; //sal_uInt16 nLength = 0; - /*if( Application::GetSettings().GetLayoutRTL() ) + /*if( AllSettings::GetLayoutRTL() ) { nLength = sizeof(aDynamicRTLBulletTypes)/sizeof(sal_Unicode); @@ -482,7 +482,7 @@ sal_Unicode BulletsTypeMgr::GetBulChar(sal_uInt16 nIndex) else cChar = pActualBullets[nIndex]->cBulletChar; - /*if( Application::GetSettings().GetLayoutRTL() ) + /*if( AllSettings::GetLayoutRTL() ) { nLength = sizeof(aDynamicRTLBulletTypes)/sizeof(sal_Unicode); @@ -1761,7 +1761,7 @@ bool OutlineTypeMgr::ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt1 sal_Unicode cChar = 0; if( !pLevelSettings->sBulletChar.isEmpty() ) cChar = pLevelSettings->sBulletChar[0]; - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) { if( 0 == i && cChar == BulletsTypeMgr::aDynamicBulletTypes[5] ) cChar = BulletsTypeMgr::aDynamicRTLBulletTypes[5]; diff --git a/svx/source/sidebar/possize/SidebarDialControl.cxx b/svx/source/sidebar/possize/SidebarDialControl.cxx index b4d0bee4703c..2f422a9b5166 100644 --- a/svx/source/sidebar/possize/SidebarDialControl.cxx +++ b/svx/source/sidebar/possize/SidebarDialControl.cxx @@ -69,7 +69,7 @@ void SidebarDialControl::HandleMouseEvent( const Point& rPos, bool bInitial ) if( bInitial ) // round to entire 15 degrees nAngle = ((nAngle + 750) / 1500) * 1500; - if (Application::GetSettings().GetLayoutRTL()) + if (AllSettings::GetLayoutRTL()) nAngle = 18000 - nAngle; SetRotation( nAngle, true ); } diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index 32eb75aebca3..a4c62ebda45e 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -375,7 +375,7 @@ bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol) if(pAccess) { - aBitmap.ReleaseAccess(pAccess); + Bitmap::ReleaseAccess(pAccess); } break; diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index a3826c74b85a..238166b932a8 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -372,10 +372,10 @@ SdrObject* ImpCreateShadowObjectClone(const SdrObject& rOriginal, const SfxItemS } } - aDestBitmap.ReleaseAccess(pWriteAccess); + Bitmap::ReleaseAccess(pWriteAccess); } - aBitmap.ReleaseAccess(pReadAccess); + Bitmap::ReleaseAccess(pReadAccess); if(aBitmapEx.IsTransparent()) { diff --git a/svx/source/tbxctrls/tbxcolorupdate.cxx b/svx/source/tbxctrls/tbxcolorupdate.cxx index 27f9de9fedb2..13029b6f1b24 100644 --- a/svx/source/tbxctrls/tbxcolorupdate.cxx +++ b/svx/source/tbxctrls/tbxcolorupdate.cxx @@ -176,10 +176,10 @@ namespace svx pMskAcc->DrawRect(maUpdRect); } - aBmp.ReleaseAccess(pBmpAcc); + Bitmap::ReleaseAccess(pBmpAcc); if (pMskAcc) - aMsk.ReleaseAccess(pMskAcc); + Bitmap::ReleaseAccess(pMskAcc); if (aBmpEx.IsAlpha()) aBmpEx = BitmapEx(aBmp, AlphaMask(aMsk)); diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx index bc3ee582fd24..ed7682953c86 100644 --- a/svx/source/xoutdev/_xoutbmp.cxx +++ b/svx/source/xoutdev/_xoutbmp.cxx @@ -453,8 +453,8 @@ Bitmap XOutBitmap::DetectEdges( const Bitmap& rBmp, const sal_uInt8 cThreshold ) bRet = true; } - aWorkBmp.ReleaseAccess( pReadAcc ); - aDstBmp.ReleaseAccess( pWriteAcc ); + Bitmap::ReleaseAccess( pReadAcc ); + Bitmap::ReleaseAccess( pWriteAcc ); if( bRet ) aRetBmp = aDstBmp; diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx index e977f02f2283..0518bdddf0e6 100644 --- a/svx/source/xoutdev/xattrbmp.cxx +++ b/svx/source/xoutdev/xattrbmp.cxx @@ -240,7 +240,7 @@ Bitmap createHistorical8x8FromArray(const sal_uInt16* pArray, Color aColorPix, C } } - aBitmap.ReleaseAccess(pContent); + Bitmap::ReleaseAccess(pContent); } return aBitmap; |