Fix typos
Change-Id: Iac7dbf00495492c6be344c23029bf7dea1dbcf81 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210165 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
committed by
Julien Nabet
parent
c1f805eb9a
commit
e3630e633b
@@ -88,7 +88,7 @@ void LwpFribNote::RegisterNewStyle()
|
||||
{
|
||||
//register font style
|
||||
LwpFrib::RegisterStyle(m_pPara->GetFoundry());
|
||||
//register footnote style
|
||||
//register note style
|
||||
pLayout->SetFoundry(m_pPara->GetFoundry());
|
||||
pLayout->DoRegisterStyle();
|
||||
}
|
||||
@@ -207,7 +207,7 @@ OUString LwpNoteLayout::GetAuthor()
|
||||
return m_UserName.str();
|
||||
}
|
||||
}
|
||||
//if username is null or writerspace, get username from noteheaderlayout
|
||||
//if username is null or whitespace, get username from noteheaderlayout
|
||||
LwpNoteHeaderLayout* pTextLayout
|
||||
= static_cast<LwpNoteHeaderLayout*>(FindChildByType(LWP_NOTEHEADER_LAYOUT));
|
||||
if (pTextLayout)
|
||||
|
||||
@@ -812,14 +812,14 @@ void LwpHeaderLayout::ParseMargins(XFHeaderStyle* ph1)
|
||||
//left margin in SODC: the space from the left edge of body to the left edge of header
|
||||
double left
|
||||
= GetMarginsValue(MARGIN_LEFT) - (parent ? parent->GetMarginsValue(MARGIN_LEFT) : 0);
|
||||
if (left <= 0) //The left margin in SODC can not be minus value
|
||||
if (left <= 0) //The left margin in SODC can not be a negative value
|
||||
{
|
||||
left = -1;
|
||||
}
|
||||
//left margin in SODC: the space from the right edge of header to the right edge of body
|
||||
//right margin in SODC: the space from the right edge of header to the right edge of body
|
||||
double right
|
||||
= GetMarginsValue(MARGIN_RIGHT) - (parent ? parent->GetMarginsValue(MARGIN_RIGHT) : 0);
|
||||
if (right <= 0) //The right margin in SODC can not be minus value
|
||||
if (right <= 0) //The right margin in SODC can not be a negative value
|
||||
{
|
||||
right = -1;
|
||||
}
|
||||
@@ -959,7 +959,7 @@ void LwpFooterLayout::RegisterStyle(XFPageMaster* pm1)
|
||||
|
||||
void LwpFooterLayout::ParseMargins(XFFooterStyle* pFooterStyle)
|
||||
{
|
||||
//Set height: from top of header to top of body, including the spacing between header and body
|
||||
//Set height: from bottom of footer to bottom of body, including the spacing between footer and body
|
||||
double height = GetGeometryHeight() - GetMarginsValue(MARGIN_BOTTOM);
|
||||
if (IsAutoGrowUp())
|
||||
{
|
||||
@@ -974,13 +974,13 @@ void LwpFooterLayout::ParseMargins(XFFooterStyle* pFooterStyle)
|
||||
LwpMiddleLayout* parent = dynamic_cast<LwpMiddleLayout*>(GetParent().obj().get());
|
||||
double left
|
||||
= GetMarginsValue(MARGIN_LEFT) - (parent ? parent->GetMarginsValue(MARGIN_LEFT) : 0);
|
||||
if (left <= 0) //The left margin in SODC can not be minus value
|
||||
if (left <= 0) //The left margin in SODC can not be a negative value
|
||||
{
|
||||
left = -1;
|
||||
}
|
||||
double right
|
||||
= GetMarginsValue(MARGIN_RIGHT) - (parent ? parent->GetMarginsValue(MARGIN_RIGHT) : 0);
|
||||
if (right <= 0) //The left margin in SODC can not be minus value
|
||||
if (right <= 0) //The right margin in SODC can not be a negative value
|
||||
{
|
||||
right = -1;
|
||||
}
|
||||
|
||||
@@ -80,11 +80,11 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob
|
||||
* <li>generic job configuration data</li>
|
||||
* <li>job specific configuration data</li>
|
||||
* <li>some environment information</li>
|
||||
* <li>may optional arguments of a corresponding dispatch request</li>
|
||||
* <li>optional arguments of a corresponding dispatch request</li>
|
||||
* </ul>
|
||||
*
|
||||
* @params xListener
|
||||
* callback to the executor of this job, which control our life time
|
||||
* @param xListener
|
||||
* callback to the executor of this job, which controls our life time
|
||||
*
|
||||
* @throws com.sun.star.lang.IllegalArgumentException
|
||||
* if given argument list seems to be wrong
|
||||
@@ -243,7 +243,7 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob
|
||||
* is shown as title of the info box.
|
||||
*
|
||||
* @param sMessage
|
||||
* included the message body, which is shown as info.
|
||||
* includes the message body, which is shown as info.
|
||||
*/
|
||||
|
||||
private void showInfoModal( com.sun.star.awt.XWindow xParent ,
|
||||
@@ -258,7 +258,7 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob
|
||||
m_xCmpCtx.getServiceManager().createInstanceWithContext("com.sun.star.awt.Toolkit",
|
||||
m_xCmpCtx));
|
||||
|
||||
// describe the info box ini its parameters
|
||||
// describe the info box in its parameters
|
||||
com.sun.star.awt.WindowDescriptor aDescriptor = new com.sun.star.awt.WindowDescriptor();
|
||||
aDescriptor.WindowServiceName = "infobox";
|
||||
aDescriptor.Bounds = new com.sun.star.awt.Rectangle(0,0,300,200);
|
||||
@@ -334,7 +334,7 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob
|
||||
* contains some environment information
|
||||
*
|
||||
* @param lDynamicData
|
||||
* contains optional data of a might corresponding dispatch() request
|
||||
* contains optional data of a corresponding dispatch() request
|
||||
*/
|
||||
|
||||
private String formatOutArgs(com.sun.star.beans.NamedValue[] lGenericConfig,
|
||||
|
||||
Reference in New Issue
Block a user