summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-27 11:44:22 +0200
committerNoel Grandin <noel@peralex.com>2013-10-04 08:48:59 +0200
commit568c45f37f78c87ec11ee81ed51d0fa9fe83495e (patch)
treec06ee54acb3930c6556b57f6b77d98fa8498288a /sc/source
parentb476614e28cde3a4c3e8ef966c6cb5fc0e8a1ba0 (diff)
convert sc/source/ui/inc/c*.hxx from String to OUString
Change-Id: I364aeba561a0f6688924fddc55634f83fe5045f6
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/condformat/condformatmgr.cxx2
-rw-r--r--sc/source/ui/dbgui/csvgrid.cxx22
-rw-r--r--sc/source/ui/dbgui/csvtablebox.cxx2
-rw-r--r--sc/source/ui/inc/cellsh.hxx4
-rw-r--r--sc/source/ui/inc/condformatmgr.hxx2
-rw-r--r--sc/source/ui/inc/conflictsdlg.hxx12
-rw-r--r--sc/source/ui/inc/consdlg.hxx2
-rw-r--r--sc/source/ui/inc/content.hxx10
-rw-r--r--sc/source/ui/inc/crdlg.hxx4
-rw-r--r--sc/source/ui/inc/csvcontrol.hxx2
-rw-r--r--sc/source/ui/inc/csvgrid.hxx6
-rw-r--r--sc/source/ui/inc/csvtablebox.hxx2
-rw-r--r--sc/source/ui/miscdlgs/conflictsdlg.cxx4
-rw-r--r--sc/source/ui/miscdlgs/crdlg.cxx4
-rw-r--r--sc/source/ui/navipi/content.cxx18
-rw-r--r--sc/source/ui/view/cellsh1.cxx6
16 files changed, 51 insertions, 51 deletions
diff --git a/sc/source/ui/condformat/condformatmgr.cxx b/sc/source/ui/condformat/condformatmgr.cxx
index 4677b4603896..bc608f074540 100644
--- a/sc/source/ui/condformat/condformatmgr.cxx
+++ b/sc/source/ui/condformat/condformatmgr.cxx
@@ -52,7 +52,7 @@ ScCondFormatManagerWindow::ScCondFormatManagerWindow(Window* pParent, ScDocument
SetSelectionMode(MULTIPLE_SELECTION);
}
-String ScCondFormatManagerWindow::createEntryString(const ScConditionalFormat& rFormat)
+OUString ScCondFormatManagerWindow::createEntryString(const ScConditionalFormat& rFormat)
{
ScRangeList aRange = rFormat.GetRange();
String aStr;
diff --git a/sc/source/ui/dbgui/csvgrid.cxx b/sc/source/ui/dbgui/csvgrid.cxx
index 339545468d2c..42e09d8b93d6 100644
--- a/sc/source/ui/dbgui/csvgrid.cxx
+++ b/sc/source/ui/dbgui/csvgrid.cxx
@@ -501,10 +501,10 @@ void ScCsvGrid::SetTypeNames( const StringVec& rTypeNames )
::std::for_each( maColStates.begin(), maColStates.end(), Func_SetType( CSV_TYPE_DEFAULT ) );
}
-const String& ScCsvGrid::GetColumnTypeName( sal_uInt32 nColIndex ) const
+const OUString& ScCsvGrid::GetColumnTypeName( sal_uInt32 nColIndex ) const
{
sal_uInt32 nTypeIx = static_cast< sal_uInt32 >( GetColumnType( nColIndex ) );
- return (nTypeIx < maTypeNames.size()) ? maTypeNames[ nTypeIx ] : EMPTY_STRING;
+ return (nTypeIx < maTypeNames.size()) ? maTypeNames[ nTypeIx ] : EMPTY_OUSTRING;
}
static sal_uInt8 lcl_GetExtColumnType( sal_Int32 nIntType )
@@ -804,15 +804,15 @@ void ScCsvGrid::ImplSetTextLineFix( sal_Int32 nLine, const OUString& rTextLine )
InvalidateGfx();
}
-const String& ScCsvGrid::GetCellText( sal_uInt32 nColIndex, sal_Int32 nLine ) const
+const OUString& ScCsvGrid::GetCellText( sal_uInt32 nColIndex, sal_Int32 nLine ) const
{
- if( nLine < GetFirstVisLine() ) return EMPTY_STRING;
+ if( nLine < GetFirstVisLine() ) return EMPTY_OUSTRING;
sal_uInt32 nLineIx = nLine - GetFirstVisLine();
- if( nLineIx >= maTexts.size() ) return EMPTY_STRING;
+ if( nLineIx >= maTexts.size() ) return EMPTY_OUSTRING;
const StringVec& rStrVec = maTexts[ nLineIx ];
- if( nColIndex >= rStrVec.size() ) return EMPTY_STRING;
+ if( nColIndex >= rStrVec.size() ) return EMPTY_OUSTRING;
return rStrVec[ nColIndex ];
}
@@ -1061,7 +1061,7 @@ void ScCsvGrid::ImplDrawColumnHeader( OutputDevice& rOutDev, sal_uInt32 nColInde
rOutDev.DrawLine( Point( nX2, 0 ), Point( nX2, nHdrHt ) );
}
-void ScCsvGrid::ImplDrawCellText( const Point& rPos, const String& rText )
+void ScCsvGrid::ImplDrawCellText( const Point& rPos, const OUString& rText )
{
String aPlainText( rText );
aPlainText.SearchAndReplaceAll( '\t', ' ' );
@@ -1085,8 +1085,8 @@ void ScCsvGrid::ImplDrawCellText( const Point& rPos, const String& rText )
}
}
- xub_StrLen nCharIx = 0;
- while( (nCharIx = rText.Search( '\t', nCharIx )) != STRING_NOTFOUND )
+ sal_Int32 nCharIx = 0;
+ while( (nCharIx = rText.indexOf( '\t', nCharIx )) != -1 )
{
sal_Int32 nX1 = rPos.X() + GetCharWidth() * nCharIx;
sal_Int32 nX2 = nX1 + GetCharWidth() - 2;
@@ -1099,7 +1099,7 @@ void ScCsvGrid::ImplDrawCellText( const Point& rPos, const String& rText )
++nCharIx;
}
nCharIx = 0;
- while( (nCharIx = rText.Search( '\n', nCharIx )) != STRING_NOTFOUND )
+ while( (nCharIx = rText.indexOf( '\n', nCharIx )) != -1 )
{
sal_Int32 nX1 = rPos.X() + GetCharWidth() * nCharIx;
sal_Int32 nX2 = nX1 + GetCharWidth() - 2;
@@ -1158,7 +1158,7 @@ void ScCsvGrid::ImplDrawColumnBackgr( sal_uInt32 nColIndex )
for( size_t nLine = 0; nLine < nLineCount; ++nLine )
{
StringVec& rStrVec = maTexts[ nLine ];
- if( (nColIndex < rStrVec.size()) && (rStrVec[ nColIndex ].Len() > nStrPos) )
+ if( (nColIndex < rStrVec.size()) && (rStrVec[ nColIndex ].getLength() > nStrPos) )
{
String aText( rStrVec[ nColIndex ], nStrPos, nStrLen );
ImplDrawCellText( Point( nStrX, GetY( GetFirstVisLine() + nLine ) ), aText );
diff --git a/sc/source/ui/dbgui/csvtablebox.cxx b/sc/source/ui/dbgui/csvtablebox.cxx
index d02a32032bbf..3822d16c6c62 100644
--- a/sc/source/ui/dbgui/csvtablebox.cxx
+++ b/sc/source/ui/dbgui/csvtablebox.cxx
@@ -190,7 +190,7 @@ void ScCsvTableBox::MakePosVisible( sal_Int32 nPos )
// cell contents --------------------------------------------------------------
void ScCsvTableBox::SetUniStrings(
- const OUString* pTextLines, const String& rSepChars,
+ const OUString* pTextLines, const OUString& rSepChars,
sal_Unicode cTextSep, bool bMergeSep )
{
// assuming that pTextLines is a string array with size CSV_PREVIEW_LINES
diff --git a/sc/source/ui/inc/cellsh.hxx b/sc/source/ui/inc/cellsh.hxx
index ceac28ad9bbb..b44eb9f25904 100644
--- a/sc/source/ui/inc/cellsh.hxx
+++ b/sc/source/ui/inc/cellsh.hxx
@@ -54,8 +54,8 @@ private:
void GetPossibleClipboardFormats( SvxClipboardFmtItem& rFormats );
void ExecuteExternalSource(
- const String& _rFile, const String& _rFilter, const String& _rOptions,
- const String& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest );
+ const OUString& _rFile, const OUString& _rFilter, const OUString& _rOptions,
+ const OUString& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest );
void ExecuteDataPilotDialog();
void ExecuteXMLSourceDialog();
diff --git a/sc/source/ui/inc/condformatmgr.hxx b/sc/source/ui/inc/condformatmgr.hxx
index 45bd6998c00c..a8dbd3c7d6dc 100644
--- a/sc/source/ui/inc/condformatmgr.hxx
+++ b/sc/source/ui/inc/condformatmgr.hxx
@@ -25,7 +25,7 @@ class ScCondFormatManagerWindow : public SvTabListBox
{
private:
void Init();
- String createEntryString(const ScConditionalFormat& rFormat);
+ OUString createEntryString(const ScConditionalFormat& rFormat);
HeaderBar maHeaderBar;
ScDocument* mpDoc;
diff --git a/sc/source/ui/inc/conflictsdlg.hxx b/sc/source/ui/inc/conflictsdlg.hxx
index 64e56ee3e3e0..a21a7d9c45fd 100644
--- a/sc/source/ui/inc/conflictsdlg.hxx
+++ b/sc/source/ui/inc/conflictsdlg.hxx
@@ -148,10 +148,10 @@ private:
CancelButton maBtnCancel;
HelpButton maBtnHelp;
- String maStrTitleConflict;
- String maStrTitleAuthor;
- String maStrTitleDate;
- String maStrUnknownUser;
+ OUString maStrTitleConflict;
+ OUString maStrTitleAuthor;
+ OUString maStrTitleDate;
+ OUString maStrUnknownUser;
ScViewData* mpViewData;
ScDocument* mpOwnDoc;
@@ -165,8 +165,8 @@ private:
bool mbInSelectHdl;
bool mbInDeselectHdl;
- String GetConflictString( const ScConflictsListEntry& rConflictEntry );
- String GetActionString( const ScChangeAction* pAction, ScDocument* pDoc );
+ OUString GetConflictString( const ScConflictsListEntry& rConflictEntry );
+ OUString GetActionString( const ScChangeAction* pAction, ScDocument* pDoc );
void HandleListBoxSelection( bool bSelectHandle );
void SetConflictAction( SvTreeListEntry* pRootEntry, ScConflictAction eConflictAction );
diff --git a/sc/source/ui/inc/consdlg.hxx b/sc/source/ui/inc/consdlg.hxx
index 8dd89d6f010b..4120f317d188 100644
--- a/sc/source/ui/inc/consdlg.hxx
+++ b/sc/source/ui/inc/consdlg.hxx
@@ -76,7 +76,7 @@ private:
PushButton* pBtnAdd;
PushButton* pBtnRemove;
- String aStrUndefined;
+ OUString aStrUndefined;
ScConsolidateParam theConsData;
ScViewData* pViewData;
diff --git a/sc/source/ui/inc/content.hxx b/sc/source/ui/inc/content.hxx
index 50aa6aa74e54..78a3cb92ac13 100644
--- a/sc/source/ui/inc/content.hxx
+++ b/sc/source/ui/inc/content.hxx
@@ -51,7 +51,7 @@ class ScContentTree : public SvTreeListBox
sal_uInt16 nRootType; // set as Root
OUString aManualDoc; // Switched in Navigator (Title)
sal_Bool bHiddenDoc; // Hidden active?
- String aHiddenName; // URL to load
+ OUString aHiddenName; // URL to load
OUString aHiddenTitle; // for display
ScDocument* pHiddenDocument; // temporary
@@ -64,7 +64,7 @@ class ScContentTree : public SvTreeListBox
void InitRoot(sal_uInt16 nType);
void ClearType(sal_uInt16 nType);
void ClearAll();
- void InsertContent( sal_uInt16 nType, const String& rValue );
+ void InsertContent( sal_uInt16 nType, const OUString& rValue );
void GetDrawNames( sal_uInt16 nType );
void GetTableNames();
@@ -133,9 +133,9 @@ public:
void ActiveDocChanged();
void ResetManualDoc();
- void SetManualDoc(const String& rName);
- sal_Bool LoadFile(const String& rUrl);
- void SelectDoc(const String& rName);
+ void SetManualDoc(const OUString& rName);
+ sal_Bool LoadFile(const OUString& rUrl);
+ void SelectDoc(const OUString& rName);
const OUString& GetHiddenTitle() const { return aHiddenTitle; }
diff --git a/sc/source/ui/inc/crdlg.hxx b/sc/source/ui/inc/crdlg.hxx
index ccf59d02e0c0..fd2eabaf6191 100644
--- a/sc/source/ui/inc/crdlg.hxx
+++ b/sc/source/ui/inc/crdlg.hxx
@@ -32,8 +32,8 @@ class ScColOrRowDlg : public ModalDialog
{
public:
ScColOrRowDlg( Window* pParent,
- const String& rStrTitle,
- const String& rStrLabel,
+ const OUString& rStrTitle,
+ const OUString& rStrLabel,
sal_Bool bColDefault = sal_True );
~ScColOrRowDlg();
diff --git a/sc/source/ui/inc/csvcontrol.hxx b/sc/source/ui/inc/csvcontrol.hxx
index 06eebeaaa46e..bbea8e1386a7 100644
--- a/sc/source/ui/inc/csvcontrol.hxx
+++ b/sc/source/ui/inc/csvcontrol.hxx
@@ -249,7 +249,7 @@ inline void ScCsvCmd::Set( ScCsvCmdType eType, sal_Int32 nParam1, sal_Int32 nPar
class SC_DLLPUBLIC ScCsvControl : public Control
{
protected:
- typedef ::std::vector< String > StringVec;
+ typedef ::std::vector< OUString > StringVec;
typedef ::std::vector< StringVec > StringVecVec;
typedef ::com::sun::star::uno::Reference<
diff --git a/sc/source/ui/inc/csvgrid.hxx b/sc/source/ui/inc/csvgrid.hxx
index 2486ba347f6d..0e2b4eb34039 100644
--- a/sc/source/ui/inc/csvgrid.hxx
+++ b/sc/source/ui/inc/csvgrid.hxx
@@ -211,7 +211,7 @@ public:
/** Sets new UI data type names. */
void SetTypeNames( const StringVec& rTypeNames );
/** Returns the UI type name of the specified column. */
- const String& GetColumnTypeName( sal_uInt32 nColIndex ) const;
+ const OUString& GetColumnTypeName( sal_uInt32 nColIndex ) const;
/** Fills the options object with column data for separators mode. */
void FillColumnDataSep( ScAsciiOptions& rOptions ) const;
@@ -274,7 +274,7 @@ public:
void ImplSetTextLineFix( sal_Int32 nLine, const OUString& rTextLine );
/** Returns the text of the specified cell. */
- const String& GetCellText( sal_uInt32 nColIndex, sal_Int32 nLine ) const;
+ const OUString& GetCellText( sal_uInt32 nColIndex, sal_Int32 nLine ) const;
// event handling ---------------------------------------------------------
protected:
@@ -313,7 +313,7 @@ private:
SC_DLLPRIVATE void ImplDrawColumnHeader( OutputDevice& rOutDev, sal_uInt32 nColIndex, Color aFillColor );
/** Draws the text at the specified position to maBackgrDev. */
- SC_DLLPRIVATE void ImplDrawCellText( const Point& rPos, const String& rText );
+ SC_DLLPRIVATE void ImplDrawCellText( const Point& rPos, const OUString& rText );
/** Draws the "first imported line" separator to maBackgrDev (or erases, if bSet is false). */
SC_DLLPRIVATE void ImplDrawFirstLineSep( bool bSet );
/** Draws the column with index nColIndex to maBackgrDev. */
diff --git a/sc/source/ui/inc/csvtablebox.hxx b/sc/source/ui/inc/csvtablebox.hxx
index b23c3a03f021..14661e4b9e23 100644
--- a/sc/source/ui/inc/csvtablebox.hxx
+++ b/sc/source/ui/inc/csvtablebox.hxx
@@ -99,7 +99,7 @@ private:
public:
/** Fills all cells of all lines with the passed texts (Unicode strings). */
void SetUniStrings(
- const OUString* pTextLines, const String& rSepChars,
+ const OUString* pTextLines, const OUString& rSepChars,
sal_Unicode cTextSep, bool bMergeSep );
// column settings --------------------------------------------------------
diff --git a/sc/source/ui/miscdlgs/conflictsdlg.cxx b/sc/source/ui/miscdlgs/conflictsdlg.cxx
index 57e996b843f7..c5d4ccfe5baa 100644
--- a/sc/source/ui/miscdlgs/conflictsdlg.cxx
+++ b/sc/source/ui/miscdlgs/conflictsdlg.cxx
@@ -462,7 +462,7 @@ ScConflictsDlg::~ScConflictsDlg()
{
}
-String ScConflictsDlg::GetConflictString( const ScConflictsListEntry& rConflictEntry )
+OUString ScConflictsDlg::GetConflictString( const ScConflictsListEntry& rConflictEntry )
{
OUString aString;
if ( mpOwnTrack )
@@ -477,7 +477,7 @@ String ScConflictsDlg::GetConflictString( const ScConflictsListEntry& rConflictE
return aString;
}
-String ScConflictsDlg::GetActionString( const ScChangeAction* pAction, ScDocument* pDoc )
+OUString ScConflictsDlg::GetActionString( const ScChangeAction* pAction, ScDocument* pDoc )
{
String aString;
diff --git a/sc/source/ui/miscdlgs/crdlg.cxx b/sc/source/ui/miscdlgs/crdlg.cxx
index b8db1d008fce..7a41edb0ab35 100644
--- a/sc/source/ui/miscdlgs/crdlg.cxx
+++ b/sc/source/ui/miscdlgs/crdlg.cxx
@@ -32,8 +32,8 @@
//==================================================================
ScColOrRowDlg::ScColOrRowDlg( Window* pParent,
- const String& rStrTitle,
- const String& rStrLabel,
+ const OUString& rStrTitle,
+ const OUString& rStrLabel,
sal_Bool bColDefault )
: ModalDialog ( pParent, ScResId( RID_SCDLG_COLORROW ) ),
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 4cf7042e80ad..62ae878b4d82 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -183,7 +183,7 @@ void ScContentTree::ClearType(sal_uInt16 nType)
}
}
-void ScContentTree::InsertContent( sal_uInt16 nType, const String& rValue )
+void ScContentTree::InsertContent( sal_uInt16 nType, const OUString& rValue )
{
if (nType >= SC_CONTENT_COUNT)
{
@@ -1260,7 +1260,7 @@ IMPL_STATIC_LINK(ScContentTree, ExecDragHdl, void*, EMPTYARG)
return 0;
}
-sal_Bool ScContentTree::LoadFile( const String& rUrl )
+sal_Bool ScContentTree::LoadFile( const OUString& rUrl )
{
String aDocName = rUrl;
xub_StrLen nPos = aDocName.Search('#');
@@ -1367,7 +1367,7 @@ void ScContentTree::ActiveDocChanged()
pParentWindow->GetDocNames( &aCurrent ); // selektieren
}
-void ScContentTree::SetManualDoc(const String& rName)
+void ScContentTree::SetManualDoc(const OUString& rName)
{
aManualDoc = rName;
if (!bHiddenDoc)
@@ -1377,7 +1377,7 @@ void ScContentTree::SetManualDoc(const String& rName)
}
}
-void ScContentTree::SelectDoc(const String& rName) // rName wie im Menue/Listbox angezeigt
+void ScContentTree::SelectDoc(const OUString& rName) // rName wie im Menue/Listbox angezeigt
{
if ( rName == pParentWindow->aStrActiveWin )
{
@@ -1388,13 +1388,13 @@ void ScContentTree::SelectDoc(const String& rName) // rName wie im Menue/Li
// "aktiv" oder "inaktiv" weglassen
String aRealName = rName;
- xub_StrLen nLen = rName.Len();
+ xub_StrLen nLen = rName.getLength();
xub_StrLen nActiveStart = nLen - pParentWindow->aStrActive.getLength();
- if ( rName.Copy( nActiveStart ) == pParentWindow->aStrActive )
- aRealName = rName.Copy( 0, nActiveStart );
+ if ( rName.copy( nActiveStart ) == pParentWindow->aStrActive )
+ aRealName = rName.copy( 0, nActiveStart );
xub_StrLen nNotActiveStart = nLen - pParentWindow->aStrNotActive.getLength();
- if ( rName.Copy( nNotActiveStart ) == pParentWindow->aStrNotActive )
- aRealName = rName.Copy( 0, nNotActiveStart );
+ if ( rName.copy( nNotActiveStart ) == pParentWindow->aStrNotActive )
+ aRealName = rName.copy( 0, nNotActiveStart );
bool bLoaded = false;
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index b7d6d307acab..933cf6e5863b 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2437,10 +2437,10 @@ void ScCellShell::ExecuteRotateTrans( SfxRequest& rReq )
}
void ScCellShell::ExecuteExternalSource(
- const String& _rFile, const String& _rFilter, const String& _rOptions,
- const String& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest )
+ const OUString& _rFile, const OUString& _rFilter, const OUString& _rOptions,
+ const OUString& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest )
{
- if ( _rFile.Len() && _rSource.Len() ) // filter may be empty
+ if ( !_rFile.isEmpty() && !_rSource.isEmpty() ) // filter may be empty
{
ScRange aLinkRange;
sal_Bool bMove = false;