View | Details | Raw Unified | Return to issue 119884
Collapse All | Expand All

(-)filter/source/msfilter/escherex.cxx (+37 lines)
Lines 77-82 Link Here
77
#include <com/sun/star/drawing/ProjectionMode.hpp>
77
#include <com/sun/star/drawing/ProjectionMode.hpp>
78
#include <com/sun/star/text/XSimpleText.hpp>
78
#include <com/sun/star/text/XSimpleText.hpp>
79
#include <com/sun/star/drawing/ShadeMode.hpp>
79
#include <com/sun/star/drawing/ShadeMode.hpp>
80
#include <com/sun/star/drawing/TextFitToSizeType.hpp>
80
#include <vcl/hatch.hxx>
81
#include <vcl/hatch.hxx>
81
#include <com/sun/star/awt/XGraphics.hpp>
82
#include <com/sun/star/awt/XGraphics.hpp>
82
#include <com/sun/star/awt/FontSlant.hpp>
83
#include <com/sun/star/awt/FontSlant.hpp>
Lines 3113-3118 Link Here
3113
										nTextPathFlags &=~0x20;
3114
										nTextPathFlags &=~0x20;
3114
								}
3115
								}
3115
							}
3116
							}
3117
							//export gTextAlign attr
3118
							if ( EscherPropertyValueHelper::GetPropertyValue( aAny, aXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "TextHorizontalAdjust" ) ), sal_True ) )
3119
							{
3120
								MSO_GeoTextAlign  gTextAlign = mso_alignTextCenter;
3121
								SdrFitToSizeType  eFTS( ((SdrTextFitToSizeTypeItem&)pCustoShape->GetMergedItem( SDRATTR_TEXT_FITTOSIZE )).GetValue() );
3122
								drawing::TextHorizontalAdjust	eHA( drawing::TextHorizontalAdjust_LEFT );
3123
								aAny >>= eHA;
3124
								switch( eHA )
3125
								{
3126
								case drawing::TextHorizontalAdjust_LEFT :
3127
									gTextAlign = mso_alignTextLeft;
3128
									break;
3129
								case drawing::TextHorizontalAdjust_CENTER:
3130
									gTextAlign = mso_alignTextCenter;
3131
									break;
3132
								case drawing::TextHorizontalAdjust_RIGHT:
3133
									gTextAlign = mso_alignTextRight;
3134
									break;
3135
								case drawing::TextHorizontalAdjust_BLOCK:
3136
									{
3137
										SdrFitToSizeType  eFTS( ((SdrTextFitToSizeTypeItem&)pCustoShape->GetMergedItem( SDRATTR_TEXT_FITTOSIZE )).GetValue() );
3138
										if ( eFTS == SDRTEXTFIT_ALLLINES)
3139
										{
3140
											gTextAlign = mso_alignTextStretch;
3141
										}
3142
										else
3143
										{
3144
											gTextAlign = mso_alignTextWordJust;
3145
										}
3146
										break;
3147
									}
3148
								default:
3149
									break;
3150
								}
3151
								AddOpt(DFF_Prop_gtextAlign,gTextAlign);
3152
							}
3116
						}
3153
						}
3117
						if((nTextPathFlags & 0x4000) != 0)  //Is Font work
3154
						if((nTextPathFlags & 0x4000) != 0)  //Is Font work
3118
						{
3155
						{

Return to issue 119884