diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-07-27 22:27:15 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-01 19:33:20 +0200 |
commit | 69a4c6626c7924cef6ccfcd48a47d3010e5837c8 (patch) | |
tree | 483f5e8a3511f86980d294d61f9966456e2eb62c /vcl | |
parent | 7c7124a51e467b6ab4df4d0a38000aa657c35029 (diff) |
sal_uInt16 to sal_Int32
Change-Id: I19785cc516daf03aee8783a23399929785d30c5f
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/edit/textdoc.cxx | 14 | ||||
-rw-r--r-- | vcl/source/edit/textdoc.hxx | 12 |
2 files changed, 13 insertions, 13 deletions
diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx index 3d3028a9312e..bca417af0558 100644 --- a/vcl/source/edit/textdoc.cxx +++ b/vcl/source/edit/textdoc.cxx @@ -163,7 +163,7 @@ TextNode::TextNode( const OUString& rText ) : { } -void TextNode::ExpandAttribs( sal_uInt16 nIndex, sal_uInt16 nNew ) +void TextNode::ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNew ) { if ( !nNew ) return; @@ -227,13 +227,13 @@ void TextNode::ExpandAttribs( sal_uInt16 nIndex, sal_uInt16 nNew ) maCharAttribs.ResortAttribs(); } -void TextNode::CollapsAttribs( sal_uInt16 nIndex, sal_uInt16 nDeleted ) +void TextNode::CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDeleted ) { if ( !nDeleted ) return; bool bResort = false; - sal_uInt16 nEndChanges = nIndex+nDeleted; + const sal_Int32 nEndChanges = nIndex+nDeleted; for ( sal_uInt16 nAttr = 0; nAttr < maCharAttribs.Count(); nAttr++ ) { @@ -289,25 +289,25 @@ void TextNode::CollapsAttribs( sal_uInt16 nIndex, sal_uInt16 nDeleted ) maCharAttribs.ResortAttribs(); } -void TextNode::InsertText( sal_uInt16 nPos, const OUString& rText ) +void TextNode::InsertText( sal_Int32 nPos, const OUString& rText ) { maText = maText.replaceAt( nPos, 0, rText ); ExpandAttribs( nPos, rText.getLength() ); } -void TextNode::InsertText( sal_uInt16 nPos, sal_Unicode c ) +void TextNode::InsertText( sal_Int32 nPos, sal_Unicode c ) { maText = maText.replaceAt( nPos, 0, OUString(c) ); ExpandAttribs( nPos, 1 ); } -void TextNode::RemoveText( sal_uInt16 nPos, sal_uInt16 nChars ) +void TextNode::RemoveText( sal_Int32 nPos, sal_Int32 nChars ) { maText = maText.replaceAt( nPos, nChars, "" ); CollapsAttribs( nPos, nChars ); } -TextNode* TextNode::Split( sal_uInt16 nPos, bool bKeepEndingAttribs ) +TextNode* TextNode::Split( sal_Int32 nPos, bool bKeepEndingAttribs ) { OUString aNewText; if ( nPos < maText.getLength() ) diff --git a/vcl/source/edit/textdoc.hxx b/vcl/source/edit/textdoc.hxx index f317cb711dad..566c9f384262 100644 --- a/vcl/source/edit/textdoc.hxx +++ b/vcl/source/edit/textdoc.hxx @@ -69,8 +69,8 @@ private: TextNode( const TextNode& ) {;} protected: - void ExpandAttribs( sal_uInt16 nIndex, sal_uInt16 nNewChars ); - void CollapsAttribs( sal_uInt16 nIndex, sal_uInt16 nDelChars ); + void ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNewChars ); + void CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDelChars ); public: TextNode( const OUString& rText ); @@ -81,11 +81,11 @@ public: const TextCharAttribList& GetCharAttribs() const { return maCharAttribs; } TextCharAttribList& GetCharAttribs() { return maCharAttribs; } - void InsertText( sal_uInt16 nPos, const OUString& rText ); - void InsertText( sal_uInt16 nPos, sal_Unicode c ); - void RemoveText( sal_uInt16 nPos, sal_uInt16 nChars ); + void InsertText( sal_Int32 nPos, const OUString& rText ); + void InsertText( sal_Int32 nPos, sal_Unicode c ); + void RemoveText( sal_Int32 nPos, sal_Int32 nChars ); - TextNode* Split( sal_uInt16 nPos, bool bKeepEndigAttribs ); + TextNode* Split( sal_Int32 nPos, bool bKeepEndigAttribs ); void Append( const TextNode& rNode ); }; |