EnhancedCustomShape2d.cxx (22d4c962) | EnhancedCustomShape2d.cxx (e5cfc9ca) |
---|---|
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 --- 683 unchanged lines hidden (view full) --- 692EnhancedCustomShape2d::EnhancedCustomShape2d( SdrObject* pAObj ) : 693 SfxItemSet ( pAObj->GetMergedItemSet() ), 694 pCustomShapeObj ( pAObj ), 695 eSpType ( mso_sptNil ), 696 nCoordLeft ( 0 ), 697 nCoordTop ( 0 ), 698 nCoordWidth ( 21600 ), 699 nCoordHeight ( 21600 ), | 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 --- 683 unchanged lines hidden (view full) --- 692EnhancedCustomShape2d::EnhancedCustomShape2d( SdrObject* pAObj ) : 693 SfxItemSet ( pAObj->GetMergedItemSet() ), 694 pCustomShapeObj ( pAObj ), 695 eSpType ( mso_sptNil ), 696 nCoordLeft ( 0 ), 697 nCoordTop ( 0 ), 698 nCoordWidth ( 21600 ), 699 nCoordHeight ( 21600 ), |
700 nXRef ( 0x80000000 ), 701 nYRef ( 0x80000000 ), | 700 nXRef ( Mx80000000 ), 701 nYRef ( Mx80000000 ), |
702 nFlags ( 0 ), 703 nColorData ( 0 ), 704 bTextFlow ( sal_False ), 705 bFilled ( ((const XFillStyleItem&)pAObj->GetMergedItem( XATTR_FILLSTYLE )).GetValue() != XFILL_NONE ), 706 bStroked ( ((const XLineStyleItem&)pAObj->GetMergedItem( XATTR_LINESTYLE )).GetValue() != XLINE_NONE ), 707 bFlipH ( sal_False ), 708 bFlipV ( sal_False ) 709{ --- 83 unchanged lines hidden (view full) --- 793 794 case mso_sptVerticalScroll : nColorData = 0x30ee0000; break; 795 case mso_sptHorizontalScroll : nColorData = 0x30ee0000; break; 796 default: 797 break; 798 } 799 fXScale = nCoordWidth == 0 ? 0.0 : (double)aLogicRect.GetWidth() / (double)nCoordWidth; 800 fYScale = nCoordHeight == 0 ? 0.0 : (double)aLogicRect.GetHeight() / (double)nCoordHeight; | 702 nFlags ( 0 ), 703 nColorData ( 0 ), 704 bTextFlow ( sal_False ), 705 bFilled ( ((const XFillStyleItem&)pAObj->GetMergedItem( XATTR_FILLSTYLE )).GetValue() != XFILL_NONE ), 706 bStroked ( ((const XLineStyleItem&)pAObj->GetMergedItem( XATTR_LINESTYLE )).GetValue() != XLINE_NONE ), 707 bFlipH ( sal_False ), 708 bFlipV ( sal_False ) 709{ --- 83 unchanged lines hidden (view full) --- 793 794 case mso_sptVerticalScroll : nColorData = 0x30ee0000; break; 795 case mso_sptHorizontalScroll : nColorData = 0x30ee0000; break; 796 default: 797 break; 798 } 799 fXScale = nCoordWidth == 0 ? 0.0 : (double)aLogicRect.GetWidth() / (double)nCoordWidth; 800 fYScale = nCoordHeight == 0 ? 0.0 : (double)aLogicRect.GetHeight() / (double)nCoordHeight; |
801 if ( (sal_uInt32)nXRef != 0x80000000 && aLogicRect.GetHeight() ) | 801 if( (nXRef != Mx80000000) && aLogicRect.GetHeight() ) |
802 { 803 fXRatio = (double)aLogicRect.GetWidth() / (double)aLogicRect.GetHeight(); 804 if ( fXRatio > 1 ) 805 fXScale /= fXRatio; 806 else 807 fXRatio = 1.0; 808 } 809 else 810 fXRatio = 1.0; | 802 { 803 fXRatio = (double)aLogicRect.GetWidth() / (double)aLogicRect.GetHeight(); 804 if ( fXRatio > 1 ) 805 fXScale /= fXRatio; 806 else 807 fXRatio = 1.0; 808 } 809 else 810 fXRatio = 1.0; |
811 if ( (sal_uInt32)nYRef != 0x80000000 && aLogicRect.GetWidth() ) | 811 if( (nYRef != Mx80000000) && aLogicRect.GetWidth() ) |
812 { 813 fYRatio = (double)aLogicRect.GetHeight() / (double)aLogicRect.GetWidth(); 814 if ( fYRatio > 1 ) 815 fYScale /= fYRatio; 816 else 817 fYRatio = 1.0; 818 } 819 else --- 1453 unchanged lines hidden --- | 812 { 813 fYRatio = (double)aLogicRect.GetHeight() / (double)aLogicRect.GetWidth(); 814 if ( fYRatio > 1 ) 815 fYScale /= fYRatio; 816 else 817 fYRatio = 1.0; 818 } 819 else --- 1453 unchanged lines hidden --- |