Lines 798-804
Link Here
|
798 |
String& rsArrowName, sal_Bool bScaleArrow ) |
798 |
String& rsArrowName, sal_Bool bScaleArrow ) |
799 |
{ |
799 |
{ |
800 |
basegfx::B2DPolygon aRetval; |
800 |
basegfx::B2DPolygon aRetval; |
801 |
double fLineWidth = nLineWidth < 70 ? 70.0 : nLineWidth; |
801 |
// 70 100mm = 2pt = 40 twip. In MS, line width less than 2pt has the same size arrow as 2pt |
|
|
802 |
//If the unit is twip. Make all use this unit especailly the critical value 70/40. |
803 |
sal_Int32 nLineWidthCritical = bScaleArrow ? 40 : 70; |
804 |
double fLineWidth = nLineWidth < nLineWidthCritical ? nLineWidthCritical : nLineWidth;; |
802 |
double fLenghtMul, fWidthMul; |
805 |
double fLenghtMul, fWidthMul; |
803 |
sal_Int32 nLineNumber; |
806 |
sal_Int32 nLineNumber; |
804 |
switch( eLineLenght ) |
807 |
switch( eLineLenght ) |
Lines 816-827
Link Here
|
816 |
case mso_lineWideArrow : fWidthMul = 5.0; nLineNumber += 6; break; |
819 |
case mso_lineWideArrow : fWidthMul = 5.0; nLineNumber += 6; break; |
817 |
} |
820 |
} |
818 |
|
821 |
|
819 |
if ( bScaleArrow ) // #i33630 arrows imported from Word are too big |
|
|
820 |
{ |
821 |
fWidthMul /= 1.75; |
822 |
fLenghtMul/= 1.75; |
823 |
} |
824 |
|
825 |
rbArrowCenter = sal_False; |
822 |
rbArrowCenter = sal_False; |
826 |
switch ( eLineEnd ) |
823 |
switch ( eLineEnd ) |
827 |
{ |
824 |
{ |