summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwpdoc.cxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-03-08 00:05:32 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-03-08 01:21:25 -0600
commitd634ce9edb6f1df409547715a391ad2eeca99f0c (patch)
tree62a7327a3346bf4a9b70d465315b7a466b03449e /lotuswordpro/source/filter/lwpdoc.cxx
parent0b83c8ffdcba92be56030b1e205a030d46168cfe (diff)
use 'native' OUString api in lotuswordpro instead of macro and wrappers
Change-Id: Iccb78b59c3de9f29975d10fa4e34232cd3bf2cc3
Diffstat (limited to 'lotuswordpro/source/filter/lwpdoc.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpdoc.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwpdoc.cxx b/lotuswordpro/source/filter/lwpdoc.cxx
index e9a2f72b8cef..5572985babb6 100644
--- a/lotuswordpro/source/filter/lwpdoc.cxx
+++ b/lotuswordpro/source/filter/lwpdoc.cxx
@@ -177,9 +177,9 @@ sal_Bool LwpDocument::IsSkippedDivision()
return sal_True;
//skip endnote division
OUString strClassName = pDiv->GetClassName();
- if (strClassName.equals(A2OUSTR(STR_DivisionEndnote))
- || strClassName.equals(A2OUSTR(STR_DivisionGroupEndnote))
- || strClassName.equals(A2OUSTR(STR_DocumentEndnote)))
+ if ((strClassName == STR_DivisionEndnote)
+ || (strClassName == STR_DivisionGroupEndnote)
+ || (strClassName == STR_DocumentEndnote))
{
LwpPageLayout* pPageLayout = dynamic_cast<LwpPageLayout*>(pDiv->GetInitialLayoutID()->obj(VO_PAGELAYOUT));
if(pPageLayout)
@@ -342,7 +342,7 @@ void LwpDocument::RegisterFootnoteStyles()
LwpFootnoteOptions* pFootnoteOpts = dynamic_cast<LwpFootnoteOptions*>(m_FootnoteOpts.obj());
if (pFootnoteOpts)
{
- pFootnoteOpts->SetMasterPage(A2OUSTR("Endnote"));
+ pFootnoteOpts->SetMasterPage("Endnote");
pFootnoteOpts->RegisterStyle();
}
}
@@ -433,11 +433,11 @@ sal_uInt16 LwpDocument::GetEndnoteType()
if (!pDivInfo)
return FN_DONTCARE;
OUString strClassName = pDivInfo->GetClassName();
- if (strClassName.equals(A2OUSTR(STR_DivisionEndnote)))
+ if (strClassName == STR_DivisionEndnote)
return FN_DIVISION_SEPARATE;
- if (strClassName.equals(A2OUSTR(STR_DivisionGroupEndnote)))
+ if (strClassName == STR_DivisionGroupEndnote)
return FN_DIVISIONGROUP_SEPARATE;
- if (strClassName.equals(A2OUSTR(STR_DocumentEndnote)))
+ if (strClassName == STR_DocumentEndnote)
return FN_DOCUMENT_SEPARATE;
return FN_DONTCARE;
}
@@ -755,10 +755,10 @@ void LwpDocument::XFConvertFrameInPage(XFContentContainer * pCont)
void LwpDocument::ChangeStyleName()
{
XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager();
- XFTextStyle* pStyle = dynamic_cast<XFTextStyle*>(pXFStyleManager->FindStyle(A2OUSTR("ClickHere")));
+ XFTextStyle* pStyle = dynamic_cast<XFTextStyle*>(pXFStyleManager->FindStyle("ClickHere"));
if (pStyle)
{
- pStyle->SetStyleName(A2OUSTR("Placeholder"));
+ pStyle->SetStyleName("Placeholder");
}
}
LwpDocSock::LwpDocSock(LwpObjectHeader& objHdr, LwpSvStream* pStrm)