convert vcl/cmdevt.hxx from XubString to OUString
Change-Id: Ib574cc7130f49c7a6be23566377313906c52abb8
This commit is contained in:
@@ -426,7 +426,7 @@ void ImpEditEngine::Command( const CommandEvent& rCEvt, EditView* pView )
|
||||
( nNewIMETextLen < mpIMEInfos->aOldTextAfterStartPos.Len() ) )
|
||||
{
|
||||
// restore old characters
|
||||
sal_uInt16 nRestore = nOldIMETextLen - nNewIMETextLen;
|
||||
sal_Int32 nRestore = nOldIMETextLen - nNewIMETextLen;
|
||||
EditPaM aPaM( mpIMEInfos->aPos );
|
||||
aPaM.GetIndex() = aPaM.GetIndex() + nNewIMETextLen;
|
||||
ImpInsertText( aPaM, mpIMEInfos->aOldTextAfterStartPos.Copy( nNewIMETextLen, nRestore ) );
|
||||
|
@@ -56,10 +56,10 @@ private:
|
||||
public:
|
||||
CommandExtTextInputData( const OUString& rText,
|
||||
const sal_uInt16* pTextAttr,
|
||||
xub_StrLen nCursorPos,
|
||||
sal_Int32 nCursorPos,
|
||||
sal_uInt16 nCursorFlags,
|
||||
xub_StrLen nDeltaStart,
|
||||
xub_StrLen nOldTextLen,
|
||||
sal_Int32 nDeltaStart,
|
||||
sal_Int32 nOldTextLen,
|
||||
sal_Bool bOnlyCursor );
|
||||
CommandExtTextInputData( const CommandExtTextInputData& rData );
|
||||
~CommandExtTextInputData();
|
||||
|
@@ -2233,7 +2233,7 @@ void Edit::Command( const CommandEvent& rCEvt )
|
||||
( nNewIMETextLen < mpIMEInfos->aOldTextAfterStartPos.getLength() ) )
|
||||
{
|
||||
// restore old characters
|
||||
sal_uInt16 nRestore = nOldIMETextLen - nNewIMETextLen;
|
||||
sal_Int32 nRestore = nOldIMETextLen - nNewIMETextLen;
|
||||
maText.insert( mpIMEInfos->nPos + nNewIMETextLen, mpIMEInfos->aOldTextAfterStartPos.copy( nNewIMETextLen, nRestore ) );
|
||||
}
|
||||
else if ( ( nOldIMETextLen < nNewIMETextLen ) &&
|
||||
|
@@ -957,7 +957,7 @@ void TextView::Command( const CommandEvent& rCEvt )
|
||||
( nNewIMETextLen < mpImpl->mpTextEngine->mpIMEInfos->aOldTextAfterStartPos.Len() ) )
|
||||
{
|
||||
// restore old characters
|
||||
sal_uInt16 nRestore = nOldIMETextLen - nNewIMETextLen;
|
||||
sal_Int32 nRestore = nOldIMETextLen - nNewIMETextLen;
|
||||
TextPaM aPaM( mpImpl->mpTextEngine->mpIMEInfos->aPos );
|
||||
aPaM.GetIndex() = aPaM.GetIndex() + nNewIMETextLen;
|
||||
mpImpl->mpTextEngine->ImpInsertText( aPaM, mpImpl->mpTextEngine->mpIMEInfos->aOldTextAfterStartPos.Copy( nNewIMETextLen, nRestore ) );
|
||||
|
@@ -24,10 +24,10 @@
|
||||
|
||||
CommandExtTextInputData::CommandExtTextInputData( const OUString& rText,
|
||||
const sal_uInt16* pTextAttr,
|
||||
xub_StrLen nCursorPos,
|
||||
sal_Int32 nCursorPos,
|
||||
sal_uInt16 nCursorFlags,
|
||||
xub_StrLen nDeltaStart,
|
||||
xub_StrLen nOldTextLen,
|
||||
sal_Int32 nDeltaStart,
|
||||
sal_Int32 nOldTextLen,
|
||||
sal_Bool bOnlyCursor ) :
|
||||
maText( rText )
|
||||
{
|
||||
|
Reference in New Issue
Block a user