frmsh.cxx (0c259c9f) frmsh.cxx (1ff378ef)
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

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

386 }
387 break;
388
389 case SID_ATTR_TRANSFORM:
390 {
391 bool bApplyNewSize = false;
392
393 Size aNewSize = aMgr.GetSize();
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

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

386 }
387 break;
388
389 case SID_ATTR_TRANSFORM:
390 {
391 bool bApplyNewSize = false;
392
393 Size aNewSize = aMgr.GetSize();
394 if ( SFX_ITEM_SET == pArgs->GetItemState( SID_ATTR_TRANSFORM_WIDTH, FALSE, &pItem ) )
394 if ( SFX_ITEM_SET == pArgs->GetItemState( SID_ATTR_TRANSFORM_WIDTH, sal_False, &pItem ) )
395 {
396 aNewSize.setWidth( static_cast< const SfxUInt32Item* >(pItem)->GetValue() );
397 bApplyNewSize = true;
398 }
399
395 {
396 aNewSize.setWidth( static_cast< const SfxUInt32Item* >(pItem)->GetValue() );
397 bApplyNewSize = true;
398 }
399
400 if ( SFX_ITEM_SET == pArgs->GetItemState( SID_ATTR_TRANSFORM_HEIGHT, FALSE, &pItem ) )
400 if ( SFX_ITEM_SET == pArgs->GetItemState( SID_ATTR_TRANSFORM_HEIGHT, sal_False, &pItem ) )
401 {
402 aNewSize.setHeight( static_cast< const SfxUInt32Item* >(pItem)->GetValue() );
403 bApplyNewSize = true;
404 }
405
406 if ( bApplyNewSize )
407 {
408 aMgr.SetSize( aNewSize );

--- 815 unchanged lines hidden ---
401 {
402 aNewSize.setHeight( static_cast< const SfxUInt32Item* >(pItem)->GetValue() );
403 bApplyNewSize = true;
404 }
405
406 if ( bApplyNewSize )
407 {
408 aMgr.SetSize( aNewSize );

--- 815 unchanged lines hidden ---