summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-10 23:42:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-11 10:54:24 +0100
commit3e635c3368c23608bac471970f18d1d64684a147 (patch)
treebcd3c3896b079b16fd26ef826d44c9a93dde41bc /svtools
parentc0c7fb66985a9a3e8f9b7a796c1e0489e407879b (diff)
XubString->rtl::OUString
Change-Id: If7e5d015c95f8f173750ca32e061d69f56e2d93e
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/tabbar.hxx6
-rw-r--r--svtools/source/brwbox/datwin.cxx2
-rw-r--r--svtools/source/control/tabbar.cxx32
3 files changed, 19 insertions, 21 deletions
diff --git a/svtools/inc/svtools/tabbar.hxx b/svtools/inc/svtools/tabbar.hxx
index 7a71ef490ad0..1f30796f7253 100644
--- a/svtools/inc/svtools/tabbar.hxx
+++ b/svtools/inc/svtools/tabbar.hxx
@@ -438,7 +438,7 @@ public:
virtual void EndRenaming();
virtual void Mirror();
- void InsertPage( sal_uInt16 nPageId, const XubString& rText,
+ void InsertPage( sal_uInt16 nPageId, const OUString& rText,
TabBarPageBits nBits = 0,
sal_uInt16 nPos = TabBar::APPEND );
void RemovePage( sal_uInt16 nPageId );
@@ -519,8 +519,8 @@ public:
const Color& GetSelectTextColor() const { return maSelTextColor; }
sal_Bool IsSelectTextColor() const { return mbSelTextColor; }
- void SetPageText( sal_uInt16 nPageId, const XubString& rText );
- XubString GetPageText( sal_uInt16 nPageId ) const;
+ void SetPageText( sal_uInt16 nPageId, const OUString& rText );
+ OUString GetPageText( sal_uInt16 nPageId ) const;
XubString GetHelpText( sal_uInt16 nPageId ) const;
rtl::OString GetHelpId( sal_uInt16 nPageId ) const;
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx
index 4aab20409a73..2f9529aa667b 100644
--- a/svtools/source/brwbox/datwin.cxx
+++ b/svtools/source/brwbox/datwin.cxx
@@ -69,7 +69,7 @@ void ButtonFrame::Draw( OutputDevice& rDev )
if ( aText.Len() )
{
- String aVal = rDev.GetEllipsisString(aText,aInnerRect.GetWidth() - 2*MIN_COLUMNWIDTH);
+ OUString aVal = rDev.GetEllipsisString(aText,aInnerRect.GetWidth() - 2*MIN_COLUMNWIDTH);
Font aFont( rDev.GetFont() );
sal_Bool bOldTransp = aFont.IsTransparent();
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index e844ef787fe3..c09656386208 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -56,10 +56,10 @@ const sal_uInt16 ADDNEWPAGE_AREAWIDTH = 10;
struct ImplTabBarItem
{
- sal_uInt16 mnId;
+ sal_uInt16 mnId;
TabBarPageBits mnBits;
- XubString maText;
- XubString maHelpText;
+ OUString maText;
+ OUString maHelpText;
Rectangle maRect;
long mnWidth;
rtl::OString maHelpId;
@@ -69,7 +69,7 @@ struct ImplTabBarItem
Color maTabBgColor;
Color maTabTextColor;
- ImplTabBarItem( sal_uInt16 nItemId, const XubString& rText,
+ ImplTabBarItem( sal_uInt16 nItemId, const OUString& rText,
TabBarPageBits nPageBits ) :
maText( rText )
{
@@ -1392,7 +1392,7 @@ void TabBar::Paint( const Rectangle& rect )
bool bCustomBgColor = !pItem->IsDefaultTabBgColor() && !rStyleSettings.GetHighContrastMode();
bool bSpecialTab = (pItem->mnBits & TPB_SPECIAL);
bool bEnabled = pItem->mbEnable;
- String aText = pItem->mbShort ?
+ OUString aText = pItem->mbShort ?
GetEllipsisString(pItem->maText, mnCurMaxWidth, TEXT_DRAW_ENDELLIPSIS) : pItem->maText;
aDrawer.setRect(aRect);
@@ -1535,8 +1535,8 @@ void TabBar::RequestHelp( const HelpEvent& rHEvt )
{
if ( rHEvt.GetMode() & HELPMODE_BALLOON )
{
- XubString aStr = GetHelpText( nItemId );
- if ( aStr.Len() )
+ OUString aStr = GetHelpText( nItemId );
+ if (!aStr.isEmpty())
{
Rectangle aItemRect = GetPageRect( nItemId );
Point aPt = OutputToScreenPixel( aItemRect.TopLeft() );
@@ -1578,8 +1578,8 @@ void TabBar::RequestHelp( const HelpEvent& rHEvt )
aPt = OutputToScreenPixel( aItemRect.BottomRight() );
aItemRect.Right() = aPt.X();
aItemRect.Bottom() = aPt.Y();
- XubString aStr = (*mpItemList)[ nPos ]->maText;
- if ( aStr.Len() )
+ OUString aStr = (*mpItemList)[ nPos ]->maText;
+ if (!aStr.isEmpty())
{
if ( rHEvt.GetMode() & HELPMODE_BALLOON )
Help::ShowBalloon( this, aItemRect.Center(), aItemRect, aStr );
@@ -1823,7 +1823,7 @@ void TabBar::Mirror()
// -----------------------------------------------------------------------
-void TabBar::InsertPage( sal_uInt16 nPageId, const XubString& rText,
+void TabBar::InsertPage( sal_uInt16 nPageId, const OUString& rText,
TabBarPageBits nBits, sal_uInt16 nPos )
{
DBG_ASSERT( nPageId, "TabBar::InsertPage(): PageId == 0" );
@@ -2456,7 +2456,7 @@ void TabBar::SetMaxPageWidth( long nMaxWidth )
// -----------------------------------------------------------------------
-void TabBar::SetPageText( sal_uInt16 nPageId, const XubString& rText )
+void TabBar::SetPageText( sal_uInt16 nPageId, const OUString& rText )
{
sal_uInt16 nPos = GetPagePos( nPageId );
if ( nPos != PAGE_NOT_FOUND )
@@ -2474,13 +2474,12 @@ void TabBar::SetPageText( sal_uInt16 nPageId, const XubString& rText )
// -----------------------------------------------------------------------
-XubString TabBar::GetPageText( sal_uInt16 nPageId ) const
+OUString TabBar::GetPageText( sal_uInt16 nPageId ) const
{
sal_uInt16 nPos = GetPagePos( nPageId );
if ( nPos != PAGE_NOT_FOUND )
return (*mpItemList)[ nPos ]->maText;
- else
- return XubString();
+ return OUString();
}
// -----------------------------------------------------------------------
@@ -2491,7 +2490,7 @@ XubString TabBar::GetHelpText( sal_uInt16 nPageId ) const
if ( nPos != PAGE_NOT_FOUND )
{
ImplTabBarItem* pItem = (*mpItemList)[ nPos ];
- if ( !pItem->maHelpText.Len() && !pItem->maHelpId.isEmpty() )
+ if (pItem->maHelpText.isEmpty() && !pItem->maHelpId.isEmpty())
{
Help* pHelp = Application::GetHelp();
if ( pHelp )
@@ -2500,8 +2499,7 @@ XubString TabBar::GetHelpText( sal_uInt16 nPageId ) const
return pItem->maHelpText;
}
- else
- return XubString();
+ return OUString();
}
// -----------------------------------------------------------------------