summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-01 16:23:59 +0200
committerNoel Grandin <noel@peralex.com>2015-04-02 09:38:29 +0200
commite9cb5577f4c1be0f59863ec5ccb68e8794a2f117 (patch)
tree9a84237851499e829442ed322ba050189943ce21 /vcl/osx
parent1a18cafecb06a76e872f5f1a9434160ea8ffd881 (diff)
loplugin:staticmethods
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salframe.cxx2
-rw-r--r--vcl/osx/salframeview.mm8
-rw-r--r--vcl/osx/salnativewidgets.cxx10
3 files changed, 10 insertions, 10 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index d177aa2a1b08..61dd536b2f47 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1265,7 +1265,7 @@ void AquaSalFrame::SetPosSize(long nX, long nY, long nWidth, long nHeight, sal_u
if( mpParent )
{
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
{
if( (nFlags & SAL_FRAME_POSSIZE_WIDTH) != 0 )
nX = mpParent->maGeometry.nWidth - nWidth-1 - nX;
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index 04c6e90cfd84..67c0a9a4fc61 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -628,7 +628,7 @@ private:
aEvent.mnCode = aEvent.mnButton | nModMask;
// --- RTL --- (mirror mouse pos)
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
aEvent.mnX = pDispatchFrame->maGeometry.nWidth-1-aEvent.mnX;
pDispatchFrame->CallCallback( nEvent, &aEvent );
@@ -790,7 +790,7 @@ private:
aEvent.mbDeltaIsPixel = TRUE;
// --- RTL --- (mirror mouse pos)
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
aEvent.mnX = mpFrame->maGeometry.nWidth-1-aEvent.mnX;
aEvent.mnDelta = nDeltaZ;
@@ -846,7 +846,7 @@ private:
aEvent.mbDeltaIsPixel = TRUE;
// --- RTL --- (mirror mouse pos)
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
aEvent.mnX = mpFrame->maGeometry.nWidth-1-aEvent.mnX;
if( dX != 0.0 )
@@ -906,7 +906,7 @@ private:
aEvent.mbDeltaIsPixel = FALSE;
// --- RTL --- (mirror mouse pos)
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
aEvent.mnX = mpFrame->maGeometry.nWidth-1-aEvent.mnX;
if( dX != 0.0 )
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index cd2b8c5b892e..559b41897f1c 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -746,7 +746,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
{
ButtonValue aButtonValue = aValue.getTristateVal();
- if( Application::GetSettings().GetLayoutRTL() && aButtonValue == BUTTONVALUE_OFF )
+ if( AllSettings::GetLayoutRTL() && aButtonValue == BUTTONVALUE_OFF )
{
// FIXME: a value of kThemeDisclosureLeft
// should draw a theme compliant left disclosure triangle
@@ -784,7 +784,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
case BUTTONVALUE_OFF:
// FIXME: this should have drawn a theme compliant disclosure triangle
// (see above)
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
{
aInfo.value = kThemeDisclosureLeft;//collapsed, RTL
}
@@ -815,7 +815,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
aTrackInfo.bounds.origin.y -= 2; // FIXME: magic for shadow
aTrackInfo.bounds.size.width -= 2; // FIXME: magic for shadow
aTrackInfo.attributes = kThemeTrackHorizontal;
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
aTrackInfo.attributes |= kThemeTrackRightToLeft;
aTrackInfo.enableState = getTrackState( nState );
// the intro bitmap never gets key anyway; we want to draw that enabled
@@ -972,7 +972,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
//support for RTL
//see issue 79748
- if( Application::GetSettings().GetLayoutRTL() ) {
+ if( AllSettings::GetLayoutRTL() ) {
if( aTabItemDrawInfo.position == kHIThemeTabPositionFirst )
aTabItemDrawInfo.position = kHIThemeTabPositionLast;
else if( aTabItemDrawInfo.position == kHIThemeTabPositionLast )
@@ -1105,7 +1105,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
HIRect buttonRc = ImplGetHIRectFromRectangle(aSpinRect);
// FIXME: without this fuzz factor there is some unwanted clipping
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
buttonRc.origin.x -= FOCUS_RING_WIDTH - CLIP_FUZZ;
else
buttonRc.origin.x += FOCUS_RING_WIDTH + CLIP_FUZZ;