summaryrefslogtreecommitdiff
path: root/wizards/com
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-01-07 08:44:44 +0100
committerJulien Nabet <serval2412@yahoo.fr>2017-01-07 10:08:36 +0000
commit471b58e19048419592a87e27860019ae02feca15 (patch)
treeb1151574d40769d82d1814578a89c1f565c74be4 /wizards/com
parent252e42cb5448f40c4bb26dbdf732168ff466b8ea (diff)
Typo: Postion->Position
Found thanks to Buovjaga Change-Id: Iacf09325cdb58e0dbdcc9bf0570b2e02ed275132 Reviewed-on: https://gerrit.libreoffice.org/32808 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'wizards/com')
-rw-r--r--wizards/com/sun/star/wizards/form/FormControlArranger.java22
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarSingleColumn.java2
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarTwoColumns.java2
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsAbove.java2
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsLeft.java2
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java6
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/Tabular.java10
7 files changed, 23 insertions, 23 deletions
diff --git a/wizards/com/sun/star/wizards/form/FormControlArranger.java b/wizards/com/sun/star/wizards/form/FormControlArranger.java
index afeedd433e10..bfe66e9e1178 100644
--- a/wizards/com/sun/star/wizards/form/FormControlArranger.java
+++ b/wizards/com/sun/star/wizards/form/FormControlArranger.java
@@ -71,7 +71,7 @@ public class FormControlArranger
private int nFormHeight;
private int m_currentMaxRowHeight;
private int nSecMaxRowY;
- private int m_maxPostionX;
+ private int m_maxPositionX;
private int a;
private int StartA;
private int m_controlMaxPosY = 0; //the maximum YPosition of a DBControl in the form
@@ -169,7 +169,7 @@ public class FormControlArranger
private void checkJustifiedPosition(int a)
{
int nBaseWidth = nFormWidth + cXOffset;
- int nLeftDist = m_maxPostionX - nBaseWidth;
+ int nLeftDist = m_maxPositionX - nBaseWidth;
int nRightDist = nBaseWidth - (DBControlList[a].getPosition().X - cHoriDistance);
if (nLeftDist < 0.5 * nRightDist)
{
@@ -202,7 +202,7 @@ public class FormControlArranger
DBControlList[a].setPosition(new Point(cXOffset, m_currentControlPosY));
bIsFirstRun = true;
checkOuterPoints(m_currentControlPosX, m_dbControlWidth > m_LabelWidth ? m_dbControlWidth : m_LabelWidth, m_currentControlPosY, m_dbControlHeight, true);
- m_currentLabelPosX = m_maxPostionX + cHoriDistance;
+ m_currentLabelPosX = m_maxPositionX + cHoriDistance;
m_currentControlPosX = m_currentLabelPosX;
adjustLineWidth(StartA, a - 1, nRightDist, 1);
StartA = a;
@@ -317,15 +317,15 @@ public class FormControlArranger
// Find the outer right point
if (bIsFirstRun)
{
- m_maxPostionX = i_nXPos + i_nWidth;
+ m_maxPositionX = i_nXPos + i_nWidth;
bIsFirstRun = false;
}
else
{
int nColRightX = i_nXPos + i_nWidth;
- if (nColRightX > m_maxPostionX)
+ if (nColRightX > m_maxPositionX)
{
- m_maxPostionX = nColRightX;
+ m_maxPositionX = nColRightX;
}
}
}
@@ -342,7 +342,7 @@ public class FormControlArranger
bIsVeryFirstRun = true;
m_currentMaxRowHeight = 0;
nSecMaxRowY = 0;
- m_maxPostionX = 0;
+ m_maxPositionX = 0;
xProgressBar.start(PropertyNames.EMPTY_STRING, FieldColumns.length);
for (int i = 0; i < FieldColumns.length; i++)
{
@@ -398,7 +398,7 @@ public class FormControlArranger
if ((m_currentControlPosY > cYOffset + nFormHeight) || (LastIndex == (FieldColumns.length - 1)))
{
repositionColumnarLeftControls(LastIndex);
- m_currentLabelPosX = m_maxPostionX + 2 * cHoriDistance;
+ m_currentLabelPosX = m_maxPositionX + 2 * cHoriDistance;
m_currentControlPosX = m_currentLabelPosX + cLabelGap + m_MaxLabelWidth;
m_currentControlPosY = cYOffset;
nYRefPos = m_currentControlPosY;
@@ -422,7 +422,7 @@ public class FormControlArranger
if ((m_currentLabelPosY > cYOffset + nFormHeight) || (LastIndex == (FieldColumns.length - 1)))
{
- m_currentControlPosX = m_maxPostionX + cHoriDistance;
+ m_currentControlPosX = m_maxPositionX + cHoriDistance;
m_currentLabelPosX = m_currentControlPosX;
nYRefPos = m_currentControlPosY;
m_currentControlPosY = cYOffset + m_LabelHeight + cVertDistance;
@@ -444,14 +444,14 @@ public class FormControlArranger
{
++iReduceWidth;
}
- if (m_maxPostionX > cXOffset + nFormWidth)
+ if (m_maxPositionX > cXOffset + nFormWidth)
{
checkJustifiedPosition(a);
nYRefPos = m_currentControlPosY;
}
else
{
- m_currentLabelPosX = m_maxPostionX + cHoriDistance;
+ m_currentLabelPosX = m_maxPositionX + cHoriDistance;
}
if (a == FieldColumns.length - 1)
{
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarSingleColumn.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarSingleColumn.java
index d553d24d7600..d0c03988ba9f 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarSingleColumn.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarSingleColumn.java
@@ -84,7 +84,7 @@ public class ColumnarSingleColumn extends ReportBuilderLayouter
}
@Override
- protected void insertDetailFieldTitles(int lastGroupPostion)
+ protected void insertDetailFieldTitles(int lastGroupPosition)
{
// we won't extra field titles
}
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarTwoColumns.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarTwoColumns.java
index 2d5b618e7abd..eb6fdb7fcdbd 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarTwoColumns.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarTwoColumns.java
@@ -116,7 +116,7 @@ public class ColumnarTwoColumns extends ReportBuilderLayouter
}
@Override
- protected void insertDetailFieldTitles(int lastGroupPostion)
+ protected void insertDetailFieldTitles(int lastGroupPosition)
{
// we won't extra field titles
}
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsAbove.java b/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsAbove.java
index 8ae01e978542..fd1134954f51 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsAbove.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsAbove.java
@@ -141,7 +141,7 @@ public class InBlocksLabelsAbove extends ColumnarTwoColumns
}
@Override
- protected void insertDetailFieldTitles(int lastGroupPostion)
+ protected void insertDetailFieldTitles(int lastGroupPosition)
{
// we won't extra field titles
}
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsLeft.java b/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsLeft.java
index 5fea096e9989..6facdaa3c062 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsLeft.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsLeft.java
@@ -112,7 +112,7 @@ public class InBlocksLabelsLeft extends ColumnarTwoColumns
}
@Override
- protected void insertDetailFieldTitles(int lastGroupPostion)
+ protected void insertDetailFieldTitles(int lastGroupPosition)
{
// we won't extra field titles
}
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java
index acc05d767c3a..d246e379b4ca 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java
@@ -140,10 +140,10 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
insertPageFooter();
clearGroups();
- int lastGroupPostion = insertGroups();
+ int lastGroupPosition = insertGroups();
clearDetails();
- insertDetailFieldTitles(lastGroupPostion);
+ insertDetailFieldTitles(lastGroupPosition);
insertDetailFields();
}
catch (java.lang.ArrayIndexOutOfBoundsException e)
@@ -576,7 +576,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
- abstract protected void insertDetailFieldTitles(int lastGroupPostion);
+ abstract protected void insertDetailFieldTitles(int lastGroupPosition);
/**
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/Tabular.java b/wizards/com/sun/star/wizards/reportbuilder/layout/Tabular.java
index ed676f1aa3c6..bdb5e33154f2 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/Tabular.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/Tabular.java
@@ -78,7 +78,7 @@ public class Tabular extends ReportBuilderLayouter
}
@Override
- protected void insertDetailFieldTitles(int lastGroupPostion)
+ protected void insertDetailFieldTitles(int lastGroupPosition)
{
final String[] aFieldTitleNames = getFieldTitleNames();
if (aFieldTitleNames == null || aFieldTitleNames.length == 0)
@@ -90,7 +90,7 @@ public class Tabular extends ReportBuilderLayouter
SectionObject aSO = null;
final XGroups xGroups = getReportDefinition().getGroups();
final XGroup xGroup;
- if (lastGroupPostion == -1)
+ if (lastGroupPosition == -1)
{
// Spezial case, there is no Group.
xGroup = xGroups.createGroup();
@@ -104,17 +104,17 @@ public class Tabular extends ReportBuilderLayouter
else
{
// we insert the titles in the last group
- xGroup = UnoRuntime.queryInterface(XGroup.class, xGroups.getByIndex(lastGroupPostion));
+ xGroup = UnoRuntime.queryInterface(XGroup.class, xGroups.getByIndex(lastGroupPosition));
// We don't need to copy the GroupProperties, because this is done in the insertGroup() member function
// copyGroupProperties(0);
- aSO = getDesignTemplate().getGroupLabel(lastGroupPostion);
+ aSO = getDesignTemplate().getGroupLabel(lastGroupPosition);
}
XSection xSection = xGroup.getHeader();
Rectangle aRect = new Rectangle();
aRect.X = getLeftPageIndent() + getLeftGroupIndent(getCountOfGroups());
- if (lastGroupPostion == -1)
+ if (lastGroupPosition == -1)
{
xSection.setHeight(0); // group height + a little empty line)
aRect.Y = 0;