summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-27 16:32:55 -0200
committerJan Holesovsky <kendy@suse.cz>2011-12-30 13:02:13 +0100
commit74e2d9b1e070a09cbbecfa305797566496420a01 (patch)
tree7048dcee19c0ab94f8b928e753d99b62774c2e77 /lotuswordpro
parent86b528bb05a8b3a389ebdf6ce09d9963019ec058 (diff)
Fix for fdo43460 Part XXIV getLength() to isEmpty()
Part XXIV Modules lotuswordpro
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpdoc.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpfont.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpfootnote.cxx6
-rw-r--r--lotuswordpro/source/filter/lwpframelayout.cxx4
-rw-r--r--lotuswordpro/source/filter/lwpfrib.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpfribframe.cxx6
-rw-r--r--lotuswordpro/source/filter/lwpfribmark.cxx8
-rw-r--r--lotuswordpro/source/filter/lwpfribptr.cxx4
-rw-r--r--lotuswordpro/source/filter/lwpfribtable.cxx6
-rw-r--r--lotuswordpro/source/filter/lwpfribtext.cxx4
-rw-r--r--lotuswordpro/source/filter/lwpgrfobj.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpmarker.cxx2
-rw-r--r--lotuswordpro/source/filter/lwppara.cxx16
-rw-r--r--lotuswordpro/source/filter/lwpproplist.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpsilverbullet.cxx2
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfannotation.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfarrowstyle.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfborders.cxx16
-rw-r--r--lotuswordpro/source/filter/xfilter/xfcell.cxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfcellstyle.cxx8
-rw-r--r--lotuswordpro/source/filter/xfilter/xfchange.cxx10
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdate.cxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdocfield.cxx12
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawline.cxx8
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawobj.cxx8
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawpath.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawstyle.cxx10
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdropcap.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfendnote.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfentry.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xffootnote.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx18
-rw-r--r--lotuswordpro/source/filter/xfilter/xfframe.cxx8
-rw-r--r--lotuswordpro/source/filter/xfilter/xfhyperlink.hxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfimage.cxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfimagestyle.cxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfindex.cxx16
-rw-r--r--lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xflist.cxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xflistitem.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfliststyle.cxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfnumberstyle.cxx18
-rw-r--r--lotuswordpro/source/filter/xfilter/xfnumfmt.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfparagraph.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfparastyle.cxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfplaceholder.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfrow.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfrowstyle.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfruby.hxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfrubystyle.hxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfsection.cxx8
-rw-r--r--lotuswordpro/source/filter/xfilter/xfstylecont.cxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfstylemanager.cxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xftable.cxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xftablestyle.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xftabstyle.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xftextboxstyle.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xftextspan.cxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xftextstyle.cxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xftimestyle.cxx2
61 files changed, 166 insertions, 166 deletions
diff --git a/lotuswordpro/source/filter/lwpdoc.cxx b/lotuswordpro/source/filter/lwpdoc.cxx
index 1a4b46676ccc..c5986d59f875 100644
--- a/lotuswordpro/source/filter/lwpdoc.cxx
+++ b/lotuswordpro/source/filter/lwpdoc.cxx
@@ -175,7 +175,7 @@ sal_Bool LwpDocument::IsSkippedDivision()
if (pDiv == NULL)
return sal_True;
sDivName = pDiv->GetDivName();
- if (sDivName.getLength()>0 && !pDiv->IsGotoable())//including toa,scripts division
+ if (!sDivName.isEmpty() && !pDiv->IsGotoable()) //including toa,scripts division
return sal_True;
//skip endnote division
OUString strClassName = pDiv->GetClassName();
diff --git a/lotuswordpro/source/filter/lwpfont.cxx b/lotuswordpro/source/filter/lwpfont.cxx
index 01b1e2d60d68..f0809f0a8b6d 100644
--- a/lotuswordpro/source/filter/lwpfont.cxx
+++ b/lotuswordpro/source/filter/lwpfont.cxx
@@ -234,7 +234,7 @@ OUString LwpFontTableEntry::GetFaceName()
void LwpFontTableEntry::RegisterFontDecl()
{
- if(m_FaceName.str().getLength()==0) return;
+ if(m_FaceName.str().isEmpty()) return;
XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager();
XFFontDecl aFontDecl1( m_FaceName.str(), m_FaceName.str(), false );
pXFStyleManager->AddFontDecl(aFontDecl1);
diff --git a/lotuswordpro/source/filter/lwpfootnote.cxx b/lotuswordpro/source/filter/lwpfootnote.cxx
index dd399c221952..9e2d143ca728 100644
--- a/lotuswordpro/source/filter/lwpfootnote.cxx
+++ b/lotuswordpro/source/filter/lwpfootnote.cxx
@@ -364,7 +364,7 @@ LwpEnSuperTableLayout* LwpFootnote::FindFootnoteTableLayout()
LwpFoundry* pFoundry = pDivision->GetFoundry();
OUString strClassName = GetTableClass();
- if(strClassName.getLength() ==0 )
+ if(strClassName.isEmpty() )
return NULL;
LwpContent* pContent = NULL;
@@ -511,13 +511,13 @@ void LwpFootnoteOptions::RegisterEndnoteStyle()
XFEndnoteConfig* pEndnoteConfig = new XFEndnoteConfig();
pEndnoteConfig->SetStartValue(m_EndnoteDocNumbering.GetStartingNumber() -1);
OUString message = m_EndnoteDocNumbering.GetLeadingText();
- if(message.getLength() == 0)
+ if(message.isEmpty())
{
message = A2OUSTR("[");//default prefix
}
pEndnoteConfig->SetNumPrefix(message);
message = m_EndnoteDocNumbering.GetTrailingText();
- if(message.getLength() == 0)
+ if(message.isEmpty())
{
message = A2OUSTR("]");//default suffix
}
diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx
index dcbe10d52a0d..6f9a0a7e5e80 100644
--- a/lotuswordpro/source/filter/lwpframelayout.cxx
+++ b/lotuswordpro/source/filter/lwpframelayout.cxx
@@ -126,7 +126,7 @@ void LwpFrame::RegisterStyle(XFFrameStyle* pFrameStyle)
//Set frame Name
OUString aFrameName = m_pLayout->GetName()->str();
- if(aFrameName.getLength())
+ if(!aFrameName.isEmpty())
{
//cause the bug of SODC, the linkframe name can not be "Frame1", so I change the frame name
/*if(aFrameName.equals(A2OUSTR("Frame1")))
@@ -891,7 +891,7 @@ OUString LwpFrameLayout::GetNextLinkName()
if (pHolder)
aName = pHolder->str();
//for division name confict
- if(pLayout->GetStyleName().getLength() > 0)
+ if(!pLayout->GetStyleName().isEmpty())
aName = pLayout->GetStyleName();
}
}
diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx
index a28341690524..f7b800de6b3b 100644
--- a/lotuswordpro/source/filter/lwpfrib.cxx
+++ b/lotuswordpro/source/filter/lwpfrib.cxx
@@ -318,7 +318,7 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry)
{
pStyle = new XFTextStyle();
- if (m_StyleName.getLength()>0)
+ if (!m_StyleName.isEmpty())
{
XFTextStyle* pOldStyle = pXFStyleManager->FindTextStyle(m_StyleName);
*pStyle = *pOldStyle;
diff --git a/lotuswordpro/source/filter/lwpfribframe.cxx b/lotuswordpro/source/filter/lwpfribframe.cxx
index 3e617da8cd68..3ce30700728f 100644
--- a/lotuswordpro/source/filter/lwpfribframe.cxx
+++ b/lotuswordpro/source/filter/lwpfribframe.cxx
@@ -116,7 +116,7 @@ void LwpFribFrame::RegisterStyle(LwpFoundry* pFoundry)
&& HasNextFrib())
{
XFParaStyle* pOldStyle = m_pPara->GetXFParaStyle();
- if (pOldStyle->GetMasterPage().getLength() == 0)
+ if (pOldStyle->GetMasterPage().isEmpty())
m_StyleName = pOldStyle->GetStyleName();
else
{
@@ -176,7 +176,7 @@ void LwpFribFrame::XFConvert(XFContentContainer* pCont)
LwpGlobalMgr* pGlobal = LwpGlobalMgr::GetInstance();
LwpChangeMgr* pChangeMgr = pGlobal->GetLwpChangeMgr();
sChangeID = pChangeMgr->GetChangeID(this);
- if (sChangeID.getLength())
+ if (!sChangeID.isEmpty())
{
XFChangeStart* pChangeStart = new XFChangeStart;
pChangeStart->SetChangeID(sChangeID);
@@ -188,7 +188,7 @@ void LwpFribFrame::XFConvert(XFContentContainer* pCont)
if(m_bRevisionFlag)
{
- if (sChangeID.getLength())
+ if (!sChangeID.isEmpty())
{
XFChangeEnd* pChangeEnd = new XFChangeEnd;
pChangeEnd->SetChangeID(sChangeID);
diff --git a/lotuswordpro/source/filter/lwpfribmark.cxx b/lotuswordpro/source/filter/lwpfribmark.cxx
index c2780816c232..862ebe5d19f4 100644
--- a/lotuswordpro/source/filter/lwpfribmark.cxx
+++ b/lotuswordpro/source/filter/lwpfribmark.cxx
@@ -279,7 +279,7 @@ void LwpFribField::XFConvert(XFContentContainer* pXFPara)
ConvertDocFieldEnd(pXFPara,pFieldMark);
}
}
- if(pFieldMark->GetRevisionFlag() && sChangeID.getLength())
+ if(pFieldMark->GetRevisionFlag() && !sChangeID.isEmpty())
{
XFChangeEnd* pChangeEnd = new XFChangeEnd;
pChangeEnd->SetChangeID(sChangeID);
@@ -290,7 +290,7 @@ void LwpFribField::XFConvert(XFContentContainer* pXFPara)
}
//start marker
- if(pFieldMark->GetRevisionFlag() && sChangeID.getLength())
+ if(pFieldMark->GetRevisionFlag() && !sChangeID.isEmpty())
{
XFChangeStart* pChangeStart = new XFChangeStart;
pChangeStart->SetChangeID(sChangeID);
@@ -301,7 +301,7 @@ void LwpFribField::XFConvert(XFContentContainer* pXFPara)
{
OUString sKey1,sKey2;
pFieldMark->ParseIndex(sKey1,sKey2);
- if (sKey1.getLength()>0)
+ if (!sKey1.isEmpty())
{
XFEntry* pEntry = new XFEntry;
pEntry->SetEntryType(enumXFEntryAlphabetical);
@@ -313,7 +313,7 @@ void LwpFribField::XFConvert(XFContentContainer* pXFPara)
{
OUString sLevel,sText;
pFieldMark->ParseTOC(sLevel,sText);
- if (sLevel.getLength()>0 && sText.getLength()>0)
+ if (!sLevel.isEmpty() && !sText.isEmpty())
{
XFEntry* pEntry = new XFEntry;
pEntry->SetEntryType(enumXFEntryTOC);
diff --git a/lotuswordpro/source/filter/lwpfribptr.cxx b/lotuswordpro/source/filter/lwpfribptr.cxx
index ac6bb8940b18..239df1787504 100644
--- a/lotuswordpro/source/filter/lwpfribptr.cxx
+++ b/lotuswordpro/source/filter/lwpfribptr.cxx
@@ -167,7 +167,7 @@ void LwpFribPtr::XFConvert()
LwpGlobalMgr* pGlobal = LwpGlobalMgr::GetInstance();
LwpChangeMgr* pChangeMgr = pGlobal->GetLwpChangeMgr();
sChangeID = pChangeMgr->GetChangeID(pFrib);
- if (sChangeID.getLength())
+ if (!sChangeID.isEmpty())
{
/// if (nRevisionType == LwpFrib::REV_INSERT)
/// {
@@ -363,7 +363,7 @@ void LwpFribPtr::XFConvert()
if (nFribType!= FRIB_TAG_TABLE && nFribType != FRIB_TAG_FIELD
&& nFribType != FRIB_TAG_FRAME)
{
- if (sChangeID.getLength())
+ if (!sChangeID.isEmpty())
{
XFChangeEnd* pChangeEnd = new XFChangeEnd;
pChangeEnd->SetChangeID(sChangeID);
diff --git a/lotuswordpro/source/filter/lwpfribtable.cxx b/lotuswordpro/source/filter/lwpfribtable.cxx
index 33e3cfe1c6b5..86b81c39072f 100644
--- a/lotuswordpro/source/filter/lwpfribtable.cxx
+++ b/lotuswordpro/source/filter/lwpfribtable.cxx
@@ -82,7 +82,7 @@ void LwpFribTable::RegisterNewStyle()
XFParaStyle* pOldStyle = m_pPara->GetXFParaStyle();
if(HasNextFrib())
{
- if (pOldStyle->GetMasterPage().getLength() == 0)
+ if (pOldStyle->GetMasterPage().isEmpty())
m_StyleName = pOldStyle->GetStyleName();
else
{
@@ -138,7 +138,7 @@ void LwpFribTable::XFConvert(XFContentContainer* pCont)
LwpGlobalMgr* pGlobal = LwpGlobalMgr::GetInstance();
LwpChangeMgr* pChangeMgr = pGlobal->GetLwpChangeMgr();
sChangeID = pChangeMgr->GetChangeID(this);
- if (sChangeID.getLength())
+ if (!sChangeID.isEmpty())
{
XFChangeStart* pChangeStart = new XFChangeStart;
pChangeStart->SetChangeID(sChangeID);
@@ -149,7 +149,7 @@ void LwpFribTable::XFConvert(XFContentContainer* pCont)
if(m_bRevisionFlag)
{
- if (sChangeID.getLength())
+ if (!sChangeID.isEmpty())
{
XFChangeEnd* pChangeEnd = new XFChangeEnd;
pChangeEnd->SetChangeID(sChangeID);
diff --git a/lotuswordpro/source/filter/lwpfribtext.cxx b/lotuswordpro/source/filter/lwpfribtext.cxx
index d1c6f12e7c2f..9430f1b02501 100644
--- a/lotuswordpro/source/filter/lwpfribtext.cxx
+++ b/lotuswordpro/source/filter/lwpfribtext.cxx
@@ -473,7 +473,7 @@ void LwpFribPageNumber::XFConvert(XFContentContainer* pXFPara)
break;
}
OUString styleName = GetStyleName();
- if (m_aBefText.str().getLength()>0)
+ if (!m_aBefText.str().isEmpty())
{
OUString textStr = m_aBefText.str();
XFTextSpan *pBef = new XFTextSpan(textStr,styleName);
@@ -488,7 +488,7 @@ void LwpFribPageNumber::XFConvert(XFContentContainer* pXFPara)
}
else
pXFPara->Add(pNum);
- if (m_aAfterText.str().getLength()>0)
+ if (!m_aAfterText.str().isEmpty())
{
OUString textStr = m_aAfterText.str();
XFTextSpan *pAfter = new XFTextSpan(textStr,styleName);
diff --git a/lotuswordpro/source/filter/lwpgrfobj.cxx b/lotuswordpro/source/filter/lwpgrfobj.cxx
index d77dbcb863fe..8971860926c2 100644
--- a/lotuswordpro/source/filter/lwpgrfobj.cxx
+++ b/lotuswordpro/source/filter/lwpgrfobj.cxx
@@ -676,7 +676,7 @@ void LwpGraphicObject::CreateGrafObject()
// set object name
LwpAtomHolder* pHolder = this->GetName();
- if ( pHolder && pHolder->str().getLength() )
+ if ( pHolder && !pHolder->str().isEmpty() )
{
pImage->SetName(pHolder->str());
}
diff --git a/lotuswordpro/source/filter/lwpmarker.cxx b/lotuswordpro/source/filter/lwpmarker.cxx
index 6ab8c2127771..74176b78722a 100644
--- a/lotuswordpro/source/filter/lwpmarker.cxx
+++ b/lotuswordpro/source/filter/lwpmarker.cxx
@@ -301,7 +301,7 @@ void LwpCHBlkMarker::EnumAllKeywords()
LwpPropList* pProp = GetPropList();
if (!pProp)
return;
- while(name2.getLength()>0)
+ while(!name2.isEmpty())
{
name2 = pProp->EnumNamedProperty(name1,value1);
if ( name1.match(A2OUSTR("LIST"),0) )
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx
index 6c185b8989b5..0059f592f00a 100644
--- a/lotuswordpro/source/filter/lwppara.cxx
+++ b/lotuswordpro/source/filter/lwppara.cxx
@@ -273,7 +273,7 @@ void LwpPara::XFConvert(XFContentContainer* pCont)
XFParagraph *pPara = new XFParagraph;
pPara->SetStyleName(m_StyleName);
- if(m_SectionStyleName.getLength()>0)
+ if(!m_SectionStyleName.isEmpty())
{
XFSection* pSection = CreateXFSection();
if (pStory)
@@ -330,7 +330,7 @@ sal_Bool LwpPara::RegisterMasterPage(XFParaStyle* pBaseStyle)
*pOverStyle = *pBaseStyle;
pOverStyle->SetStyleName( A2OUSTR(""));
pOverStyle->SetMasterPage(pLayout->GetStyleName());
- if (m_ParentStyleName.getLength())
+ if (!m_ParentStyleName.isEmpty())
pOverStyle->SetParentStyleName(m_ParentStyleName);
XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager();
m_StyleName = pXFStyleManager->AddStyle(pOverStyle)->GetStyleName();
@@ -508,7 +508,7 @@ void LwpPara::RegisterStyle()
OverrideIndent(NULL,m_pIndentOverride,pOverStyle);
}
}
- if (m_ParentStyleName.getLength())
+ if (!m_ParentStyleName.isEmpty())
pOverStyle->SetParentStyleName(m_ParentStyleName);
m_StyleName = pXFStyleManager->AddStyle(pOverStyle)->GetStyleName();
@@ -522,7 +522,7 @@ void LwpPara::RegisterStyle()
pOverStyle = new XFParaStyle;
*pOverStyle = *pBaseStyle;
OverrideIndent(NULL,m_pIndentOverride,pOverStyle);
- if (m_ParentStyleName.getLength())
+ if (!m_ParentStyleName.isEmpty())
pOverStyle->SetParentStyleName(m_ParentStyleName);
m_StyleName = pXFStyleManager->AddStyle(pOverStyle)->GetStyleName();
}
@@ -537,7 +537,7 @@ void LwpPara::RegisterStyle()
pOverStyle = new XFParaStyle;
*pOverStyle = *pOldStyle;
pOverStyle->SetAlignType(enumXFAlignStart);
- if (m_ParentStyleName.getLength())
+ if (!m_ParentStyleName.isEmpty())
pOverStyle->SetParentStyleName(m_ParentStyleName);
m_StyleName = pXFStyleManager->AddStyle(pOverStyle)->GetStyleName();
}
@@ -753,7 +753,7 @@ void LwpPara::RegisterStyle()
*pOverStyle = *GetXFParaStyle();
XFMargins* pMargin = &pOverStyle->GetMargins();
pMargin->SetTop(pMargin->GetTop()+pPrePara->GetBelowSpacing());
- if (m_ParentStyleName.getLength())
+ if (!m_ParentStyleName.isEmpty())
pOverStyle->SetParentStyleName(m_ParentStyleName);
m_StyleName = pXFStyleManager->AddStyle(pOverStyle)->GetStyleName();
}
@@ -766,7 +766,7 @@ void LwpPara::RegisterStyle()
*pParaStyle = *GetXFParaStyle();
//pOverStyle->SetStyleName(A2OUSTR(""));
this->RegisterTabStyle(pParaStyle);
- if (m_ParentStyleName.getLength())
+ if (!m_ParentStyleName.isEmpty())
pParaStyle->SetParentStyleName(m_ParentStyleName);
m_StyleName = pXFStyleManager->AddStyle(pParaStyle)->GetStyleName();
}
@@ -784,7 +784,7 @@ void LwpPara::RegisterStyle()
XFParaStyle* pStyle = new XFParaStyle;
*pStyle = *GetXFParaStyle();
pStyle->SetDropCap(m_nChars-1,m_nLines);
- if (m_ParentStyleName.getLength())
+ if (!m_ParentStyleName.isEmpty())
pStyle->SetParentStyleName(m_ParentStyleName);
m_StyleName = pXFStyleManager->AddStyle(pStyle)->GetStyleName();
}
diff --git a/lotuswordpro/source/filter/lwpproplist.cxx b/lotuswordpro/source/filter/lwpproplist.cxx
index b9d80ec6cde3..436e30042143 100644
--- a/lotuswordpro/source/filter/lwpproplist.cxx
+++ b/lotuswordpro/source/filter/lwpproplist.cxx
@@ -123,7 +123,7 @@ LwpPropListElement* LwpPropList::GetFirst()
OUString LwpPropList::EnumNamedProperty(OUString& name,OUString& value)
{
LwpPropListElement* pElement;
- if (name.getLength()==0)
+ if (name.isEmpty())
{
pElement = GetFirst();
if (pElement)
diff --git a/lotuswordpro/source/filter/lwpsilverbullet.cxx b/lotuswordpro/source/filter/lwpsilverbullet.cxx
index 1b16cdbe844b..1417af5c6d58 100644
--- a/lotuswordpro/source/filter/lwpsilverbullet.cxx
+++ b/lotuswordpro/source/filter/lwpsilverbullet.cxx
@@ -464,7 +464,7 @@ sal_Bool LwpSilverBullet::HasName()
LwpAtomHolder* pName = this->GetName();
if (pName)
{
- return (sal_Bool)(pName->str().getLength() != 0);
+ return (sal_Bool)(!pName->str().isEmpty());
}
else
{
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index f09272015910..5f9ae7e60fee 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -1193,7 +1193,7 @@ void LwpTableLayout::PostProcessParagraph(XFCell *pCell, sal_uInt16 nRowID, sal_
sal_Bool bColorMod = sal_False;
XFNumberStyle* pNumStyle = NULL;
XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager();
- if (sNumfmt.getLength())
+ if (!sNumfmt.isEmpty())
{
pNumStyle = (XFNumberStyle*)pXFStyleManager->FindStyle( sNumfmt);
aColor = pNumStyle->GetColor();
diff --git a/lotuswordpro/source/filter/xfilter/xfannotation.hxx b/lotuswordpro/source/filter/xfilter/xfannotation.hxx
index bfd3d5672ade..a32c1b16111c 100644
--- a/lotuswordpro/source/filter/xfilter/xfannotation.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfannotation.hxx
@@ -101,9 +101,9 @@ inline void XFAnnotation::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( m_strDate.getLength() )
+ if( !m_strDate.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("office:create-date"), m_strDate );
- if( m_strAuthor.getLength() )
+ if( !m_strAuthor.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("office:author"), m_strAuthor);
pStrm->StartElement( A2OUSTR("office:annotation") );
diff --git a/lotuswordpro/source/filter/xfilter/xfarrowstyle.hxx b/lotuswordpro/source/filter/xfilter/xfarrowstyle.hxx
index 23df2c9ffa94..4c3698a5c486 100644
--- a/lotuswordpro/source/filter/xfilter/xfarrowstyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfarrowstyle.hxx
@@ -113,7 +113,7 @@ inline void XFArrowStyle::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( m_strName.getLength()>0 )
+ if( !m_strName.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:name"), m_strName );
else
pAttrList->AddAttribute( A2OUSTR("draw:name"), GetStyleName() );
diff --git a/lotuswordpro/source/filter/xfilter/xfborders.cxx b/lotuswordpro/source/filter/xfilter/xfborders.cxx
index 202b8b0e1f34..465d783d8d9d 100644
--- a/lotuswordpro/source/filter/xfilter/xfborders.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfborders.cxx
@@ -336,31 +336,31 @@ void XFBorders::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
- if( m_aBorderLeft.GetLineWidth().getLength() )
+ if( !m_aBorderLeft.GetLineWidth().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:border-line-width-left"), m_aBorderLeft.GetLineWidth() );
- if( m_aBorderRight.GetLineWidth().getLength() )
+ if( !m_aBorderRight.GetLineWidth().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:border-line-width-right"), m_aBorderRight.GetLineWidth() );
- if( m_aBorderTop.GetLineWidth().getLength() )
+ if( !m_aBorderTop.GetLineWidth().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:border-line-width-top"), m_aBorderTop.GetLineWidth() );
- if( m_aBorderBottom.GetLineWidth().getLength() )
+ if( !m_aBorderBottom.GetLineWidth().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:border-line-width-bottom"), m_aBorderBottom.GetLineWidth() );
- if( m_aBorderLeft.ToString().getLength() )
+ if( !m_aBorderLeft.ToString().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("fo:border-left"), m_aBorderLeft.ToString() );
else
pAttrList->AddAttribute( A2OUSTR("fo:border-left"), A2OUSTR("none") );
- if( m_aBorderRight.ToString().getLength() )
+ if( !m_aBorderRight.ToString().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("fo:border-right"), m_aBorderRight.ToString() );
else
pAttrList->AddAttribute( A2OUSTR("fo:border-right"), A2OUSTR("none") );
- if( m_aBorderTop.ToString().getLength() )
+ if( !m_aBorderTop.ToString().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("fo:border-top"), m_aBorderTop.ToString() );
else
pAttrList->AddAttribute( A2OUSTR("fo:border-top"), A2OUSTR("none") );
- if( m_aBorderBottom.ToString().getLength() )
+ if( !m_aBorderBottom.ToString().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("fo:border-bottom"), m_aBorderBottom.ToString() );
else
pAttrList->AddAttribute( A2OUSTR("fo:border-bottom"), A2OUSTR("none") );
diff --git a/lotuswordpro/source/filter/xfilter/xfcell.cxx b/lotuswordpro/source/filter/xfilter/xfcell.cxx
index 25830c6eef35..462014ce95e0 100644
--- a/lotuswordpro/source/filter/xfilter/xfcell.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfcell.cxx
@@ -201,7 +201,7 @@ void XFCell::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( GetStyleName().getLength() )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("table:style-name"), GetStyleName() );
if( m_nColSpaned>1 )
pAttrList->AddAttribute( A2OUSTR("table:number-columns-spanned"), Int32ToOUString(m_nColSpaned) );
@@ -212,7 +212,7 @@ void XFCell::ToXml(IXFStream *pStrm)
pAttrList->AddAttribute( A2OUSTR("table:value-type"), GetValueType(m_eValueType) );
pAttrList->AddAttribute( A2OUSTR("table:value"), m_strValue );
}
- if( m_strFormula.getLength() > 0 )
+ if( !m_strFormula.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("table:formula"), m_strFormula );
if( m_bProtect )
diff --git a/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx b/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx
index 3e6c54ac9b3e..5c4781fcd7e6 100644
--- a/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx
@@ -205,15 +205,15 @@ void XFCellStyle::ToXml(IXFStream *pStrm)
rtl::OUString style = GetStyleName();
pAttrList->Clear();
- if( style.getLength() )
+ if( !style.isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:name"),GetStyleName());
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
pAttrList->AddAttribute(A2OUSTR("style:family"), A2OUSTR("table-cell"));
- if( m_strParentStyleName.getLength() > 0 )
+ if( !m_strParentStyleName.isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),m_strParentStyleName);
- if( m_strDataStyle.getLength()>0 )
+ if( !m_strDataStyle.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), m_strDataStyle );
pStrm->StartElement(A2OUSTR("style:style"));
diff --git a/lotuswordpro/source/filter/xfilter/xfchange.cxx b/lotuswordpro/source/filter/xfilter/xfchange.cxx
index 59a90a7b2620..1be00d4e4d78 100644
--- a/lotuswordpro/source/filter/xfilter/xfchange.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfchange.cxx
@@ -85,7 +85,7 @@ void XFChangeInsert::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if(m_sID.getLength() == 0)
+ if(m_sID.isEmpty())
return;
pAttrList->AddAttribute( A2OUSTR("text:id"),m_sID);
@@ -105,7 +105,7 @@ void XFChangeDelete::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if(m_sID.getLength() == 0)
+ if(m_sID.isEmpty())
return;
pAttrList->AddAttribute( A2OUSTR("text:id"),m_sID);
@@ -126,7 +126,7 @@ void XFChange::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if(m_sID.getLength() == 0)
+ if(m_sID.isEmpty())
return;
pAttrList->AddAttribute( A2OUSTR("text:change-id"),m_sID);
@@ -139,7 +139,7 @@ void XFChangeStart::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if(m_sID.getLength() == 0)
+ if(m_sID.isEmpty())
return;
pAttrList->AddAttribute( A2OUSTR("text:change-id"),m_sID);
@@ -152,7 +152,7 @@ void XFChangeEnd::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if(m_sID.getLength() == 0)
+ if(m_sID.isEmpty())
return;
pAttrList->AddAttribute( A2OUSTR("text:change-id"),m_sID);
diff --git a/lotuswordpro/source/filter/xfilter/xfdate.cxx b/lotuswordpro/source/filter/xfilter/xfdate.cxx
index 69abe16a4114..2935392cb2dc 100644
--- a/lotuswordpro/source/filter/xfilter/xfdate.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdate.cxx
@@ -76,7 +76,7 @@ void XFDate::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( GetStyleName().getLength() > 0 )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), GetStyleName() );
if (m_bValued)
pAttrList->AddAttribute( A2OUSTR("text:date-value"), m_strDate );
@@ -85,7 +85,7 @@ void XFDate::ToXml(IXFStream *pStrm)
pAttrList->AddAttribute( A2OUSTR("text:fixed"), A2OUSTR("true") );
pStrm->StartElement( A2OUSTR("text:date") );
- if (m_strText.getLength()>0)
+ if (!m_strText.isEmpty())
pStrm->Characters(m_strText);
pStrm->EndElement( A2OUSTR("text:date") );
}
@@ -95,7 +95,7 @@ void XFDateStart::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( GetStyleName().getLength() > 0 )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), GetStyleName() );
/* if (m_bValued)
pAttrList->AddAttribute( A2OUSTR("text:date-value"), DateTimeToOUString(m_aDateTime) );
diff --git a/lotuswordpro/source/filter/xfilter/xfdocfield.cxx b/lotuswordpro/source/filter/xfilter/xfdocfield.cxx
index ea1a03097bd3..f62fb8688119 100644
--- a/lotuswordpro/source/filter/xfilter/xfdocfield.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdocfield.cxx
@@ -159,7 +159,7 @@ void XFTotalEditTime::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if (m_strStyleName.getLength()>0)
+ if (!m_strStyleName.isEmpty())
pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), m_strStyleName );
pStrm->StartElement( A2OUSTR("text:editing-duration" ) );
pStrm->EndElement( A2OUSTR("text:editing-duration") );
@@ -168,7 +168,7 @@ void XFTotalEditTimeStart::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if (m_strStyleName.getLength()>0)
+ if (!m_strStyleName.isEmpty())
pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), m_strStyleName );
pStrm->StartElement( A2OUSTR("text:editing-duration" ) );
}
@@ -180,7 +180,7 @@ void XFCreateTime::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if (m_strStyleName.getLength()>0)
+ if (!m_strStyleName.isEmpty())
pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), m_strStyleName );
pStrm->StartElement( A2OUSTR("text:creation-time") );
pStrm->EndElement( A2OUSTR("text:creation-time") );
@@ -189,7 +189,7 @@ void XFLastEditTime::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if (m_strStyleName.getLength()>0)
+ if (!m_strStyleName.isEmpty())
pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), m_strStyleName );
pStrm->StartElement( A2OUSTR("text:modification-time") );
pStrm->EndElement( A2OUSTR("text:modification-time") );
@@ -199,7 +199,7 @@ void XFCreateTimeStart::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if (m_strStyleName.getLength()>0)
+ if (!m_strStyleName.isEmpty())
pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), m_strStyleName );
pStrm->StartElement( A2OUSTR("text:creation-time") );
}
@@ -208,7 +208,7 @@ void XFLastEditTimeStart::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if (m_strStyleName.getLength()>0)
+ if (!m_strStyleName.isEmpty())
pAttrList->AddAttribute( A2OUSTR("style:data-style-name"), m_strStyleName );
pStrm->StartElement( A2OUSTR("text:modification-time") );
}
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawline.cxx b/lotuswordpro/source/filter/xfilter/xfdrawline.cxx
index c09b9d16f550..62641b5efe3d 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawline.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawline.cxx
@@ -67,11 +67,11 @@ void XFDrawLine::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
- if( GetStyleName().getLength() )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:style-name"), GetStyleName() );
- assert(m_strName.getLength()>0); //name should not be null.
- if( m_strName.getLength() )
+ assert(!m_strName.isEmpty()); //name should not be null.
+ if( !m_strName.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:name"), m_strName );
//anchor type:
switch( m_eAnchor )
@@ -113,7 +113,7 @@ void XFDrawLine::ToXml(IXFStream *pStrm)
strTransform += A2OUSTR("skewY (") + DoubleToOUString(m_fSkewY) + A2OUSTR(" ");
strTransform = strTransform.trim();
- if( strTransform.getLength() > 0 )
+ if( !strTransform.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:transform"), strTransform );
pStrm->StartElement( A2OUSTR("draw:line") );
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawobj.cxx b/lotuswordpro/source/filter/xfilter/xfdrawobj.cxx
index d340f1e1f83e..a2ba28b84d26 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawobj.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawobj.cxx
@@ -79,11 +79,11 @@ void XFDrawObject::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
- if( GetStyleName().getLength() )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:style-name"), GetStyleName() );
- assert(m_strName.getLength()>0); //name should not be null.
- if( m_strName.getLength() )
+ assert(!m_strName.isEmpty()); //name should not be null.
+ if( !m_strName.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:name"), m_strName );
//anchor type:
switch( m_eAnchor )
@@ -127,7 +127,7 @@ void XFDrawObject::ToXml(IXFStream *pStrm)
strTransform += A2OUSTR("skewY (") + DoubleToOUString(m_fSkewY) + A2OUSTR(" ");
strTransform = strTransform.trim();
- if( strTransform.getLength() > 0 )
+ if( !strTransform.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:transform"), strTransform );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx b/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx
index 5306ed1d2057..f0950a0c082e 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx
@@ -65,7 +65,7 @@ XFSvgPathEntry::XFSvgPathEntry()
rtl::OUString XFSvgPathEntry::ToString()
{
- assert(m_strCommand.getLength()>0);
+ assert(!m_strCommand.isEmpty());
rtl::OUString str = m_strCommand;
std::vector<XFPoint>::iterator it;
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawstyle.cxx b/lotuswordpro/source/filter/xfilter/xfdrawstyle.cxx
index d0f5c09d3822..5a6bf9013126 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawstyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawstyle.cxx
@@ -250,14 +250,14 @@ void XFDrawStyle::ToXml(IXFStream *pStrm)
else
pAttrList->AddAttribute( A2OUSTR("draw:fill"), A2OUSTR("none") );
- if( m_strArrowStart.getLength()>0 )
+ if( !m_strArrowStart.isEmpty() )
{
pAttrList->AddAttribute( A2OUSTR("draw:marker-start"), m_strArrowStart );
pAttrList->AddAttribute( A2OUSTR("draw:marker-start-width"), DoubleToOUString(m_fArrowStartSize)+A2OUSTR("cm") );
if( m_bArrowStartCenter )
pAttrList->AddAttribute( A2OUSTR("draw:draw:marker-start-center"), A2OUSTR("true") );
}
- if( m_strArrowEnd.getLength()>0 )
+ if( !m_strArrowEnd.isEmpty() )
{
pAttrList->AddAttribute( A2OUSTR("draw:marker-end"), m_strArrowEnd );
pAttrList->AddAttribute( A2OUSTR("draw:marker-end-width"), DoubleToOUString(m_fArrowEndSize)+A2OUSTR("cm") );
@@ -286,7 +286,7 @@ void XFDrawStyle::ToXml(IXFStream *pStrm)
aStr = A2OUSTR("slant-y");
break;
}
- if (aStr.getLength() > 0)
+ if (!aStr.isEmpty())
{
pAttrList->AddAttribute(A2OUSTR("draw:fontwork-style"), aStr);
}
@@ -309,7 +309,7 @@ void XFDrawStyle::ToXml(IXFStream *pStrm)
aStr = A2OUSTR("right");
break;
}
- if (aStr.getLength() > 0)
+ if (!aStr.isEmpty())
{
pAttrList->AddAttribute(A2OUSTR("draw:fontwork-adjust"), aStr);
}
@@ -328,7 +328,7 @@ void XFDrawStyle::ToXml(IXFStream *pStrm)
aStr = A2OUSTR("bottom-arc");
break;
}
- if (aStr.getLength() > 0)
+ if (!aStr.isEmpty())
{
pAttrList->AddAttribute(A2OUSTR("draw:fontwork-form"), aStr);
}
diff --git a/lotuswordpro/source/filter/xfilter/xfdropcap.hxx b/lotuswordpro/source/filter/xfilter/xfdropcap.hxx
index 6e3cf3b8b1b5..cdb1188b1a3b 100644
--- a/lotuswordpro/source/filter/xfilter/xfdropcap.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfdropcap.hxx
@@ -125,7 +125,7 @@ inline void XFDropcap::ToXml(IXFStream *pStrm)
pAttrList->AddAttribute(A2OUSTR("style:length"), Int32ToOUString(m_nCharCount) );
pAttrList->AddAttribute(A2OUSTR("style:lines"), Int32ToOUString(m_nLines) );
pAttrList->AddAttribute(A2OUSTR("style:distance"), DoubleToOUString(m_fDistance) + A2OUSTR("cm") );
- if( m_strStyleName.getLength() )
+ if( !m_strStyleName.isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:style-name"), m_strStyleName );
pStrm->StartElement( A2OUSTR("style:drop-cap") );
pStrm->EndElement( A2OUSTR("style:drop-cap") );
diff --git a/lotuswordpro/source/filter/xfilter/xfendnote.hxx b/lotuswordpro/source/filter/xfilter/xfendnote.hxx
index 187519e25f43..8f45d801f15d 100644
--- a/lotuswordpro/source/filter/xfilter/xfendnote.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfendnote.hxx
@@ -107,10 +107,10 @@ inline void XFEndNote::ToXml(IXFStream *pStrm)
pStrm->StartElement( A2OUSTR("text:endnote") );
pAttrList->Clear();
- if( m_strLabel.getLength() )
+ if( !m_strLabel.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:label"), m_strLabel );
pStrm->StartElement( A2OUSTR("text:endnote-citation") );
- if( m_strLabel.getLength())
+ if( !m_strLabel.isEmpty())
pStrm->Characters(m_strLabel);
pStrm->EndElement( A2OUSTR("text:endnote-citation") );
diff --git a/lotuswordpro/source/filter/xfilter/xfentry.cxx b/lotuswordpro/source/filter/xfilter/xfentry.cxx
index 6b0506c7db06..9ee0f4c688d8 100644
--- a/lotuswordpro/source/filter/xfilter/xfentry.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfentry.cxx
@@ -83,7 +83,7 @@ void XFEntry::ToXml(IXFStream *pStrm)
else if( m_eType == enumXFEntryAlphabetical )
{
pAttrList->AddAttribute( A2OUSTR("text:key1"), m_strKey1 );
- if( m_strKey2.getLength()>0 )
+ if( !m_strKey2.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:key2"), m_strKey2 );
if( m_bMainEntry )
diff --git a/lotuswordpro/source/filter/xfilter/xffootnote.hxx b/lotuswordpro/source/filter/xfilter/xffootnote.hxx
index fd254aa7843d..0e30711a4c1b 100644
--- a/lotuswordpro/source/filter/xfilter/xffootnote.hxx
+++ b/lotuswordpro/source/filter/xfilter/xffootnote.hxx
@@ -107,10 +107,10 @@ inline void XFFootNote::ToXml(IXFStream *pStrm)
pStrm->StartElement( A2OUSTR("text:footnote") );
pAttrList->Clear();
- if( m_strLabel.getLength() )
+ if( !m_strLabel.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:label"), m_strLabel );
pStrm->StartElement( A2OUSTR("text:footnote-citation") );
- if( m_strLabel.getLength() )
+ if( !m_strLabel.isEmpty() )
pStrm->Characters(m_strLabel);
pStrm->EndElement( A2OUSTR("text:footnote-citation") );
diff --git a/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx b/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx
index 55cede3e00fc..5fc18fbbb12e 100644
--- a/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx
+++ b/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx
@@ -197,25 +197,25 @@ inline void XFFootnoteConfig::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( m_strCitationStyle.getLength()>0 )
+ if( !m_strCitationStyle.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:citation-style-name"), m_strCitationStyle);
- if( m_strBodyStyle.getLength()>0 )
+ if( !m_strBodyStyle.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:citation-body-style-name"), m_strBodyStyle);
- if( m_strNumPrefix.getLength()>0 )
+ if( !m_strNumPrefix.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:num-prefix"), m_strNumPrefix);
- if( m_strNumSuffix.getLength()>0 )
+ if( !m_strNumSuffix.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:num-suffix"), m_strNumSuffix);
- if( m_strNumFmt.getLength()>0 )
+ if( !m_strNumFmt.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:num-format"), m_strNumFmt);
- if( m_strDefaultStyle.getLength()>0 )
+ if( !m_strDefaultStyle.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:default-style-name"), m_strDefaultStyle);
- if( m_strMasterPage.getLength()>0 )
+ if( !m_strMasterPage.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:master-page-name"), m_strMasterPage);
@@ -239,14 +239,14 @@ inline void XFFootnoteConfig::ToXml(IXFStream *pStrm)
if(m_bIsFootnote)
{
pStrm->StartElement( A2OUSTR("text:footnotes-configuration") );
- if( m_strMessageOn.getLength()>0 )
+ if( !m_strMessageOn.isEmpty() )
{
pStrm->StartElement( A2OUSTR("text:footnote-continuation-notice-forward") );
pStrm->Characters(m_strMessageOn);
pStrm->EndElement( A2OUSTR("text:footnote-continuation-notice-forward") );
}
- if( m_strMessageFrom.getLength()>0 )
+ if( !m_strMessageFrom.isEmpty() )
{
pStrm->StartElement( A2OUSTR("text:footnote-continuation-notice-backward") );
pStrm->Characters(m_strMessageFrom);
diff --git a/lotuswordpro/source/filter/xfilter/xfframe.cxx b/lotuswordpro/source/filter/xfilter/xfframe.cxx
index 8270c9a9cc42..a6e0755b66e8 100644
--- a/lotuswordpro/source/filter/xfilter/xfframe.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfframe.cxx
@@ -136,11 +136,11 @@ void XFFrame::StartFrame(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
- if( GetStyleName().getLength() )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:style-name"), GetStyleName() );
- assert(m_strName.getLength()>0); //name should not be null.
- if( m_strName.getLength()&&m_isTextBox == sal_False)
+ assert(!m_strName.isEmpty()); //name should not be null.
+ if( !m_strName.isEmpty() && m_isTextBox == sal_False)
pAttrList->AddAttribute( A2OUSTR("draw:name"), m_strName );
//anchor type:
switch( m_eAnchor )
@@ -178,7 +178,7 @@ void XFFrame::StartFrame(IXFStream *pStrm)
pAttrList->AddAttribute( A2OUSTR("draw:z-index"), Int32ToOUString(m_nZIndex) );
- if( m_strNextLink.getLength() > 0 )
+ if( !m_strNextLink.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:chain-next-name"), m_strNextLink );
pStrm->StartElement( A2OUSTR("draw:text-box") );
diff --git a/lotuswordpro/source/filter/xfilter/xfhyperlink.hxx b/lotuswordpro/source/filter/xfilter/xfhyperlink.hxx
index f512bfa52001..85c7b830053b 100644
--- a/lotuswordpro/source/filter/xfilter/xfhyperlink.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfhyperlink.hxx
@@ -115,17 +115,17 @@ inline void XFHyperlink::ToXml(IXFStream *pStrm)
pAttrList->AddAttribute( A2OUSTR("xlink:type"), A2OUSTR("simple") );
pAttrList->AddAttribute( A2OUSTR("xlink:href"), m_strHRef );
- if( m_strName.getLength() > 0 )
+ if( !m_strName.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("office:name"), m_strName );
pAttrList->AddAttribute( A2OUSTR("office:target-frame-name"), m_strFrame );
pAttrList->AddAttribute( A2OUSTR("xlink:show"), A2OUSTR("replace") );
pStrm->StartElement( A2OUSTR("text:a") );
pAttrList->Clear();
- if( GetStyleName().getLength()>0 )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName() );
pStrm->StartElement( A2OUSTR("text:span") );
- if( m_strText.getLength() )
+ if( !m_strText.isEmpty() )
pStrm->Characters(m_strText);
else
pStrm->Characters(m_strHRef);
diff --git a/lotuswordpro/source/filter/xfilter/xfimage.cxx b/lotuswordpro/source/filter/xfilter/xfimage.cxx
index 1bf7c112ee16..0085a771b8d1 100644
--- a/lotuswordpro/source/filter/xfilter/xfimage.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfimage.cxx
@@ -90,11 +90,11 @@ void XFImage::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
- if( GetStyleName().getLength() )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:style-name"), GetStyleName() );
- assert(m_strName.getLength()>0); //name should not be null.
- if( m_strName.getLength() )
+ assert(!m_strName.isEmpty()); //name should not be null.
+ if( !m_strName.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("draw:name"), m_strName );
//anchor type:
switch( m_eAnchor )
diff --git a/lotuswordpro/source/filter/xfilter/xfimagestyle.cxx b/lotuswordpro/source/filter/xfilter/xfimagestyle.cxx
index dfebaf32a062..4eb5ba656aaa 100644
--- a/lotuswordpro/source/filter/xfilter/xfimagestyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfimagestyle.cxx
@@ -85,7 +85,7 @@ void XFImageStyle::ToXml(IXFStream *pStrm)
pAttrList->Clear();
pAttrList->AddAttribute( A2OUSTR("style:name"), GetStyleName() );
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
pAttrList->AddAttribute( A2OUSTR("style:family"), A2OUSTR("graphics") );
//parent style name ignore now.
@@ -169,13 +169,13 @@ void XFImageStyle::ToXml(IXFStream *pStrm)
protect += A2OUSTR("content");
if( m_bProtectSize )
{
- if( protect.getLength()>0 )
+ if( !protect.isEmpty() )
protect += A2OUSTR(" ");
protect += A2OUSTR("size");
}
if( m_bProtectPos )
{
- if( protect.getLength()>0 )
+ if( !protect.isEmpty() )
protect += A2OUSTR(" ");
protect += A2OUSTR("position");
}
diff --git a/lotuswordpro/source/filter/xfilter/xfindex.cxx b/lotuswordpro/source/filter/xfilter/xfindex.cxx
index 19cdee251be6..01034dbd485a 100644
--- a/lotuswordpro/source/filter/xfilter/xfindex.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfindex.cxx
@@ -167,7 +167,7 @@ void XFIndex::ToXml(IXFStream *pStrm)
strTplName = A2OUSTR("text:table-index-entry-template");
}
- if( GetStyleName().getLength() > 0 )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName() );
if( m_bProtect )
pAttrList->AddAttribute( A2OUSTR("text:protected"), A2OUSTR("true") );
@@ -239,7 +239,7 @@ void XFIndex::ToXml(IXFStream *pStrm)
pAttrList->Clear();
pStrm->StartElement( A2OUSTR("text:index-body") );
//index-title:
- if(m_strTitle.getLength())
+ if(!m_strTitle.isEmpty())
{
pAttrList->AddAttribute( A2OUSTR("text:name"), m_strTitle + A2OUSTR("_Head") );
pStrm->StartElement( A2OUSTR("text:index-title") );
@@ -262,7 +262,7 @@ void XFIndexTemplate::ToXml(IXFStream *pStrm)
pAttrList->AddAttribute( A2OUSTR("text:outline-level"), m_nLevel );
pAttrList->AddAttribute( A2OUSTR("text:style-name"), m_strStyle );
- if( m_strTagName.getLength() == 0 )
+ if( m_strTagName.isEmpty() )
m_strTagName = A2OUSTR("text:table-of-content-entry-template");
pStrm->StartElement( m_strTagName );
@@ -273,14 +273,14 @@ void XFIndexTemplate::ToXml(IXFStream *pStrm)
switch( m_aEntries[i].first )
{
case enumXFIndexTemplateChapter:
- if(m_aEntries[i].second.getLength() > 0)
+ if(!m_aEntries[i].second.isEmpty())
pAttrList->AddAttribute( A2OUSTR("text:style-name"), m_aEntries[i].second );
pStrm->StartElement( A2OUSTR("text:index-entry-chapter-number") );
pStrm->EndElement( A2OUSTR("text:index-entry-chapter-number") );
break;
case enumXFIndexTemplateText:
- if(m_aEntries[i].second.getLength() > 0)
+ if(!m_aEntries[i].second.isEmpty())
pAttrList->AddAttribute( A2OUSTR("text:style-name"), m_aEntries[i].second );
pStrm->StartElement( A2OUSTR("text:index-entry-text") );
@@ -290,7 +290,7 @@ void XFIndexTemplate::ToXml(IXFStream *pStrm)
if( m_eTabType != enumXFTabRight )
pAttrList->AddAttribute( A2OUSTR("style:position"), DoubleToOUString(m_fTabLength) + A2OUSTR("cm") );
- if(m_aEntries[i].second.getLength() > 0)
+ if(!m_aEntries[i].second.isEmpty())
pAttrList->AddAttribute( A2OUSTR("text:style-name"), m_aEntries[i].second );
switch(m_eTabType)
@@ -314,14 +314,14 @@ void XFIndexTemplate::ToXml(IXFStream *pStrm)
if( m_eTabType == enumXFTabChar )
pAttrList->AddAttribute( A2OUSTR("style:char"), m_strTabDelimiter );
//leader char:
- if( m_strTabLeader.getLength() )
+ if( !m_strTabLeader.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:leader-char"), m_strTabLeader );
pStrm->StartElement( A2OUSTR("text:index-entry-tab-stop") );
pStrm->EndElement( A2OUSTR("text:index-entry-tab-stop") );
break;
case enumXFIndexTemplatePage:
- if(m_aEntries[i].second.getLength() > 0)
+ if(!m_aEntries[i].second.isEmpty())
pAttrList->AddAttribute( A2OUSTR("text:style-name"), m_aEntries[i].second );
pStrm->StartElement( A2OUSTR("text:index-entry-page-number") );
diff --git a/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx b/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx
index 21597f0a1c71..cdc052da15f2 100644
--- a/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx
+++ b/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx
@@ -161,7 +161,7 @@ inline void XFLineNumberConfig::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
- if( m_strTextStyle.getLength() > 0 )
+ if( !m_strTextStyle.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), m_strTextStyle );
pAttrList->AddAttribute( A2OUSTR("text:offset"), DoubleToOUString(m_fOffset) + A2OUSTR("cm") );
pAttrList->AddAttribute( A2OUSTR("style:num-format"), m_strNumFmt );
diff --git a/lotuswordpro/source/filter/xfilter/xflist.cxx b/lotuswordpro/source/filter/xfilter/xflist.cxx
index cbfa2b1e49f7..f2444c3681ea 100644
--- a/lotuswordpro/source/filter/xfilter/xflist.cxx
+++ b/lotuswordpro/source/filter/xfilter/xflist.cxx
@@ -79,7 +79,7 @@ void XFList::ToXml(IXFStream *pStrm)
assert(NULL!=pAttrList);
pAttrList->Clear();
- if( GetStyleName().getLength() )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName() );
if( m_bContinueNumber )
pAttrList->AddAttribute( A2OUSTR("text:continue-numbering"), A2OUSTR("true") );
@@ -107,7 +107,7 @@ void XFList::StartList(IXFStream *pStrm, sal_Bool bContinueNumber)
assert(NULL!=pAttrList);
pAttrList->Clear();
- if( GetStyleName().getLength() )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName() );
if( bContinueNumber )
pAttrList->AddAttribute( A2OUSTR("text:continue-numbering"), A2OUSTR("true") );
diff --git a/lotuswordpro/source/filter/xfilter/xflistitem.hxx b/lotuswordpro/source/filter/xfilter/xflistitem.hxx
index 1de72a0de021..1b680e52ec6f 100644
--- a/lotuswordpro/source/filter/xfilter/xflistitem.hxx
+++ b/lotuswordpro/source/filter/xfilter/xflistitem.hxx
@@ -93,7 +93,7 @@ inline void XFListItem::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( GetStyleName().getLength() > 0 )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName() );
if( !m_bIsHeader )
diff --git a/lotuswordpro/source/filter/xfilter/xfliststyle.cxx b/lotuswordpro/source/filter/xfilter/xfliststyle.cxx
index 169e500ae56b..24bc2b782b2b 100644
--- a/lotuswordpro/source/filter/xfilter/xfliststyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfliststyle.cxx
@@ -143,7 +143,7 @@ void XFListLevelBullet::ToXml(IXFStream *pStrm)
pAttrList->AddAttribute( A2OUSTR("fo:text-align"), GetAlignName(m_eAlign) );
- if( m_strFontName.getLength() > 0 )
+ if( !m_strFontName.isEmpty() )
{
pAttrList->AddAttribute( A2OUSTR("style:font-name"), m_strFontName );
}
@@ -322,7 +322,7 @@ void XFListStyle::ToXml(IXFStream *pStrm)
pAttrList->Clear();
pAttrList->AddAttribute( A2OUSTR("style:name"), GetStyleName() );
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
pStrm->StartElement( A2OUSTR("text:list-style") );
diff --git a/lotuswordpro/source/filter/xfilter/xfnumberstyle.cxx b/lotuswordpro/source/filter/xfilter/xfnumberstyle.cxx
index 354dc0e20bd0..084a23f0bb1c 100644
--- a/lotuswordpro/source/filter/xfilter/xfnumberstyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfnumberstyle.cxx
@@ -152,7 +152,7 @@ void XFNumberStyle::ToXml_StartElement(IXFStream *pStrm)
pAttrList->Clear();
pAttrList->AddAttribute( A2OUSTR("style:name"), GetStyleName() );
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
pAttrList->AddAttribute( A2OUSTR("style:family"), A2OUSTR("data-style") );
@@ -263,7 +263,7 @@ void XFNumberStyle::ToXml_Content(IXFStream *pStrm, sal_Bool nagetive)
if( !nagetive )
{
- if( m_strPrefix.getLength()>0 )
+ if( !m_strPrefix.isEmpty() )
{
pStrm->StartElement( A2OUSTR("number:text") );
pStrm->Characters(m_strPrefix);
@@ -272,9 +272,9 @@ void XFNumberStyle::ToXml_Content(IXFStream *pStrm, sal_Bool nagetive)
}
else
{
- if( m_strNegativePrefix.getLength() == 0 )
+ if( m_strNegativePrefix.isEmpty() )
m_strNegativePrefix = m_strPrefix;
- if( m_strNegativePrefix.getLength()>0 )
+ if( !m_strNegativePrefix.isEmpty() )
{
pStrm->StartElement( A2OUSTR("number:text") );
// pStrm->Characters(m_strNegativePrefix);
@@ -291,7 +291,7 @@ void XFNumberStyle::ToXml_Content(IXFStream *pStrm, sal_Bool nagetive)
if( m_eType == enuMXFNumberCurrency && !m_bCurrencySymbolPost )
{
- if( m_strCurrencySymbol.getLength() > 0 )
+ if( !m_strCurrencySymbol.isEmpty() )
{
pStrm->StartElement( A2OUSTR("number:currency-symbol") );
pStrm->Characters(m_strCurrencySymbol);
@@ -326,7 +326,7 @@ void XFNumberStyle::ToXml_Content(IXFStream *pStrm, sal_Bool nagetive)
if( m_eType == enuMXFNumberCurrency && m_bCurrencySymbolPost )
{
- if( m_strCurrencySymbol.getLength()>0 )
+ if( !m_strCurrencySymbol.isEmpty() )
{
pStrm->StartElement( A2OUSTR("number:currency-symbol") );
pStrm->Characters(m_strCurrencySymbol);
@@ -336,7 +336,7 @@ void XFNumberStyle::ToXml_Content(IXFStream *pStrm, sal_Bool nagetive)
if( !nagetive )
{
- if( m_strSuffix.getLength()>0 )
+ if( !m_strSuffix.isEmpty() )
{
pStrm->StartElement( A2OUSTR("number:text") );
pStrm->Characters(m_strSuffix);
@@ -354,9 +354,9 @@ void XFNumberStyle::ToXml_Content(IXFStream *pStrm, sal_Bool nagetive)
}
else
{
- if( m_strNegativeSuffix.getLength() == 0 )
+ if( m_strNegativeSuffix.isEmpty() )
m_strNegativeSuffix = m_strSuffix;
- if( m_strNegativeSuffix.getLength()>0 )
+ if( !m_strNegativeSuffix.isEmpty() )
{
pStrm->StartElement( A2OUSTR("number:text") );
pStrm->Characters(m_strNegativeSuffix);
diff --git a/lotuswordpro/source/filter/xfilter/xfnumfmt.hxx b/lotuswordpro/source/filter/xfilter/xfnumfmt.hxx
index d9729dc68fef..033ee83c7cfd 100644
--- a/lotuswordpro/source/filter/xfilter/xfnumfmt.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfnumfmt.hxx
@@ -131,9 +131,9 @@ public:
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
- if( m_strPrefix.getLength() > 0 )
+ if( !m_strPrefix.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:num-prefix"), m_strPrefix );
- if( m_strSuffix.getLength() > 0 )
+ if( !m_strSuffix.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:num-suffix"), m_strSuffix );
pAttrList->AddAttribute( A2OUSTR("style:num-format"), m_strFormat );
if( m_nStartValue != 0 )
diff --git a/lotuswordpro/source/filter/xfilter/xfparagraph.cxx b/lotuswordpro/source/filter/xfilter/xfparagraph.cxx
index cdb001242ac7..5930a5ac23bd 100644
--- a/lotuswordpro/source/filter/xfilter/xfparagraph.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfparagraph.cxx
@@ -91,7 +91,7 @@ void XFParagraph::ToXml(IXFStream *pStrm)
assert(pAttrList);
pAttrList->Clear();
- if( GetStyleName().getLength() > 0 )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName() );
pStrm->StartElement( A2OUSTR("text:p") );
diff --git a/lotuswordpro/source/filter/xfilter/xfparastyle.cxx b/lotuswordpro/source/filter/xfilter/xfparastyle.cxx
index 6a2fbae1bbe2..0909f29b78db 100644
--- a/lotuswordpro/source/filter/xfilter/xfparastyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfparastyle.cxx
@@ -399,13 +399,13 @@ void XFParaStyle::ToXml(IXFStream *pStrm)
rtl::OUString style = GetStyleName();
pAttrList->Clear();
- if( style.getLength() )
+ if( !style.isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:name"),GetStyleName());
pAttrList->AddAttribute(A2OUSTR("style:family"), A2OUSTR("paragraph"));
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
- if( m_strMasterPage.getLength() > 0 )
+ if( !m_strMasterPage.isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:master-page-name"),m_strMasterPage);
pStrm->StartElement(A2OUSTR("style:style"));
diff --git a/lotuswordpro/source/filter/xfilter/xfplaceholder.hxx b/lotuswordpro/source/filter/xfilter/xfplaceholder.hxx
index d6af250873f8..ec597050b463 100644
--- a/lotuswordpro/source/filter/xfilter/xfplaceholder.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfplaceholder.hxx
@@ -109,10 +109,10 @@ inline void XFHolderStart::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
pAttrList->AddAttribute( A2OUSTR("text:placeholder-type"),m_strType);
- if (m_strDesc.getLength()>0)
+ if (!m_strDesc.isEmpty())
pAttrList->AddAttribute( A2OUSTR("text:description"), m_strDesc);
pStrm->StartElement( A2OUSTR("text:placeholder") );
- if( m_strText.getLength()>0)
+ if( !m_strText.isEmpty())
pStrm->Characters(m_strText);
}
diff --git a/lotuswordpro/source/filter/xfilter/xfrow.cxx b/lotuswordpro/source/filter/xfilter/xfrow.cxx
index fe13925325c5..56ac9df65afc 100644
--- a/lotuswordpro/source/filter/xfilter/xfrow.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfrow.cxx
@@ -147,7 +147,7 @@ void XFRow::ToXml(IXFStream *pStrm)
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( GetStyleName().getLength() )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("table:style-name"), GetStyleName() );
if( m_nRepeat )
pAttrList->AddAttribute( A2OUSTR("table:number-rows-repeated"), Int32ToOUString(m_nRepeat) );
diff --git a/lotuswordpro/source/filter/xfilter/xfrowstyle.cxx b/lotuswordpro/source/filter/xfilter/xfrowstyle.cxx
index 5027c7a63645..fa40000ead4a 100644
--- a/lotuswordpro/source/filter/xfilter/xfrowstyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfrowstyle.cxx
@@ -78,7 +78,7 @@ void XFRowStyle::ToXml(IXFStream *pStrm)
pAttrList->Clear();
pAttrList->AddAttribute( A2OUSTR("style:name"), GetStyleName() );
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
pAttrList->AddAttribute( A2OUSTR("style:family"), A2OUSTR("table-row") );
diff --git a/lotuswordpro/source/filter/xfilter/xfruby.hxx b/lotuswordpro/source/filter/xfilter/xfruby.hxx
index 467648836e6c..4b7f93a7a77e 100644
--- a/lotuswordpro/source/filter/xfilter/xfruby.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfruby.hxx
@@ -81,7 +81,7 @@ void XFRubyStart::ToXml(IXFStream *pStrm)
{
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( GetStyleName().getLength())
+ if( !GetStyleName().isEmpty())
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName());
pStrm->StartElement( A2OUSTR("text:ruby") );
pAttrList->Clear();
@@ -98,10 +98,10 @@ void XFRubyEnd::ToXml(IXFStream *pStrm)
pStrm->EndElement( A2OUSTR("text:ruby-base") );
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
- if( GetStyleName().getLength())
+ if( !GetStyleName().isEmpty())
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName());
pStrm->StartElement( A2OUSTR("text:ruby-text") );
- if( m_strText.getLength() )
+ if( !m_strText.isEmpty() )
pStrm->Characters(m_strText);
pStrm->EndElement( A2OUSTR("text:ruby-text") );
pStrm->EndElement( A2OUSTR("text:ruby") );
diff --git a/lotuswordpro/source/filter/xfilter/xfrubystyle.hxx b/lotuswordpro/source/filter/xfilter/xfrubystyle.hxx
index bec80248feb9..64d09a6847d1 100644
--- a/lotuswordpro/source/filter/xfilter/xfrubystyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfrubystyle.hxx
@@ -97,7 +97,7 @@ void XFRubyStyle::ToXml(IXFStream *pStrm)
rtl::OUString style = GetStyleName();
pAttrList->Clear();
- if( style.getLength() )
+ if( !style.isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:name"),GetStyleName());
pAttrList->AddAttribute(A2OUSTR("style:family"), A2OUSTR("ruby"));
pStrm->StartElement(A2OUSTR("style:style"));
@@ -117,7 +117,7 @@ void XFRubyStyle::ToXml(IXFStream *pStrm)
{
sPos = A2OUSTR("center");
}
- if (sPos.getLength()>0)
+ if (!sPos.isEmpty())
pAttrList->AddAttribute(A2OUSTR("style:ruby-align"),sPos);
OUString sAlign;
@@ -129,7 +129,7 @@ void XFRubyStyle::ToXml(IXFStream *pStrm)
{
sAlign = A2OUSTR("below");
}
- if (sAlign.getLength()>0)
+ if (!sAlign.isEmpty())
pAttrList->AddAttribute(A2OUSTR("style:ruby-position"),sAlign);
pStrm->StartElement(A2OUSTR("style:properties"));
diff --git a/lotuswordpro/source/filter/xfilter/xfsection.cxx b/lotuswordpro/source/filter/xfilter/xfsection.cxx
index 11371d693f3e..3f422a10dee1 100644
--- a/lotuswordpro/source/filter/xfilter/xfsection.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfsection.cxx
@@ -72,16 +72,16 @@ XFSection::~XFSection()
void XFSection::ToXml(IXFStream *pStrm)
{
- assert(m_strSectionName.getLength() > 0 );
+ assert(!m_strSectionName.isEmpty() );
IXFAttrList *pAttrList = pStrm->GetAttrList();
pAttrList->Clear();
rtl::OUString style = GetStyleName();
- if( style.getLength() )
+ if( !style.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), style);
//section name
- if( m_strSectionName.getLength() )
+ if( !m_strSectionName.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:name"), m_strSectionName);
if( m_bProtected )
pAttrList->AddAttribute( A2OUSTR("text:protected"), A2OUSTR("true") );
@@ -89,7 +89,7 @@ void XFSection::ToXml(IXFStream *pStrm)
pAttrList->AddAttribute( A2OUSTR("text:display"), A2OUSTR("none") );
pStrm->StartElement( A2OUSTR("text:section") );
- if( m_strSourceLink.getLength() )
+ if( !m_strSourceLink.isEmpty() )
{
pAttrList->Clear();
pAttrList->AddAttribute( A2OUSTR("xlink:href"), m_strSourceLink);
diff --git a/lotuswordpro/source/filter/xfilter/xfstylecont.cxx b/lotuswordpro/source/filter/xfilter/xfstylecont.cxx
index 5cef25b08904..055b440f46f6 100644
--- a/lotuswordpro/source/filter/xfilter/xfstylecont.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfstylecont.cxx
@@ -118,7 +118,7 @@ IXFStyle* XFStyleContainer::AddStyle(IXFStyle *pStyle)
//no matter we want to delete the style or not,XFFont obejct should be saved first.
ManageStyleFont(pStyle);
- if( pStyle->GetStyleName().getLength()==0 )
+ if( pStyle->GetStyleName().isEmpty() )
pConStyle = FindSameStyle(pStyle);
if( pConStyle )//such a style has exist:
@@ -128,7 +128,7 @@ IXFStyle* XFStyleContainer::AddStyle(IXFStyle *pStyle)
}
else
{
- if( pStyle->GetStyleName().getLength() == 0 )
+ if( pStyle->GetStyleName().isEmpty() )
{
name = m_strStyleNamePrefix + Int32ToOUString(m_aStyles.size()+1);
pStyle->SetStyleName(name);
diff --git a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx
index 67d77b44ebcd..ef20781f193f 100644
--- a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx
@@ -116,7 +116,7 @@ IXFStyle* XFStyleManager::AddStyle(IXFStyle *pStyle)
if( pStyle->GetStyleFamily() == enumXFStyleText )
{
- if( name.getLength() )
+ if( !name.isEmpty() )
{
pStyleRet = s_aStdTextStyles.AddStyle(pStyle);
}
@@ -125,7 +125,7 @@ IXFStyle* XFStyleManager::AddStyle(IXFStyle *pStyle)
}
else if( pStyle->GetStyleFamily() == enumXFStylePara )
{
- if( name.getLength() )
+ if( !name.isEmpty() )
{
pStyleRet = s_aStdParaStyles.AddStyle(pStyle);
}
diff --git a/lotuswordpro/source/filter/xfilter/xftable.cxx b/lotuswordpro/source/filter/xfilter/xftable.cxx
index 3c1a460d3dad..c3fc14cbeab3 100644
--- a/lotuswordpro/source/filter/xfilter/xftable.cxx
+++ b/lotuswordpro/source/filter/xfilter/xftable.cxx
@@ -217,7 +217,7 @@ void XFTable::ToXml(IXFStream *pStrm)
if( !m_bSubTable )
pAttrList->AddAttribute( A2OUSTR("table:name"), m_strName);
- if( GetStyleName().getLength() )
+ if( !GetStyleName().isEmpty() )
pAttrList->AddAttribute( A2OUSTR("table:style-name"), GetStyleName() );
if( m_bSubTable )
@@ -242,7 +242,7 @@ void XFTable::ToXml(IXFStream *pStrm)
{
if( col > lastCol + 2 )
{
- if( m_strDefColStyle.getLength() > 0 )
+ if( !m_strDefColStyle.isEmpty() )
{
pAttrList->AddAttribute( A2OUSTR("table:style-name"), m_strDefColStyle );
}
@@ -252,7 +252,7 @@ void XFTable::ToXml(IXFStream *pStrm)
pStrm->EndElement( A2OUSTR("table:table-column") );
}
- if( style.getLength() > 0 )
+ if( !style.isEmpty() )
{
pAttrList->AddAttribute( A2OUSTR("table:style-name"), style );
}
diff --git a/lotuswordpro/source/filter/xfilter/xftablestyle.cxx b/lotuswordpro/source/filter/xfilter/xftablestyle.cxx
index f9261365f4dc..65ee0d9befad 100644
--- a/lotuswordpro/source/filter/xfilter/xftablestyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xftablestyle.cxx
@@ -92,7 +92,7 @@ void XFTableStyle::ToXml(IXFStream *pStrm)
pAttrList->Clear();
pAttrList->AddAttribute( A2OUSTR("style:name"), GetStyleName() );
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
pAttrList->AddAttribute( A2OUSTR("style:family"), A2OUSTR("table") );
pStrm->StartElement( A2OUSTR("style:style") );
diff --git a/lotuswordpro/source/filter/xfilter/xftabstyle.cxx b/lotuswordpro/source/filter/xfilter/xftabstyle.cxx
index 1189fc425a8f..79a54c9b974e 100644
--- a/lotuswordpro/source/filter/xfilter/xftabstyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xftabstyle.cxx
@@ -92,7 +92,7 @@ void XFTabStyle::ToXml(IXFStream *pStrm)
if( m_eType == enumXFTabChar )
pAttrList->AddAttribute( A2OUSTR("style:char"), m_strDelimiter );
//leader char:
- if( m_strLeader.getLength() )
+ if( !m_strLeader.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("style:leader-char"), m_strLeader );
pStrm->StartElement( A2OUSTR("style:tab-stop") );
diff --git a/lotuswordpro/source/filter/xfilter/xftextboxstyle.cxx b/lotuswordpro/source/filter/xfilter/xftextboxstyle.cxx
index ca66a08ba33b..0b451c615dcf 100644
--- a/lotuswordpro/source/filter/xfilter/xftextboxstyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xftextboxstyle.cxx
@@ -78,7 +78,7 @@ void XFTextBoxStyle::ToXml(IXFStream *pStrm)
pAttrList->Clear();
pAttrList->AddAttribute( A2OUSTR("style:name"), GetStyleName() );
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
pAttrList->AddAttribute( A2OUSTR("style:family"), A2OUSTR("graphics") );
//parent style name ignore now.
diff --git a/lotuswordpro/source/filter/xfilter/xftextspan.cxx b/lotuswordpro/source/filter/xfilter/xftextspan.cxx
index 5000d727fa6e..0b338d61d5da 100644
--- a/lotuswordpro/source/filter/xfilter/xftextspan.cxx
+++ b/lotuswordpro/source/filter/xfilter/xftextspan.cxx
@@ -113,7 +113,7 @@ void XFTextSpan::ToXml(IXFStream *pStrm)
assert(pAttrList);
pAttrList->Clear();
- if( style.getLength() )
+ if( !style.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName() );
pStrm->StartElement( A2OUSTR("text:span") );
@@ -136,7 +136,7 @@ void XFTextSpanStart::ToXml(IXFStream *pStrm)
assert(pAttrList);
pAttrList->Clear();
- if( style.getLength() )
+ if( !style.isEmpty() )
pAttrList->AddAttribute( A2OUSTR("text:style-name"), GetStyleName() );
pStrm->StartElement( A2OUSTR("text:span") );
diff --git a/lotuswordpro/source/filter/xfilter/xftextstyle.cxx b/lotuswordpro/source/filter/xfilter/xftextstyle.cxx
index 4b9551a074dd..80b99ba659a3 100644
--- a/lotuswordpro/source/filter/xfilter/xftextstyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xftextstyle.cxx
@@ -115,9 +115,9 @@ void XFTextStyle::ToXml(IXFStream *strm)
rtl::OUString style = GetStyleName();
pAttrList->Clear();
- if( style.getLength() )
+ if( !style.isEmpty() )
pAttrList->AddAttribute(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("style:name")),GetStyleName());
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
pAttrList->AddAttribute(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("style:family")),A2OUSTR("text") );
diff --git a/lotuswordpro/source/filter/xfilter/xftimestyle.cxx b/lotuswordpro/source/filter/xfilter/xftimestyle.cxx
index 9b10d184257c..4e66cb981030 100644
--- a/lotuswordpro/source/filter/xfilter/xftimestyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xftimestyle.cxx
@@ -129,7 +129,7 @@ void XFTimeStyle::ToXml(IXFStream *pStrm)
pAttrList->Clear();
pAttrList->AddAttribute( A2OUSTR("style:name"), GetStyleName() );
- if( GetParentStyleName().getLength() > 0 )
+ if( !GetParentStyleName().isEmpty() )
pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName());
pAttrList->AddAttribute( A2OUSTR("style:family"), A2OUSTR("data-style") );
if (!m_bTruncate)