diff options
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r-- | sc/source/ui/dbgui/pfiltdlg.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 11 | ||||
-rw-r--r-- | sc/source/ui/dbgui/tpsubt.cxx | 6 |
3 files changed, 8 insertions, 13 deletions
diff --git a/sc/source/ui/dbgui/pfiltdlg.cxx b/sc/source/ui/dbgui/pfiltdlg.cxx index b23df01b6b81..3245b4c995a2 100644 --- a/sc/source/ui/dbgui/pfiltdlg.cxx +++ b/sc/source/ui/dbgui/pfiltdlg.cxx @@ -305,9 +305,7 @@ void ScPivotFilterDlg::FillFieldLists() { rtl::OUStringBuffer aBuf; aBuf.append(aStrColumn); - aBuf.append(sal_Unicode(' ')); - aBuf.append(ScColToAlpha(col)); - aFieldName = aBuf.makeStringAndClear(); + aFieldName = aBuf.makeStringAndClear().replaceAll("%1", ScColToAlpha( col )); } aLbField1.InsertEntry( aFieldName, i ); aLbField2.InsertEntry( aFieldName, i ); diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 9c235c6f0b1a..7f586db43186 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -361,9 +361,7 @@ void ScTabPageSortFields::FillFieldLists( sal_uInt16 nStartField ) { rtl::OUStringBuffer aBuf; aBuf.append(aStrColumn); - aBuf.append(sal_Unicode(' ')); - aBuf.append(ScColToAlpha(col)); - aFieldName = aBuf.makeStringAndClear(); + aFieldName = aBuf.makeStringAndClear().replaceAll("%1", ScColToAlpha( col )); } nFieldArr.push_back( col ); @@ -385,10 +383,11 @@ void ScTabPageSortFields::FillFieldLists( sal_uInt16 nStartField ) if ( !bHasHeader || aFieldName.isEmpty() ) { rtl::OUStringBuffer aBuf; + rtl::OUStringBuffer tempBuf; + aBuf.append(aStrRow); - aBuf.append(sal_Unicode(' ')); - aBuf.append(row+1); - aFieldName = aBuf.makeStringAndClear(); + tempBuf.append(row+1 ); + aFieldName = aBuf.makeStringAndClear().replaceAll("%1", tempBuf.makeStringAndClear()); } nFieldArr.push_back( row ); diff --git a/sc/source/ui/dbgui/tpsubt.cxx b/sc/source/ui/dbgui/tpsubt.cxx index 510f3485a1f9..ea24d6c5f039 100644 --- a/sc/source/ui/dbgui/tpsubt.cxx +++ b/sc/source/ui/dbgui/tpsubt.cxx @@ -288,11 +288,9 @@ void ScTpSubTotalGroup::FillListBoxes() pDoc->GetString( col, nFirstRow, nTab, aFieldName ); if ( aFieldName.isEmpty() ) { - rtl::OUStringBuffer aBuf; + rtl::OUStringBuffer aBuf; aBuf.append(aStrColumn); - aBuf.append(sal_Unicode(' ')); - aBuf.append(ScColToAlpha(col)); - aFieldName = aBuf.makeStringAndClear(); + aFieldName = aBuf.makeStringAndClear().replaceAll("%1", ScColToAlpha( col )); } nFieldArr[i] = col; aLbGroup.InsertEntry( aFieldName, i+1 ); |