edit.cxx (a050e4e7) edit.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

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

756 DBG_ASSERT( pEditView, "NULL pointer" );
757 DBG_ASSERT( pEditEngine, "NULL pointer" );
758 if (pEditEngine && pEditView)
759 {
760 ESelection eSelection = pEditView->GetSelection();
761 sal_uInt16 Pos = eSelection.nEndPos;
762 String aMark (C2S("<?>"));
763 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

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

756 DBG_ASSERT( pEditView, "NULL pointer" );
757 DBG_ASSERT( pEditEngine, "NULL pointer" );
758 if (pEditEngine && pEditView)
759 {
760 ESelection eSelection = pEditView->GetSelection();
761 sal_uInt16 Pos = eSelection.nEndPos;
762 String aMark (C2S("<?>"));
763 String aText;
764 sal_uInt16 nCounts = pEditEngine->GetParagraphCount();
764 sal_uInt32 nCounts = pEditEngine->GetParagraphCount();
765
766 while (eSelection.nEndPara < nCounts)
767 {
768 aText = pEditEngine->GetText( eSelection.nEndPara );
769 Pos = aText.Search(aMark, Pos);
770
771 if (Pos != STRING_NOTFOUND)
772 {

--- 214 unchanged lines hidden ---
765
766 while (eSelection.nEndPara < nCounts)
767 {
768 aText = pEditEngine->GetText( eSelection.nEndPara );
769 Pos = aText.Search(aMark, Pos);
770
771 if (Pos != STRING_NOTFOUND)
772 {

--- 214 unchanged lines hidden ---