summaryrefslogtreecommitdiff
path: root/sc/source/ui
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 /sc/source/ui
parent1a18cafecb06a76e872f5f1a9434160ea8ffd881 (diff)
loplugin:staticmethods
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/app/inputwin.cxx4
-rw-r--r--sc/source/ui/dbgui/csvcontrol.cxx2
-rw-r--r--sc/source/ui/miscdlgs/autofmt.cxx2
-rw-r--r--sc/source/ui/pagedlg/scuitphfedit.cxx2
-rw-r--r--sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx4
-rw-r--r--sc/source/ui/sidebar/CellBorderStyleControl.cxx2
-rw-r--r--sc/source/ui/sidebar/CellBorderUpdater.cxx4
-rw-r--r--sc/source/ui/view/gridwin.cxx2
-rw-r--r--sc/source/ui/view/tabview5.cxx2
9 files changed, 12 insertions, 12 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 747ff2e69321..a70b0697404c 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1448,7 +1448,7 @@ ScTextWnd::ScTextWnd( vcl::Window* pParent, ScTabViewShell* pViewSh )
{
EnableRTL( false ); // EditEngine can't be used with VCL EnableRTL
- bIsRTL = GetSettings().GetLayoutRTL();
+ bIsRTL = AllSettings::GetLayoutRTL();
// always use application font, so a font with cjk chars can be installed
vcl::Font aAppFont = GetFont();
@@ -1994,7 +1994,7 @@ void ScTextWnd::MakeDialogEditView()
void ScTextWnd::ImplInitSettings()
{
- bIsRTL = GetSettings().GetLayoutRTL();
+ bIsRTL = AllSettings::GetLayoutRTL();
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
diff --git a/sc/source/ui/dbgui/csvcontrol.cxx b/sc/source/ui/dbgui/csvcontrol.cxx
index 4b42c914f8fd..ac0b16c91122 100644
--- a/sc/source/ui/dbgui/csvcontrol.cxx
+++ b/sc/source/ui/dbgui/csvcontrol.cxx
@@ -36,7 +36,7 @@ ScCsvLayoutData::ScCsvLayoutData() :
mnPosCursor( CSV_POS_INVALID ),
mnColCursor( 0 ),
mnNoRepaint( 0 ),
- mbAppRTL( !!Application::GetSettings().GetLayoutRTL() )
+ mbAppRTL( !!AllSettings::GetLayoutRTL() )
{
}
diff --git a/sc/source/ui/miscdlgs/autofmt.cxx b/sc/source/ui/miscdlgs/autofmt.cxx
index b062a3ebba04..ffd54c8547c8 100644
--- a/sc/source/ui/miscdlgs/autofmt.cxx
+++ b/sc/source/ui/miscdlgs/autofmt.cxx
@@ -505,7 +505,7 @@ void ScAutoFmtPreview::DoPaint( const Rectangle& /* rRect */ )
DrawRect( aRect );
Point aPos( (aWndSize.Width() - aPrvSize.Width()) / 2, (aWndSize.Height() - aPrvSize.Height()) / 2 );
- if (Application::GetSettings().GetLayoutRTL())
+ if (AllSettings::GetLayoutRTL())
aPos.X() = -aPos.X();
DrawOutDev( aPos, aWndSize, Point(), aWndSize, aVD );
diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx
index 7c5e01c15403..dcac934968eb 100644
--- a/sc/source/ui/pagedlg/scuitphfedit.cxx
+++ b/sc/source/ui/pagedlg/scuitphfedit.cxx
@@ -112,7 +112,7 @@ ScHFEditPage::ScHFEditPage( vcl::Window* pParent,
m_pFtCustomHF->Show();
//swap left/right areas and their labels in RTL mode
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
{
vcl::Window *pLeft = get<vcl::Window>("labelFT_LEFT");
vcl::Window *pRight = get<vcl::Window>("labelFT_RIGHT");
diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
index dcb9b89927c9..af0bfe8fbe90 100644
--- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
+++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
@@ -326,7 +326,7 @@ void CellAppearancePropertyPanel::NotifyItemUpdate(
if(pBoxItem->GetBottom())
mbBottom = true;
- if(!Application::GetSettings().GetLayoutRTL())
+ if(!AllSettings::GetLayoutRTL())
mpCellBorderUpdater->UpdateCellBorder(mbTop, mbBottom, mbLeft, mbRight, maIMGCellBorder, mbVer, mbHor);
else
mpCellBorderUpdater->UpdateCellBorder(mbTop, mbBottom, mbRight, mbLeft, maIMGCellBorder, mbVer, mbHor);
@@ -369,7 +369,7 @@ void CellAppearancePropertyPanel::NotifyItemUpdate(
if(!pBoxInfoItem->IsValid( SvxBoxInfoItemValidFlags::BOTTOM ) || mbBottom)
bBottom = true;
- if(!Application::GetSettings().GetLayoutRTL())
+ if(!AllSettings::GetLayoutRTL())
mpCellBorderUpdater->UpdateCellBorder(bTop, bBottom, bLeft, bRight, maIMGCellBorder, mbVer, mbHor);
else
mpCellBorderUpdater->UpdateCellBorder(bTop, bBottom, bRight, bLeft, maIMGCellBorder, mbVer, mbHor);
diff --git a/sc/source/ui/sidebar/CellBorderStyleControl.cxx b/sc/source/ui/sidebar/CellBorderStyleControl.cxx
index 5fad23d1f1cb..08f7417bea08 100644
--- a/sc/source/ui/sidebar/CellBorderStyleControl.cxx
+++ b/sc/source/ui/sidebar/CellBorderStyleControl.cxx
@@ -216,7 +216,7 @@ IMPL_LINK(CellBorderStyleControl, TB2SelectHdl, ToolBox *, pToolBox)
break;
case TBI_BORDER2_RIGHT:
- if(!Application::GetSettings().GetLayoutRTL())
+ if(!AllSettings::GetLayoutRTL())
{
pRight = &theDefLine;
nValidFlags |= FRM_VALID_RIGHT;
diff --git a/sc/source/ui/sidebar/CellBorderUpdater.cxx b/sc/source/ui/sidebar/CellBorderUpdater.cxx
index 98f0e2655aa7..83f1ee8a3d6f 100644
--- a/sc/source/ui/sidebar/CellBorderUpdater.cxx
+++ b/sc/source/ui/sidebar/CellBorderUpdater.cxx
@@ -104,9 +104,9 @@ void CellBorderUpdater::UpdateCellBorder(bool bTop, bool bBot, bool bLeft, bool
}
}
- 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/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 5c301f0cce59..7b1959f5f49b 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -1095,7 +1095,7 @@ void ScGridWindow::LaunchDataSelectMenu( SCCOL nCol, SCROW nRow, bool bDataSelec
ScFilterBoxMode eFilterMode = bDataSelect ? SC_FILTERBOX_DATASELECT : SC_FILTERBOX_FILTER;
mpFilterBox.reset(new ScFilterListBox(mpFilterFloat.get(), this, nCol, nRow, eFilterMode));
// Fix for bug fdo#44925
- if (Application::GetSettings().GetLayoutRTL() != bLayoutRTL)
+ if (AllSettings::GetLayoutRTL() != bLayoutRTL)
mpFilterBox->EnableMirroring();
nSizeX += 1;
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx
index eb5a3364a03d..21694cbf3c8e 100644
--- a/sc/source/ui/view/tabview5.cxx
+++ b/sc/source/ui/view/tabview5.cxx
@@ -106,7 +106,7 @@ void ScTabView::Init()
is needed to draw the 3D effect correctly. The base TabBar implementes
mirroring independent from the GUI direction. Have to set RTL mode
explicitly because the parent frame window is already RTL disabled. */
- pTabControl->EnableRTL( Application::GetSettings().GetLayoutRTL() );
+ pTabControl->EnableRTL( AllSettings::GetLayoutRTL() );
InitScrollBar( aHScrollLeft, MAXCOL+1 );
InitScrollBar( aHScrollRight, MAXCOL+1 );