convert sw/source/ui/inc/i*.hxx from String to OUString
Change-Id: Ib850538920015fe3ef410449ff67cd9b15ae47f4
This commit is contained in:
@@ -37,8 +37,8 @@ public:
|
||||
InputEdit(Window* pParent, WinBits nStyle) :
|
||||
Edit(pParent , nStyle){}
|
||||
|
||||
void UpdateRange(const String& aSel,
|
||||
const String& aTblName );
|
||||
void UpdateRange(const OUString& aSel,
|
||||
const OUString& aTblName );
|
||||
|
||||
protected:
|
||||
virtual void KeyInput( const KeyEvent& );
|
||||
@@ -57,7 +57,7 @@ friend class InputEdit;
|
||||
SwWrtShell* pWrtShell;
|
||||
SwView* pView;
|
||||
SfxBindings* pBindings;
|
||||
String aAktTableName, sOldFml;
|
||||
OUString aAktTableName, sOldFml;
|
||||
|
||||
sal_Bool bFirst : 1; // initialisations at first call
|
||||
sal_Bool bActive : 1; // for hide/show when switching documents
|
||||
@@ -96,7 +96,7 @@ public:
|
||||
|
||||
DECL_LINK( SelTblCellsNotify, SwWrtShell * );
|
||||
|
||||
void SetFormula( const String& rFormula, sal_Bool bDelSel = sal_True );
|
||||
void SetFormula( const OUString& rFormula, sal_Bool bDelSel = sal_True );
|
||||
const SwView* GetView() const{return pView;}
|
||||
};
|
||||
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
SfxChildWinInfo* );
|
||||
~SwInputChild();
|
||||
SFX_DECL_CHILDWINDOW_WITHID( SwInputChild );
|
||||
void SetFormula( const String& rFormula, sal_Bool bDelSel = sal_True )
|
||||
void SetFormula( const OUString& rFormula, sal_Bool bDelSel = sal_True )
|
||||
{ ((SwInputWindow*)pWindow)->SetFormula(
|
||||
rFormula, bDelSel ); }
|
||||
const SwView* GetView() const{return ((SwInputWindow*)pWindow)->GetView();}
|
||||
|
@@ -443,12 +443,12 @@ IMPL_LINK( SwInputWindow, SelTblCellsNotify, SwWrtShell *, pCaller )
|
||||
}
|
||||
|
||||
|
||||
void SwInputWindow::SetFormula( const String& rFormula, sal_Bool bDelFlag )
|
||||
void SwInputWindow::SetFormula( const OUString& rFormula, sal_Bool bDelFlag )
|
||||
{
|
||||
String sEdit = OUString('=');
|
||||
if( rFormula.Len() )
|
||||
if( !rFormula.isEmpty() )
|
||||
{
|
||||
if( '=' == rFormula.GetChar( 0 ) )
|
||||
if( '=' == rFormula[0] )
|
||||
sEdit = rFormula;
|
||||
else
|
||||
sEdit += rFormula;
|
||||
@@ -504,10 +504,10 @@ void InputEdit::KeyInput(const KeyEvent& rEvent)
|
||||
Edit::KeyInput(rEvent);
|
||||
}
|
||||
|
||||
void InputEdit::UpdateRange(const String& rBoxes,
|
||||
const String& rName )
|
||||
void InputEdit::UpdateRange(const OUString& rBoxes,
|
||||
const OUString& rName )
|
||||
{
|
||||
if( !rBoxes.Len() )
|
||||
if( rBoxes.isEmpty() )
|
||||
{
|
||||
GrabFocus();
|
||||
return;
|
||||
@@ -515,7 +515,7 @@ void InputEdit::UpdateRange(const String& rBoxes,
|
||||
const sal_Unicode cOpen = '<', cClose = '>',
|
||||
cOpenBracket = '(';
|
||||
String aPrefix = rName;
|
||||
if(rName.Len())
|
||||
if(!rName.isEmpty())
|
||||
aPrefix += '.';
|
||||
String aBoxes = aPrefix;
|
||||
aBoxes += rBoxes;
|
||||
|
Reference in New Issue
Block a user