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

(-)sw/inc/fmtclds.hxx (+4 lines)
Lines 83-88 Link Here
83
83
84
	SwColumns	aColumns;	//Informationen fuer die einzelnen Spalten.
84
	SwColumns	aColumns;	//Informationen fuer die einzelnen Spalten.
85
	sal_uInt16		nWidth;		//Gesamtwunschbreite aller Spalten.
85
	sal_uInt16		nWidth;		//Gesamtwunschbreite aller Spalten.
86
	sal_Int16	aWidthAdjustValue;
86
87
87
	sal_Bool bOrtho;			//Nur wenn dieses Flag gesetzt ist wird beim setzen
88
	sal_Bool bOrtho;			//Nur wenn dieses Flag gesetzt ist wird beim setzen
88
							//der GutterWidth eine 'optische Verteilung'
89
							//der GutterWidth eine 'optische Verteilung'
Lines 99-104 Link Here
99
	SwFmtCol();
100
	SwFmtCol();
100
	SwFmtCol( const SwFmtCol& );
101
	SwFmtCol( const SwFmtCol& );
101
	~SwFmtCol();
102
	~SwFmtCol();
103
	//i120133
104
	const	sal_Int16 GetAdjustValue() const { return aWidthAdjustValue; }
105
	void	SetAdjustValue( const sal_Int16& n ) { aWidthAdjustValue = n; }
102
106
103
	SwFmtCol& operator=( const SwFmtCol& );
107
	SwFmtCol& operator=( const SwFmtCol& );
104
108
(-)sw/source/core/layout/atrfrm.cxx (-3 / +8 lines)
Lines 823-829 Link Here
823
	eAdj( rCpy.GetLineAdj() ),
823
	eAdj( rCpy.GetLineAdj() ),
824
    aColumns( (sal_Int8)rCpy.GetNumCols(), 1 ),
824
    aColumns( (sal_Int8)rCpy.GetNumCols(), 1 ),
825
    nWidth( rCpy.GetWishWidth() ),
825
    nWidth( rCpy.GetWishWidth() ),
826
    bOrtho( rCpy.IsOrtho() )
826
    bOrtho( rCpy.IsOrtho() ),
827
	aWidthAdjustValue( rCpy.aWidthAdjustValue )
827
{
828
{
828
	for ( sal_uInt16 i = 0; i < rCpy.GetNumCols(); ++i )
829
	for ( sal_uInt16 i = 0; i < rCpy.GetNumCols(); ++i )
829
	{
830
	{
Lines 842-847 Link Here
842
	eAdj		= rCpy.GetLineAdj();
843
	eAdj		= rCpy.GetLineAdj();
843
	nWidth		= rCpy.GetWishWidth();
844
	nWidth		= rCpy.GetWishWidth();
844
	bOrtho		= rCpy.IsOrtho();
845
	bOrtho		= rCpy.IsOrtho();
846
	aWidthAdjustValue = rCpy.aWidthAdjustValue;
845
847
846
	if ( aColumns.Count() )
848
	if ( aColumns.Count() )
847
		aColumns.DeleteAndDestroy( 0, aColumns.Count() );
849
		aColumns.DeleteAndDestroy( 0, aColumns.Count() );
Lines 859-865 Link Here
859
    nLineHeight( 100 ),
861
    nLineHeight( 100 ),
860
	eAdj( COLADJ_NONE ),
862
	eAdj( COLADJ_NONE ),
861
	nWidth( USHRT_MAX ),
863
	nWidth( USHRT_MAX ),
862
    bOrtho( sal_True )
864
    bOrtho( sal_True ),
865
	aWidthAdjustValue( 0 )
863
{
866
{
864
}
867
}
865
868
Lines 873-879 Link Here
873
		  eAdj		 		 == rCmp.GetLineAdj() &&
876
		  eAdj		 		 == rCmp.GetLineAdj() &&
874
		  nWidth  	 		 == rCmp.GetWishWidth() &&
877
		  nWidth  	 		 == rCmp.GetWishWidth() &&
875
		  bOrtho  			 == rCmp.IsOrtho() &&
878
		  bOrtho  			 == rCmp.IsOrtho() &&
876
		  aColumns.Count() == rCmp.GetNumCols()) )
879
		  aColumns.Count() == rCmp.GetNumCols() && 
880
		  aWidthAdjustValue == rCmp.GetAdjustValue()
881
         ) )
877
		return 0;
882
		return 0;
878
883
879
	for ( sal_uInt16 i = 0; i < aColumns.Count(); ++i )
884
	for ( sal_uInt16 i = 0; i < aColumns.Count(); ++i )
(-)sw/source/filter/ww8/wrtw8sty.cxx (-1 / +11 lines)
Lines 1550-1556 Link Here
1550
1550
1551
            // am Nachkommen NUR  die Spaltigkeit gemaess Sect-Attr.
1551
            // am Nachkommen NUR  die Spaltigkeit gemaess Sect-Attr.
1552
            // umsetzen
1552
            // umsetzen
1553
            aSet.Put( rSepInfo.pSectionFmt->GetFmtAttr( RES_COL ) );
1554
1553
1555
            const SvxLRSpaceItem &rSectionLR =
1554
            const SvxLRSpaceItem &rSectionLR =
1556
                ItemGet<SvxLRSpaceItem>( *(rSepInfo.pSectionFmt), RES_LR_SPACE );
1555
                ItemGet<SvxLRSpaceItem>( *(rSepInfo.pSectionFmt), RES_LR_SPACE );
Lines 1560-1566 Link Here
1560
            SvxLRSpaceItem aResultLR( rPageLR.GetLeft() +
1559
            SvxLRSpaceItem aResultLR( rPageLR.GetLeft() +
1561
                    rSectionLR.GetLeft(), rPageLR.GetRight() +
1560
                    rSectionLR.GetLeft(), rPageLR.GetRight() +
1562
                    rSectionLR.GetRight(), 0, 0, RES_LR_SPACE );
1561
                    rSectionLR.GetRight(), 0, 0, RES_LR_SPACE );
1562
            //i120133: The Section width should consider section indent value.
1563
			if (rSectionLR.GetLeft()+rSectionLR.GetRight()!=0)
1564
			{
1565
				const SwFmtCol& rCol = dynamic_cast<const SwFmtCol&>(rSepInfo.pSectionFmt->GetFmtAttr(RES_COL));
1566
				SwFmtCol aCol(rCol);
1567
				aCol.SetAdjustValue(rSectionLR.GetLeft()+rSectionLR.GetRight());
1568
				aSet.Put(aCol);
1569
			}
1570
			else
1571
				aSet.Put(rSepInfo.pSectionFmt->GetFmtAttr(RES_COL));
1563
1572
1573
1564
            aSet.Put( aResultLR );
1574
            aSet.Put( aResultLR );
1565
1575
1566
            // und raus damit ins WW-File
1576
            // und raus damit ins WW-File
(-)sw/source/filter/ww8/ww8atr.cxx (+3 lines)
Lines 4494-4499 Link Here
4494
			const SvxLRSpaceItem &rLR = pFmt->GetLRSpace();
4494
			const SvxLRSpaceItem &rLR = pFmt->GetLRSpace();
4495
			nPageSize = pFmt->GetFrmSize().GetWidth();
4495
			nPageSize = pFmt->GetFrmSize().GetWidth();
4496
			nPageSize -= rLR.GetLeft() + rLR.GetRight();
4496
			nPageSize -= rLR.GetLeft() + rLR.GetRight();
4497
			//i120133: The Section width should consider page indent value.
4498
			nPageSize -= rCol.GetAdjustValue();
4499
			
4497
		}
4500
		}
4498
4501
4499
        // Nachsehen, ob alle Spalten gleich sind
4502
        // Nachsehen, ob alle Spalten gleich sind

Return to issue 120133