summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-09 15:49:49 +0200
committerNoel Grandin <noel@peralex.com>2013-09-11 09:45:35 +0200
commitda36b3dafbf4fa7a310be2f88f99c0c3d5cc2373 (patch)
tree6f72b21cabfab19d898706f690096d5a0f5d1724
parentcfb4463d2afd36ca6d0fbb9e374bf5387fee84df (diff)
convert include/editeng/AccessibleStringWrap.hxx from String to OUString
Change-Id: I31c91ee196351abcd884240052359fac8aff6e1d
-rw-r--r--editeng/source/accessibility/AccessibleStringWrap.cxx6
-rw-r--r--include/editeng/AccessibleStringWrap.hxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/accessibility/AccessibleStringWrap.cxx b/editeng/source/accessibility/AccessibleStringWrap.cxx
index 7a069c2838f0..d42b012a06bd 100644
--- a/editeng/source/accessibility/AccessibleStringWrap.cxx
+++ b/editeng/source/accessibility/AccessibleStringWrap.cxx
@@ -31,7 +31,7 @@
//
//------------------------------------------------------------------------
-AccessibleStringWrap::AccessibleStringWrap( OutputDevice& rDev, SvxFont& rFont, const String& rText ) :
+AccessibleStringWrap::AccessibleStringWrap( OutputDevice& rDev, SvxFont& rFont, const OUString& rText ) :
mrDev( rDev ),
mrFont( rFont ),
maText( rText )
@@ -46,7 +46,7 @@ sal_Bool AccessibleStringWrap::GetCharacterBounds( sal_Int32 nIndex, Rectangle&
mrFont.SetPhysFont( &mrDev );
// #108900# Handle virtual position one-past-the end of the string
- if( nIndex >= maText.Len() )
+ if( nIndex >= maText.getLength() )
{
// create a caret bounding rect that has the height of the
// current font and is one pixel wide.
@@ -78,7 +78,7 @@ sal_Int32 AccessibleStringWrap::GetIndexAtPoint( const Point& rPoint )
{
// search for character bounding box containing given point
Rectangle aRect;
- sal_Int32 i, nLen = maText.Len();
+ sal_Int32 i, nLen = maText.getLength();
for( i=0; i<nLen; ++i )
{
GetCharacterBounds(i, aRect);
diff --git a/include/editeng/AccessibleStringWrap.hxx b/include/editeng/AccessibleStringWrap.hxx
index cae879f95a1a..3252d1533edb 100644
--- a/include/editeng/AccessibleStringWrap.hxx
+++ b/include/editeng/AccessibleStringWrap.hxx
@@ -40,7 +40,7 @@ class AccessibleStringWrap
{
public:
- EDITENG_DLLPUBLIC AccessibleStringWrap( OutputDevice& rDev, SvxFont& rFont, const String& rText );
+ EDITENG_DLLPUBLIC AccessibleStringWrap( OutputDevice& rDev, SvxFont& rFont, const OUString& rText );
EDITENG_DLLPUBLIC sal_Bool GetCharacterBounds( sal_Int32 nIndex, Rectangle& rRect );
EDITENG_DLLPUBLIC sal_Int32 GetIndexAtPoint( const Point& rPoint );
@@ -49,7 +49,7 @@ private:
OutputDevice& mrDev;
SvxFont& mrFont;
- String maText;
+ OUString maText;
};
#endif /* _ACCESSIBLESTRINGWRAP_HXX */