frmitems.cxx (190118d0) frmitems.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

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

331 rText = GetMetricText( aSize.Width(), eCoreUnit, ePresUnit, pIntl );
332 rText += cpDelim;
333 rText += GetMetricText( aSize.Height(), eCoreUnit, ePresUnit, pIntl );
334 return SFX_ITEM_PRESENTATION_NAMELESS;
335
336 case SFX_ITEM_PRESENTATION_COMPLETE:
337 rText = EE_RESSTR(RID_SVXITEMS_SIZE_WIDTH);
338 rText += GetMetricText( aSize.Width(), eCoreUnit, ePresUnit, pIntl );
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

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

331 rText = GetMetricText( aSize.Width(), eCoreUnit, ePresUnit, pIntl );
332 rText += cpDelim;
333 rText += GetMetricText( aSize.Height(), eCoreUnit, ePresUnit, pIntl );
334 return SFX_ITEM_PRESENTATION_NAMELESS;
335
336 case SFX_ITEM_PRESENTATION_COMPLETE:
337 rText = EE_RESSTR(RID_SVXITEMS_SIZE_WIDTH);
338 rText += GetMetricText( aSize.Width(), eCoreUnit, ePresUnit, pIntl );
339 rText += sal_Unicode(' ');
339 rText += EE_RESSTR(GetMetricId(ePresUnit));
340 rText += cpDelim;
341 rText += EE_RESSTR(RID_SVXITEMS_SIZE_HEIGHT);
342 rText += GetMetricText( aSize.Height(), eCoreUnit, ePresUnit, pIntl );
340 rText += EE_RESSTR(GetMetricId(ePresUnit));
341 rText += cpDelim;
342 rText += EE_RESSTR(RID_SVXITEMS_SIZE_HEIGHT);
343 rText += GetMetricText( aSize.Height(), eCoreUnit, ePresUnit, pIntl );
344 rText += sal_Unicode(' ');
343 rText += EE_RESSTR(GetMetricId(ePresUnit));
344 return SFX_ITEM_PRESENTATION_COMPLETE;
345 //no break necessary
346 default: ;//prevent warning
347
348 }
349#endif // !SVX_LIGHT
350 return SFX_ITEM_PRESENTATION_NONE;

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

604 {
605 rText = EE_RESSTR(RID_SVXITEMS_LRSPACE_LEFT);
606 if ( 100 != nPropLeftMargin )
607 ( rText += String::CreateFromInt32( nPropLeftMargin )) += sal_Unicode('%');
608 else
609 {
610 rText += GetMetricText( (long)nLeftMargin,
611 eCoreUnit, ePresUnit, pIntl );
345 rText += EE_RESSTR(GetMetricId(ePresUnit));
346 return SFX_ITEM_PRESENTATION_COMPLETE;
347 //no break necessary
348 default: ;//prevent warning
349
350 }
351#endif // !SVX_LIGHT
352 return SFX_ITEM_PRESENTATION_NONE;

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

606 {
607 rText = EE_RESSTR(RID_SVXITEMS_LRSPACE_LEFT);
608 if ( 100 != nPropLeftMargin )
609 ( rText += String::CreateFromInt32( nPropLeftMargin )) += sal_Unicode('%');
610 else
611 {
612 rText += GetMetricText( (long)nLeftMargin,
613 eCoreUnit, ePresUnit, pIntl );
614 rText += sal_Unicode(' ');
612 rText += EE_RESSTR(GetMetricId(ePresUnit));
613 }
614 rText += cpDelim;
615 if ( 100 != nPropFirstLineOfst || nFirstLineOfst )
616 {
617 rText += EE_RESSTR(RID_SVXITEMS_LRSPACE_FLINE);
618 if ( 100 != nPropFirstLineOfst )
619 ( rText += String::CreateFromInt32( nPropFirstLineOfst ))
620 += sal_Unicode('%');
621 else
622 {
623 rText += GetMetricText( (long)nFirstLineOfst,
624 eCoreUnit, ePresUnit, pIntl );
615 rText += EE_RESSTR(GetMetricId(ePresUnit));
616 }
617 rText += cpDelim;
618 if ( 100 != nPropFirstLineOfst || nFirstLineOfst )
619 {
620 rText += EE_RESSTR(RID_SVXITEMS_LRSPACE_FLINE);
621 if ( 100 != nPropFirstLineOfst )
622 ( rText += String::CreateFromInt32( nPropFirstLineOfst ))
623 += sal_Unicode('%');
624 else
625 {
626 rText += GetMetricText( (long)nFirstLineOfst,
627 eCoreUnit, ePresUnit, pIntl );
628 rText += sal_Unicode(' ');
625 rText += EE_RESSTR(GetMetricId(ePresUnit));
626 }
627 rText += cpDelim;
628 }
629 rText += EE_RESSTR(RID_SVXITEMS_LRSPACE_RIGHT);
630 if ( 100 != nPropRightMargin )
631 ( rText += String::CreateFromInt32( nPropRightMargin )) += sal_Unicode('%');
632 else
633 {
634 rText += GetMetricText( (long)nRightMargin,
635 eCoreUnit, ePresUnit, pIntl );
629 rText += EE_RESSTR(GetMetricId(ePresUnit));
630 }
631 rText += cpDelim;
632 }
633 rText += EE_RESSTR(RID_SVXITEMS_LRSPACE_RIGHT);
634 if ( 100 != nPropRightMargin )
635 ( rText += String::CreateFromInt32( nPropRightMargin )) += sal_Unicode('%');
636 else
637 {
638 rText += GetMetricText( (long)nRightMargin,
639 eCoreUnit, ePresUnit, pIntl );
640 rText += sal_Unicode(' ');
636 rText += EE_RESSTR(GetMetricId(ePresUnit));
637 }
638 return SFX_ITEM_PRESENTATION_COMPLETE;
639 }
640 default: ;//prevent warning
641 }
642#endif // !SVX_LIGHT
643 return SFX_ITEM_PRESENTATION_NONE;

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

953 case SFX_ITEM_PRESENTATION_COMPLETE:
954 {
955 rText = EE_RESSTR(RID_SVXITEMS_ULSPACE_UPPER);
956 if ( 100 != nPropUpper )
957 ( rText += String::CreateFromInt32( nPropUpper )) += sal_Unicode('%');
958 else
959 {
960 rText += GetMetricText( (long)nUpper, eCoreUnit, ePresUnit, pIntl );
641 rText += EE_RESSTR(GetMetricId(ePresUnit));
642 }
643 return SFX_ITEM_PRESENTATION_COMPLETE;
644 }
645 default: ;//prevent warning
646 }
647#endif // !SVX_LIGHT
648 return SFX_ITEM_PRESENTATION_NONE;

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

958 case SFX_ITEM_PRESENTATION_COMPLETE:
959 {
960 rText = EE_RESSTR(RID_SVXITEMS_ULSPACE_UPPER);
961 if ( 100 != nPropUpper )
962 ( rText += String::CreateFromInt32( nPropUpper )) += sal_Unicode('%');
963 else
964 {
965 rText += GetMetricText( (long)nUpper, eCoreUnit, ePresUnit, pIntl );
966 rText += sal_Unicode(' ');
961 rText += EE_RESSTR(GetMetricId(ePresUnit));
962 }
963 rText += cpDelim;
964 rText += EE_RESSTR(RID_SVXITEMS_ULSPACE_LOWER);
965 if ( 100 != nPropLower )
966 ( rText += String::CreateFromInt32( nPropLower )) += sal_Unicode('%');
967 else
968 {
969 rText += GetMetricText( (long)nLower, eCoreUnit, ePresUnit, pIntl );
967 rText += EE_RESSTR(GetMetricId(ePresUnit));
968 }
969 rText += cpDelim;
970 rText += EE_RESSTR(RID_SVXITEMS_ULSPACE_LOWER);
971 if ( 100 != nPropLower )
972 ( rText += String::CreateFromInt32( nPropLower )) += sal_Unicode('%');
973 else
974 {
975 rText += GetMetricText( (long)nLower, eCoreUnit, ePresUnit, pIntl );
976 rText += sal_Unicode(' ');
970 rText += EE_RESSTR(GetMetricId(ePresUnit));
971 }
972 return SFX_ITEM_PRESENTATION_COMPLETE;
973 }
974 default: ;//prevent warning
975 }
976#endif
977 return SFX_ITEM_PRESENTATION_NONE;

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

1472 rText += cpDelim;
1473
1474 sal_uInt16 nId = RID_SVXITEMS_TRANSPARENT_FALSE;
1475 if ( aShadowColor.GetTransparency() )
1476 nId = RID_SVXITEMS_TRANSPARENT_TRUE;
1477 rText += EE_RESSTR(nId);
1478 rText += cpDelim;
1479 rText += GetMetricText( (long)nWidth, eCoreUnit, ePresUnit, pIntl );
977 rText += EE_RESSTR(GetMetricId(ePresUnit));
978 }
979 return SFX_ITEM_PRESENTATION_COMPLETE;
980 }
981 default: ;//prevent warning
982 }
983#endif
984 return SFX_ITEM_PRESENTATION_NONE;

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

1479 rText += cpDelim;
1480
1481 sal_uInt16 nId = RID_SVXITEMS_TRANSPARENT_FALSE;
1482 if ( aShadowColor.GetTransparency() )
1483 nId = RID_SVXITEMS_TRANSPARENT_TRUE;
1484 rText += EE_RESSTR(nId);
1485 rText += cpDelim;
1486 rText += GetMetricText( (long)nWidth, eCoreUnit, ePresUnit, pIntl );
1487 rText += sal_Unicode(' ');
1480 rText += EE_RESSTR(GetMetricId(ePresUnit));
1481 rText += cpDelim;
1482 rText += EE_RESSTR(RID_SVXITEMS_SHADOW_BEGIN + eLocation);
1483 return ePres;
1484 }
1485 default: ;//prevent warning
1486 }
1487#endif

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

1677 aStr += ::GetColorString( aColor );
1678 aStr += cpDelim;
1679
1680 if ( nResId )
1681 aStr += EE_RESSTR(nResId);
1682 else
1683 {
1684 String sMetric = EE_RESSTR(GetMetricId( eDestUnit ));
1488 rText += EE_RESSTR(GetMetricId(ePresUnit));
1489 rText += cpDelim;
1490 rText += EE_RESSTR(RID_SVXITEMS_SHADOW_BEGIN + eLocation);
1491 return ePres;
1492 }
1493 default: ;//prevent warning
1494 }
1495#endif

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

1685 aStr += ::GetColorString( aColor );
1686 aStr += cpDelim;
1687
1688 if ( nResId )
1689 aStr += EE_RESSTR(nResId);
1690 else
1691 {
1692 String sMetric = EE_RESSTR(GetMetricId( eDestUnit ));
1693 sMetric.Insert( sal_Unicode(' '), 0 );
1685 aStr += GetMetricText( (long)nInWidth, eSrcUnit, eDestUnit, pIntl );
1686 if ( bMetricStr )
1687 aStr += sMetric;
1688 aStr += cpDelim;
1689 aStr += GetMetricText( (long)nOutWidth, eSrcUnit, eDestUnit, pIntl );
1690 if ( bMetricStr )
1691 aStr += sMetric;
1692 aStr += cpDelim;

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

2214 }
2215
2216 rText += EE_RESSTR(RID_SVXITEMS_BORDER_DISTANCE);
2217 if( nTopDist == nBottomDist && nTopDist == nLeftDist &&
2218 nTopDist == nRightDist )
2219 {
2220 rText += GetMetricText( (long)nTopDist, eCoreUnit,
2221 ePresUnit, pIntl );
1694 aStr += GetMetricText( (long)nInWidth, eSrcUnit, eDestUnit, pIntl );
1695 if ( bMetricStr )
1696 aStr += sMetric;
1697 aStr += cpDelim;
1698 aStr += GetMetricText( (long)nOutWidth, eSrcUnit, eDestUnit, pIntl );
1699 if ( bMetricStr )
1700 aStr += sMetric;
1701 aStr += cpDelim;

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

2223 }
2224
2225 rText += EE_RESSTR(RID_SVXITEMS_BORDER_DISTANCE);
2226 if( nTopDist == nBottomDist && nTopDist == nLeftDist &&
2227 nTopDist == nRightDist )
2228 {
2229 rText += GetMetricText( (long)nTopDist, eCoreUnit,
2230 ePresUnit, pIntl );
2231 rText += sal_Unicode(' ');
2222 rText += EE_RESSTR(GetMetricId(ePresUnit));
2223 }
2224 else
2225 {
2232 rText += EE_RESSTR(GetMetricId(ePresUnit));
2233 }
2234 else
2235 {
2226 (((rText += EE_RESSTR(RID_SVXITEMS_BORDER_TOP))
2236 ((((rText += EE_RESSTR(RID_SVXITEMS_BORDER_TOP))
2227 += GetMetricText( (long)nTopDist, eCoreUnit,
2228 ePresUnit, pIntl ))
2237 += GetMetricText( (long)nTopDist, eCoreUnit,
2238 ePresUnit, pIntl ))
2239 += sal_Unicode(' '))
2229 += EE_RESSTR(GetMetricId(ePresUnit)))
2230 += cpDelim;
2240 += EE_RESSTR(GetMetricId(ePresUnit)))
2241 += cpDelim;
2231 (((rText += EE_RESSTR(RID_SVXITEMS_BORDER_BOTTOM))
2242 ((((rText += EE_RESSTR(RID_SVXITEMS_BORDER_BOTTOM))
2232 += GetMetricText( (long)nBottomDist, eCoreUnit,
2233 ePresUnit, pIntl ))
2243 += GetMetricText( (long)nBottomDist, eCoreUnit,
2244 ePresUnit, pIntl ))
2245 += sal_Unicode(' '))
2234 += EE_RESSTR(GetMetricId(ePresUnit)))
2235 += cpDelim;
2246 += EE_RESSTR(GetMetricId(ePresUnit)))
2247 += cpDelim;
2236 (((rText += EE_RESSTR(RID_SVXITEMS_BORDER_LEFT))
2248 ((((rText += EE_RESSTR(RID_SVXITEMS_BORDER_LEFT))
2237 += GetMetricText( (long)nLeftDist, eCoreUnit,
2238 ePresUnit, pIntl ))
2249 += GetMetricText( (long)nLeftDist, eCoreUnit,
2250 ePresUnit, pIntl ))
2251 += sal_Unicode(' '))
2239 += EE_RESSTR(GetMetricId(ePresUnit)))
2240 += cpDelim;
2252 += EE_RESSTR(GetMetricId(ePresUnit)))
2253 += cpDelim;
2241 ((rText += EE_RESSTR(RID_SVXITEMS_BORDER_RIGHT))
2254 (((rText += EE_RESSTR(RID_SVXITEMS_BORDER_RIGHT))
2242 += GetMetricText( (long)nRightDist, eCoreUnit,
2243 ePresUnit, pIntl ))
2255 += GetMetricText( (long)nRightDist, eCoreUnit,
2256 ePresUnit, pIntl ))
2257 += sal_Unicode(' '))
2244 += EE_RESSTR(GetMetricId(ePresUnit));
2245 }
2246 return SFX_ITEM_PRESENTATION_COMPLETE;
2247 }
2248 default: ;//prevent warning
2249 }
2250#endif // !SVX_LIGHT
2251 return SFX_ITEM_PRESENTATION_NONE;

--- 2212 unchanged lines hidden ---
2258 += EE_RESSTR(GetMetricId(ePresUnit));
2259 }
2260 return SFX_ITEM_PRESENTATION_COMPLETE;
2261 }
2262 default: ;//prevent warning
2263 }
2264#endif // !SVX_LIGHT
2265 return SFX_ITEM_PRESENTATION_NONE;

--- 2212 unchanged lines hidden ---