summaryrefslogtreecommitdiff
path: root/cui/source/factory
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-01-21 14:32:09 +0100
committerMichael Stahl <mstahl@redhat.com>2013-01-21 20:48:35 +0000
commite3f11c10d8cc759d01afa4b8fd8bd98c81a03119 (patch)
tree36191c6d90da559009161a1199d1176cf6a2bbba /cui/source/factory
parent87f9d7da00857c649784a7d9eca046bf6e71ae3c (diff)
Changed SetText() / GetText() to take/return OUString
replaced lots of Len() with isEmpty() Change-Id: I6b82d48245ee2a0782e05a326f7934e9357227d0 Reviewed-on: https://gerrit.libreoffice.org/1795 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'cui/source/factory')
-rw-r--r--cui/source/factory/dlgfact.cxx24
-rw-r--r--cui/source/factory/dlgfact.hxx24
2 files changed, 24 insertions, 24 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index 8664374846e9..09005d39a502 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -216,11 +216,11 @@ void CuiAbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
pDlg->SetInputSet( pInSet );
}
//From class Window.
-void CuiAbstractTabDialog_Impl::SetText( const XubString& rStr )
+void CuiAbstractTabDialog_Impl::SetText( const OUString& rStr )
{
pDlg->SetText( rStr );
}
-String CuiAbstractTabDialog_Impl::GetText() const
+OUString CuiAbstractTabDialog_Impl::GetText() const
{
return pDlg->GetText();
}
@@ -231,12 +231,12 @@ const SfxItemSet* CuiAbstractSfxDialog_Impl::GetOutputItemSet() const
return pDlg->GetOutputItemSet();
}
-void CuiAbstractSfxDialog_Impl::SetText( const XubString& rStr )
+void CuiAbstractSfxDialog_Impl::SetText( const OUString& rStr )
{
pDlg->SetText( rStr );
}
-String CuiAbstractSfxDialog_Impl::GetText() const
+OUString CuiAbstractSfxDialog_Impl::GetText() const
{
return pDlg->GetText();
}
@@ -643,11 +643,11 @@ void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
pDlg->SetInputSet( pInSet );
}
//From class Window.
-void AbstractSvxTransformTabDialog_Impl::SetText( const XubString& rStr )
+void AbstractSvxTransformTabDialog_Impl::SetText( const OUString& rStr )
{
pDlg->SetText( rStr );
}
-String AbstractSvxTransformTabDialog_Impl::GetText() const
+OUString AbstractSvxTransformTabDialog_Impl::GetText() const
{
return pDlg->GetText();
}
@@ -682,11 +682,11 @@ void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
pDlg->SetInputSet( pInSet );
}
//From class Window.
-void AbstractSvxCaptionDialog_Impl::SetText( const XubString& rStr )
+void AbstractSvxCaptionDialog_Impl::SetText( const OUString& rStr )
{
pDlg->SetText( rStr );
}
-String AbstractSvxCaptionDialog_Impl::GetText() const
+OUString AbstractSvxCaptionDialog_Impl::GetText() const
{
return pDlg->GetText();
}
@@ -737,7 +737,7 @@ void AbstractSvxNameDialog_Impl::SetHelpId( const rtl::OString& aHelpId )
{
pDlg->SetHelpId( aHelpId );
}
-void AbstractSvxNameDialog_Impl::SetText( const XubString& rStr )
+void AbstractSvxNameDialog_Impl::SetText( const OUString& rStr )
{
pDlg->SetText( rStr );
}
@@ -907,16 +907,16 @@ void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
pDlg->SetInputSet( pInSet );
}
//From class Window.
-void AbstractSvxAreaTabDialog_Impl::SetText( const XubString& rStr )
+void AbstractSvxAreaTabDialog_Impl::SetText( const OUString& rStr )
{
pDlg->SetText( rStr );
}
-String AbstractSvxAreaTabDialog_Impl::GetText() const
+OUString AbstractSvxAreaTabDialog_Impl::GetText() const
{
return pDlg->GetText();
}
-void AbstractSvxPostItDialog_Impl::SetText( const XubString& rStr )
+void AbstractSvxPostItDialog_Impl::SetText( const OUString& rStr )
{
pDlg->SetText( rStr );
}
diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx
index 080d8b760460..dd4c37a4802e 100644
--- a/cui/source/factory/dlgfact.hxx
+++ b/cui/source/factory/dlgfact.hxx
@@ -115,8 +115,8 @@ class CuiAbstractSfxDialog_Impl : public SfxAbstractDialog
virtual const SfxItemSet* GetOutputItemSet() const;
//From class Window.
- virtual void SetText( const XubString& rStr );
- virtual String GetText() const ;
+ virtual void SetText( const OUString& rStr );
+ virtual OUString GetText() const ;
};
class CuiAbstractTabDialog_Impl : public SfxAbstractTabDialog
@@ -128,8 +128,8 @@ class CuiAbstractTabDialog_Impl : public SfxAbstractTabDialog
virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
virtual void SetInputSet( const SfxItemSet* pInSet );
//From class Window.
- virtual void SetText( const XubString& rStr );
- virtual String GetText() const;
+ virtual void SetText( const OUString& rStr );
+ virtual OUString GetText() const;
};
//for SvxDistributeDialog begin
@@ -346,8 +346,8 @@ class AbstractSvxTransformTabDialog_Impl : public AbstractSvxTransformTabDialog
virtual const SfxItemSet* GetOutputItemSet() const;
virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
virtual void SetInputSet( const SfxItemSet* pInSet );
- virtual void SetText( const XubString& rStr );
- virtual String GetText() const;
+ virtual void SetText( const OUString& rStr );
+ virtual OUString GetText() const;
};
class AbstractSvxCaptionDialog_Impl : public AbstractSvxCaptionDialog
{
@@ -358,8 +358,8 @@ class AbstractSvxCaptionDialog_Impl : public AbstractSvxCaptionDialog
virtual const SfxItemSet* GetOutputItemSet() const;
virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
virtual void SetInputSet( const SfxItemSet* pInSet );
- virtual void SetText( const XubString& rStr );
- virtual String GetText() const;
+ virtual void SetText( const OUString& rStr );
+ virtual OUString GetText() const;
};
//for FmInputRecordNoDialog end
@@ -391,7 +391,7 @@ class AbstractSvxNameDialog_Impl :public AbstractSvxNameDialog
virtual void SetEditHelpId(const rtl::OString&) ;
//from class Window
virtual void SetHelpId( const rtl::OString& ) ;
- virtual void SetText( const XubString& rStr ) ;
+ virtual void SetText( const OUString& rStr ) ;
private:
Link aCheckNameHdl;
DECL_LINK(CheckNameHdl, void *);
@@ -506,8 +506,8 @@ class AbstractSvxAreaTabDialog_Impl :public AbstractSvxAreaTabDialog
virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
virtual void SetInputSet( const SfxItemSet* pInSet );
// From class Window.
- virtual void SetText( const XubString& rStr );
- virtual String GetText() const;
+ virtual void SetText( const OUString& rStr );
+ virtual OUString GetText() const;
};
// add for SvxAreaTabDialog end
@@ -542,7 +542,7 @@ class SvxPostItDialog;
class AbstractSvxPostItDialog_Impl :public AbstractSvxPostItDialog
{
DECL_ABSTDLG_BASE( AbstractSvxPostItDialog_Impl, SvxPostItDialog )
- virtual void SetText( const XubString& rStr ); //From class Window
+ virtual void SetText( const OUString& rStr ); //From class Window
virtual const SfxItemSet* GetOutputItemSet() const;
virtual void SetPrevHdl( const Link& rLink ) ;
virtual void SetNextHdl( const Link& rLink ) ;