basesh.cxx (8ef2f12b) | basesh.cxx (23d8f725) |
---|---|
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 --- 1527 unchanged lines hidden (view full) --- 1536 SvxIMapDlg *pDlg = SWIMAPDLG(GetView()); 1537 if( pDlg->GetEditingObject() != rSh.GetIMapInventor() ) 1538 lcl_UpdateIMapDlg( rSh ); 1539 } 1540 } 1541 rSet.Put(SfxBoolItem(nWhich, bDisable)); 1542 } 1543 break; | 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 --- 1527 unchanged lines hidden (view full) --- 1536 SvxIMapDlg *pDlg = SWIMAPDLG(GetView()); 1537 if( pDlg->GetEditingObject() != rSh.GetIMapInventor() ) 1538 lcl_UpdateIMapDlg( rSh ); 1539 } 1540 } 1541 rSet.Put(SfxBoolItem(nWhich, bDisable)); 1542 } 1543 break; |
1544 case FN_BACKSPACE: 1545 case SID_DELETE: 1546 if (rSh.IsSelObjProtected( FLYPROTECT_CONTENT|FLYPROTECT_PARENT ) != 0) 1547 rSet.DisableItem( nWhich ); 1548 break; | 1544 1545 case FN_BACKSPACE: 1546 case SID_DELETE: 1547 if ( ( rSh.HasReadonlySel() && !rSh.CrsrInsideInputFld() ) 1548 || rSh.IsSelObjProtected( FLYPROTECT_CONTENT|FLYPROTECT_PARENT ) != 0 ) 1549 { 1550 rSet.DisableItem( nWhich ); 1551 } 1552 break; 1553 |
1549 case SID_CONTOUR_DLG: 1550 { 1551 sal_Bool bParentCntProt = 0 != rSh.IsSelObjProtected(FLYPROTECT_CONTENT|FLYPROTECT_PARENT ); 1552 1553 if( bParentCntProt || 0 != (HTMLMODE_ON & ::GetHtmlMode( 1554 GetView().GetDocShell() )) ) 1555 rSet.DisableItem( nWhich ); 1556 else --- 1402 unchanged lines hidden --- | 1554 case SID_CONTOUR_DLG: 1555 { 1556 sal_Bool bParentCntProt = 0 != rSh.IsSelObjProtected(FLYPROTECT_CONTENT|FLYPROTECT_PARENT ); 1557 1558 if( bParentCntProt || 0 != (HTMLMODE_ON & ::GetHtmlMode( 1559 GetView().GetDocShell() )) ) 1560 rSet.DisableItem( nWhich ); 1561 else --- 1402 unchanged lines hidden --- |