drawsh.cxx (cb0cd92e) | drawsh.cxx (261e9a4b) |
---|---|
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 --- 155 unchanged lines hidden (view full) --- 164 rSh.SelectionToHell(); 165 } 166 rSh.EndUndo( UNDO_END ); 167 rBnd.Invalidate( SID_OBJECT_HELL ); 168 rBnd.Invalidate( SID_OBJECT_HEAVEN ); 169 } 170 break; 171 | 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 --- 155 unchanged lines hidden (view full) --- 164 rSh.SelectionToHell(); 165 } 166 rSh.EndUndo( UNDO_END ); 167 rBnd.Invalidate( SID_OBJECT_HELL ); 168 rBnd.Invalidate( SID_OBJECT_HEAVEN ); 169 } 170 break; 171 |
172 case FN_FLIP_HORZ_GRAFIC: 173 case SID_FLIP_HORIZONTAL: 174 bMirror = sal_False; 175 /* no break */ 176 case FN_FLIP_VERT_GRAFIC: | |
177 case SID_FLIP_VERTICAL: | 172 case SID_FLIP_VERTICAL: |
178 rSh.MirrorSelection( bMirror ); 179 break; | 173 bMirror = sal_False; 174 /* no break */ 175 case SID_FLIP_HORIZONTAL: 176 rSh.MirrorSelection( bMirror ); 177 break; |
180 181 case SID_FONTWORK: 182 { 183 FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, &rSh.GetView())); 184 SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, static_cast< sal_uInt16 >(eMetric)) ); 185 SfxViewFrame* pVFrame = GetView().GetViewFrame(); 186 if (pArgs) 187 { --- 155 unchanged lines hidden (view full) --- 343 } 344 break; 345 346 case SID_BEZIER_EDIT: 347 if (!Disable(rSet, nWhich)) 348 rSet.Put( SfxBoolItem( nWhich, !GetView().IsDrawSelMode())); 349 break; 350 | 178 179 case SID_FONTWORK: 180 { 181 FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, &rSh.GetView())); 182 SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, static_cast< sal_uInt16 >(eMetric)) ); 183 SfxViewFrame* pVFrame = GetView().GetViewFrame(); 184 if (pArgs) 185 { --- 155 unchanged lines hidden (view full) --- 341 } 342 break; 343 344 case SID_BEZIER_EDIT: 345 if (!Disable(rSet, nWhich)) 346 rSet.Put( SfxBoolItem( nWhich, !GetView().IsDrawSelMode())); 347 break; 348 |
351 case FN_FLIP_HORZ_GRAFIC: 352 case SID_FLIP_HORIZONTAL: 353 if ( !pSdrView->IsMirrorAllowed() || bProtected ) 354 rSet.DisableItem( nWhich ); 355 break; 356 357 case FN_FLIP_VERT_GRAFIC: | |
358 case SID_FLIP_VERTICAL: | 349 case SID_FLIP_VERTICAL: |
359 if ( !pSdrView->IsMirrorAllowed() || bProtected ) 360 rSet.DisableItem( nWhich ); 361 break; | 350 if ( !pSdrView->IsMirrorAllowed() || bProtected ) 351 { 352 rSet.DisableItem( nWhich ); 353 } 354 else 355 { 356 // TTTT - needs to be adapted in aw080: 357 // state is not kept for drawing objects --> provide not flipped state 358 rSet.Put( SfxBoolItem( nWhich, sal_False ) ); 359 } 360 break; |
362 | 361 |
362 case SID_FLIP_HORIZONTAL: 363 if ( !pSdrView->IsMirrorAllowed() || bProtected ) 364 { 365 rSet.DisableItem( nWhich ); 366 } 367 else 368 { 369 // TTTT - needs to be adapted in aw080: 370 // state is not kept for drawing objects --> provide not flipped state 371 rSet.Put( SfxBoolItem( nWhich, sal_False ) ); 372 } 373 break; 374 |
|
363 case SID_FONTWORK: 364 { 365 if (bProtected) 366 rSet.DisableItem( nWhich ); 367 else 368 { 369 const sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId(); 370 rSet.Put(SfxBoolItem( nWhich , GetView().GetViewFrame()->HasChildWindow(nId))); --- 115 unchanged lines hidden --- | 375 case SID_FONTWORK: 376 { 377 if (bProtected) 378 rSet.DisableItem( nWhich ); 379 else 380 { 381 const sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId(); 382 rSet.Put(SfxBoolItem( nWhich , GetView().GetViewFrame()->HasChildWindow(nId))); --- 115 unchanged lines hidden --- |