attrib.cxx (b3f79822) attrib.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

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

790 xub_StrLen nLen = rSel.nEndPos-rSel.nStartPos;
791 rStr.Erase( rSel.nStartPos, nLen-1 );
792 rStr.SetChar( rSel.nStartPos, ' ' );
793}
794
795sal_Bool lcl_ConvertFields(EditEngine& rEng, const String* pCommands)
796{
797 sal_Bool bChange = sal_False;
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

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

790 xub_StrLen nLen = rSel.nEndPos-rSel.nStartPos;
791 rStr.Erase( rSel.nStartPos, nLen-1 );
792 rStr.SetChar( rSel.nStartPos, ' ' );
793}
794
795sal_Bool lcl_ConvertFields(EditEngine& rEng, const String* pCommands)
796{
797 sal_Bool bChange = sal_False;
798 sal_uInt16 nParCnt = rEng.GetParagraphCount();
799 for (sal_uInt16 nPar = 0; nPar<nParCnt; nPar++)
798 sal_uInt32 nParCnt = rEng.GetParagraphCount();
799 for (sal_uInt32 nPar = 0; nPar<nParCnt; nPar++)
800 {
801 String aStr = rEng.GetText( nPar );
802 xub_StrLen nPos;
803
804 while ((nPos = aStr.Search(pCommands[0])) != STRING_NOTFOUND)
805 {
806 ESelection aSel( nPar,nPos, nPar,nPos+pCommands[0].Len() );
807 rEng.QuickInsertField( SvxFieldItem(SvxPageField(), EE_FEATURE_FIELD), aSel );

--- 517 unchanged lines hidden ---
800 {
801 String aStr = rEng.GetText( nPar );
802 xub_StrLen nPos;
803
804 while ((nPos = aStr.Search(pCommands[0])) != STRING_NOTFOUND)
805 {
806 ESelection aSel( nPar,nPos, nPar,nPos+pCommands[0].Len() );
807 rEng.QuickInsertField( SvxFieldItem(SvxPageField(), EE_FEATURE_FIELD), aSel );

--- 517 unchanged lines hidden ---