diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-05-14 08:34:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-05-14 14:34:09 +0100 |
commit | c182a752412aab354aaf02ee0c75b7cb1ee35d66 (patch) | |
tree | e4ee080ed6a7c5f665a33c52ad9d1e3a56b6031b /sc/source/ui/undo | |
parent | 28062c62818ce40c17fb67b480612f8bb9bcd522 (diff) |
convert GetComment family to rtl::OUString
Change-Id: I563ab83a24ca4f839892548b350486e83dd071d3
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r-- | sc/source/ui/undo/undobase.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/undo/undoblk.cxx | 32 | ||||
-rw-r--r-- | sc/source/ui/undo/undoblk2.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/undo/undoblk3.cxx | 30 | ||||
-rw-r--r-- | sc/source/ui/undo/undocell.cxx | 22 | ||||
-rw-r--r-- | sc/source/ui/undo/undodat.cxx | 34 | ||||
-rw-r--r-- | sc/source/ui/undo/undodraw.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/undo/undorangename.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/undo/undostyl.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/undo/undotab.cxx | 34 |
10 files changed, 85 insertions, 87 deletions
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx index 8cf4e5c2dafd..822404c62850 100644 --- a/sc/source/ui/undo/undobase.cxx +++ b/sc/source/ui/undo/undobase.cxx @@ -564,12 +564,11 @@ void ScUndoWrapper::ForgetWrappedUndo() pWrappedUndo = NULL; // don't delete in dtor - pointer must be stored outside } -String ScUndoWrapper::GetComment() const +rtl::OUString ScUndoWrapper::GetComment() const { if (pWrappedUndo) return pWrappedUndo->GetComment(); - else - return String(); + return rtl::OUString(); } String ScUndoWrapper::GetRepeatComment(SfxRepeatTarget& rTarget) const diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx index 67a36c09827c..b822bc9abe59 100644 --- a/sc/source/ui/undo/undoblk.cxx +++ b/sc/source/ui/undo/undoblk.cxx @@ -136,7 +136,7 @@ ScUndoInsertCells::~ScUndoInsertCells() delete []pScenarios; } -String ScUndoInsertCells::GetComment() const +rtl::OUString ScUndoInsertCells::GetComment() const { return ScGlobal::GetRscString( pPasteUndo ? STR_UNDO_PASTE : STR_UNDO_INSERTCELLS ); } @@ -374,7 +374,7 @@ ScUndoDeleteCells::~ScUndoDeleteCells() delete []pScenarios; } -String ScUndoDeleteCells::GetComment() const +rtl::OUString ScUndoDeleteCells::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_DELETECELLS ); // "Loeschen" } @@ -596,7 +596,7 @@ ScUndoDeleteMulti::~ScUndoDeleteMulti() delete [] pRanges; } -String ScUndoDeleteMulti::GetComment() const +rtl::OUString ScUndoDeleteMulti::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_DELETECELLS ); // wie DeleteCells } @@ -785,7 +785,7 @@ ScUndoCut::~ScUndoCut() delete pUndoDoc; } -String ScUndoCut::GetComment() const +rtl::OUString ScUndoCut::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_CUT ); // "Ausschneiden" } @@ -906,7 +906,7 @@ ScUndoPaste::~ScUndoPaste() delete pRefRedoData; } -String ScUndoPaste::GetComment() const +rtl::OUString ScUndoPaste::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_PASTE ); // "Einfuegen" } @@ -1183,7 +1183,7 @@ ScUndoDragDrop::~ScUndoDragDrop() { } -String ScUndoDragDrop::GetComment() const +rtl::OUString ScUndoDragDrop::GetComment() const { // "Verschieben" : "Kopieren" return bCut ? ScGlobal::GetRscString( STR_UNDO_MOVE ) : @@ -1412,7 +1412,7 @@ ScUndoListNames::~ScUndoListNames() delete pRedoDoc; } -String ScUndoListNames::GetComment() const +rtl::OUString ScUndoListNames::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_LISTNAMES ); } @@ -1485,7 +1485,7 @@ ScUndoUseScenario::~ScUndoUseScenario() delete pUndoDoc; } -String ScUndoUseScenario::GetComment() const +rtl::OUString ScUndoUseScenario::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_USESCENARIO ); } @@ -1608,7 +1608,7 @@ ScUndoSelectionStyle::~ScUndoSelectionStyle() delete pUndoDoc; } -String ScUndoSelectionStyle::GetComment() const +rtl::OUString ScUndoSelectionStyle::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_APPLYCELLSTYLE ); } @@ -1719,7 +1719,7 @@ ScUndoEnterMatrix::~ScUndoEnterMatrix() delete pUndoDoc; } -String ScUndoEnterMatrix::GetComment() const +rtl::OUString ScUndoEnterMatrix::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_ENTERMATRIX ); } @@ -1819,7 +1819,7 @@ ScUndoIndent::~ScUndoIndent() delete pUndoDoc; } -String ScUndoIndent::GetComment() const +rtl::OUString ScUndoIndent::GetComment() const { sal_uInt16 nId = bIsIncrement ? STR_UNDO_INC_INDENT : STR_UNDO_DEC_INDENT; return ScGlobal::GetRscString( nId ); @@ -1881,7 +1881,7 @@ ScUndoTransliterate::~ScUndoTransliterate() delete pUndoDoc; } -String ScUndoTransliterate::GetComment() const +rtl::OUString ScUndoTransliterate::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_TRANSLITERATE ); } @@ -1951,7 +1951,7 @@ ScUndoClearItems::~ScUndoClearItems() delete pWhich; } -String ScUndoClearItems::GetComment() const +rtl::OUString ScUndoClearItems::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_DELETECONTENTS ); } @@ -2010,7 +2010,7 @@ ScUndoRemoveBreaks::~ScUndoRemoveBreaks() delete pUndoDoc; } -String ScUndoRemoveBreaks::GetComment() const +rtl::OUString ScUndoRemoveBreaks::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_REMOVEBREAKS ); } @@ -2078,7 +2078,7 @@ ScUndoRemoveMerge::~ScUndoRemoveMerge() delete pUndoDoc; } -String ScUndoRemoveMerge::GetComment() const +rtl::OUString ScUndoRemoveMerge::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_REMERGE ); // "Zusammenfassung aufheben" } @@ -2226,7 +2226,7 @@ ScUndoBorder::~ScUndoBorder() delete pInner; } -String ScUndoBorder::GetComment() const +rtl::OUString ScUndoBorder::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_SELATTRLINES ); //! eigener String? } diff --git a/sc/source/ui/undo/undoblk2.cxx b/sc/source/ui/undo/undoblk2.cxx index d7e37f9d1161..8ae02a8df74a 100644 --- a/sc/source/ui/undo/undoblk2.cxx +++ b/sc/source/ui/undo/undoblk2.cxx @@ -91,7 +91,7 @@ ScUndoWidthOrHeight::~ScUndoWidthOrHeight() DeleteSdrUndoAction( pDrawUndo ); } -String ScUndoWidthOrHeight::GetComment() const +rtl::OUString ScUndoWidthOrHeight::GetComment() const { // [ "optimale " ] "Spaltenbreite" | "Zeilenhoehe" return ( bWidth ? diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx index 78ea86b28b7a..6d002998165f 100644 --- a/sc/source/ui/undo/undoblk3.cxx +++ b/sc/source/ui/undo/undoblk3.cxx @@ -127,7 +127,7 @@ ScUndoDeleteContents::~ScUndoDeleteContents() //---------------------------------------------------------------------------- -String ScUndoDeleteContents::GetComment() const +rtl::OUString ScUndoDeleteContents::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_DELETECONTENTS ); // "Loeschen" } @@ -304,7 +304,7 @@ ScUndoFillTable::~ScUndoFillTable() //---------------------------------------------------------------------------- -String ScUndoFillTable::GetComment() const +rtl::OUString ScUndoFillTable::GetComment() const { return ScGlobal::GetRscString( STR_FILL_TAB ); } @@ -475,7 +475,7 @@ ScUndoSelectionAttr::~ScUndoSelectionAttr() //---------------------------------------------------------------------------- -String ScUndoSelectionAttr::GetComment() const +rtl::OUString ScUndoSelectionAttr::GetComment() const { //"Attribute" "/Linien" return ScGlobal::GetRscString( pLineOuter ? STR_UNDO_SELATTRLINES : STR_UNDO_SELATTR ); @@ -631,7 +631,7 @@ ScUndoAutoFill::~ScUndoAutoFill() //---------------------------------------------------------------------------- -String ScUndoAutoFill::GetComment() const +rtl::OUString ScUndoAutoFill::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_AUTOFILL ); //"Ausfuellen" } @@ -797,7 +797,7 @@ ScUndoMerge::~ScUndoMerge() //---------------------------------------------------------------------------- -String ScUndoMerge::GetComment() const +rtl::OUString ScUndoMerge::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_MERGE ); } @@ -953,7 +953,7 @@ ScUndoAutoFormat::~ScUndoAutoFormat() //---------------------------------------------------------------------------- -String ScUndoAutoFormat::GetComment() const +rtl::OUString ScUndoAutoFormat::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_AUTOFORMAT ); //"Auto-Format" } @@ -1166,7 +1166,7 @@ void ScUndoReplace::SetChangeTrack() //---------------------------------------------------------------------------- -String ScUndoReplace::GetComment() const +rtl::OUString ScUndoReplace::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_REPLACE ); // "Ersetzen" } @@ -1344,7 +1344,7 @@ ScUndoTabOp::~ScUndoTabOp() //---------------------------------------------------------------------------- -String ScUndoTabOp::GetComment() const +rtl::OUString ScUndoTabOp::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_TABOP ); // "Mehrfachoperation" } @@ -1465,9 +1465,9 @@ void ScUndoConversion::SetChangeTrack() //---------------------------------------------------------------------------- -String ScUndoConversion::GetComment() const +rtl::OUString ScUndoConversion::GetComment() const { - String aText; + rtl::OUString aText; switch( maConvParam.GetType() ) { case SC_CONVERSION_SPELLCHECK: aText = ScGlobal::GetRscString( STR_UNDO_SPELLING ); break; @@ -1574,7 +1574,7 @@ ScUndoRefConversion::~ScUndoRefConversion() delete pRedoDoc; } -String ScUndoRefConversion::GetComment() const +rtl::OUString ScUndoRefConversion::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_ENTERDATA ); // "Eingabe" } @@ -1667,7 +1667,7 @@ ScUndoRefreshLink::~ScUndoRefreshLink() //---------------------------------------------------------------------------- -String ScUndoRefreshLink::GetComment() const +rtl::OUString ScUndoRefreshLink::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_UPDATELINK ); } @@ -1824,7 +1824,7 @@ ScUndoInsertAreaLink::~ScUndoInsertAreaLink() //---------------------------------------------------------------------------- -String ScUndoInsertAreaLink::GetComment() const +rtl::OUString ScUndoInsertAreaLink::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_INSERTAREALINK ); } @@ -1914,7 +1914,7 @@ ScUndoRemoveAreaLink::~ScUndoRemoveAreaLink() //---------------------------------------------------------------------------- -String ScUndoRemoveAreaLink::GetComment() const +rtl::OUString ScUndoRemoveAreaLink::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_REMOVELINK ); //! eigener Text ?? } @@ -2018,7 +2018,7 @@ ScUndoUpdateAreaLink::~ScUndoUpdateAreaLink() //---------------------------------------------------------------------------- -String ScUndoUpdateAreaLink::GetComment() const +rtl::OUString ScUndoUpdateAreaLink::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_UPDATELINK ); //! eigener Text ?? } diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx index 39efce652440..0e139dff5e59 100644 --- a/sc/source/ui/undo/undocell.cxx +++ b/sc/source/ui/undo/undocell.cxx @@ -101,7 +101,7 @@ ScUndoCursorAttr::~ScUndoCursorAttr() pPool->Remove(*pApplyPattern); } -String ScUndoCursorAttr::GetComment() const +rtl::OUString ScUndoCursorAttr::GetComment() const { //! eigener Text fuer automatische Attributierung @@ -222,7 +222,7 @@ ScUndoEnterData::~ScUndoEnterData() delete pNewEditData; } -String ScUndoEnterData::GetComment() const +rtl::OUString ScUndoEnterData::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_ENTERDATA ); // "Eingabe" } @@ -384,7 +384,7 @@ ScUndoEnterValue::~ScUndoEnterValue() pOldCell->Delete(); } -String ScUndoEnterValue::GetComment() const +rtl::OUString ScUndoEnterValue::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_ENTERDATA ); // "Eingabe" } @@ -470,7 +470,7 @@ ScUndoPutCell::~ScUndoPutCell() pEnteredCell->Delete(); } -String ScUndoPutCell::GetComment() const +rtl::OUString ScUndoPutCell::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_ENTERDATA ); // "Eingabe" } @@ -556,7 +556,7 @@ ScUndoPageBreak::~ScUndoPageBreak() { } -String ScUndoPageBreak::GetComment() const +rtl::OUString ScUndoPageBreak::GetComment() const { //"Spaltenumbruch" | "Zeilenumbruch" "einfuegen" | "loeschen" return String ( bColumn ? @@ -640,7 +640,7 @@ ScUndoPrintZoom::~ScUndoPrintZoom() { } -String ScUndoPrintZoom::GetComment() const +rtl::OUString ScUndoPrintZoom::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_PRINTSCALE ); } @@ -730,7 +730,7 @@ ScUndoThesaurus::~ScUndoThesaurus() delete pRedoTObject; } -String ScUndoThesaurus::GetComment() const +rtl::OUString ScUndoThesaurus::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_THESAURUS ); // "Thesaurus" } @@ -886,7 +886,7 @@ sal_Bool ScUndoReplaceNote::CanRepeat( SfxRepeatTarget& /*rTarget*/ ) const return false; } -String ScUndoReplaceNote::GetComment() const +rtl::OUString ScUndoReplaceNote::GetComment() const { return ScGlobal::GetRscString( maNewData.mpCaption ? (maOldData.mpCaption ? STR_UNDO_EDITNOTE : STR_UNDO_INSERTNOTE) : STR_UNDO_DELETENOTE ); @@ -958,7 +958,7 @@ sal_Bool ScUndoShowHideNote::CanRepeat( SfxRepeatTarget& /*rTarget*/ ) const return false; } -String ScUndoShowHideNote::GetComment() const +rtl::OUString ScUndoShowHideNote::GetComment() const { return ScGlobal::GetRscString( mbShown ? STR_UNDO_SHOWNOTE : STR_UNDO_HIDENOTE ); } @@ -992,7 +992,7 @@ ScUndoDetective::~ScUndoDetective() delete pOldList; } -String ScUndoDetective::GetComment() const +rtl::OUString ScUndoDetective::GetComment() const { sal_uInt16 nId = STR_UNDO_DETDELALL; if ( !bIsDelete ) @@ -1096,7 +1096,7 @@ ScUndoRangeNames::~ScUndoRangeNames() delete pNewRanges; } -String ScUndoRangeNames::GetComment() const +rtl::OUString ScUndoRangeNames::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_RANGENAMES ); } diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx index 8e0464e3db1c..df7688539792 100644 --- a/sc/source/ui/undo/undodat.cxx +++ b/sc/source/ui/undo/undodat.cxx @@ -104,7 +104,7 @@ ScUndoDoOutline::~ScUndoDoOutline() delete pUndoDoc; } -String ScUndoDoOutline::GetComment() const +rtl::OUString ScUndoDoOutline::GetComment() const { // Detail einblenden" "Detail ausblenden" return bShow ? ScGlobal::GetRscString( STR_UNDO_DOOUTLINE ) : @@ -197,7 +197,7 @@ ScUndoMakeOutline::~ScUndoMakeOutline() delete pUndoTable; } -String ScUndoMakeOutline::GetComment() const +rtl::OUString ScUndoMakeOutline::GetComment() const { // "Gruppierung" "Gruppierung aufheben" return bMake ? ScGlobal::GetRscString( STR_UNDO_MAKEOUTLINE ) : @@ -286,7 +286,7 @@ ScUndoOutlineLevel::~ScUndoOutlineLevel() delete pUndoTable; } -String ScUndoOutlineLevel::GetComment() const +rtl::OUString ScUndoOutlineLevel::GetComment() const { // "Gliederungsebene auswaehlen"; return ScGlobal::GetRscString( STR_UNDO_OUTLINELEVEL ); } @@ -374,7 +374,7 @@ ScUndoOutlineBlock::~ScUndoOutlineBlock() delete pUndoTable; } -String ScUndoOutlineBlock::GetComment() const +rtl::OUString ScUndoOutlineBlock::GetComment() const { // "Detail einblenden" "Detail ausblenden" return bShow ? ScGlobal::GetRscString( STR_UNDO_DOOUTLINEBLK ) : @@ -481,7 +481,7 @@ ScUndoRemoveAllOutlines::~ScUndoRemoveAllOutlines() delete pUndoTable; } -String ScUndoRemoveAllOutlines::GetComment() const +rtl::OUString ScUndoRemoveAllOutlines::GetComment() const { // "Gliederung entfernen" return ScGlobal::GetRscString( STR_UNDO_REMOVEALLOTLNS ); } @@ -572,7 +572,7 @@ ScUndoAutoOutline::~ScUndoAutoOutline() delete pUndoTable; } -String ScUndoAutoOutline::GetComment() const +rtl::OUString ScUndoAutoOutline::GetComment() const { // "Auto-Gliederung" return ScGlobal::GetRscString( STR_UNDO_AUTOOUTLINE ); } @@ -687,7 +687,7 @@ ScUndoSubTotals::~ScUndoSubTotals() delete pUndoDB; } -String ScUndoSubTotals::GetComment() const +rtl::OUString ScUndoSubTotals::GetComment() const { // "Teilergebnisse" return ScGlobal::GetRscString( STR_UNDO_SUBTOTALS ); } @@ -818,7 +818,7 @@ ScUndoSort::~ScUndoSort() delete pUndoDB; } -String ScUndoSort::GetComment() const +rtl::OUString ScUndoSort::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_SORT ); } @@ -949,7 +949,7 @@ ScUndoQuery::~ScUndoQuery() DeleteSdrUndoAction( pDrawUndo ); } -String ScUndoQuery::GetComment() const +rtl::OUString ScUndoQuery::GetComment() const { // "Filtern"; return ScGlobal::GetRscString( STR_UNDO_QUERY ); } @@ -1100,7 +1100,7 @@ ScUndoAutoFilter::~ScUndoAutoFilter() { } -String ScUndoAutoFilter::GetComment() const +rtl::OUString ScUndoAutoFilter::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_QUERY ); // same as ScUndoQuery } @@ -1183,7 +1183,7 @@ ScUndoDBData::~ScUndoDBData() delete pRedoColl; } -String ScUndoDBData::GetComment() const +rtl::OUString ScUndoDBData::GetComment() const { // "Datenbankbereiche aendern"; return ScGlobal::GetRscString( STR_UNDO_DBDATA ); } @@ -1265,7 +1265,7 @@ ScUndoImportData::~ScUndoImportData() delete pRedoDBData; } -String ScUndoImportData::GetComment() const +rtl::OUString ScUndoImportData::GetComment() const { // "Importieren"; return ScGlobal::GetRscString( STR_UNDO_IMPORTDATA ); } @@ -1493,7 +1493,7 @@ ScUndoRepeatDB::~ScUndoRepeatDB() delete pUndoDB; } -String ScUndoRepeatDB::GetComment() const +rtl::OUString ScUndoRepeatDB::GetComment() const { // "Wiederholen"; //! bessere Beschreibung! return ScGlobal::GetRscString( STR_UNDO_REPEATDB ); } @@ -1657,7 +1657,7 @@ ScUndoDataPilot::~ScUndoDataPilot() delete pNewUndoDoc; } -String ScUndoDataPilot::GetComment() const +rtl::OUString ScUndoDataPilot::GetComment() const { sal_uInt16 nIndex; if ( pOldUndoDoc && pNewUndoDoc ) @@ -1820,7 +1820,7 @@ ScUndoConsolidate::~ScUndoConsolidate() delete pUndoData; } -String ScUndoConsolidate::GetComment() const +rtl::OUString ScUndoConsolidate::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_CONSOLIDATE ); } @@ -1984,7 +1984,7 @@ ScUndoChartData::~ScUndoChartData() { } -String ScUndoChartData::GetComment() const +rtl::OUString ScUndoChartData::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_CHARTDATA ); } @@ -2058,7 +2058,7 @@ ScUndoDataForm::~ScUndoDataForm() delete pRefRedoData; } -String ScUndoDataForm::GetComment() const +rtl::OUString ScUndoDataForm::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_PASTE ); } diff --git a/sc/source/ui/undo/undodraw.cxx b/sc/source/ui/undo/undodraw.cxx index 8bc0c1c7922f..aa2444d5477e 100644 --- a/sc/source/ui/undo/undodraw.cxx +++ b/sc/source/ui/undo/undodraw.cxx @@ -58,12 +58,11 @@ void ScUndoDraw::ForgetDrawUndo() pDrawUndo = NULL; // nicht loeschen (Draw-Undo muss dann von aussen gemerkt werden) } -String ScUndoDraw::GetComment() const +rtl::OUString ScUndoDraw::GetComment() const { if (pDrawUndo) return pDrawUndo->GetComment(); - else - return String(); + return rtl::OUString(); } String ScUndoDraw::GetRepeatComment(SfxRepeatTarget& rTarget) const diff --git a/sc/source/ui/undo/undorangename.cxx b/sc/source/ui/undo/undorangename.cxx index 9bf31b265ef0..9330c3680fcb 100644 --- a/sc/source/ui/undo/undorangename.cxx +++ b/sc/source/ui/undo/undorangename.cxx @@ -87,7 +87,7 @@ sal_Bool ScUndoAllRangeNames::CanRepeat(SfxRepeatTarget& /*rTarget*/) const return sal_False; } -String ScUndoAllRangeNames::GetComment() const +rtl::OUString ScUndoAllRangeNames::GetComment() const { return ScGlobal::GetRscString(STR_UNDO_RANGENAMES); } @@ -160,7 +160,7 @@ sal_Bool ScUndoAddRangeData::CanRepeat(SfxRepeatTarget& /*rTarget*/) const return sal_False; } -String ScUndoAddRangeData::GetComment() const +rtl::OUString ScUndoAddRangeData::GetComment() const { return ScGlobal::GetRscString(STR_UNDO_RANGENAMES); } diff --git a/sc/source/ui/undo/undostyl.cxx b/sc/source/ui/undo/undostyl.cxx index 48f2fa9a9d76..4de3c28cb3b9 100644 --- a/sc/source/ui/undo/undostyl.cxx +++ b/sc/source/ui/undo/undostyl.cxx @@ -115,7 +115,7 @@ ScUndoModifyStyle::~ScUndoModifyStyle() { } -String ScUndoModifyStyle::GetComment() const +rtl::OUString ScUndoModifyStyle::GetComment() const { sal_uInt16 nId = (eFamily == SFX_STYLE_FAMILY_PARA) ? STR_UNDO_EDITCELLSTYLE : @@ -269,7 +269,7 @@ void ScUndoApplyPageStyle::AddSheetAction( SCTAB nTab, const String& rOldStyle ) maEntries.push_back( ApplyStyleEntry( nTab, rOldStyle ) ); } -String ScUndoApplyPageStyle::GetComment() const +rtl::OUString ScUndoApplyPageStyle::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_APPLYPAGESTYLE ); } diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx index a49cae9859c3..ac86110ec067 100644 --- a/sc/source/ui/undo/undotab.cxx +++ b/sc/source/ui/undo/undotab.cxx @@ -111,7 +111,7 @@ ScUndoInsertTab::~ScUndoInsertTab() DeleteSdrUndoAction( pDrawUndo ); } -String ScUndoInsertTab::GetComment() const +rtl::OUString ScUndoInsertTab::GetComment() const { if (bAppend) return ScGlobal::GetRscString( STR_UNDO_APPEND_TAB ); @@ -210,7 +210,7 @@ ScUndoInsertTables::~ScUndoInsertTables() DeleteSdrUndoAction( pDrawUndo ); } -String ScUndoInsertTables::GetComment() const +rtl::OUString ScUndoInsertTables::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_INSERT_TAB ); } @@ -306,7 +306,7 @@ ScUndoDeleteTab::~ScUndoDeleteTab() theTabs.clear(); } -String ScUndoDeleteTab::GetComment() const +rtl::OUString ScUndoDeleteTab::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_DELETE_TAB ); } @@ -473,7 +473,7 @@ ScUndoRenameTab::~ScUndoRenameTab() { } -String ScUndoRenameTab::GetComment() const +rtl::OUString ScUndoRenameTab::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_RENAME_TAB ); } @@ -541,7 +541,7 @@ ScUndoMoveTab::~ScUndoMoveTab() { } -String ScUndoMoveTab::GetComment() const +rtl::OUString ScUndoMoveTab::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_MOVE_TAB ); } @@ -654,7 +654,7 @@ ScUndoCopyTab::~ScUndoCopyTab() DeleteSdrUndoAction( pDrawUndo ); } -String ScUndoCopyTab::GetComment() const +rtl::OUString ScUndoCopyTab::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_COPY_TAB ); } @@ -799,7 +799,7 @@ ScUndoTabColor::~ScUndoTabColor() { } -String ScUndoTabColor::GetComment() const +rtl::OUString ScUndoTabColor::GetComment() const { if (aTabColorList.size() > 1) return ScGlobal::GetRscString(STR_UNDO_SET_MULTI_TAB_BG_COLOR); @@ -873,7 +873,7 @@ ScUndoMakeScenario::~ScUndoMakeScenario() DeleteSdrUndoAction( pDrawUndo ); } -String ScUndoMakeScenario::GetComment() const +rtl::OUString ScUndoMakeScenario::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_MAKESCENARIO ); } @@ -961,7 +961,7 @@ ScUndoImportTab::~ScUndoImportTab() DeleteSdrUndoAction( pDrawUndo ); } -String ScUndoImportTab::GetComment() const +rtl::OUString ScUndoImportTab::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_INSERT_TAB ); } @@ -1148,7 +1148,7 @@ ScUndoRemoveLink::~ScUndoRemoveLink() delete[] pTabNames; } -String ScUndoRemoveLink::GetComment() const +rtl::OUString ScUndoRemoveLink::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_REMOVELINK ); } @@ -1238,7 +1238,7 @@ sal_Bool ScUndoShowHideTab::CanRepeat(SfxRepeatTarget& rTarget) const return (rTarget.ISA(ScTabViewTarget)); } -String ScUndoShowHideTab::GetComment() const +rtl::OUString ScUndoShowHideTab::GetComment() const { sal_uInt16 nId = bShow ? STR_UNDO_SHOWTAB : STR_UNDO_HIDETAB; return ScGlobal::GetRscString( nId ); @@ -1311,7 +1311,7 @@ sal_Bool ScUndoDocProtect::CanRepeat(SfxRepeatTarget& /* rTarget */) const return false; // gippsnich } -String ScUndoDocProtect::GetComment() const +rtl::OUString ScUndoDocProtect::GetComment() const { sal_uInt16 nId = mpProtectSettings->isProtected() ? STR_UNDO_PROTECT_DOC : STR_UNDO_UNPROTECT_DOC; return ScGlobal::GetRscString( nId ); @@ -1385,7 +1385,7 @@ sal_Bool ScUndoTabProtect::CanRepeat(SfxRepeatTarget& /* rTarget */) const return false; // gippsnich } -String ScUndoTabProtect::GetComment() const +rtl::OUString ScUndoTabProtect::GetComment() const { sal_uInt16 nId = mpProtectSettings->isProtected() ? STR_UNDO_PROTECT_TAB : STR_UNDO_UNPROTECT_TAB; return ScGlobal::GetRscString( nId ); @@ -1452,7 +1452,7 @@ sal_Bool ScUndoPrintRange::CanRepeat(SfxRepeatTarget& /* rTarget */) const return false; // gippsnich } -String ScUndoPrintRange::GetComment() const +rtl::OUString ScUndoPrintRange::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_PRINTRANGES ); } @@ -1485,7 +1485,7 @@ ScUndoScenarioFlags::~ScUndoScenarioFlags() { } -String ScUndoScenarioFlags::GetComment() const +rtl::OUString ScUndoScenarioFlags::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_EDITSCENARIO ); } @@ -1554,7 +1554,7 @@ ScUndoRenameObject::~ScUndoRenameObject() { } -String ScUndoRenameObject::GetComment() const +rtl::OUString ScUndoRenameObject::GetComment() const { // string resource shared with title for dialog return String( ScResId(SCSTR_RENAMEOBJECT) ); @@ -1671,7 +1671,7 @@ sal_Bool ScUndoLayoutRTL::CanRepeat(SfxRepeatTarget& rTarget) const return (rTarget.ISA(ScTabViewTarget)); } -String ScUndoLayoutRTL::GetComment() const +rtl::OUString ScUndoLayoutRTL::GetComment() const { return ScGlobal::GetRscString( STR_UNDO_TAB_RTL ); } |