drviews3.cxx (766ce4d0) | drviews3.cxx (1ff378ef) |
---|---|
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 --- 697 unchanged lines hidden (view full) --- 706 mpDrawView->SetAttributes( aEditAttr ); 707 708 Invalidate(SID_ATTR_PARA_ULSPACE); 709 } 710 break; 711 712 case SID_ATTR_PARA_LRSPACE: 713 { | 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 --- 697 unchanged lines hidden (view full) --- 706 mpDrawView->SetAttributes( aEditAttr ); 707 708 Invalidate(SID_ATTR_PARA_ULSPACE); 709 } 710 break; 711 712 case SID_ATTR_PARA_LRSPACE: 713 { |
714 if( mpDrawView->IsTextEdit() ) 715 { 716 sal_uInt16 nId = SID_ATTR_PARA_LRSPACE; 717 const SvxLRSpaceItem& rItem = (const SvxLRSpaceItem&) 718 pArgs->Get( nId ); | 714 sal_uInt16 nSlot = SID_ATTR_PARA_LRSPACE; 715 SvxLRSpaceItem aLRSpace = (const SvxLRSpaceItem&)pArgs->Get( 716 GetPool().GetWhich(nSlot)); |
719 | 717 |
720 SfxItemSet aEditAttr( GetPool(), EE_PARA_LRSPACE, EE_PARA_LRSPACE ); | 718 SfxItemSet aEditAttr( GetPool(), EE_PARA_LRSPACE, EE_PARA_LRSPACE ); 719 aLRSpace.SetWhich( EE_PARA_LRSPACE ); |
721 | 720 |
722 nId = EE_PARA_LRSPACE; 723 SvxLRSpaceItem aLRSpaceItem( rItem.GetLeft(), 724 rItem.GetRight(), rItem.GetTxtLeft(), 725 rItem.GetTxtFirstLineOfst(), nId ); 726 aEditAttr.Put( aLRSpaceItem ); 727 mpDrawView->SetAttributes( aEditAttr ); | 721 aEditAttr.Put( aLRSpace ); 722 mpDrawView->SetAttributes( aEditAttr ); |
728 | 723 |
729 // #92557# Invalidate is missing here 730 Invalidate(SID_ATTR_PARA_LRSPACE); 731 } | 724 Invalidate(SID_ATTR_PARA_LRSPACE); |
732 break; 733 } 734 case SID_ATTR_LRSPACE: 735 { 736 if( mpDrawView->IsTextEdit() ) 737 { 738 sal_uInt16 nId = SID_ATTR_PARA_LRSPACE; 739 const SvxLRSpaceItem& rItem = (const SvxLRSpaceItem&) --- 261 unchanged lines hidden --- | 725 break; 726 } 727 case SID_ATTR_LRSPACE: 728 { 729 if( mpDrawView->IsTextEdit() ) 730 { 731 sal_uInt16 nId = SID_ATTR_PARA_LRSPACE; 732 const SvxLRSpaceItem& rItem = (const SvxLRSpaceItem&) --- 261 unchanged lines hidden --- |