summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-08 08:21:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-08 08:21:06 +0100
commitd2a1da36fd2e6e569a4737d6ea7ec4beabdca918 (patch)
tree186f617255afe0a7f58b14fec473b75622ba82c2 /editeng
parentfdo#32257: call the handler once all changes are done on FrameSelector (diff)
downloadcore-d2a1da36fd2e6e569a4737d6ea7ec4beabdca918.tar.gz
core-d2a1da36fd2e6e569a4737d6ea7ec4beabdca918.zip
ByteString->rtl::OString
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editdbg.cxx50
-rw-r--r--editeng/source/editeng/editdbg.hxx2
2 files changed, 26 insertions, 26 deletions
diff --git a/editeng/source/editeng/editdbg.cxx b/editeng/source/editeng/editdbg.cxx
index fc5e51fe3638..db809d9066d2 100644
--- a/editeng/source/editeng/editdbg.cxx
+++ b/editeng/source/editeng/editdbg.cxx
@@ -492,50 +492,50 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, sal_Bool bInfoBox )
InfoBox(0, String( RTL_CONSTASCII_USTRINGPARAM( "D:\\DEBUG.LOG !" ) ) ).Execute();
}
-ByteString EditDbg::GetPortionInfo( ParaPortion* pPPortion )
+rtl::OString EditDbg::GetPortionInfo( ParaPortion* pPPortion )
{
sal_uInt16 z;
- ByteString aDebStr( "Paragraph Length = " );
- aDebStr += ByteString::CreateFromInt32( pPPortion->GetNode()->Len() );
+ rtl::OStringBuffer aDebStr(RTL_CONSTASCII_STRINGPARAM("Paragraph Length = "));
+ aDebStr.append(static_cast<sal_Int32>(pPPortion->GetNode()->Len()));
- aDebStr += "\nCharacter attribute:";
+ aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nCharacter attribute:"));
for ( z = 0; z < pPPortion->GetNode()->GetCharAttribs().Count(); z++ )
{
EditCharAttrib* pAttr = pPPortion->GetNode()->GetCharAttribs().GetAttribs().GetObject( z );
- aDebStr += "\n ";
- aDebStr += ByteString::CreateFromInt32( pAttr->GetItem()->Which() );
- aDebStr += '\t';
- aDebStr += ByteString::CreateFromInt32( pAttr->GetStart() );
- aDebStr += '\t';
- aDebStr += ByteString::CreateFromInt32( pAttr->GetEnd() );
+ aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\n "));
+ aDebStr.append(static_cast<sal_Int32>(pAttr->GetItem()->Which()));
+ aDebStr.append('\t');
+ aDebStr.append(static_cast<sal_Int32>(pAttr->GetStart()));
+ aDebStr.append('\t');
+ aDebStr.append(static_cast<sal_Int32>(pAttr->GetEnd()));
}
- aDebStr += "\nText portions:";
+ aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nText portions:"));
sal_uInt16 n = 0;
for ( z = 0; z < pPPortion->GetTextPortions().Count(); z++ )
{
TextPortion* pPortion = pPPortion->GetTextPortions().GetObject( z );
- aDebStr += " ";
- aDebStr += ByteString::CreateFromInt32( pPortion->GetLen() );
- aDebStr += "(";
- aDebStr += ByteString::CreateFromInt32( pPortion->GetSize().Width() );
- aDebStr += ")";
- aDebStr += ";";
+ aDebStr.append(' ');
+ aDebStr.append(static_cast<sal_Int32>(pPortion->GetLen()));
+ aDebStr.append('(');
+ aDebStr.append(static_cast<sal_Int32>(pPortion->GetSize().Width()));
+ aDebStr.append(')');
+ aDebStr.append(';');
n = n + pPortion->GetLen();
}
- aDebStr += "\nTotal length: ";
- aDebStr += ByteString::CreateFromInt32( n );
- aDebStr += "\nSorted after Start:";
+ aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nTotal length: "));
+ aDebStr.append(static_cast<sal_Int32>(n));
+ aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nSorted after Start:"));
for ( sal_uInt16 x = 0; x < pPPortion->GetNode()->GetCharAttribs().Count(); x++ )
{
EditCharAttrib* pCurAttrib = pPPortion->GetNode()->GetCharAttribs().GetAttribs().GetObject( x );
- aDebStr += "\nStart: ";
- aDebStr += ByteString::CreateFromInt32( pCurAttrib->GetStart() );
- aDebStr += "\tEnd: ";
- aDebStr += ByteString::CreateFromInt32( pCurAttrib->GetEnd() );
+ aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nStart: "));
+ aDebStr.append(static_cast<sal_Int32>(pCurAttrib->GetStart()));
+ aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\tEnd: "));
+ aDebStr.append(static_cast<sal_Int32>(pCurAttrib->GetEnd()));
}
- return aDebStr;
+ return aDebStr.makeStringAndClear();
}
rtl::OString EditDbg::GetTextPortionInfo(TextPortionList& rPortions)
diff --git a/editeng/source/editeng/editdbg.hxx b/editeng/source/editeng/editdbg.hxx
index 2088c758d7c8..fd5900efec46 100644
--- a/editeng/source/editeng/editdbg.hxx
+++ b/editeng/source/editeng/editdbg.hxx
@@ -49,7 +49,7 @@ class EditDbg
public:
static void ShowEditEngineData( EditEngine* pEditEngine, sal_Bool bInfoBox = sal_True );
static void ShowPortionData( ParaPortion* pPortion );
- static ByteString GetPortionInfo( ParaPortion* pPPortion );
+ static rtl::OString GetPortionInfo( ParaPortion* pPPortion );
static rtl::OString GetTextPortionInfo(TextPortionList& rPortions);
static ByteString GetUndoDebStr( EditUndoList* pUndoList );
};