diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-08 00:05:32 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-08 01:21:25 -0600 |
commit | d634ce9edb6f1df409547715a391ad2eeca99f0c (patch) | |
tree | 62a7327a3346bf4a9b70d465315b7a466b03449e /lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx | |
parent | 0b83c8ffdcba92be56030b1e205a030d46168cfe (diff) |
use 'native' OUString api in lotuswordpro instead of macro and wrappers
Change-Id: Iccb78b59c3de9f29975d10fa4e34232cd3bf2cc3
Diffstat (limited to 'lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx')
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx b/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx index 0b047fa1cf10..71e4d5cbb3d7 100644 --- a/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx +++ b/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx @@ -76,7 +76,7 @@ public: void SetSeparator(sal_Int32 increment, OUString separator); - void SetNumberFormat(OUString numfmt = A2OUSTR("1")); + void SetNumberFormat(OUString numfmt = "1"); void SetTextStyle(OUString style); @@ -163,45 +163,45 @@ inline void XFLineNumberConfig::ToXml(IXFStream *pStrm) IXFAttrList *pAttrList = pStrm->GetAttrList(); 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 ); + pAttrList->AddAttribute( "text:style-name", m_strTextStyle ); + pAttrList->AddAttribute( "text:offset", DoubleToOUString(m_fOffset) + "cm" ); + pAttrList->AddAttribute( "style:num-format", m_strNumFmt ); //position: if( m_ePosition == enumXFLineNumberLeft ) - pAttrList->AddAttribute( A2OUSTR("text:number-position"), A2OUSTR("left") ); + pAttrList->AddAttribute( "text:number-position", "left" ); else if( m_ePosition == enumXFLineNumberRight ) - pAttrList->AddAttribute( A2OUSTR("text:number-position"), A2OUSTR("right") ); + pAttrList->AddAttribute( "text:number-position", "right" ); else if( m_ePosition == enumXFLineNumberInner ) - pAttrList->AddAttribute( A2OUSTR("text:number-position"), A2OUSTR("inner") ); + pAttrList->AddAttribute( "text:number-position", "inner" ); else if( m_ePosition == enumXFLineNumberOuter ) - pAttrList->AddAttribute( A2OUSTR("text:number-position"), A2OUSTR("outer") ); + pAttrList->AddAttribute( "text:number-position", "outer" ); - pAttrList->AddAttribute( A2OUSTR("text:increment"), Int32ToOUString(m_nIncrement) ); + pAttrList->AddAttribute( "text:increment", OUString::number(m_nIncrement) ); if( m_bRestartOnPage ) - pAttrList->AddAttribute( A2OUSTR("text:restart-on-page"), A2OUSTR("true") ); + pAttrList->AddAttribute( "text:restart-on-page", "true" ); else - pAttrList->AddAttribute( A2OUSTR("text:restart-on-page"), A2OUSTR("false") ); + pAttrList->AddAttribute( "text:restart-on-page", "false" ); if( m_bCountEmptyLines ) - pAttrList->AddAttribute( A2OUSTR("text:count-empty-lines"), A2OUSTR("true") ); + pAttrList->AddAttribute( "text:count-empty-lines", "true" ); else - pAttrList->AddAttribute( A2OUSTR("text:count-empty-lines"), A2OUSTR("false") ); + pAttrList->AddAttribute( "text:count-empty-lines", "false" ); if( m_bCountFrameLines ) - pAttrList->AddAttribute( A2OUSTR("text:count-in-floating-frames"), A2OUSTR("true") ); + pAttrList->AddAttribute( "text:count-in-floating-frames", "true" ); else - pAttrList->AddAttribute( A2OUSTR("text:count-in-floating-frames"), A2OUSTR("false") ); + pAttrList->AddAttribute( "text:count-in-floating-frames", "false" ); - pStrm->StartElement( A2OUSTR("text:linenumbering-configuration") ); + pStrm->StartElement( "text:linenumbering-configuration" ); pAttrList->Clear(); - pAttrList->AddAttribute( A2OUSTR("text:increment"), Int32ToOUString(m_nSepIncrement) ); - pStrm->StartElement( A2OUSTR("text:linenumbering-separator") ); + pAttrList->AddAttribute( "text:increment", OUString::number(m_nSepIncrement) ); + pStrm->StartElement( "text:linenumbering-separator" ); pStrm->Characters(m_strSeparator); - pStrm->EndElement( A2OUSTR("text:linenumbering-separator") ); + pStrm->EndElement( "text:linenumbering-separator" ); - pStrm->EndElement( A2OUSTR("text:linenumbering-configuration") ); + pStrm->EndElement( "text:linenumbering-configuration" ); } #endif |