textitem.cxx (eb72824a) | textitem.cxx (ae2dc0fa) |
---|---|
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 --- 1091 unchanged lines hidden (view full) --- 1100 case SFX_ITEM_PRESENTATION_NONE: 1101 rText.Erase(); 1102 return ePres; 1103 case SFX_ITEM_PRESENTATION_NAMELESS: 1104 case SFX_ITEM_PRESENTATION_COMPLETE: 1105 { 1106 if( SFX_MAPUNIT_RELATIVE != ePropUnit ) 1107 { | 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 --- 1091 unchanged lines hidden (view full) --- 1100 case SFX_ITEM_PRESENTATION_NONE: 1101 rText.Erase(); 1102 return ePres; 1103 case SFX_ITEM_PRESENTATION_NAMELESS: 1104 case SFX_ITEM_PRESENTATION_COMPLETE: 1105 { 1106 if( SFX_MAPUNIT_RELATIVE != ePropUnit ) 1107 { |
1108 ( rText = String::CreateFromInt32( (short)nProp ) ) += 1109 EE_RESSTR( GetMetricId( ePropUnit ) ); | 1108 rText = String::CreateFromInt32( (short)nProp ); 1109 rText += sal_Unicode(' '); 1110 rText += EE_RESSTR( GetMetricId( ePropUnit ) ); |
1110 if( 0 <= (short)nProp ) 1111 rText.Insert( sal_Unicode('+'), 0 ); 1112 } 1113 else if( 100 == nProp ) 1114 { 1115 rText = GetMetricText( (long)nHeight, 1116 eCoreUnit, SFX_MAPUNIT_POINT, pIntl ); | 1111 if( 0 <= (short)nProp ) 1112 rText.Insert( sal_Unicode('+'), 0 ); 1113 } 1114 else if( 100 == nProp ) 1115 { 1116 rText = GetMetricText( (long)nHeight, 1117 eCoreUnit, SFX_MAPUNIT_POINT, pIntl ); |
1118 rText += sal_Unicode(' '); |
|
1117 rText += EE_RESSTR(GetMetricId(SFX_MAPUNIT_POINT)); 1118 } 1119 else 1120 ( rText = String::CreateFromInt32( nProp )) += sal_Unicode('%'); 1121 return ePres; 1122 } 1123 default: ; //prevent warning 1124 } --- 189 unchanged lines hidden (view full) --- 1314 return ePres; 1315 case SFX_ITEM_PRESENTATION_NAMELESS: 1316 case SFX_ITEM_PRESENTATION_COMPLETE: 1317 { 1318 if ( 100 == nProp ) 1319 { 1320 rText = GetMetricText( (long)nWidth, 1321 eCoreUnit, SFX_MAPUNIT_POINT, pIntl ); | 1119 rText += EE_RESSTR(GetMetricId(SFX_MAPUNIT_POINT)); 1120 } 1121 else 1122 ( rText = String::CreateFromInt32( nProp )) += sal_Unicode('%'); 1123 return ePres; 1124 } 1125 default: ; //prevent warning 1126 } --- 189 unchanged lines hidden (view full) --- 1316 return ePres; 1317 case SFX_ITEM_PRESENTATION_NAMELESS: 1318 case SFX_ITEM_PRESENTATION_COMPLETE: 1319 { 1320 if ( 100 == nProp ) 1321 { 1322 rText = GetMetricText( (long)nWidth, 1323 eCoreUnit, SFX_MAPUNIT_POINT, pIntl ); |
1324 rText += sal_Unicode(' '); |
|
1322 rText += EE_RESSTR(GetMetricId(SFX_MAPUNIT_POINT)); 1323 } 1324 else 1325 ( rText = String::CreateFromInt32( nProp )) += sal_Unicode('%'); 1326 return ePres; 1327 } 1328 default: ; //prevent warning 1329 } --- 922 unchanged lines hidden (view full) --- 2252#ifndef SVX_LIGHT 2253 switch ( ePres ) 2254 { 2255 case SFX_ITEM_PRESENTATION_NONE: 2256 rText.Erase(); 2257 return ePres; 2258 case SFX_ITEM_PRESENTATION_NAMELESS: 2259 rText = GetMetricText( (long)GetValue(), eCoreUnit, SFX_MAPUNIT_POINT, pIntl ); | 1325 rText += EE_RESSTR(GetMetricId(SFX_MAPUNIT_POINT)); 1326 } 1327 else 1328 ( rText = String::CreateFromInt32( nProp )) += sal_Unicode('%'); 1329 return ePres; 1330 } 1331 default: ; //prevent warning 1332 } --- 922 unchanged lines hidden (view full) --- 2255#ifndef SVX_LIGHT 2256 switch ( ePres ) 2257 { 2258 case SFX_ITEM_PRESENTATION_NONE: 2259 rText.Erase(); 2260 return ePres; 2261 case SFX_ITEM_PRESENTATION_NAMELESS: 2262 rText = GetMetricText( (long)GetValue(), eCoreUnit, SFX_MAPUNIT_POINT, pIntl ); |
2263 rText += sal_Unicode(' '); |
|
2260 rText += EE_RESSTR(GetMetricId(SFX_MAPUNIT_POINT)); 2261 return ePres; 2262 case SFX_ITEM_PRESENTATION_COMPLETE: 2263 { 2264 rText = EE_RESSTR(RID_SVXITEMS_KERNING_COMPLETE); 2265 sal_uInt16 nId = 0; 2266 2267 if ( GetValue() > 0 ) 2268 nId = RID_SVXITEMS_KERNING_EXPANDED; 2269 else if ( GetValue() < 0 ) 2270 nId = RID_SVXITEMS_KERNING_CONDENSED; 2271 2272 if ( nId ) 2273 rText += EE_RESSTR(nId); 2274 rText += GetMetricText( (long)GetValue(), eCoreUnit, SFX_MAPUNIT_POINT, pIntl ); | 2264 rText += EE_RESSTR(GetMetricId(SFX_MAPUNIT_POINT)); 2265 return ePres; 2266 case SFX_ITEM_PRESENTATION_COMPLETE: 2267 { 2268 rText = EE_RESSTR(RID_SVXITEMS_KERNING_COMPLETE); 2269 sal_uInt16 nId = 0; 2270 2271 if ( GetValue() > 0 ) 2272 nId = RID_SVXITEMS_KERNING_EXPANDED; 2273 else if ( GetValue() < 0 ) 2274 nId = RID_SVXITEMS_KERNING_CONDENSED; 2275 2276 if ( nId ) 2277 rText += EE_RESSTR(nId); 2278 rText += GetMetricText( (long)GetValue(), eCoreUnit, SFX_MAPUNIT_POINT, pIntl ); |
2279 rText += sal_Unicode(' '); |
|
2275 rText += EE_RESSTR(GetMetricId(SFX_MAPUNIT_POINT)); 2276 return ePres; 2277 } 2278 default: ; //prevent warning 2279 } 2280#endif 2281 return SFX_ITEM_PRESENTATION_NONE; 2282} --- 1577 unchanged lines hidden --- | 2280 rText += EE_RESSTR(GetMetricId(SFX_MAPUNIT_POINT)); 2281 return ePres; 2282 } 2283 default: ; //prevent warning 2284 } 2285#endif 2286 return SFX_ITEM_PRESENTATION_NONE; 2287} --- 1577 unchanged lines hidden --- |