EditWindow.cxx (79aad27f) EditWindow.cxx (c2eaa082)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 713 unchanged lines hidden (view full) ---

722 DBG_ASSERT( mpEditView, "NULL pointer" );
723 DBG_ASSERT( pEditEngine, "NULL pointer" );
724 if (pEditEngine && mpEditView)
725 {
726 ESelection eSelection = mpEditView->GetSelection();
727 sal_uInt16 Pos = eSelection.nEndPos;
728 String aMark (UniString::CreateFromAscii("<?>"));
729 String aText;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 713 unchanged lines hidden (view full) ---

722 DBG_ASSERT( mpEditView, "NULL pointer" );
723 DBG_ASSERT( pEditEngine, "NULL pointer" );
724 if (pEditEngine && mpEditView)
725 {
726 ESelection eSelection = mpEditView->GetSelection();
727 sal_uInt16 Pos = eSelection.nEndPos;
728 String aMark (UniString::CreateFromAscii("<?>"));
729 String aText;
730 sal_uInt16 nCounts = pEditEngine->GetParagraphCount();
730 sal_uInt32 nCounts = pEditEngine->GetParagraphCount();
731
732 while (eSelection.nEndPara < nCounts)
733 {
734 aText = pEditEngine->GetText( eSelection.nEndPara );
735 Pos = aText.Search(aMark, Pos);
736
737 if (Pos != STRING_NOTFOUND)
738 {

--- 14 unchanged lines hidden (view full) ---

753 DBG_ASSERT( mpEditView, "NULL pointer" );
754 if (pEditEngine && mpEditView)
755 {
756 ESelection eSelection = mpEditView->GetSelection();
757 sal_uInt16 Pos = STRING_NOTFOUND;
758 xub_StrLen Max = eSelection.nStartPos;
759 String Text( pEditEngine->GetText( eSelection.nStartPara ) );
760 String aMark (UniString::CreateFromAscii("<?>"));
731
732 while (eSelection.nEndPara < nCounts)
733 {
734 aText = pEditEngine->GetText( eSelection.nEndPara );
735 Pos = aText.Search(aMark, Pos);
736
737 if (Pos != STRING_NOTFOUND)
738 {

--- 14 unchanged lines hidden (view full) ---

753 DBG_ASSERT( mpEditView, "NULL pointer" );
754 if (pEditEngine && mpEditView)
755 {
756 ESelection eSelection = mpEditView->GetSelection();
757 sal_uInt16 Pos = STRING_NOTFOUND;
758 xub_StrLen Max = eSelection.nStartPos;
759 String Text( pEditEngine->GetText( eSelection.nStartPara ) );
760 String aMark (UniString::CreateFromAscii("<?>"));
761 sal_uInt16 nCounts = pEditEngine->GetParagraphCount();
761 sal_uInt32 nCounts = pEditEngine->GetParagraphCount();
762
763 do
764 {
765 sal_uInt16 Fnd = Text.Search(aMark, 0);
766
767 while ((Fnd < Max) && (Fnd != STRING_NOTFOUND))
768 {
769 Pos = Fnd;

--- 110 unchanged lines hidden ---
762
763 do
764 {
765 sal_uInt16 Fnd = Text.Search(aMark, 0);
766
767 while ((Fnd < Max) && (Fnd != STRING_NOTFOUND))
768 {
769 Pos = Fnd;

--- 110 unchanged lines hidden ---