attrdesc.cxx (efeef26f) | attrdesc.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 --- 374 unchanged lines hidden (view full) --- 383 if ( GetWidthPercent() ) 384 { 385 rText += String::CreateFromInt32(GetWidthPercent()); 386 rText += '%'; 387 } 388 else 389 { 390 rText += ::GetMetricText( GetWidth(), 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 --- 374 unchanged lines hidden (view full) --- 383 if ( GetWidthPercent() ) 384 { 385 rText += String::CreateFromInt32(GetWidthPercent()); 386 rText += '%'; 387 } 388 else 389 { 390 rText += ::GetMetricText( GetWidth(), eCoreUnit, ePresUnit, pIntl ); |
391 rText += sal_Unicode(' '); |
|
391 rText += ::GetSvxString( ::GetMetricId( ePresUnit ) ); 392 } 393 if ( ATT_VAR_SIZE != GetHeightSizeType() ) 394 { 395 rText += ','; 396 rText += ' '; 397 const sal_uInt16 nId = ATT_FIX_SIZE == eFrmHeightType ? 398 STR_FRM_FIXEDHEIGHT : STR_FRM_MINHEIGHT; 399 rText += SW_RESSTR( nId ); 400 rText += ' '; 401 if ( GetHeightPercent() ) 402 { 403 rText += String::CreateFromInt32(GetHeightPercent()); 404 rText += '%'; 405 } 406 else 407 { 408 rText += ::GetMetricText( GetHeight(), eCoreUnit, ePresUnit, pIntl ); | 392 rText += ::GetSvxString( ::GetMetricId( ePresUnit ) ); 393 } 394 if ( ATT_VAR_SIZE != GetHeightSizeType() ) 395 { 396 rText += ','; 397 rText += ' '; 398 const sal_uInt16 nId = ATT_FIX_SIZE == eFrmHeightType ? 399 STR_FRM_FIXEDHEIGHT : STR_FRM_MINHEIGHT; 400 rText += SW_RESSTR( nId ); 401 rText += ' '; 402 if ( GetHeightPercent() ) 403 { 404 rText += String::CreateFromInt32(GetHeightPercent()); 405 rText += '%'; 406 } 407 else 408 { 409 rText += ::GetMetricText( GetHeight(), eCoreUnit, ePresUnit, pIntl ); |
410 rText += sal_Unicode(' '); |
|
409 rText += ::GetSvxString( ::GetMetricId( ePresUnit ) ); 410 } 411 } 412 return ePres; 413 } 414 default:;//prevent warning 415 } 416 return SFX_ITEM_PRESENTATION_NONE; --- 140 unchanged lines hidden (view full) --- 557 sal_uInt16 nId = 0; 558 switch ( GetVertOrient() ) 559 { 560 case text::VertOrientation::NONE: 561 { 562 rText += SW_RESSTR( STR_POS_Y ); 563 rText += ' '; 564 rText += ::GetMetricText( GetPos(), eCoreUnit, ePresUnit, pIntl ); | 411 rText += ::GetSvxString( ::GetMetricId( ePresUnit ) ); 412 } 413 } 414 return ePres; 415 } 416 default:;//prevent warning 417 } 418 return SFX_ITEM_PRESENTATION_NONE; --- 140 unchanged lines hidden (view full) --- 559 sal_uInt16 nId = 0; 560 switch ( GetVertOrient() ) 561 { 562 case text::VertOrientation::NONE: 563 { 564 rText += SW_RESSTR( STR_POS_Y ); 565 rText += ' '; 566 rText += ::GetMetricText( GetPos(), eCoreUnit, ePresUnit, pIntl ); |
567 rText += sal_Unicode(' '); |
|
565 rText += ::GetSvxString( ::GetMetricId( ePresUnit ) ); 566 } 567 break; 568 case text::VertOrientation::TOP: 569 nId = STR_VERT_TOP; 570 break; 571 case text::VertOrientation::CENTER: 572 nId = STR_VERT_CENTER; --- 45 unchanged lines hidden (view full) --- 618 sal_uInt16 nId = 0; 619 switch ( GetHoriOrient() ) 620 { 621 case text::HoriOrientation::NONE: 622 { 623 rText += SW_RESSTR( STR_POS_X ); 624 rText += ' '; 625 rText += ::GetMetricText( GetPos(), eCoreUnit, ePresUnit, pIntl ); | 568 rText += ::GetSvxString( ::GetMetricId( ePresUnit ) ); 569 } 570 break; 571 case text::VertOrientation::TOP: 572 nId = STR_VERT_TOP; 573 break; 574 case text::VertOrientation::CENTER: 575 nId = STR_VERT_CENTER; --- 45 unchanged lines hidden (view full) --- 621 sal_uInt16 nId = 0; 622 switch ( GetHoriOrient() ) 623 { 624 case text::HoriOrientation::NONE: 625 { 626 rText += SW_RESSTR( STR_POS_X ); 627 rText += ' '; 628 rText += ::GetMetricText( GetPos(), eCoreUnit, ePresUnit, pIntl ); |
629 rText += sal_Unicode(' '); |
|
626 rText += ::GetSvxString( ::GetMetricId( ePresUnit ) ); 627 } 628 break; 629 case text::HoriOrientation::RIGHT: 630 nId = STR_HORI_RIGHT; 631 break; 632 case text::HoriOrientation::CENTER: 633 nId = STR_HORI_CENTER; --- 713 unchanged lines hidden --- | 630 rText += ::GetSvxString( ::GetMetricId( ePresUnit ) ); 631 } 632 break; 633 case text::HoriOrientation::RIGHT: 634 nId = STR_HORI_RIGHT; 635 break; 636 case text::HoriOrientation::CENTER: 637 nId = STR_HORI_CENTER; --- 713 unchanged lines hidden --- |