diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-04-07 21:25:31 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-08 09:12:42 +0000 |
commit | e1a909f15536633ad58cb66514419ef290462614 (patch) | |
tree | c7133047160a50c9654cad26a813513b47da0c66 /sw/source/core/text/porfld.hxx | |
parent | warning C4702: unreachable code (diff) | |
download | core-e1a909f15536633ad58cb66514419ef290462614.tar.gz core-e1a909f15536633ad58cb66514419ef290462614.zip |
Use OUString and sal_Int32 in sw
source/core/text
Change-Id: I29cce32f8f6ae760397ae0633ebfa56942a7cd6d
Reviewed-on: https://gerrit.libreoffice.org/3266
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'sw/source/core/text/porfld.hxx')
-rw-r--r-- | sw/source/core/text/porfld.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/text/porfld.hxx b/sw/source/core/text/porfld.hxx index 971d86a6d902..94f43b9c601b 100644 --- a/sw/source/core/text/porfld.hxx +++ b/sw/source/core/text/porfld.hxx @@ -36,7 +36,7 @@ class SwFldPortion : public SwExpandPortion { friend class SwTxtFormatter; protected: - XubString aExpand; // The expanded field + OUString aExpand; // The expanded field SwFont *pFnt; // For multi-line fields xub_StrLen nNextOffset; // Offset of the follow in the original string xub_StrLen nNextScriptChg; @@ -58,7 +58,7 @@ protected: public: SwFldPortion( const SwFldPortion& rFld ); - SwFldPortion( const XubString &rExpand, SwFont *pFnt = 0, bool bPlaceHolder = false ); + SwFldPortion( const OUString &rExpand, SwFont *pFnt = 0, bool bPlaceHolder = false ); ~SwFldPortion(); void TakeNextOffset( const SwFldPortion* pFld ); @@ -67,8 +67,8 @@ public: // #i89179# - made public inline const SwFont *GetFont() const { return pFnt; } - inline const XubString &GetExp() const { return aExpand; } - virtual sal_Bool GetExpTxt( const SwTxtSizeInfo &rInf, XubString &rTxt ) const; + inline const OUString &GetExp() const { return aExpand; } + virtual sal_Bool GetExpTxt( const SwTxtSizeInfo &rInf, OUString &rTxt ) const; virtual sal_Bool Format( SwTxtFormatInfo &rInf ); virtual void Paint( const SwTxtPaintInfo &rInf ) const; @@ -99,7 +99,7 @@ public: inline void SetNextScriptChg( xub_StrLen nNew ) { nNextScriptChg = nNew; } // Field cloner for SplitGlue - virtual SwFldPortion *Clone( const XubString &rExpand ) const; + virtual SwFldPortion *Clone( const OUString &rExpand ) const; // Extra GetTxtSize because of pFnt virtual SwPosSize GetTxtSize( const SwTxtSizeInfo &rInfo ) const; @@ -122,10 +122,10 @@ public: : SwFldPortion( rExpand, pFntL ) { SetLen(1); SetWhichPor( POR_HIDDEN ); } virtual void Paint( const SwTxtPaintInfo &rInf ) const; - virtual sal_Bool GetExpTxt( const SwTxtSizeInfo &rInf, XubString &rTxt ) const; + virtual sal_Bool GetExpTxt( const SwTxtSizeInfo &rInf, OUString &rTxt ) const; // Field cloner for SplitGlue - virtual SwFldPortion *Clone( const XubString &rExpand ) const; + virtual SwFldPortion *Clone( const OUString &rExpand ) const; OUTPUT_OPERATOR }; @@ -152,7 +152,7 @@ public: virtual sal_Bool Format( SwTxtFormatInfo &rInf ); // Field cloner for SplitGlue - virtual SwFldPortion *Clone( const XubString &rExpand ) const; + virtual SwFldPortion *Clone( const OUString &rExpand ) const; virtual void FormatEOL( SwTxtFormatInfo &rInf ); OUTPUT_OPERATOR |