diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-24 20:34:33 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2013-03-28 13:48:02 +0000 |
commit | 91c1161dd9e1fc73c91608f1320197daadd5ea2e (patch) | |
tree | 4774d79f10a377e1be958deecc69c96abd211613 /vcl/inc | |
parent | 9c06d2bd253ad6a50141a5b51409dbdffcfd9e6d (diff) |
Use OUString and sal_Int32 in GetTextWidth()
Change-Id: I0b3cdbe8576300d098027cc98d7dff841d148f18
Reviewed-on: https://gerrit.libreoffice.org/3097
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/vcl/outdev.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/inc/vcl/outdev.hxx b/vcl/inc/vcl/outdev.hxx index 44a5979ff21f..3f4fdbd81dce 100644 --- a/vcl/inc/vcl/outdev.hxx +++ b/vcl/inc/vcl/outdev.hxx @@ -573,8 +573,7 @@ public: void DrawText( const Point& rStartPt, const XubString& rStr, xub_StrLen nIndex = 0, xub_StrLen nLen = STRING_LEN, MetricVector* pVector = NULL, OUString* pDisplayText = NULL ); - long GetTextWidth( const XubString& rStr, xub_StrLen nIndex = 0, - xub_StrLen nLen = STRING_LEN ) const; + long GetTextWidth( const OUString& rStr, sal_Int32 nIndex = 0, sal_Int32 nLen = -1 ) const; /// Height where any character of the current font fits; in logic coordinates. long GetTextHeight() const; float approximate_char_width() const; |