drawsh2.cxx (b3f79822) | drawsh2.cxx (ee093554) |
---|---|
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 --- 124 unchanged lines hidden (view full) --- 133 ScDrawView* pView = pViewData->GetScDrawView(); 134 135 // #111711# call IsMirrorAllowed first to make sure ForcePossibilities (and thus CheckMarked) 136 // is called before GetMarkCount, so the nMarkCount value is valid for the rest of this method. 137 if (!pView->IsMirrorAllowed(sal_True,sal_True)) 138 { 139 rSet.DisableItem( SID_MIRROR_HORIZONTAL ); 140 rSet.DisableItem( SID_MIRROR_VERTICAL ); | 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 --- 124 unchanged lines hidden (view full) --- 133 ScDrawView* pView = pViewData->GetScDrawView(); 134 135 // #111711# call IsMirrorAllowed first to make sure ForcePossibilities (and thus CheckMarked) 136 // is called before GetMarkCount, so the nMarkCount value is valid for the rest of this method. 137 if (!pView->IsMirrorAllowed(sal_True,sal_True)) 138 { 139 rSet.DisableItem( SID_MIRROR_HORIZONTAL ); 140 rSet.DisableItem( SID_MIRROR_VERTICAL ); |
141 rSet.DisableItem( SID_FLIP_HORIZONTAL ); 142 rSet.DisableItem( SID_FLIP_VERTICAL ); |
|
141 } 142 143 const SdrMarkList& rMarkList = pView->GetMarkedObjectList(); 144 sal_uLong nMarkCount = rMarkList.GetMarkCount(); 145 146 if ( nMarkCount <= 1 || !pView->IsGroupPossible() ) 147 rSet.DisableItem( SID_GROUP ); 148 if ( nMarkCount == 0 || !pView->IsUnGroupPossible() ) --- 238 unchanged lines hidden (view full) --- 387 bResult=sal_False; 388 break; 389 } 390 } 391 } 392 return bResult; 393} 394 | 143 } 144 145 const SdrMarkList& rMarkList = pView->GetMarkedObjectList(); 146 sal_uLong nMarkCount = rMarkList.GetMarkCount(); 147 148 if ( nMarkCount <= 1 || !pView->IsGroupPossible() ) 149 rSet.DisableItem( SID_GROUP ); 150 if ( nMarkCount == 0 || !pView->IsUnGroupPossible() ) --- 238 unchanged lines hidden (view full) --- 389 bResult=sal_False; 390 break; 391 } 392 } 393 } 394 return bResult; 395} 396 |
395 | 397void ScDrawShell::GetDrawAttrStateForIFBX( SfxItemSet& rSet ) 398{ 399 ScDrawView* pView = pViewData->GetScDrawView(); 400 const SdrMarkList& rMarkList = pView->GetMarkedObjectList(); 401 402 if( rMarkList.GetMark(0) != 0 ) 403 { 404 SfxItemSet aNewAttr(pView->GetGeoAttrFromMarked()); 405 rSet.Put(aNewAttr, sal_False); 406 } 407} |