summaryrefslogtreecommitdiff
path: root/sdext
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 /sdext
parent1a18cafecb06a76e872f5f1a9434160ea8ffd881 (diff)
loplugin:staticmethods
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterHelpView.cxx4
-rw-r--r--sdext/source/presenter/PresenterNotesView.cxx4
-rw-r--r--sdext/source/presenter/PresenterSlideSorter.cxx16
-rw-r--r--sdext/source/presenter/PresenterToolBar.cxx8
-rw-r--r--sdext/source/presenter/PresenterWindowManager.cxx10
5 files changed, 21 insertions, 21 deletions
diff --git a/sdext/source/presenter/PresenterHelpView.cxx b/sdext/source/presenter/PresenterHelpView.cxx
index 4b3bf639c623..d0d22bfc6250 100644
--- a/sdext/source/presenter/PresenterHelpView.cxx
+++ b/sdext/source/presenter/PresenterHelpView.cxx
@@ -315,7 +315,7 @@ void PresenterHelpView::Paint (const awt::Rectangle& rUpdateBox)
sal_Int32 RightX2 = aWindowBox.Width - gnHorizontalGap;
/* check whether RTL interface or not
then replace the windowbox position */
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
{
LeftX1 = aWindowBox.Width/2 + gnHorizontalGap;
LeftX2 = aWindowBox.Width - gnHorizontalGap;
@@ -581,7 +581,7 @@ double LineDescriptorList::Paint(
{
double nX;
/// check whether RTL interface or not
- if(!Application::GetSettings().GetLayoutRTL())
+ if(!AllSettings::GetLayoutRTL())
{
nX = rBBox.X1;
if ( ! bFlushLeft)
diff --git a/sdext/source/presenter/PresenterNotesView.cxx b/sdext/source/presenter/PresenterNotesView.cxx
index 079b89a4b954..26191735870c 100644
--- a/sdext/source/presenter/PresenterNotesView.cxx
+++ b/sdext/source/presenter/PresenterNotesView.cxx
@@ -456,7 +456,7 @@ void PresenterNotesView::Layout (void)
if (nHeight > nTextBoxHeight)
{
bShowVerticalScrollbar = true;
- if(!Application::GetSettings().GetLayoutRTL())
+ if(!AllSettings::GetLayoutRTL())
aNewTextBoundingBox.X2 -= mpScrollBar->GetSize();
else
aNewTextBoundingBox.X1 += mpScrollBar->GetSize();
@@ -467,7 +467,7 @@ void PresenterNotesView::Layout (void)
{
OSL_ASSERT(false);
}
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
{
mpScrollBar->SetVisible(bShowVerticalScrollbar);
mpScrollBar->SetPosSize(
diff --git a/sdext/source/presenter/PresenterSlideSorter.cxx b/sdext/source/presenter/PresenterSlideSorter.cxx
index 4bf2d73be048..098e85dfc972 100644
--- a/sdext/source/presenter/PresenterSlideSorter.cxx
+++ b/sdext/source/presenter/PresenterSlideSorter.cxx
@@ -512,7 +512,7 @@ void SAL_CALL PresenterSlideSorter::mousePressed (const css::awt::MouseEvent& rE
{
css::awt::MouseEvent rTemp =rEvent;
/// check whether RTL interface or not
- if(Application::GetSettings().GetLayoutRTL()){
+ if(AllSettings::GetLayoutRTL()){
awt::Rectangle aBox = mxWindow->getPosSize();
rTemp.X=aBox.Width-rEvent.X;
}
@@ -525,7 +525,7 @@ void SAL_CALL PresenterSlideSorter::mouseReleased (const css::awt::MouseEvent& r
{
css::awt::MouseEvent rTemp =rEvent;
/// check whether RTL interface or not
- if(Application::GetSettings().GetLayoutRTL()){
+ if(AllSettings::GetLayoutRTL()){
awt::Rectangle aBox = mxWindow->getPosSize();
rTemp.X=aBox.Width-rEvent.X;
}
@@ -575,7 +575,7 @@ void SAL_CALL PresenterSlideSorter::mouseMoved (const css::awt::MouseEvent& rEve
{
css::awt::MouseEvent rTemp =rEvent;
/// check whether RTL interface or not
- if(Application::GetSettings().GetLayoutRTL()){
+ if(AllSettings::GetLayoutRTL()){
awt::Rectangle aBox = mxWindow->getPosSize();
rTemp.X=aBox.Width-rEvent.X;
}
@@ -757,7 +757,7 @@ geometry::RealRectangle2D PresenterSlideSorter::PlaceScrollBars (
{
if (bIsScrollBarNeeded)
{
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
{
mpVerticalScrollBar->SetPosSize(geometry::RealRectangle2D(
rUpperBox.X1,
@@ -897,7 +897,7 @@ void PresenterSlideSorter::PaintPreview (
}
Reference<rendering::XBitmap> xPreview (GetPreview(nSlideIndex));
- bool isRTL = Application::GetSettings().GetLayoutRTL();
+ bool isRTL = AllSettings::GetLayoutRTL();
const geometry::RealPoint2D aTopLeft (
mpLayout->GetWindowPosition(
@@ -1269,7 +1269,7 @@ bool PresenterSlideSorter::Layout::IsScrollBarNeeded (const sal_Int32 nSlideCoun
geometry::RealPoint2D PresenterSlideSorter::Layout::GetLocalPosition(
const geometry::RealPoint2D& rWindowPoint) const
{
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
{
return css::geometry::RealPoint2D(
-rWindowPoint.X + maBoundingBox.X2 + mnHorizontalOffset,
@@ -1286,7 +1286,7 @@ geometry::RealPoint2D PresenterSlideSorter::Layout::GetLocalPosition(
geometry::RealPoint2D PresenterSlideSorter::Layout::GetWindowPosition(
const geometry::RealPoint2D& rLocalPoint) const
{
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
{
return css::geometry::RealPoint2D(
-rLocalPoint.X + mnHorizontalOffset + maBoundingBox.X2,
@@ -1384,7 +1384,7 @@ geometry::RealPoint2D PresenterSlideSorter::Layout::GetPoint (
awt::Rectangle PresenterSlideSorter::Layout::GetBoundingBox (const sal_Int32 nSlideIndex) const
{
- bool isRTL = Application::GetSettings().GetLayoutRTL();
+ bool isRTL = AllSettings::GetLayoutRTL();
const geometry::RealPoint2D aWindowPosition(GetWindowPosition(GetPoint(nSlideIndex, isRTL?1:-1, -1)));
return PresenterGeometryHelper::ConvertRectangle(
geometry::RealRectangle2D(
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx
index 442c89872b14..05d88a6dc2ea 100644
--- a/sdext/source/presenter/PresenterToolBar.cxx
+++ b/sdext/source/presenter/PresenterToolBar.cxx
@@ -793,7 +793,7 @@ void PresenterToolBar::Layout (
/* push front or back ? ... */
/// check whether RTL interface or not
- if(!Application::GetSettings().GetLayoutRTL()){
+ if(!AllSettings::GetLayoutRTL()){
for (iPart=maElementContainer.begin(), nIndex=0; iPart!=iEnd; ++iPart,++nIndex)
{
geometry::RealRectangle2D aBoundingBox(
@@ -894,7 +894,7 @@ void PresenterToolBar::LayoutPart (
ElementContainerPart::const_iterator iBegin (rpPart->begin());
/// check whether RTL interface or not
- if(!Application::GetSettings().GetLayoutRTL()){
+ if(!AllSettings::GetLayoutRTL()){
for (iElement=rpPart->begin(); iElement!=iEnd; ++iElement)
{
if (iElement->get() == NULL)
@@ -1025,7 +1025,7 @@ void PresenterToolBar::CheckMouseOver (
const bool bMouseDown)
{
css::awt::MouseEvent rTemp =rEvent;
- if(Application::GetSettings().GetLayoutRTL()){
+ if(AllSettings::GetLayoutRTL()){
awt::Rectangle aWindowBox = mxWindow->getPosSize();
rTemp.X=aWindowBox.Width-rTemp.X;
}
@@ -1582,7 +1582,7 @@ void Button::PaintIcon (
if (xBitmap.is())
{
/// check whether RTL interface or not
- if(!Application::GetSettings().GetLayoutRTL()){
+ if(!AllSettings::GetLayoutRTL()){
const sal_Int32 nX (maLocation.X
+ (maSize.Width-xBitmap->getSize().Width) / 2);
const sal_Int32 nY (maLocation.Y
diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx
index 520b160845b4..95406faee57b 100644
--- a/sdext/source/presenter/PresenterWindowManager.cxx
+++ b/sdext/source/presenter/PresenterWindowManager.cxx
@@ -669,7 +669,7 @@ void PresenterWindowManager::LayoutStandardMode (void)
nSlidePreviewTop = (aBox.Height - aCurrentSlideOuterBox.Height) / 2;
double Temp=nGap;
/// check whether RTL interface or not
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
Temp=aBox.Width - aCurrentSlideOuterBox.Width - nGap;
SetPanePosSizeAbsolute (
PresenterPaneFactory::msCurrentSlidePreviewPaneURL,
@@ -690,7 +690,7 @@ void PresenterWindowManager::LayoutStandardMode (void)
PresenterPaneFactory::msNextSlidePreviewPaneURL));
double Temp=aBox.Width - aNextSlideOuterBox.Width - nGap;
/// check whether RTL interface or not
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
Temp=nGap;
SetPanePosSizeAbsolute (
PresenterPaneFactory::msNextSlidePreviewPaneURL,
@@ -731,7 +731,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
- aToolBarBox.Y2 + aToolBarBox.Y1 - aNotesViewOuterSize.Height) / 2;
/// check whether RTL interface or not
double Temp=aBox.Width - aNotesViewOuterSize.Width - nGap;
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
Temp=nGap;
SetPanePosSizeAbsolute (
PresenterPaneFactory::msNotesPaneURL,
@@ -753,7 +753,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
PresenterPaneFactory::msCurrentSlidePreviewPaneURL));
/// check whether RTL interface or not
double Temp=nGap;
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
Temp=aBox.Width - aCurrentSlideOuterBox.Width - nGap;
SetPanePosSizeAbsolute (
PresenterPaneFactory::msCurrentSlidePreviewPaneURL,
@@ -774,7 +774,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
PresenterPaneFactory::msNextSlidePreviewPaneURL));
/// check whether RTL interface or not
double Temp=nGap;
- if(Application::GetSettings().GetLayoutRTL())
+ if(AllSettings::GetLayoutRTL())
Temp=aBox.Width - aNextSlideOuterBox.Width - nGap;
SetPanePosSizeAbsolute (
PresenterPaneFactory::msNextSlidePreviewPaneURL,