summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-14 08:34:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-05-14 14:34:09 +0100
commitc182a752412aab354aaf02ee0c75b7cb1ee35d66 (patch)
treee4ee080ed6a7c5f665a33c52ad9d1e3a56b6031b /sc
parentformulas in color scales should not be changed to external references (diff)
downloadcore-c182a752412aab354aaf02ee0c75b7cb1ee35d66.tar.gz
core-c182a752412aab354aaf02ee0c75b7cb1ee35d66.zip
convert GetComment family to rtl::OUString
Change-Id: I563ab83a24ca4f839892548b350486e83dd071d3
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/undorangename.hxx4
-rw-r--r--sc/source/ui/inc/undobase.hxx8
-rw-r--r--sc/source/ui/inc/undoblk.hxx70
-rw-r--r--sc/source/ui/inc/undocell.hxx22
-rw-r--r--sc/source/ui/inc/undodat.hxx34
-rw-r--r--sc/source/ui/inc/undodraw.hxx8
-rw-r--r--sc/source/ui/inc/undostyl.hxx4
-rw-r--r--sc/source/ui/inc/undotab.hxx34
-rw-r--r--sc/source/ui/undo/undobase.cxx5
-rw-r--r--sc/source/ui/undo/undoblk.cxx32
-rw-r--r--sc/source/ui/undo/undoblk2.cxx2
-rw-r--r--sc/source/ui/undo/undoblk3.cxx30
-rw-r--r--sc/source/ui/undo/undocell.cxx22
-rw-r--r--sc/source/ui/undo/undodat.cxx34
-rw-r--r--sc/source/ui/undo/undodraw.cxx5
-rw-r--r--sc/source/ui/undo/undorangename.cxx4
-rw-r--r--sc/source/ui/undo/undostyl.cxx4
-rw-r--r--sc/source/ui/undo/undotab.cxx34
18 files changed, 177 insertions, 179 deletions
diff --git a/sc/inc/undorangename.hxx b/sc/inc/undorangename.hxx
index 8a252c259b39..4f962dd66594 100644
--- a/sc/inc/undorangename.hxx
+++ b/sc/inc/undorangename.hxx
@@ -51,7 +51,7 @@ public:
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
void DoChange(const boost::ptr_map<rtl::OUString, ScRangeName>& rNames);
@@ -73,7 +73,7 @@ public:
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScRangeData* mpRangeData;
diff --git a/sc/source/ui/inc/undobase.hxx b/sc/source/ui/inc/undobase.hxx
index f997c2a6b7ee..d625464e20ca 100644
--- a/sc/source/ui/inc/undobase.hxx
+++ b/sc/source/ui/inc/undobase.hxx
@@ -187,11 +187,11 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual sal_Bool Merge( SfxUndoAction *pNextAction );
- virtual String GetComment() const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool Merge( SfxUndoAction *pNextAction );
+ virtual rtl::OUString GetComment() const;
virtual String GetRepeatComment(SfxRepeatTarget&) const;
- virtual sal_uInt16 GetId() const;
+ virtual sal_uInt16 GetId() const;
};
diff --git a/sc/source/ui/inc/undoblk.hxx b/sc/source/ui/inc/undoblk.hxx
index 255c59a27f54..6d5d20eebebb 100644
--- a/sc/source/ui/inc/undoblk.hxx
+++ b/sc/source/ui/inc/undoblk.hxx
@@ -68,7 +68,7 @@ public:
virtual void Repeat( SfxRepeatTarget& rTarget );
virtual sal_Bool CanRepeat( SfxRepeatTarget& rTarget ) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
virtual sal_Bool Merge( SfxUndoAction *pNextAction );
@@ -101,7 +101,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScRange aEffRange;
@@ -132,7 +132,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
sal_Bool bRows;
@@ -164,7 +164,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScMarkData aMarkData;
@@ -213,7 +213,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScMarkData aMarkData;
@@ -247,7 +247,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScRange aSrcRange;
@@ -280,7 +280,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScRange aRange;
@@ -314,7 +314,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScRange aRange;
@@ -353,7 +353,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
ScEditDataArray* GetDataArray();
private:
@@ -389,9 +389,9 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScMarkData aMarkData;
@@ -427,7 +427,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScRange aSource;
@@ -459,7 +459,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScCellMergeOption maOption;
@@ -486,7 +486,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScDocument* pUndoDoc; // geloeschte Daten
@@ -512,7 +512,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScAddress aCursorPos;
@@ -547,7 +547,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScRange aRange;
@@ -575,9 +575,9 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScMarkData aMarkData;
@@ -605,9 +605,9 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScMarkData aMarkData;
@@ -637,7 +637,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScDocument* pUndoDoc;
@@ -660,9 +660,9 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScDocument* pUndoDoc;
@@ -688,7 +688,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
virtual sal_uInt16 GetId() const;
private:
@@ -714,7 +714,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScDocument* pUndoDoc;
@@ -737,7 +737,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScDocument* pUndoDoc;
@@ -766,7 +766,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
String aDocName;
@@ -794,7 +794,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
String aDocName;
@@ -828,7 +828,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
String aOldDoc;
@@ -864,7 +864,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScMarkData aMarkData;
@@ -886,7 +886,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScMarkData aMarkData;
@@ -908,7 +908,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScMarkData aMarkData;
@@ -930,7 +930,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -952,7 +952,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
void SetCurTab();
@@ -978,7 +978,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScDocument* pUndoDoc;
diff --git a/sc/source/ui/inc/undocell.hxx b/sc/source/ui/inc/undocell.hxx
index 3ff3127bba39..0b870c6481e2 100644
--- a/sc/source/ui/inc/undocell.hxx
+++ b/sc/source/ui/inc/undocell.hxx
@@ -60,7 +60,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
/** once the objects are passed to this class, their life-cycle is
managed by this class; the calling function must pass new'ed
@@ -98,7 +98,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
String aNewString;
@@ -132,7 +132,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScAddress aPos;
@@ -159,7 +159,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScAddress aPos;
@@ -186,7 +186,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCCOL nCol;
@@ -211,7 +211,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -238,7 +238,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCCOL nCol;
@@ -286,7 +286,7 @@ public:
virtual void Repeat( SfxRepeatTarget& rTarget );
virtual sal_Bool CanRepeat( SfxRepeatTarget& rTarget ) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
void DoInsertNote( const ScNoteData& rNoteData );
@@ -314,7 +314,7 @@ public:
virtual void Repeat( SfxRepeatTarget& rTarget );
virtual sal_Bool CanRepeat( SfxRepeatTarget& rTarget ) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScAddress maPos;
@@ -337,7 +337,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
sal_Bool bIsDelete;
@@ -362,7 +362,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScRangeName* pOldRanges;
diff --git a/sc/source/ui/inc/undodat.hxx b/sc/source/ui/inc/undodat.hxx
index 9c47c40a564b..6966dd37d9e7 100644
--- a/sc/source/ui/inc/undodat.hxx
+++ b/sc/source/ui/inc/undodat.hxx
@@ -66,7 +66,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCCOLROW nStart;
@@ -96,7 +96,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScAddress aBlockStart;
@@ -122,7 +122,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCCOLROW nStart;
@@ -151,7 +151,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScAddress aBlockStart;
@@ -177,7 +177,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScAddress aBlockStart;
@@ -202,7 +202,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScAddress aBlockStart;
@@ -228,7 +228,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -257,7 +257,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -285,7 +285,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SdrUndoAction* pDrawUndo;
@@ -320,7 +320,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
};
@@ -337,7 +337,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScDBCollection* pUndoColl;
@@ -361,7 +361,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -394,7 +394,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScAddress aBlockStart;
@@ -426,7 +426,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScDocument* pOldUndoDoc;
@@ -453,7 +453,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScArea aDestArea;
@@ -483,7 +483,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
String aChartName;
@@ -519,7 +519,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
boost::scoped_ptr<ScMarkData> mpMarkData;
diff --git a/sc/source/ui/inc/undodraw.hxx b/sc/source/ui/inc/undodraw.hxx
index 95b2dc63c2b8..7155215cf569 100644
--- a/sc/source/ui/inc/undodraw.hxx
+++ b/sc/source/ui/inc/undodraw.hxx
@@ -53,11 +53,11 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual sal_Bool Merge( SfxUndoAction *pNextAction );
- virtual String GetComment() const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool Merge( SfxUndoAction *pNextAction );
+ virtual rtl::OUString GetComment() const;
virtual String GetRepeatComment(SfxRepeatTarget&) const;
- virtual sal_uInt16 GetId() const;
+ virtual sal_uInt16 GetId() const;
};
diff --git a/sc/source/ui/inc/undostyl.hxx b/sc/source/ui/inc/undostyl.hxx
index f5069ab031b0..03e8819a66ce 100644
--- a/sc/source/ui/inc/undostyl.hxx
+++ b/sc/source/ui/inc/undostyl.hxx
@@ -81,7 +81,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
};
class ScUndoApplyPageStyle: public ScSimpleUndo
@@ -98,7 +98,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
struct ApplyStyleEntry
diff --git a/sc/source/ui/inc/undotab.hxx b/sc/source/ui/inc/undotab.hxx
index d2dfedfe36c4..61200daed6e7 100644
--- a/sc/source/ui/inc/undotab.hxx
+++ b/sc/source/ui/inc/undotab.hxx
@@ -69,7 +69,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
String sNewName;
@@ -97,7 +97,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
@@ -128,7 +128,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
std::vector<SCTAB> theTabs;
@@ -155,7 +155,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -184,7 +184,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
::boost::shared_ptr< ::std::vector<SCTAB> > mpOldTabs;
@@ -213,7 +213,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
::boost::shared_ptr< ::std::vector<SCTAB> > mpOldTabs;
@@ -243,7 +243,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
-virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
ScUndoTabColorInfo::List aTabColorList;
@@ -269,7 +269,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
boost::scoped_ptr<ScMarkData> mpMarkData;
@@ -298,7 +298,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -325,7 +325,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
String aDocName;
@@ -355,7 +355,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -381,7 +381,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SAL_WNODEPRECATED_DECLARATIONS_PUSH
@@ -409,7 +409,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB mnTab;
@@ -434,7 +434,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -463,7 +463,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
@@ -493,7 +493,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
String aPersistName; // to find object (works only for OLE objects)
@@ -516,7 +516,7 @@ public:
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual String GetComment() const;
+ virtual rtl::OUString GetComment() const;
private:
SCTAB nTab;
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 );
}