summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwp9reader.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/lwp9reader.cxx
parentcoverity#735759 Unchecked dynamic_cast (diff)
downloadcore-d634ce9edb6f1df409547715a391ad2eeca99f0c.tar.gz
core-d634ce9edb6f1df409547715a391ad2eeca99f0c.zip
use 'native' OUString api in lotuswordpro instead of macro and wrappers
Change-Id: Iccb78b59c3de9f29975d10fa4e34232cd3bf2cc3
Diffstat (limited to 'lotuswordpro/source/filter/lwp9reader.cxx')
-rw-r--r--lotuswordpro/source/filter/lwp9reader.cxx44
1 files changed, 22 insertions, 22 deletions
diff --git a/lotuswordpro/source/filter/lwp9reader.cxx b/lotuswordpro/source/filter/lwp9reader.cxx
index 43e8a3430253..b7d12f0502f1 100644
--- a/lotuswordpro/source/filter/lwp9reader.cxx
+++ b/lotuswordpro/source/filter/lwp9reader.cxx
@@ -201,7 +201,7 @@ void Lwp9Reader::ParseDocument()
//Parse document content
m_pStream->GetAttrList()->Clear();
- m_pStream->StartElement( A2OUSTR("office:body") );
+ m_pStream->StartElement( "office:body" );
//Parse change list, add by
LwpGlobalMgr* pGlobal = LwpGlobalMgr::GetInstance();
@@ -209,7 +209,7 @@ void Lwp9Reader::ParseDocument()
pChangeMgr->ConvertAllChange(m_pStream);
doc->Parse(m_pStream);
- m_pStream->EndElement(OUString("office:body"));
+ m_pStream->EndElement("office:body");
WriteDocEnd();
}
@@ -223,29 +223,29 @@ void Lwp9Reader::WriteDocHeader()
IXFAttrList *pAttrList = m_pStream->GetAttrList();
- pAttrList->AddAttribute( A2OUSTR("xmlns:office"), A2OUSTR("http://openoffice.org/2000/office") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:style"), A2OUSTR("http://openoffice.org/2000/style") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:text"), A2OUSTR("http://openoffice.org/2000/text") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:table"), A2OUSTR("http://openoffice.org/2000/table") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:draw"), A2OUSTR("http://openoffice.org/2000/drawing") );
+ pAttrList->AddAttribute( "xmlns:office", "http://openoffice.org/2000/office" );
+ pAttrList->AddAttribute( "xmlns:style", "http://openoffice.org/2000/style" );
+ pAttrList->AddAttribute( "xmlns:text", "http://openoffice.org/2000/text" );
+ pAttrList->AddAttribute( "xmlns:table", "http://openoffice.org/2000/table" );
+ pAttrList->AddAttribute( "xmlns:draw", "http://openoffice.org/2000/drawing" );
- pAttrList->AddAttribute( A2OUSTR("xmlns:fo"), A2OUSTR("http://www.w3.org/1999/XSL/Format") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:xlink"), A2OUSTR("http://www.w3.org/1999/xlink") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:number"), A2OUSTR("http://openoffice.org/2000/datastyle") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:svg"), A2OUSTR("http://www.w3.org/2000/svg") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:chart"), A2OUSTR("http://openoffice.org/2000/chart") );
+ pAttrList->AddAttribute( "xmlns:fo", "http://www.w3.org/1999/XSL/Format" );
+ pAttrList->AddAttribute( "xmlns:xlink", "http://www.w3.org/1999/xlink" );
+ pAttrList->AddAttribute( "xmlns:number", "http://openoffice.org/2000/datastyle" );
+ pAttrList->AddAttribute( "xmlns:svg", "http://www.w3.org/2000/svg" );
+ pAttrList->AddAttribute( "xmlns:chart", "http://openoffice.org/2000/chart" );
- pAttrList->AddAttribute( A2OUSTR("xmlns:dr3d"), A2OUSTR("http://openoffice.org/2000/dr3d") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:math"), A2OUSTR("http://www.w3.org/1998/Math/MathML") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:form"), A2OUSTR("http://openoffice.org/2000/form") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:script"), A2OUSTR("http://openoffice.org/2000/script") );
- pAttrList->AddAttribute( A2OUSTR("xmlns:dc"), A2OUSTR("http://purl.org/dc/elements/1.1/") );
+ pAttrList->AddAttribute( "xmlns:dr3d", "http://openoffice.org/2000/dr3d" );
+ pAttrList->AddAttribute( "xmlns:math", "http://www.w3.org/1998/Math/MathML" );
+ pAttrList->AddAttribute( "xmlns:form", "http://openoffice.org/2000/form" );
+ pAttrList->AddAttribute( "xmlns:script", "http://openoffice.org/2000/script" );
+ pAttrList->AddAttribute( "xmlns:dc", "http://purl.org/dc/elements/1.1/" );
- pAttrList->AddAttribute( A2OUSTR("xmlns:meta"), A2OUSTR("http://openoffice.org/2000/meta") );
- pAttrList->AddAttribute( A2OUSTR("office:class"), A2OUSTR("text"));
- pAttrList->AddAttribute( A2OUSTR("office:version"), A2OUSTR("1.0"));
+ pAttrList->AddAttribute( "xmlns:meta", "http://openoffice.org/2000/meta" );
+ pAttrList->AddAttribute( "office:class", "text");
+ pAttrList->AddAttribute( "office:version", "1.0");
- m_pStream->StartElement( OUString("office:document") );
+ m_pStream->StartElement( "office:document" );
pAttrList->Clear();
}
@@ -254,7 +254,7 @@ void Lwp9Reader::WriteDocHeader()
*/
void Lwp9Reader::WriteDocEnd()
{
- m_pStream->EndElement(OUString("office:document"));
+ m_pStream->EndElement("office:document");
m_pStream->EndDocument();
}