viewfun2.cxx (4d7c9de0) | viewfun2.cxx (3ea0c3d5) |
---|---|
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 --- 1602 unchanged lines hidden (view full) --- 1611 1612#endif 1613} 1614 1615 1616//---------------------------------------------------------------------------- 1617// Suchen & Ersetzen 1618 | 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 --- 1602 unchanged lines hidden (view full) --- 1611 1612#endif 1613} 1614 1615 1616//---------------------------------------------------------------------------- 1617// Suchen & Ersetzen 1618 |
1619//void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, | |
1620sal_Bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, 1621 sal_Bool bAddUndo, sal_Bool bIsApi ) 1622{ 1623 ScDocShell* pDocSh = GetViewData()->GetDocShell(); 1624 ScDocument* pDoc = pDocSh->GetDocument(); 1625 ScMarkData& rMark = GetViewData()->GetMarkData(); 1626 if (bAddUndo && !pDoc->IsUndoEnabled()) 1627 bAddUndo = sal_False; --- 37 unchanged lines hidden (view full) --- 1665 for ( SCTAB j = nStartTab; j <= nEndTab; j++ ) 1666 { 1667 if ( (bAllTables || rMark.GetTableSelect( j )) && 1668 pDoc->IsTabProtected( j ) ) 1669 { 1670 if ( pOldSelectedTables ) 1671 delete [] pOldSelectedTables; 1672 ErrorMessage(STR_PROTECTIONERR); | 1619sal_Bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, 1620 sal_Bool bAddUndo, sal_Bool bIsApi ) 1621{ 1622 ScDocShell* pDocSh = GetViewData()->GetDocShell(); 1623 ScDocument* pDoc = pDocSh->GetDocument(); 1624 ScMarkData& rMark = GetViewData()->GetMarkData(); 1625 if (bAddUndo && !pDoc->IsUndoEnabled()) 1626 bAddUndo = sal_False; --- 37 unchanged lines hidden (view full) --- 1664 for ( SCTAB j = nStartTab; j <= nEndTab; j++ ) 1665 { 1666 if ( (bAllTables || rMark.GetTableSelect( j )) && 1667 pDoc->IsTabProtected( j ) ) 1668 { 1669 if ( pOldSelectedTables ) 1670 delete [] pOldSelectedTables; 1671 ErrorMessage(STR_PROTECTIONERR); |
1673 //return; | |
1674 return sal_False; 1675 } 1676 } 1677 } 1678 1679 if ( nCommand == SVX_SEARCHCMD_FIND 1680 || nCommand == SVX_SEARCHCMD_FIND_ALL) 1681 bAddUndo = sal_False; --- 1462 unchanged lines hidden --- | 1672 return sal_False; 1673 } 1674 } 1675 } 1676 1677 if ( nCommand == SVX_SEARCHCMD_FIND 1678 || nCommand == SVX_SEARCHCMD_FIND_ALL) 1679 bAddUndo = sal_False; --- 1462 unchanged lines hidden --- |