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/xfcolumns.cxx | |
parent | 0b83c8ffdcba92be56030b1e205a030d46168cfe (diff) |
use 'native' OUString api in lotuswordpro instead of macro and wrappers
Change-Id: Iccb78b59c3de9f29975d10fa4e34232cd3bf2cc3
Diffstat (limited to 'lotuswordpro/source/filter/xfilter/xfcolumns.cxx')
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfcolumns.cxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfcolumns.cxx b/lotuswordpro/source/filter/xfilter/xfcolumns.cxx index 1d51d0dc00a6..cf17b41b9a1b 100644 --- a/lotuswordpro/source/filter/xfilter/xfcolumns.cxx +++ b/lotuswordpro/source/filter/xfilter/xfcolumns.cxx @@ -75,12 +75,12 @@ void XFColumn::ToXml(IXFStream *pStrm) IXFAttrList *pAttrList = pStrm->GetAttrList(); pAttrList->Clear(); - pAttrList->AddAttribute( A2OUSTR("style:rel-width"), Int32ToOUString(m_nRelWidth) + A2OUSTR("*") ); - pAttrList->AddAttribute( A2OUSTR("fo:margin-left"), DoubleToOUString(m_fMarginLeft) + A2OUSTR("cm") ); - pAttrList->AddAttribute( A2OUSTR("fo:margin-right"), DoubleToOUString(m_fMarginRight) + A2OUSTR("cm") ); + pAttrList->AddAttribute( "style:rel-width", OUString::number(m_nRelWidth) + "*" ); + pAttrList->AddAttribute( "fo:margin-left", DoubleToOUString(m_fMarginLeft) + "cm" ); + pAttrList->AddAttribute( "fo:margin-right", DoubleToOUString(m_fMarginRight) + "cm" ); - pStrm->StartElement( A2OUSTR("style:column") ); - pStrm->EndElement( A2OUSTR("style:column") ); + pStrm->StartElement( "style:column" ); + pStrm->EndElement( "style:column" ); } void XFColumnSep::SetRelHeight(sal_Int32 height) @@ -106,26 +106,26 @@ void XFColumnSep::ToXml(IXFStream *pStrm) IXFAttrList *pAttrList = pStrm->GetAttrList(); pAttrList->Clear(); - pAttrList->AddAttribute( A2OUSTR("style:width"), DoubleToOUString(m_fWidth) + A2OUSTR("cm") ); + pAttrList->AddAttribute( "style:width", DoubleToOUString(m_fWidth) + "cm" ); if( m_aColor.IsValid() ) - pAttrList->AddAttribute( A2OUSTR("style:color"), m_aColor.ToString() ); - pAttrList->AddAttribute( A2OUSTR("style:height"), Int32ToOUString(m_nRelHeight) + A2OUSTR("%") ); + pAttrList->AddAttribute( "style:color", m_aColor.ToString() ); + pAttrList->AddAttribute( "style:height", OUString::number(m_nRelHeight) + "%" ); //text align: if( m_eVertAlign == enumXFAlignTop ) { - pAttrList->AddAttribute(A2OUSTR("style:vertical-align"),A2OUSTR("top")); + pAttrList->AddAttribute("style:vertical-align","top"); } else if( m_eVertAlign == enumXFAlignMiddle ) { - pAttrList->AddAttribute(A2OUSTR("style:vertical-align"),A2OUSTR("middle")); + pAttrList->AddAttribute("style:vertical-align","middle"); } else if( m_eVertAlign == enumXFAlignBottom ) { - pAttrList->AddAttribute(A2OUSTR("style:vertical-align"),A2OUSTR("bottom")); + pAttrList->AddAttribute("style:vertical-align","bottom"); } - pStrm->StartElement( A2OUSTR("style:column-sep") ); - pStrm->EndElement( A2OUSTR("style:column-sep") ); + pStrm->StartElement( "style:column-sep" ); + pStrm->EndElement( "style:column-sep" ); } void XFColumns::SetSeparator(XFColumnSep& aSeparator) @@ -155,13 +155,13 @@ void XFColumns::ToXml(IXFStream *pStrm) IXFAttrList *pAttrList = pStrm->GetAttrList(); pAttrList->Clear(); - pAttrList->AddAttribute( A2OUSTR("fo:column-count"), Int32ToOUString(m_nCount)); + pAttrList->AddAttribute( "fo:column-count", OUString::number(m_nCount)); if( m_nFlag&XFCOLUMNS_FLAG_GAP ) { - pAttrList->AddAttribute( A2OUSTR("fo:column-gap"), DoubleToOUString(m_fGap)+A2OUSTR("cm") ); + pAttrList->AddAttribute( "fo:column-gap", DoubleToOUString(m_fGap)+"cm" ); } - pStrm->StartElement( A2OUSTR("style:columns") ); + pStrm->StartElement( "style:columns" ); if( m_nFlag&XFCOLUMNS_FLAG_SEPARATOR ) //column-sep: { @@ -176,6 +176,6 @@ void XFColumns::ToXml(IXFStream *pStrm) (*it).ToXml(pStrm); } } - pStrm->EndElement( A2OUSTR("style:columns") ); + pStrm->EndElement( "style:columns" ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |